{
"name": "motion",
- "version": "0.0.20",
+ "version": "0.0.21",
"main": "server/app.js",
"dependencies": {
"accept-language-parser": "^1.0.2",
"mail-listener2": "^0.1.8",
"md5": "2.x",
"method-override": "~2.3.5",
- "moment": "^2.10.6",
+ "moment": "^2.11.1",
"morgan": "~1.6.1",
"mustache": "^2.2.0",
"mysql": "^2.10.0",
-"use strict";angular.module("xCallyShuttleApp",["adf","adf.structures.base","adf.widget.clock","adf.widget.iframe","adf.widget.counter","adf.widget.table","adf.widget.pie-chart","angular-md5","angular.filter","angularFileUpload","btford.socket-io","chart.js","checklist-model","colorpicker.module","frapontillo.bootstrap-switch","infinite-scroll","LocalStorageModule","mgo-angular-wizard","ng-slide-down","ngAnimate","ngCookies","ngCsv","ngJsTree","ngMap","ngPapaParse","ngResource","ngSanitize","notification","oc.lazyLoad","pascalprecht.translate","pdf","remoteValidation","smart-table","sprintf","textAngular","toastr","ui-notification","ui.bootstrap.modal","ui.bootstrap.dropdown","ui.bootstrap.popover","ui.bootstrap.timepicker","ui.bootstrap.tooltip","ui.bootstrap.tpls","ui.bootstrap.accordion","ui.bootstrap.progressbar","ui.grid","ui.grid.grouping","ui.grid.pagination","ui.grid.treeView","ui.router","ui.navbar","ui.select","ui.sortable","xeditable","ngAudio","truncate","ngScrollbars","ngEmoticons"]).config(["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider","$translateProvider","localStorageServiceProvider","dashboardProvider","ScrollBarsProvider",function(a,b,c,d,e,f,g,h){b.otherwise("/login"),e.useStaticFilesLoader({prefix:"assets/languages/locale-",suffix:".json"}),e.preferredLanguage("en_EN"),e.useLocalStorage(),e.useSanitizeValueStrategy("sanitize"),c.html5Mode(!0),d.interceptors.push("authInterceptor"),g.structure("4-4-4",{rows:[{columns:[{styleClass:"col-md-4"},{styleClass:"col-md-4"},{styleClass:"col-md-4"}]}]}).structure("3-3-3-3",{rows:[{columns:[{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"}]}]}),f.setPrefix("xcally"),h.defaults={scrollButtons:{scrollAmount:"auto",enable:!0},axis:"y"}}]).factory("settings",["$rootScope",function(a){var b={layout:{pageSidebarClosed:!1,pageQuickSidebarOpened:!1,pageBodySolid:!1,pageAutoScrollOnLoad:1e3}};return a.settings=b,b}]).factory("authInterceptor",["$rootScope","$q","$cookieStore",function(a,b,c){return{request:function(a){return a.headers=a.headers||{},c.get("token")&&(a.headers.Authorization="Bearer "+c.get("token")),a}}}]).run(["$rootScope","$location","$state","$stateParams","$window","$http","Auth","editableThemes","editableOptions",function(a,b,c,d,e,f,g,h,i){a.$state=c,a.$stateParams=d,h.bs3.inputClass="input-sm",h.bs3.buttonsClass="btn-xs",i.theme="bs3",a.online=navigator.onLine,e.addEventListener("offline",function(){a.$apply(function(){a.online=!1})},!1),e.addEventListener("online",function(){a.$apply(function(){a.online=!0})},!1),a.$on("$stateChangeStart",function(a,c){g.isLoggedInAsync(function(a){c.authenticate&&!a&&b.path("/login")})}),a.updateTableConfig=function(a,b){var c=_.find(a,{name:"All"});c&&(c.value=b)}}]),angular.module("xCallyShuttleApp").factory("Agent",["$resource",function(a){return a("/api/agents/:id/:controller",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AgentListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.agents={checked:[]},a.check=function(b,c){c?a.agents.checked=angular.copy(_.pluck(a.displayedAgents,"id")):a.agents.checked=[]},a.getAgents=function(b){return _.map(a.displayedAgents,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("agent"),b.url="/api/agents",h.getPage(b).then(function(d){a.displayedAgents=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.agentsByPage,a.displayedAgents.length),c.updateTableConfig(a.conf.agentsByPage,a.displayedAgents.length)}),f.socket.on("agent:save",function(){a.initList(b)}),f.socket.on("agent:remove",function(c){a.agents.checked=_.without(a.agents.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/agents/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/agents",{params:{id:a.agents.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.list",{url:"/list",templateUrl:"app/agent/list/list.html",controller:"AgentListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("AgentViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","socket","FileUploader","Auth",function(a,b,c,d,e,f,g,h,i){a.Auth=i,a.updatePassword=function(){var f,g;i.isAdmin()?(f="/api/agents/password/"+e.id+"/reset",g={newPassword:a.agent.newPwd}):(f="/api/agents/password/",g={oldPassword:a.agent.currentPwd,newPassword:a.agent.newPwd}),b.put(f,g).success(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})};var j=a.uploader=new h({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});j.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),j.onSuccessItem=function(b,e,f,g){a.agent.userpic=e.userpic,a.agent.id===i.getCurrentUser().id&&(i.getCurrentUser().userpic=e.userpic),c.show(d.instant("MESSAGE_WELL_DONE"),"success")},j.onErrorItem=function(a,b,e,f){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},j.onCompleteAll=function(){j.clearQueue()},a.initView=function(){b.get("/api/agents/"+e.id).success(function(b){a.agent=b,a.agent.transport=a.agent.transport?a.agent.transport.split(","):[],a.agent.allow=a.agent.allow?a.agent.allow.split(";"):[]}).error(function(a){c.show(a.message,"danger")})},a.updateItem=function(){var f=angular.copy(a.agent),g=angular.copy(a.agent);delete f.password,delete f.md5secret,f.transport=f.transport.join(","),f.allow=f.allow.join(";"),b.put("/api/agents/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.agent=g,b.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.view",{url:"/view/:id",templateUrl:"app/agent/view/view.html",controller:"AgentViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.agents.view.account",{url:"/account",templateUrl:"app/agent/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("AgentWizardCtrl",["$scope","$http","xAlert","$location","WizardHandler","$translate",function(a,b,c,d,e,f){a.forms={info:void 0,voice:void 0},a.item={role:"agent",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){b.post("/api/agents/validate/",a.item).success(function(a){console.log(a),a.length?c.show(f.instant("MESSAGE_EXIST_INTERNAL"),"danger"):e.wizard().next()}).error(function(a){c.show(f.instant(a.message),"danger")})},a.getFirstFreeInternal=function(){b.get("/api/settings/internal").success(function(b){a.item.internal=b.value}).error(function(a){c.show(f.instant(a.message),"danger")})},a.exitValidation=function(a){return a},a.createItem=function(){a.item.transport&&(a.item.transport=a.item.transport.join(",")),a.item.allow&&(a.item.allow=a.item.allow.join(";")),b.post("/api/agents/",a.item).success(function(){d.path("/agents/list")}).error(function(a){a.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.wizard",{url:"/wizard",templateUrl:"app/agent/wizard/wizard.html",controller:"AgentWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics",{url:"/analytics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={metricsByPage:{name:"10",value:10}},a.metricsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Metrics={checked:[]},a.check=function(b,c){c?a.Metrics.checked=angular.copy(_.pluck(a.displayedMetrics,"id")):a.Metrics.checked=[]},a.getMetrics=function(b){return _.map(a.displayedMetrics,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("metric"),b.url="/api/analytics/metrics",h.getPage(b).then(function(c){a.displayedMetrics=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.metricsByPage,a.displayedMetrics.length),d.updateTableConfig(a.conf.metricsByPage,a.displayedMetrics.length)}),c.socket.on("metric:save",function(){a.initList(b)}),c.socket.on("metric:remove",function(c){a.Metrics.checked=_.without(a.Metrics.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/analytics/metrics/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/analytics/metrics",{params:{id:a.Metrics.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/analytic/metric/list/create.modal.html",controller:"AnalyticMetricListCreateModalCtrl"});a.result.then(function(a){b.post("/api/analytics/metrics",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.list",{url:"/list",templateUrl:"app/analytic/metric/list/list.html",controller:"AnalyticMetricListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics",{url:"/metrics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getMetric=function(){b.get("/api/analytics/metrics/"+e.id).success(function(b){a.metric=b}).error(function(a){console.error(a),f.path("/analytics/metrics/list")})},a.updateMetric=function(){var f=angular.copy(a.metric);b.put("/api/analytics/metrics/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.metric=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.view",{url:"/view/:id",templateUrl:"app/analytic/metric/view/view.html",controller:"AnalyticMetricViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.metrics.view.settings",{url:"/settings",templateUrl:"app/analytic/metric/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TagListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticReportListCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","$log","Modal","$rootScope","stResource","$uibModal",function(a,b,c,d,e,f,g,h,i,j,k,l){a.searchField="",a.ac=function(){return!0},a.initDefaultScopeTree=function(){a.defaultTree=a.defaultTreeInstance.jstree(!0),a.defaultTree.deselect_all(),a.defaultTree.close_all(),a.defaultTree.open_node({id:1}),a.defaultTree.select_node({id:"1"}),a.defaultTreeReady=!0,a.defaultTreeActive=!0,a.previousDefaultNode=""},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.close_all(),a.customTree.open_node({id:1}),a.customTreeReady=!0,a.previousCustomNode=""},a.updateCustomTree=function(){var e={tree:angular.toJson(a.customTree.get_json("#",{flat:!0}))};b.put("/api/analytics/reports/trees/2",e).success(function(a){console.log("Custom Tree Updated")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.configTrees=function(){a.defaultTreeConfig={multiple:!1,animation:!0,core:{error:function(a){h.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0},plugins:["search"]},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){h.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0},plugins:["contextmenu","dnd","search"],contextmenu:{items:function(b,c){var e={create:{label:d.instant("APPLICATION_CREATE"),action:function(c){a.customTree.create_node(b),a.customTree.open_node(b)}},rename:{label:d.instant("APPLICATION_RENAME"),action:function(c){a.customTree.edit(b)}},remove:{label:d.instant("APPLICATION_REMOVE"),action:function(c){console.log(b),a.deleteNode(b.text,b)}}};return"#"===b.parent&&(delete e.rename,delete e.remove),c(e),e}}}},a.deleteNode=i.confirm["delete"](function(b){a.customTree.delete_node(b)}),a.searchTrees=function(){a.defaultTree.search(a.searchField),a.customTree.search(a.searchField)},a.selectDefaultNode=function(){if(a.customTreeReady){a.previousCustomNode="";var b=a.defaultTree.get_selected(!0),c=b.pop();if(a.defaultTree.deselect_node(b[0],!0),a.customTree.deselect_all(),a.defaultTree.select_node(c,!0),c.id===a.previousDefaultNode)return void console.log("def");a.previousDefaultNode=c.id,a.defaultTreeActive=!0,a.initList(a.tableState)}},a.selectCustomNode=function(){if(a.defaultTreeReady){a.previousDefaultNode="";var b=a.customTree.get_selected(!0),c=b.pop();if(a.customTree.deselect_node(b[0],!0),a.defaultTree.deselect_all(),a.customTree.select_node(c,!0),c.id===a.previousCustomNode)return void console.log("cus");a.previousCustomNode=c.id,a.defaultTreeActive=!1,a.initList(a.tableState)}},a.getTrees=function(){b.get("/api/analytics/reports/trees").success(function(b){a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),a.configTrees()}).error(function(a){c.show(d.instant(a.message),"danger")})},a.conf={reportsByPage:{name:"10",value:10}},a.reportsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Reports={checked:[]},a.check=function(b,c){c?a.Reports.checked=angular.copy(_.pluck(a.displayedReports,"id")):a.Reports.checked=[]},a.getReports=function(b){return _.map(a.displayedReports,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b,c){f.unsyncUpdates("report");var d=a.defaultTree.get_selected(),e=a.customTree.get_selected();if(d.length){var g=d.pop();a.selectedNode=a.defaultTree.get_path(g," / "),b.url="/api/analytics/reports/default",b.search.params={parent:g}}else{if(!e.length)return;var g=e.pop();a.selectedNode=a.customTree.get_path(g," / "),b.url="/api/analytics/reports/custom",b.search.params={parent:g}}a.tableState=b,k.getPage(b).then(function(c){a.displayedReports=c.rows,b.pagination.numberOfPages=c.total_pages,j.updateTableConfig(a.reportsByPage,a.displayedReports.length),j.updateTableConfig(a.conf.reportsByPage,a.displayedReports.length)}),f.socket.on("custom_report:save",function(){a.defaultTreeActive||(console.log("save"),a.initList(b))}),f.socket.on("custom_report:remove",function(c){a.defaultTreeActive||(a.Reports.checked=_.without(a.Reports.checked,c.id),a.initList(b))})},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("/api/analytics/reports/"+a).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.deleteItems=i.confirm["delete"](function(){b["delete"]("/api/analytics/reports",{params:{id:a.Reports.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.create=function(){var a=l.open({animation:!0,templateUrl:"app/analytic/report/list/create.modal.html",controller:"ReportListCreateModalCtrl"});a.result.then(function(a){b.post("/api/analytics/reports",a).then(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.show(a.data.message,"danger")})},function(){h.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.list",{url:"/list",templateUrl:"app/analytic/report/list/list.html",controller:"AnalyticReportListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports",{url:"/reports",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportViewCtrl",["$scope","$http","$translate","xAlert","socket","Modal","stResource","uiGridConstants","uiGridGroupingConstants",function(a,b,c,d,e,f,g,h,i){a.gridOptions={enableFiltering:!0,enableGrouping:!0,treeRowHeaderAlwaysVisible:!1,gridMenuShowHideColumns:!1,columnDefs:[{name:"name",enableSorting:!0,enableHiding:!1,enableGrouping:!1},{name:"description",enableSorting:!0,enableHiding:!1,enableGrouping:!1},{name:"category",enableSorting:!0,enableHiding:!1,groupingShowAggregationMenu:!1,groupingShowGroupingMenu:!1,grouping:{groupPriority:0}},{name:"actions",enableSorting:!1,enableHiding:!1,groupingShowAggregationMenu:!1,groupingShowGroupingMenu:!1,cellTemplate:'<a class="btn default btn-xs blue-stripe" data-ng-hide="row.groupHeader" data-ng-href="/analytics/reports/view/{{row.entity.id}}/settings">{{ \'APPLICATION_SETTINGS\' | translate}}</a><a class="btn default btn-xs red-stripe" data-ng-hide="row.groupHeader" data-ng-click="grid.appScope.deleteItem(row.entity.name,row.entity.id)">{{ \'APPLICATION_DELETE\' | translate }}</a>'}]},a.getPage=function(){b.get("/api/analytics/reports").success(function(b){a.gridOptions.data=b,e.syncUpdates("report",a.gridOptions.data)}).error(function(a){d.show(c.instant(a.message),"danger")})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/analytics/reports/"+a).success(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.view",{url:"/view",templateUrl:"app/analytic/report/view/view.html",controller:"AnalyticReportViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportWizardCtrl",["$scope","$http","$location","xAlert","socket","$translate",function(a,b,c,d,e,f){a.initWizard=function(){a.forms={},a.item={}},a.createItem=function(){b.post("/api/analytics/reports/",a.item).success(function(){c.path("/analytics/reports/list")}).error(function(a){d.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.wizard",{url:"/wizard",templateUrl:"app/analytic/report/wizard/wizard.html",controller:"AnalyticReportWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={AutomationsByPage:{name:"10",value:10}},a.AutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.Automations={checked:[]},a.check=function(b,c){c?a.Automations.checked=angular.copy(_.pluck(a.displayedAutomations,"id")):a.Automations.checked=[]},a.getAutomations=function(b){return _.map(a.displayedAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("automation"),b.url="/api/automations",e.getPage(b).then(function(c){a.displayedAutomations=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.AutomationsByPage,a.displayedAutomations.length),d.updateTableConfig(a.conf.AutomationsByPage,a.displayedAutomations.length)}),g.socket.on("automation:save",function(){a.initList(b)}),g.socket.on("automation:remove",function(c){a.Automations.checked=_.without(a.Automations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/automations",{params:{id:a.Automations.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/automations/"+a,{status:d}).success(function(a){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations.list",{url:"/list",templateUrl:"app/automation/list/list.html",controller:"AutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AutomationViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","automations",function(a,b,c,d,e,f){a.$automations=f,a.forms={info:{}},a.fields={},a.properties=f.properties,a.initView=function(){c.get("/api/automations/"+b.id).success(function(b){a.automation=b,a.conditionsFilter=JSON.parse(b.conditions),a.actionsFilter=JSON.parse(b.actions),a.fields.conditions=a.$automations.automations[b.channel].conditions,a.fields.actions=a.$automations.automations[b.channel].actions}).error(function(a){e.show(a.message,"danger")})},a.updateAutomation=function(){c.put("/api/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description,conditions:angular.toJson(a.conditionsFilter),actions:angular.toJson(a.actionsFilter)}).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations.view",{url:"/view/:id",templateUrl:"app/automation/view/view.html",controller:"AutomationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.automations.view.settings",{url:"/settings",templateUrl:"app/automation/view/view.settings.html"}).state("main.automations.view.routes",{url:"/routes",templateUrl:"app/automation/view/view.routes.html"}).state("main.automations.view.application",{url:"/application",templateUrl:"app/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("AutomationWizardCtrl",["$scope","$http","$location","xAlert","automations","WizardHandler",function(a,b,c,d,e,f){a.$automations=e,a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={},a.fields={},a.properties=e.properties,a.forms={general:{}};var g={group:{"boolean":"AND",rules:[],type:"CONDITION",main:!0}},h={group:{rules:[],type:"ACTION"}};a.conditionsFilter=_.clone(g,!0),a.actionsFilter=_.clone(h,!0),a.$watch("item.channel",function(b,c){c&&(a.tempData[c].conditionsFilter=_.clone(a.conditionsFilter,!0),a.tempData[c].actionsFilter=_.clone(a.actionsFilter,!0)),a.conditionsFilter=a.tempData[b].conditionsFilter?a.tempData[b].conditionsFilter:_.clone(g,!0),a.actionsFilter=a.tempData[b].actionsFilter?a.tempData[b].actionsFilter:_.clone(h,!0),a.fields.conditions=a.$automations.automations[b].conditions,a.fields.actions=a.$automations.automations[b].actions},!0),a.item.channel="mail",a.createItem=function(){a.item.conditions=angular.toJson(a.conditionsFilter),a.item.actions=angular.toJson(a.actionsFilter),b.post("/api/automations",a.item).success(function(){c.path("/automations/list")}).error(function(a){d.show(a.message,"danger")})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations.wizard",{url:"/wizard",templateUrl:"app/automation/wizard/wizard.html",controller:"AutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat",{url:"/chat",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("ChatMessage",["$resource",function(a){return a("/api/chat/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatRoom",["$resource",function(a){return a("/api/chat/rooms/:id/:controller",{id:"@id"},{me:{method:"GET",isArray:!0,params:{id:"me"}},users:{method:"GET",params:{id:"users"}},externals:{method:"GET",isArray:!0,params:{id:"type",controller:"external"}},groups:{method:"GET",isArray:!0,params:{id:"groups"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").directive("preview",function(){return{templateUrl:"app/chat/preview/preview.html",restrict:"EA",link:function(a,b,c){}}}),angular.module("xCallyShuttleApp").controller("ChatQueueListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","stResource",function(a,b,c,d,e,f,g,h){a.conf={chatQueuesByPage:{name:"10",value:10}},a.chatQueuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.chatQueues={checked:[]},a.check=function(b,c){c?a.chatQueues.checked=angular.copy(_.pluck(a.displayedChatQueues,"id")):a.chatQueues.checked=[]},a.initList=function(b){e.unsyncUpdates("chat_queue"),b.url="/api/chat/queues/",h.getPage(b).then(function(c){a.displayedChatQueues=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(c.queuesByPage,a.displayedChatQueues.length),g.updateTableConfig(a.conf.queuesByPage,a.displayedChatQueues.length)}),e.socket.on("chat_queue:save",function(){a.initList(b)}),e.socket.on("chat_queue:remove",function(c){a.chatQueues.checked=_.without(a.chatQueues.checked,c.id),a.initList(b)})},a.getChatQueues=function(b){return _.map(a.displayedChatQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/chat/queues/"+a).success(function(){c.show(d.instant("MESSAGE_CHAT_QUEUE_DELETE_SUCCESS")+"!","success")}).error(function(){c.show(d.instant("MESSAGE_CHAT_QUEUE_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/chat/queues/",{params:{id:a.chatQueues.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.$on("$destroy",function(){e.unsyncUpdates("chat_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.list",{url:"/list",templateUrl:"app/chat/queue/list/list.html",controller:"ChatQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("ChatQueue",["$resource",function(a){return a("/api/chat/queues/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/chat/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/chat/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/chat/queues/"+e.id).success(function(b){a.queue=b}).error(function(a){console.error(a)})},a.updateChatQueue=function(){var f=angular.copy(a.queue);b.put("/api/chat/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){a.queue=f,b.errors.forEach(function(a){c.show(a.message,"danger")})})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/chat/user_has_queues",method:"GET",params:{ChatQueueId:a.queue.id}}).success(function(a){ComponentsDropdowns.bindChatQueue(c.rows,_.pluck(a,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.view",{url:"/view/:id",templateUrl:"app/chat/queue/view/view.html",controller:"ChatQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.chat.queues.view.settings",{url:"/settings",templateUrl:"app/chat/queue/view/view.settings.html"}).state("main.chat.queues.view.agents",{url:"/agents",templateUrl:"app/chat/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueWizardCtrl",["$scope","$http","$location","xAlert","WizardHandler","$translate",function(a,b,c,d,e,f){a.forms={},a.item={},a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/chat/queues",a.item).success(function(){d.show(f.instant("MESSAGE_WELL_DONE"),"success"),c.path("/chat/queues/list")}).error(function(a){
-d.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.wizard",{url:"/wizard",templateUrl:"app/chat/queue/wizard/wizard.html",controller:"ChatQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent",{url:"/agent",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentQueueCtrl",["$scope","$http","socket","Agent","ChatQueue",function(a,b,c,d,e){a.gridOptions={enableSorting:!1,enableFiltering:!0,columnDefs:[{name:"queueName",displayName:"Queue"},{name:"agentName",displayName:"Agent",cellClass:"text-center",cellTemplate:'<span data-ng-if="row.entity.agentName">{{row.entity.fullname}} [{{row.entity.agentName}}]</span>'},{name:"online",cellClass:"text-center",cellTemplate:'<span class="badge badge-empty" data-ng-if="row.entity.online != null" data-ng-class="row.entity.online ? \'badge-success\' : \'badge-danger\'"></span>'},{name:"lastLoginAt",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.lastLoginAt" is="relative-time" datetime="{{row.entity.lastLoginAt}}">April 1, 2014</time>'}],onRegisterApi:function(b){a.gridApi=b,a.gridApi.treeBase.on.rowExpanded(a,function(b){var c=_.findIndex(a.gridOptions.data,{$$hashKey:b.entity.$$hashKey});b.entity.Users&&b.entity.Users.forEach(function(b){_.find(a.gridOptions.data,{name:b.name})||a.gridOptions.data.splice(c+1,0,b)})})}},e.get(function(b){a.gridOptions.data=[],b.rows.forEach(function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b),b.Users&&b.Users.forEach(function(b){b.agentName=b.name,a.gridOptions.data.push(b)})}),c.socket.on("agent:save",function(b){var c=_.filter(a.gridOptions.data,{agentName:b.name});c.forEach(function(a){a.online=b.online,a.lastLoginAt=b.lastLoginAt})}),c.socket.on("chat_queue:save",function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b)}),c.socket.on("chat_queue:remove",function(b){_.remov(a.gridOptions.data,{queueName:b.name})}),c.socket.on("user_has_chat_queue:save",function(b){var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.ChatQueueId});d.get({id:b.UserId}).$promise.then(function(b){a.gridOptions.data.splice(c+1,0,{id:b.id,name:b.name,fullname:b.fullname,agentName:b.name,online:b.online,lastLoginAt:b.lastLoginAt})})["catch"](function(a){console.error(a)})}),c.socket.on("user_has_chat_queue:remove",function(b){for(var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.ChatQueueId}),d=c+1;d<a.gridOptions.data.length;d++)a.gridOptions.data[d].id==b.UserId&&a.gridOptions.data.splice(d,1)})},function(a){console.error(a)}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_chat:save"),c.unsyncUpdates("report_chat:update")}),a.initAgents=function(){b.get("/api/report/chats").success(function(b){a.agents=b,c.socket.on("report_chat:save",function(b){var c=_.find(a.agents,{id:b.id});c||a.agents.unshift(b)}),c.socket.on("report_chat:update",function(b){var c=_.find(a.agents,{id:b.id}),d=a.agents.indexOf(c);c&&_.merge(a.agents[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent.queues",{url:"/queues",controller:"ChatRealtimeViewAgentQueueCtrl",templateUrl:"app/chat/realtime/view/agent/queue/queue.html"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentTimelineCtrl",["$scope","$http","socket","Agent","ChatQueue","uiGridConstants",function(a,b,c,d,e,f){a.gridOptions={enableFiltering:!0,columnDefs:[{name:"lastevent",cellClass:"text-center",enableFiltering:!1,enableSorting:!1,displayName:"",cellTemplate:"<span><i data-ng-class=\"{'icon-user font-yellow': row.entity.lastevent === 'called', 'icon-user-following font-green': row.entity.lastevent === 'agent', 'icon-user-unfollow font-red': row.entity.lastevent === 'timeout', 'icon-user-unfollow font-blue': row.entity.lastevent === 'answered_elsewhere'}\"></i></span>"},{name:"chatqueuename",displayName:"Queue Name",cellClass:"text-center"},{name:"fullname",cellClass:"text-center"},{name:"visitoremail",displayName:"Visitor",cellClass:"text-center"},{name:"websitename",displayName:"Website",cellClass:"text-center"},{name:"agentcalledAt",displayName:"Called At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentcalledAt" is="relative-time" datetime="{{row.entity.agentcalledAt}}">April 1, 2014</time>',sort:{direction:f.DESC,priority:0}},{name:"agentconnectAt",displayName:"Connected At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentconnectedAt" is="relative-time" datetime="{{row.entity.agentconnectedAt}}">April 1, 2014</time>'},{name:"agentringnoanswerAt",displayName:"No Answer At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentringnoanswerAt" is="relative-time" datetime="{{row.entity.agentringnoanswerAt}}">April 1, 2014</time>'}],data:[]},a.initAgents=function(){b.get("/api/report/chats").success(function(b){a.gridOptions.data=b,c.socket.on("report_chat:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c||a.gridOptions.data.unshift(b)}),c.socket.on("report_chat:update",function(b){var c=_.find(a.gridOptions.data,{id:b.id}),d=a.gridOptions.data.indexOf(c);c&&_.merge(a.gridOptions.data[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent.timeline",{url:"/timeline",controller:"ChatRealtimeViewAgentTimelineCtrl",templateUrl:"app/chat/realtime/view/agent/timeline/timeline.html"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewSessionCtrl",["$scope","$http","socket",function(a,b,c){a.conf={sessionsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.sessionsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_chat:save"),c.unsyncUpdates("report_chat:update")}),a.initChats=function(){b.get("/api/report/chat/sessions").success(function(b){a.sessions=b,c.socket.on("report_chat_session:save",function(b){var c=_.find(a.sessions,{id:b.id}),d=a.sessions.indexOf(c);c?_.merge(a.sessions[d],b):a.sessions.push(b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.chat.realtime.view.agent.queues"},{name:"Timeline",link:"main.chat.realtime.view.agent.timeline"}],a.sessions=[{name:"Sessions",link:"main.chat.realtime.view.sessions"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view",{url:"/view",templateUrl:"app/chat/realtime/view/view.html",controller:"ChatRealtimeViewCtrl"}).state("main.chat.realtime.view.sessions",{url:"/sessions",controller:"ChatRealtimeViewSessionCtrl",templateUrl:"app/chat/realtime/view/session/session.html"})}]),angular.module("xCallyShuttleApp").controller("ChatStatisticCtrl",["$scope","$http","$stateParams","xAlert","socket","$location","$translate","$filter",function(a,b,c,d,e,f,g,h){a.conf={chatVisitorsByPage:10,chatRoomsByPage:10,chatEnquiriesByPage:10},a.$location=f,a.$translate=g,a.$filter=h,a.initList=function(){b.get("api/chat/visitors").success(function(b){a.chatVisitors=b,e.syncUpdates("chat_visitor",a.chatVisitors)}),b.get("api/chat/rooms").success(function(b){a.chatRooms=b,e.syncUpdates("chat_room",a.chatRooms)}),b.get("api/chat/enquiries").success(function(b){a.chatEnquiries=b,e.syncUpdates("chat_enquery",a.chatEnquiries)})},a.initVisitorView=function(){b.get("api/chat/visitors/"+c.id).success(function(b){a.chatVisitor=b}).error(function(a){d.show(g.instant(a.message),"danger")})},a.initEnquiryView=function(){b.get("api/chat/enquiries/"+c.id).success(function(b){a.chatEnquiry=b}).error(function(a){d.show(g.instant(a.message),"danger")})},a.initRoomView=function(){console.log(c),b.get("api/chat/rooms/"+c.id).success(function(b){a.chatRoom=b}).error(function(a){d.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.statistics",{url:"/statistics",templateUrl:"app/chat/statistic/statistic.html",controller:"ChatStatisticCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]},{name:"ui.select",insertBefore:"#ng_load_plugins_before",files:["assets/plugins/ui-select/select.min.css","assets/plugins/ui-select/select.min.js"]}])}]}}).state("main.chat.statistics.summary",{url:"/summary",templateUrl:"app/chat/statistic/statistic.summary.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile-old.css"]})}]}}).state("main.chat.statistics.enquiries",{url:"/enquiries",templateUrl:"app/chat/statistic/statistic.enquiry.html"}).state("main.chat.statistics.enquiry",{url:"/enquiry/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.enquiry.view.html"}).state("main.chat.statistics.conversations",{url:"/conversations",templateUrl:"app/chat/statistic/statistic.conversation.html"}).state("main.chat.statistics.conversation",{url:"/conversation/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.conversation.view.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]})}]}}).state("main.chat.statistics.visitors",{url:"/visitors",templateUrl:"app/chat/statistic/statistic.visitor.html"}).state("main.chat.statistics.visitor",{url:"/visitor/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.visitor.view.html"})}]),angular.module("xCallyShuttleApp").controller("ChatTimelineListCtrl",["$scope","$http","socket",function(a,b,c){function d(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/chat").success(function(a){a.forEach(d),c.socket.on("event:chat:save",d)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.timeline.list",{url:"/list",templateUrl:"app/chat/timeline/list/list.html",controller:"ChatTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","stResource",function(a,b,c,d,e,f,g,h){a.conf={chatWebsitesByPage:{name:"10",value:10}},a.chatWebsitesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.chatWebsites={checked:[]},a.check=function(b,c){c?a.chatWebsites.checked=angular.copy(_.pluck(a.displayedChatWebsites,"id")):a.chatWebsites.checked=[]},a.getChatWebsites=function(b){return _.map(a.displayedChatWebsites,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("chat_website"),b.url="/api/chat/websites",h.getPage(b).then(function(c){a.displayedChatWebsites=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(a.chatWebsitesByPage,a.displayedChatWebsites.length),g.updateTableConfig(a.conf.chatWebsitesByPage,a.displayedChatWebsites.length)}),e.socket.on("chat_website:save",function(){a.initList(b)}),e.socket.on("chat_website:remove",function(c){a.chatWebsites.checked=_.without(a.chatWebsites.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/chat/websites/"+a).success(function(){c.show(d.instant("MESSAGE_CHAT_WEBSITE_DELETE_SUCCESS")+"!","success")}).error(function(){c.show(d.instant("MESSAGE_CHAT_WEBSITE_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/chat/websites",{params:{id:a.chatWebsites.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.$on("$destroy",function(){e.unsyncUpdates("chat_website")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.list",{url:"/list",templateUrl:"app/chat/website/list/list.html",controller:"ChatWebsiteListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionListCtrl",["$scope","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g){a.initActons=function(){console.log(d),a.sortableOptions={stop:function(){console.log("stop",_.pluck(a.chatApplications,"id")),b.post("api/chat/websites/"+d.websiteId+"/applications",{applications:_.pluck(a.chatApplications,"id")}).success(function(b){angular.copy(b,a.chatApplications)}).error(function(a){console.error(a)})}},b.get("/api/chat/applications",{params:{ChatWebsiteId:d.websiteId}}).success(function(b){a.chatApplications=b,e.socket.on("chat_application:remove",function(b){_.remove(a.chatApplications,{id:b.id})})})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/chat/applications/"+a).success(function(){f.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.list",{url:"/list",templateUrl:"app/chat/website/view/action/list/list.html",controller:"chatWebsiteViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],b.get("/api/chat/applications/"+c.actionId).success(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1]),console.log(c),a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})}).error(function(a){console.error(a)})},a.getQueues=function(){b.get("/api/chat/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.updateItem=function(){var e=["*","*","*","*"],g={app:a.application.app,timeout:a.application.timeout,chatAccountId:c.id};switch(a.application.app){case"agent":g.UserId=a.application.UserId;break;case"queue":g.chatQueueId=a.application.chatQueueId}switch(a.application.intType){case"always":g.interval=e.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(e[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),e[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",e[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",e[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",g.interval=e.join(","),delete a.application.IntervalId;break;case"list":g.IntervalId=a.application.IntervalId}b.put("/api/chat/applications/"+c.actionId,g).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.view",{url:"/view/:actionId",templateUrl:"app/chat/website/view/action/view/view.html",controller:"chatWebsiteViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionWizardCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){console.log(c),a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){b.get("/api/chat/queues",{params:{page:0,per_page:1e3}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:1e3}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.createItem=function(){var d=["*","*","*","*"],f={app:a.application.app,timeout:a.application.timeout,ChatWebsiteId:c.websiteId};switch(a.application.app){case"agent":f.UserId=a.application.UserId;break;case"queue":f.ChatQueueId=a.application.ChatQueueId}switch(a.application.intType){case"always":f.interval=d.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(d[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),d[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",d[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",d[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",f.interval=d.join(","),delete a.application.IntervalId;break;case"list":f.IntervalId=a.application.IntervalId}b.post("/api/chat/applications",f).success(function(){e.path("/chat/websites/view/"+c.websiteId+"/actions/list")}).error(function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){g.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.wizard",{url:"/wizard",templateUrl:"app/chat/website/view/action/wizard/wizard.html",controller:"chatWebsiteViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.snippet",{url:"/snippet",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewSnippetViewCtrl",["$scope","$http","$stateParams","$translate","MailTemplate",function(a,b,c,d,e){a.$translate=d,a.statePreview={state:"online"},a.lang={HeaderCurrentlyChatting:"Live Chat",HeaderOffline:"Contact us",OperatorOfflineMessage:"It appears as if all operators are currently offline.",OfflineMessage:"<strong>We're not online.</strong><br/>It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",EnquiryMessagePlaceholder:"Your message...",EnquiryButtonText:"Leave message",EnquirySubmitSuccess:"Your message was sucessfully submitted - we will contact you as soon as possible.",OperatorComposing:"{fullname} is typing...",FirstMessageText:"",ExitChatButtonText:"Exit Chat",ExitChatQuestionText:"Are you sure?",ExitChatButtonConfirmText:"Yes",ExitChatButtonCancelText:"No",MessagePlaceholderText:"Your message...",MessageSendButtonText:"Send",ValidationEmailRequired:"Please enter your email address",ValidationEmailInvalid:"Please enter a valid email address",ValidationEmailMaxLength:"The email address may not exceed 85 characters",ValidationUsernameRequired:"Please enter your name",ValidationUsernameMaxLength:"The name may not exceed 45 characters",ValidationEnquiryRequired:"Please enter your enquiry",ValidationEnquiryMaxLength:"The enquiry may not exceed 1500 characters",ValidationMessageRequired:"Please enter your message",ValidationMessageMaxLength:"The message may not exceed 750 characters"},a.initView=function(){e.get().$promise.then(function(b){a.mailTemplates=b.rows}),b.get("api/chat/websites/"+c.websiteId+"/snippet").success(function(b){a.snippetCode=b})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.snippet.view",{url:"/view",templateUrl:"app/chat/website/view/snippet/view/view.html",controller:"ChatWebsiteViewSnippetViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewCtrl",["$scope","xAlert","$http","$location","$stateParams","$translate","WizardHandler",function(a,b,c,d,e,f,g){a.initApplication=function(){a.forms={},a.application={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.deleteItem=function(a){c["delete"]("api/chat/applications/"+a).error(function(){b.show(f.instant("Something went wrong!"),"danger")})},a.initView=function(){c.get("/api/chat/websites/"+e.websiteId).success(function(b){a.chatWebsite=b}).error(function(a){b.show(a.message,"danger")})},a.updateItem=function(){c.put("/api/chat/websites/"+a.chatWebsite.id,a.chatWebsite).success(function(){b.show(f.instant("MESSAGE_CHAT_WEBSITE_UPDATE_SUCCESS")+"!","success")}).error(function(){b.show(f.instant("MESSAGE_CHAT_WEBSITE_UPDATE_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view",{url:"/view/:websiteId",templateUrl:"app/chat/website/view/view.html",controller:"ChatWebsiteViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites",{url:"/websites",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert",function(a,b,c,d,e,f){a.$translate=d,a.forms={formSetting:void 0,formAppearance:void 0,formLabel:void 0,formFunctionality:void 0},a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.item={},a.createItem=function(){b.post("api/chat/websites",a.item).success(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_SUCCESS"),"success"),c.path("/chat/websites/list")}).error(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.wizard",{url:"/wizard",templateUrl:"app/chat/website/wizard/wizard.html",controller:"ChatWebsiteWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies",{url:"/companies",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("CompanyListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={companiesByPage:{name:"10",value:10}},a.companiesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Companies={checked:[]},a.check=function(b,c){c?a.Companies.checked=angular.copy(_.pluck(a.displayedCompanies,"id")):a.Companies.checked=[]},a.getCompanies=function(b){return _.map(a.displayedCompanies,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("company"),b.url="/api/contactmanager/companies",h.getPage(b).then(function(c){a.displayedCompanies=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.companiesByPage,a.displayedCompanies.length),d.updateTableConfig(a.conf.companiesByPage,a.displayedCompanies.length)}),c.socket.on("company:save",function(){console.log("save"),a.initList(b)}),c.socket.on("company:remove",function(c){a.Companies.checked=_.without(a.Companies.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/companies/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager/companies",{params:{id:a.Companies.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/contactmanager/company/list/create.modal.html",controller:"CompanyListCreateModalCtrl"});a.result.then(function(a){b.post("/api/contactmanager/companies",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.list",{url:"/list",templateUrl:"app/contactmanager/company/list/list.html",controller:"ContactManagerCompanyListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getCompany=function(){b.get("/api/contactmanager/companies/"+e.id).success(function(b){a.company=b}).error(function(a){f.path("/contactmanager/companies/list")})},a.updateCompany=function(){var f=angular.copy(a.company);b.put("/api/contactmanager/companies/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.company=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.view",{url:"/view/:id",templateUrl:"app/contactmanager/company/view/view.html",controller:"ContactManagerCompanyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.companies.view.settings",{url:"/settings",templateUrl:"app/contactmanager/company/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts",{url:"/contacts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListImportModalCtrl",["$scope","$uibModalInstance","indexes","csv","xAlert","socket","$http",function(a,b,c,d,e,f,g){function h(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);var c={Phones:[],Emails:[],customFields:{}};_.forOwn(a.item,function(e,f){switch(f){case"Phones":a.item.Phones.forEach(function(a){""!==d[b][a]&&c.Phones.push({phone:d[b][a]})});break;case"Emails":a.item.Emails.forEach(function(a){""!==d[b][a]&&c.Emails.push({email:d[b][a]})});break;case"customFields":_.forOwn(a.item.customFields,function(a,e){c.customFields[e]=d[b][a]});break;case"tags":c.tags=[],a.item.tags.forEach(function(a){""!==d[b][a]&&c.tags.push(d[b][a])});break;default:c[f]=d[b][e]}}),c.tags=c.tags?c.tags.join(","):void 0,_.forOwn(c.customFields,function(a,b){""===a&&delete c.customFields[b]}),g.post("/api/contactmanager",c).success(function(c){a["import"].success+=i,a["import"].succeeded+=1,h(b+1)}).error(function(c){a["import"].fail+=i,a["import"].failed+=1,h(b+1)})}a.indexes=c,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=d.length;var i=100/a.csvLength;a.forms={dashboard:void 0},a.item={},a.start=function(){console.log(d),a.importing=!0,a.submitted=!0,h(0)},a.getCustomFields=function(){g.get("/api/contactmanager/customfields").success(function(b){a.customFields=b.rows,f.syncUpdates("custom_field",a.customFields)}).error(function(a){console.error(a),e.show(a.message,"danger")})},a.close=function(){b.close()},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").controller("ContactManagerContactListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource","FileUploader","Papa","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j,k,l){var m;i.FileSelect.prototype.isEmptyAfterSelection=function(){return!0};var n=a.uploader=new i({queueLimit:1,clearInputAfterAddedToQueue:!0});n.onAfterAddingFile=function(b){console.log("fileadded"),j.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),a["import"](b.data)},error:function(a){console.log(a)}})},a["import"]=function(b){f.unsyncUpdates("contact_manager");var c=k.open({animation:!0,size:"lg",backdrop:"static",keyboard:!1,templateUrl:"app/contactmanager/contact/list/import.modal.html",controller:"ContactManagerListImportModalCtrl",resolve:{indexes:function(){return _.keys(b[0])},csv:function(){return b}}});c.result.then(function(b){console.log("dismiss and synch"),
-f.socket.on("contact_manager:save",function(){a.initList(m)}),f.socket.on("contact_manager:remove",function(b){a.contacts.checked=_.without(a.contacts.checked,b.id),a.initList(m)})},function(){l.info("Modal dismissed at: "+new Date)})},a.conf={contactsByPage:{name:"10",value:10},labels:["mailbox","fullname","email"]},a.contactsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.contacts={checked:[]},a.newContact=function(b){a.workspaces.push({name:"New Contact",type:"newContact",active:!0,data:b?b:null})},a.openContactTab=function(b){var c=_.find(a.workspaces,{contactID:b.id});c?c.active=!0:a.workspaces.push({name:b.fullname,type:"contact",contactID:b.id,active:!0})},a.check=function(b,c){c?a.contacts.checked=angular.copy(_.pluck(a.displayedContacts,"id")):a.contacts.checked=[]},a.getContacts=function(b){return _.map(a.displayedContacts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("contact_manager"),b.url="/api/contactmanager",m=b,h.getPage(b).then(function(c){console.log(c),a.displayedContacts=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.contactsByPage,a.displayedContacts.length),d.updateTableConfig(a.conf.contactsByPage,a.displayedContacts.length)}),f.socket.on("contact_manager:save",function(){a.initList(b)}),f.socket.on("contact_manager:remove",function(c){a.contacts.checked=_.without(a.contacts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager",{params:{id:a.contacts.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts.list",{url:"/list",templateUrl:"app/contactmanager/contact/list/list.html",controller:"ContactManagerContactListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager",{url:"/contactmanager",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields",{url:"/customfields",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={cutomFieldsByPage:{name:"10",value:10}},a.customFieldsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.customFields={checked:[]},a.check=function(b,c){c?a.customFields.checked=angular.copy(_.pluck(a.displayedCustomFields,"id")):a.customFields.checked=[]},a.getCustomFields=function(b){return _.map(a.displayedCustomFields,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("custom_field"),b.url="/api/contactmanager/customfields",h.getPage(b).then(function(c){a.displayedCustomFields=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.customFieldsByPage,a.displayedCustomFields.length),d.updateTableConfig(a.conf.customFieldsByPage,a.displayedCustomFields.length)}),c.socket.on("custom_field:save",function(){console.log("save"),a.initList(b)}),c.socket.on("custom_field:remove",function(c){a.customFields.checked=_.without(a.customFields.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/customfields/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager/customfields/",{params:{id:a.customFields.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/contactmanager/customfield/list/create.modal.html",controller:"ContactManagerCustomFieldListCreateModalCtrl"});a.result.then(function(a){b.post("/api/contactmanager/customfields/",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.list",{url:"/list",templateUrl:"app/contactmanager/customfield/list/list.html",controller:"ContactManagerCustomFieldListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getCustomField=function(){b.get("/api/contactmanager/customfields/"+e.id).success(function(b){a.customField=b,"select"===a.customField.type&&(a.choices=JSON.parse(a.customField.values))}).error(function(a){console.error(a),f.path("/contactmanager/customfields/list")})},a.updateCustomField=function(){"select"===a.customField.type&&(a.customField.values=angular.toJson(a.choices));var f=angular.copy(a.customField);b.put("/api/contactmanager/customfields/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.customField=f})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.view",{url:"/view/:id",templateUrl:"app/contactmanager/customfield/view/view.html",controller:"ContactManagerCustomFieldViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.customfields.view.settings",{url:"/settings",templateUrl:"app/contactmanager/customfield/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("DashboardCtrl",["$scope","$translate",function(a,b){a.voice=[{name:b.instant("APPLICATION_QUEUE"),link:"main.dashboard.voice"}],a.mail=[{name:b.instant("APPLICATION_QUEUE"),link:"main.dashboard.mail"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.dashboard",{"abstract":!0,url:"/dashboard",templateUrl:"app/dashboard/dashboard.html",controller:"DashboardCtrl"}).state("main.dashboard.voice",{url:"/voice",controller:"DashboardVoiceCtrl",templateUrl:"app/dashboard/voice/voice.html"}).state("main.dashboard.mail",{url:"/mail",controller:"DashboardMailCtrl",templateUrl:"app/dashboard/mail/mail.html"})}]),angular.module("xCallyShuttleApp").controller("DashboardMailCtrl",["$scope",function(a){a.message="Hello"}]),angular.module("xCallyShuttleApp").controller("DashboardVoiceCtrl",["$scope","$http","xAlert","socket",function(a,b,c,d){function e(b,c){var d;return!b.queuecallerjoinAt||b.queuecallerleaveAt||b.queuecallercompleteAt||b.queuecallerabandonAt?b.queuecallerjoinAt&&b.queuecallerleaveAt&&!b.queuecallercompleteAt&&!b.queuecallerabandonAt?d="activeCalls":b.queuecallerjoinAt&&b.queuecallerleaveAt&&b.queuecallercompleteAt&&!b.queuecallerabandonAt?d="completedCalls":b.queuecallerjoinAt&&b.queuecallerleaveAt&&!b.queuecallercompleteAt&&b.queuecallerabandonAt&&(d="abandonedCalls"):d="waitCalls",c?d:void(d&&a.queueStats[d]++)}a.queueStats={abandonedCalls:0,completedCalls:0,waitCalls:0,activeCalls:0},a.getQueueStats=function(){b.get("/api/report/queues").then(function(b){a.queueReports=b.data,a.queueReports.forEach(function(a){e(a,!1)}),d.socket.on("report_queue:save",function(b){console.log("report save or update");var c=_.find(a.queueReports,{id:b.id}),d=a.queueReports.indexOf(c);if(c){console.log("found item, is an update");var f=e(c,!0);console.log("old item value is "+f+", decrementing..."),f&&a.queueStats[f]--,_.merge(a.queueReports[d],b)}else console.log("item not found in collection, is a create"),a.queueReports.unshift(b);console.log("checking new item type and increasing..."),e(b,!1)})})["catch"](function(a){c.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk",{url:"/desk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("DeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedDeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedDeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("desk_account"),b.url="/api/desk/accounts",h.getPage(b).then(function(d){a.displayedDeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedDeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedDeskAccounts.length)}),f.socket.on("desk_account:save",function(){a.initList(b)}),f.socket.on("desk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/desk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/desk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/desk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.list",{url:"/list",templateUrl:"app/desk/list/list.html",controller:"DeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("DeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","desk_com",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("desk_configuration"),g.unsyncUpdates("desk_field")}),a.initView=function(){b.get("/api/desk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/desk/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/desk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("desk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/desk/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/desk/configurations",a.configuration).success(function(a){e.path("desk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/desk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=j.fields.concat(b)}).error(function(a){h.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/desk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("desk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/desk/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/desk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/desk/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(b.customField=_.result(c,"custom",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.data.choices?c.data.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.view",{url:"/view/:id",templateUrl:"app/desk/view/view.html",controller:"DeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.desk.view.account",{url:"/account",templateUrl:"app/desk/view/view.account.html"}).state("main.desk.view.configurations",{url:"/configurations",templateUrl:"app/desk/view/view.configurations.html"}).state("main.desk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/desk/view/view.configurationSettings.html",controller:"DeskViewCtrl"}).state("main.desk.view.configuration",{url:"/configuration",templateUrl:"app/desk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("DeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/desk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/desk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.wizard",{url:"/wizard",templateUrl:"app/desk/wizard/wizard.html",controller:"DeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","$log","stResource",function(a,b,c,d,e,f,g,h,i){a.conf={faxAccountsByPage:{name:"10",value:10}},a.faxAccountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.fax_accounts={checked:[]},a.check=function(b,c){c?a.fax_accounts.checked=angular.copy(_.pluck(a.displayedFaxAccounts,"id")):a.fax_accounts.checked=[]},a.initList=function(b){e.unsyncUpdates("fax_account"),b.url="/api/fax/accounts",i.getPage(b).then(function(c){a.displayedFaxAccounts=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(a.faxAccountsByPage,a.displayedFaxAccounts.length),g.updateTableConfig(a.conf.faxAccountsByPage,a.displayedFaxAccounts.length)}),e.socket.on("fax_account:save",function(){a.initList(b)}),e.socket.on("fax_account:remove",function(c){a.fax_accounts.checked=_.without(a.fax_accounts.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/fax/accounts/"+a).success(function(){c.show(d.instant("MESSAGE_FAX_ACCOUNT_DELETE_SUCCESS"),"success")}).error(function(){c.show(d.instant("MESSAGE_FAX_ACCOUNT_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/fax/accounts",{params:{id:a.fax_accounts.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.getFaxAccounts=function(b){return _.map(a.faxAccountsByPage,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.$on("$destroy",function(){e.unsyncUpdates("fax_account")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.list",{url:"/list",templateUrl:"app/fax/account/list/list.html",controller:"FaxAccountListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.forms={},a.sortableOptions={stop:function(){b.post("api/fax/accounts/"+c.id+"/applications",{applications:_.pluck(a.faxApplications,"id")}).success(function(b){a.faxApplications=b}).error(function(a){console.error(a)})},"ui-floating":!0},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.initApplication=function(){a.forms={},a.application={}},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("api/fax/applications/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.getAppdata=function(b,c){switch(b){case"agent":return a.agents?_.find(a.agents,{id:c}).name:c;case"queue":return a.faxQueues?_.find(a.faxQueues,{id:c}).name:c}return"UNKNOWN"},a.createItem=function(){switch(a.application.appdata=a.application.appdata.id,a.application.app){case"agent":a.application.UserId=parseInt(a.application.appdata,10);break;case"queue":a.application.FaxQueueId=parseInt(a.application.appdata,10)}a.application.FaxAccountId=c.id,b.post("api/fax/applications",a.application).success(function(){e.path("fax/accounts/view/"+c.id+"/routes")}).error(function(){h.show("Something went wrong!","danger")})},a.$watch("application.app",function(c){if(c){var d;switch(c){case"agent":d="api/agents";break;case"queue":d="api/fax/queues"}b.get(d).success(function(b){a.items=b.rows})}},!0),a.initView=function(){b.get("/api/trunks").success(function(b){a.trunks=b.rows}).error(function(a){console.log(a)}),b.get("/api/fax/accounts/"+c.id).success(function(b){a.account=b}).error(function(){})},a.getAgents=function(){b.get("api/fax/agents").success(function(b){a.agents=b})},a.getFaxApplications=function(){b.get("/api/fax/applications",{params:{FaxAccountId:c.id}}).success(function(b){a.faxApplications=b,g.socket.on("fax_application:remove",function(b){_.remove(a.faxApplications,{id:b.id})})}),b.get("/api/agents").success(function(b){a.agents=b.rows}),b.get("/api/fax/queues").success(function(b){a.faxQueues=b.rows})},a.updateItemFaxAccount=function(){b.put("/api/fax/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_FAX_ACCOUNT_UPDATE_SUCCESS")+".","success")}).error(function(){h.show(d.instant("MESSAGE_FAX_ACCOUNT_UPDATE_FAILURE")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.view",{url:"/view/:id",templateUrl:"app/fax/account/view/view.html",controller:"FaxAccountViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.fax.accounts.view.settings",{url:"/settings",templateUrl:"app/fax/account/view/view.settings.html",authenticate:!0}).state("main.fax.accounts.view.routes",{url:"/routes",templateUrl:"app/fax/account/view/view.routes.html",authenticate:!0}).state("main.fax.accounts.view.applications",{url:"/applications",templateUrl:"app/fax/account/view/view.applications.html",authenticate:!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.ecm=!1,a.item.minrate="9600",a.item.maxrate="33600",b.get("/api/trunks").success(function(b){a.trunks=b.rows}).error(function(a){console.error(a)})},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/fax/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_FAX_ACCOUNT_CREATE_SUCCESS")+".","success"),c.path("/fax/accounts/list")}).error(function(){e.show(d.instant("MESSAGE_FAX_ACCOUNT_CREATE_FAILURE")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.wizard",{url:"/wizard",templateUrl:"app/fax/account/wizard/wizard.html",controller:"FaxAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={faxAutomationsByPage:{name:"10",value:10}},a.faxAutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.faxAutomations={checked:[]},a.check=function(b,c){c?a.faxAutomations.checked=angular.copy(_.pluck(a.displayedFaxAutomations,"id")):a.faxAutomations.checked=[]},a.getFaxAutomations=function(b){return _.map(a.displayedFaxAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("fax_business_automation"),b.url="/api/fax/business/automations",e.getPage(b).then(function(c){a.displayedFaxAutomations=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.faxAutomationsByPage,a.displayedFaxAutomations.length),d.updateTableConfig(a.conf.faxAutomationsByPage,a.displayedFaxAutomations.length)}),g.socket.on("fax_business_automation:save",function(){a.initList(b)}),g.socket.on("fax_business_automation:remove",function(c){a.faxAutomations.checked=_.without(a.faxAutomations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/fax/business/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/fax/business/automations",{params:{id:a.faxAutomations.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/fax/business/automations/"+a,{status:d}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.$on("$destroy",function(){g.unsyncUpdates("fax_business_automation")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.list",{url:"/list",templateUrl:"app/fax/automation/list/list.html",controller:"FaxAutomationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationViewCtrl",["$scope","$stateParams","$http","automation","socket","xAlert","$translate","$log",function(a,b,c,d,e,f,g,h){a.initView=function(){a.forms={info:{}},a.automations=d.automations,c.get("/api/fax/business/automations/"+b.id).success(function(c){h.debug(c),a.test=c,a.automation=c,e.syncUpdatesByAttributes("business_condition",{FaxBusinessAutomationId:b.id},c.BusinessConditions)}).error(function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateAutomation=function(){c.put("/api/fax/business/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description}).success(function(a){h.debug(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),h.error(a)})},a.getOperatorsByCondition=function(a){var b=[],c=_.find(d.automations.conditions,{key:a});return c.operators&&c.operators.length&&(b=c.operators),b},a.getAttributesByCondition=function(a){var b=[],c=_.find(d.automations.conditions,{key:a});if(c.attributes&&c.attributes.length)switch(c.key){case"createdAt":b=_.map(c.attributes,function(a){return a.value=parseInt(a.value,10),a});break;default:b=c.attributes}return b},a.addNewCondition=function(b){c.post("/api/business/conditions",{type:b,condition:"status",FaxBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessConditions.push(b)}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addNewAction=function(){c.post("/api/business/actions",{condition:"status",FaxBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessActions.push(b)}).error(function(a){console.error(a)})},a.removeCondition=function(a){c["delete"]("/api/business/conditions/"+a).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.removeAction=function(b){c["delete"]("/api/business/actions/"+b).success(function(b){console.log(b),a.automation.BusinessActions=_.reject(a.automation.BusinessActions,{id:b.id})}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateCondition=function(a,b,d){var e={};e[b]=d,c.put("/api/business/conditions/"+a,e).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateAction=function(a,b,d){var e={};e[b]=d,c.put("/api/business/actions/"+a,e).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.view",{url:"/view/:id",templateUrl:"app/fax/automation/view/view.html",controller:"FaxAutomationViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.fax.automations.view.settings",{url:"/settings",templateUrl:"app/fax/automation/view/view.settings.html",authenticate:!0}).state("main.fax.automations.view.routes",{url:"/routes",templateUrl:"app/fax/automation/view/view.routes.html",authenticate:!0}).state("main.fax.automations.view.application",{url:"/application",templateUrl:"app/fax/automation/view/view.application.html",authenticate:!0})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationWizardCtrl",["$scope","$http","$location","automation","WizardHandler","xAlert","$translate",function(a,b,c,d,e,f,g){a.forms={},a.automations={or:[],and:[],actions:[]},a.addNewChoice=function(b){var c=angular.copy(d.automations);a.automations[b].push(c)},a.removeChoice=function(b,c){a.automations[b].splice(c)},a.goNext=function(){e.wizard().next()},a.createItem=function(){a.automations.or.forEach(function(a){a.condition=a.condition.key,a.type="or",delete a.conditions,delete a.actions}),a.automations.and.forEach(function(a){a.condition=a.condition.key,a.type="and",delete a.conditions,delete a.actions}),a.automations.actions.forEach(function(a){a.condition=a.condition.key,delete a.conditions,delete a.actions}),b.post("api/fax/business/automations",a.automations).success(function(){f.show(g.instant("MESSAGE_WELL_DONE"),"success"),c.path("/fax/automations/list")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.wizard",{url:"/wizard",templateUrl:"app/fax/automation/wizard/wizard.html",controller:"FaxAutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){
-a.state("main.fax",{url:"/fax",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxInboxComposeCtrl",["$scope","$http","FileUploader","$location","Auth","xAlert","$cookieStore","$translate",function(a,b,c,d,e,f,g,h){a.forms={},a.form={to:[],sto:[]},b.get("api/fax/accounts").success(function(b){a.faxAccounts=b.rows}),a.isNewMessageFromEmpty=!0;var i=a.uploader=new c({url:"api/fax/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+g.get("token")}});i.filters.push({name:"pdfFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|".indexOf(b)}}),i.onBeforeUploadItem=function(b){b.formData.push({accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:e.getCurrentUser().id,html:a.form.html?a.form.html:""})},i.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d)},i.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d)},i.onCompleteAll=function(){i.clearQueue(),f.show(h.instant("MESSAGE_WELL_DONE"),"success"),d.path("/fax/inbox/incoming")},i.onWhenAddingFileFailed=function(){f.show(h.instant("MESSAGE_WRONG_FORMAT"),"danger")},a.sendFax=function(){return a.form.sto.length?void(i.queue.length?i.uploadAll():b.post("api/fax/messages",{accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:e.getCurrentUser().id,html:a.form.html,onlyText:!0}).success(function(){f.show(h.instant("MESSAGE_WELL_DONE"),"success"),d.path("/fax/inbox/incoming")}).error(function(a){f.show(h.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})):(a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0))},a.cancel=function(){a.form.sto=[],delete a.form.from}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.compose",{url:"/compose",templateUrl:"app/fax/inbox/room/room.html",controller:"FaxInboxComposeCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxInboxCtrl",["$scope","$http","$location","$translate","$timeout","$notification","Auth","socket","$interval",function(a,b,c,d,e,f,g,h,i){a.go=function(a,d,e){e?b.put("/api/fax/rooms/"+d,{status:e}).success(function(){c.path(a)}).error(function(a){console.error(a)}):c.path(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox",{url:"/inbox",templateUrl:"app/fax/inbox/inbox.html",controller:"FaxInboxCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/inbox.css","assets/css/todo.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxIncomingCtrl",["$scope","$http","$location","socket","Auth","xAlert",function(a,b,c,d,e,f){a.$location=c,a.getRooms=function(){e.isAdmin()?b.get("api/fax/rooms").success(function(b){a.faxRooms=b,d.syncUpdates("fax_room",a.faxRooms)}).error(function(a){console.error(a),f.show($translate.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}):b.get("api/fax/rooms/agent/"+e.getCurrentUser().id).success(function(b){a.faxRooms=b,d.socket.on("fax_room:update",function(b){b.UserId===e.getCurrentUser().id&&a.faxRooms.push(b)})}).error(function(a){f.show($translate.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.incoming",{url:"/incoming",templateUrl:"app/fax/inbox/incoming/incoming.html",controller:"FaxInboxIncomingCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxInboxRoomCtrl",["$scope","$http","$stateParams","$location","FileUploader","socket","Auth","xAlert","$translate","$cookieStore",function(a,b,c,d,e,f,g,h,i,j){function k(){a.lastMessage=_.reject(a.faxRoom.FaxMessages,function(a){return"RECEIVED"!==a.status}),a.lastMessage=_.sortByOrder(a.lastMessage,["id"],["desc"])[0],a.lastMessage&&(console.log(a.faxRoom),a.form.from=a.faxRoom.FaxAccount,a.form.to=[a.lastMessage.From.phone],a.form.sto=[a.lastMessage.From.phone])}var l=a.uploader=new e({url:"api/fax/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+j.get("token")}});l.filters.push({name:"pdfFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|".indexOf(b)}}),l.onBeforeUploadItem=function(b){console.log(a.form.from.id,a.form.sto[0],a.isNewMessageFromEmpty,c.id,g.getCurrentUser().id),b.formData.push({accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,roomId:c.id,userId:g.getCurrentUser().id,html:a.form.html}),console.log(b)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d)},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",b,c,d)},l.onCompleteAll=function(){l.clearQueue(),h.show(i.instant("MESSAGE_WELL_DONE"),"success")},l.onWhenAddingFileFailed=function(){h.show(i.instant("MESSAGE_WRONG_FORMAT"),"danger")},a.initRoomView=function(){a.isNewMessageFromEmpty=!0,a.Auth=g,a.forms={},a.form={to:[],sto:[]},b.get("api/agents").success(function(b){a.agents=b}),b.get("api/fax/accounts").success(function(b){a.faxAccounts=b.rows}),c.id&&b.get("/api/fax/rooms/"+c.id).success(function(b){a.faxRoom=b,a.isNewMessageFromEmpty=!1,f.syncUpdates("fax_message",[],function(b,c){"created"===b&&c.FaxRoomId===a.faxRoom.id&&(a.faxRoom.FaxMessages.push(c),k())}),k()}).error(function(a){console.error(a),h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.sendFax=function(){return a.form.sto.length?void(l.queue.length?l.uploadAll():b.post("api/fax/messages",{accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:g.getCurrentUser().id,html:a.form.html,onlyText:!0}).success(function(){h.show(i.instant("MESSAGE_WELL_DONE"),"success"),console.log("Fax Message sent")}).error(function(a){h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})):(a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0))},a.assignAgent=function(a){b.put("/api/fax/rooms/"+c.id,{UserId:a}).success(function(){h.show(i.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateStatus=function(d){b.put("/api/fax/rooms/"+c.id,{status:d}).success(function(b){a.faxRoom.status=b.status,h.show(i.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(a){console.error(a),h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){a.form.sto=[],delete a.form.from,l.clearQueue()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.room",{url:"/room/:id",templateUrl:"app/fax/inbox/room/room.html",controller:"FaxInboxRoomCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCtrl",["$scope","$rootScope","$http","$translate","socket","Modal","xAlert","stResource",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("fax_queue")}),a.conf={queuesByPage:{name:"10",value:10}},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.faxQueues={checked:[]},a.check=function(b,c){c?a.faxQueues.checked=angular.copy(_.pluck(a.displayedFaxQueues,"id")):a.faxQueues.checked=[]},a.getFaxQueues=function(b){return _.map(a.displayedFaxQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(c){e.unsyncUpdates("fax_queue"),c.url="/api/fax/queues",h.getPage(c).then(function(d){a.displayedFaxQueues=d.rows,c.pagination.numberOfPages=d.total_pages,b.updateTableConfig(d.queuesByPage,a.displayedFaxQueues.length),b.updateTableConfig(a.conf.queuesByPage,a.displayedFaxQueues.length)}),e.socket.on("fax_queue:save",function(){a.initList(c)}),e.socket.on("fax_queue:remove",function(b){a.faxQueues.checked=_.without(a.faxQueues.checked,b.id),a.initList(c)})},a.deleteItem=f.confirm["delete"](function(a){c["delete"]("/api/fax/queues/"+a).success(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){g.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){c["delete"]("/api/fax/queues/",{params:{id:a.faxQueues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})}),a.deleteItems=f.confirm["delete"](function(){c["delete"]("/api/fax/queues/",{params:{id:a.faxQueues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.list",{url:"/list",templateUrl:"app/fax/queue/list/list.html",controller:"FaxQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/fax/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/fax/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/fax/queues/"+d.id).success(function(b){a.queue=b}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateFaxQueue=function(){var f=angular.copy(a.queue);b.put("/api/fax/queues/"+d.id,f).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/fax/user_has_queues",method:"GET",params:{FaxQueueId:a.queue.id}}).success(function(b){ComponentsDropdowns.bindFaxQueue(a.teams,_.pluck(b,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.view",{url:"/view/:id",templateUrl:"app/fax/queue/view/view.html",controller:"FaxQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.fax.queues.view.settings",{url:"/settings",templateUrl:"app/fax/queue/view/view.settings.html"}).state("main.fax.queues.view.agents",{url:"/agents",templateUrl:"app/fax/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueWizardCtrl",["$scope","$http","WizardHandler","xAlert","$translate","$location",function(a,b,c,d,e,f){a.forms={},a.item={},a.next=function(){c.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/fax/queues",a.item).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success"),f.path("/fax/queues/list")}).error(function(a){d.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.wizard",{url:"/wizard",templateUrl:"app/fax/queue/wizard/wizard.html",controller:"FaxQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxTimelineListCtrl",["$scope","$http","socket","xAlert","$translate",function(a,b,c,d,e){function f(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/fax").success(function(a){a.forEach(f),c.socket.on("event:fax:save",f)}).error(function(a){console.error(a),d.show(e.instant("MESSAGE_FAX_ACCOUNT_GET_FAILURE"),"danger")})},a.$on("$destroy",function(){c.socket.removeAllListeners("event:fax:save")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.timeline.list",{url:"/list",templateUrl:"app/fax/timeline/list/list.html",controller:"FaxTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk",{url:"/freshdesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FreshdeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedFreshdeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedFreshdeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("freshdesk_account"),b.url="/api/freshdesk/accounts",h.getPage(b).then(function(d){a.displayedFreshdeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedFreshdeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedFreshdeskAccounts.length)}),f.socket.on("freshdesk_account:save",function(){a.initList(b)}),f.socket.on("freshdesk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/freshdesk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/freshdesk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/freshdesk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.list",{url:"/list",templateUrl:"app/freshdesk/list/list.html",controller:"FreshdeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("freshdesk_configuration"),h.unsyncUpdates("freshdesk_field")}),a.initView=function(){b.get("/api/freshdesk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/freshdesk/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/freshdesk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("freshdesk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/freshdesk/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/freshdesk/configurations",a.configuration).success(function(a){e.path("freshdesk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/freshdesk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=[],b=f("freshdesk")(b),_.forEach(b,function(b){a.accountFields.push(b.ticket_field)})}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/freshdesk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("freshdesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/freshdesk/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/freshdesk/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"name",b.idField);c&&(b.customField=!_.result(c,"default",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.choices.length>0?c.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view",{url:"/view/:id",templateUrl:"app/freshdesk/view/view.html",controller:"FreshdeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.freshdesk.view.account",{url:"/account",templateUrl:"app/freshdesk/view/view.account.html"}).state("main.freshdesk.view.configurations",{url:"/configurations",templateUrl:"app/freshdesk/view/view.configurations.html"}).state("main.freshdesk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/freshdesk/view/view.configurationSettings.html",controller:"FreshdeskViewCtrl"}).state("main.freshdesk.view.configuration",{url:"/configuration",templateUrl:"app/freshdesk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/freshdesk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/freshdesk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.wizard",{url:"/wizard",templateUrl:"app/freshdesk/wizard/wizard.html",controller:"FreshdeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations",{url:"/integrations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("Integration",["$resource",function(a){return a("/api/integrations/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").controller("IntegrationListCtrl",["$scope","Modal","socket","FileUploader","Integration","xAlert",function(a,b,c,d,e,f){a.integrationsByPage=10;var g=a.uploader=new d({url:"api/integrations",autoUpload:!0,removeAfterUpload:!0});g.filters.push({name:"zipFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|zip|".indexOf(b)}}),g.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(b.name,"success")},g.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),b.errors.forEach(function(a){f.show(a.message,"danger")})},a.deleteItem=b.confirm["delete"](function(a){e["delete"]({id:a},function(){f.show("Integration Removed","success")},function(a){f.show(a.data.errors,"danger")})}),a.initList=function(){a.integrations=e.query({},function(a){c.syncUpdates("integration",a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations.list",{url:"/list",templateUrl:"app/integration/list/list.html",controller:"IntegrationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals",{url:"/intervals",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IntervalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={intervalsByPage:{name:"10",value:10},labels:["name"]},a.intervalsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.intervals={checked:[]},a.check=function(b,c){c?a.intervals.checked=angular.copy(_.pluck(a.displayedIntervals,"id")):a.intervals.checked=[]},a.getIntervals=function(b){return _.map(a.displayedIntervals,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("interval"),b.url="/api/intervals",h.getPage(b).then(function(c){a.displayedIntervals=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.intervalsByPage,a.displayedIntervals.length),e.updateTableConfig(a.conf.intervalsByPage,a.displayedIntervals.length)}),c.socket.on("interval:save",function(){a.initList(b)}),c.socket.on("interval:remove",function(c){a.intervals.checked=_.without(a.intervals.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/intervals/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(d.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/intervals",{params:{id:a.intervals.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.list",{url:"/list",templateUrl:"app/interval/list/list.html",controller:"IntervalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("IntervalViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","interval",function(a,b,c,d,e,f,g,h,i,j){a.$translate=d,a.$interval=j.interval,a.forms={subinterval:void 0,general:void 0},a.initSubInterval=function(){a.subinterval={IntervalId:e.id},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0}},a.next=function(){b.post("/api/intervals/validate/",a.subinterval).success(function(a){console.log(a),a.length?c.show(d.instant("MESSAGE_EXIST_SUBINTERVAL"),"danger"):h.wizard().next()}).error(function(a){c.show(d.instant(a.message),"danger")})},a.previous=function(){h.wizard().previous()},a.exitValidation=function(a){return a},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from,a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to)):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from,a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to)):e="*",b+","+c+","+d+","+e},a.getInterval=function(){b.get("/api/intervals/"+e.id).success(function(b){a.interval=b,a.subIntervals=b.SubIntervals,f.unsyncUpdates("interval"),f.socket.on("interval:remove",function(b){b.id&&_.remove(a.subIntervals,function(a){return b.id===a.id})}),f.socket.on("interval:update",function(b){var c=_.find(a.subIntervals,{id:b.id});c.interval=b.interval}),f.socket.on("interval:save",function(b){if(b.IntervalId===e.id){var c=_.find(a.subIntervals,{id:b.id});c||a.subIntervals.push(b)}})}).error(function(a){console.error(a),g.path("/intervals/list")})},a.updateInterval=function(){var f=angular.copy(a.interval);b.put("/api/intervals/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.interval=f})},a.getSubInterval=function(){b.get("/api/intervals/"+e.appId).success(function(b){a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)},a.subinterval=b;var c,d=b.interval?b.interval.split(","):["*","*","*","*"];d.forEach(function(b,d){switch(d){case 0:"*"!==b?(c=b.split("-"),a.splittedInterval.t_from=moment(c[0],"HH:mm"),a.splittedInterval.t_to=moment(c[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==b?(c=b.split("-"),a.splittedInterval.wd_from=_.capitalize(c[0]),a.splittedInterval.wd_to=c[1]?_.capitalize(c[1]):"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==b?(c=b.split("-"),a.splittedInterval.md_from=c[0],a.splittedInterval.md_to=c[1]?c[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==b?(c=b.split("-"),a.splittedInterval.m_from=_.capitalize(c[0]),a.splittedInterval.m_to=c[1]?_.capitalize(c[1]):"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})}).error(function(a){console.error(a),g.path("/intervals/view/"+e.id+"/subintervals")})},a.createItem=function(){a.subinterval.interval=a.joinInterval(a.splittedInterval),b.post("/api/intervals/",a.subinterval).success(function(){g.path("/intervals/view/"+e.id+"/subintervals")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.updateItem=function(){a.subinterval.interval=a.joinInterval(a.splittedInterval),b.put("/api/intervals/"+e.appId,a.subinterval).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),g.path("/intervals/view/"+e.id+"/subintervals")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("/api/intervals/"+a).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){console.log(a),c.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.view",{url:"/view/:id",templateUrl:"app/interval/view/view.html",controller:"IntervalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.intervals.view.settings",{url:"/settings",templateUrl:"app/interval/view/view.settings.html"}).state("main.intervals.view.subintervals",{url:"/subintervals",templateUrl:"app/interval/view/view.subintervals.html",cache:!1}).state("main.intervals.view.subinterval",{url:"/subinterval",templateUrl:"app/interval/view/view.subinterval.html",authenticate:!0}).state("main.intervals.view.subintervals.settings",{url:"/settings/:appId",templateUrl:"app/interval/view/view.subintervalSettings.html",authenticate:!0,controller:"IntervalViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={interval:void 0},a.item={},a.next=function(){b.post("/api/intervals/validate/",a.item).success(function(a){console.log(a),a.length?e.show(f.instant("MESSAGE_EXIST_INTERVAL"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/intervals/",a.item).success(function(a){d.path("/intervals/view/"+a.id+"/subintervals")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.wizard",{url:"/wizard",templateUrl:"app/interval/wizard/wizard.html",controller:"IntervalWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("LoginCtrl",["$scope","Auth","$location","$window","$rootScope",function(a,b,c,d,e){a.userLogin={},a.userSignUp={},a.loginSubmitted=!1,a.signupSubmitted=!1,a.errorLogin=!1,a.errorSignup=!1,a.errorLog="",a.flagLogin1=!1,a.toogleLogin=function(){a.flagLogin1=!a.flagLogin1},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.login=function(d){a.loginSubmitted=!0,d.$valid?b.login({name:a.userLogin.name,password:a.userLogin.password,remember:a.userLogin.remember}).then(function(){c.path("/dashboard/voice")})["catch"](function(b){a.errorLog=b.message,a.errorLogin=!0}):a.errorLogin=!0},a.signup=function(d){a.signupSubmitted=!0,d.$valid?b.createUser({email:a.userSignUp.email,fullname:a.userSignUp.fullname,name:a.userSignUp.name,password:a.userSignUp.password,role:a.userSignUp.role,
-online:!0}).then(function(){c.path("/")})["catch"](function(b){a.errorLog=b.message,a.errorSignup=!0}):a.errorSignup=!0},a.loginOauth=function(a){d.location.href="/auth/"+a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("login",{url:"/login",templateUrl:"app/login/login.html",controller:"LoginCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountListCtrl",["$scope","$http","socket","$translate","$rootScope","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.conf={mailAccountsByPage:{name:"10",value:10}},a.mailAccountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailAccounts={checked:[]},a.check=function(b,c){c?a.mailAccounts.checked=angular.copy(_.pluck(a.displayedMailAccounts,"id")):a.mailAccounts.checked=[]},a.getMailAccounts=function(b){return _.map(a.displayedMailAccounts,function(a){var c={};return b.forEach(function(b){_.isObject(b)?_.forIn(b,function(b,d){c[b]=a[d][b]}):c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("mail_server_in"),c.unsyncUpdates("mail_account"),b.url="/api/mail/accounts",g.getPage(b).then(function(c){a.displayedMailAccounts=c.rows,b.pagination.numberOfPages=c.total_pages}),c.socket.on("mail_server_in:save",function(){a.initList(b)}),c.socket.on("mail_account:save",function(){a.initList(b)}),c.socket.on("mail_account:remove",function(c){a.mailAccounts.checked=_.without(a.mailAccounts.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/accounts/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/accounts",{params:{id:a.mailAccounts.checked}}).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(d.instant(a.message),"danger")})}),a.restart=function(a){c.socket.emit("IMAP:"+a+":RESTART",{msg:"IMAP:"+a+":RESTART"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.list",{url:"/list",templateUrl:"app/mail/account/list/list.html",controller:"MailAccountListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailAccount",["$resource",function(a){return a("/api/mail/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerIn",["$resource",function(a){return a("/api/mail/servers/in/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerOut",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"},{update:{method:"PUT"},test:{method:"GET"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionListCtrl",["$scope","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g){a.initActons=function(){console.log(d),a.sortableOptions={stop:function(){console.log("stop",_.pluck(a.mailApplications,"id")),b.post("api/mail/accounts/"+d.accountId+"/applications",{applications:_.pluck(a.mailApplications,"id")}).success(function(b){angular.copy(b,a.mailApplications)}).error(function(a){console.error(a)})}},b.get("/api/mail/applications",{params:{MailAccountId:d.accountId}}).success(function(b){a.mailApplications=b,e.socket.on("mail_application:remove",function(b){_.remove(a.mailApplications,{id:b.id})})})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/mail/applications/"+a).success(function(){f.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.list",{url:"/list",templateUrl:"app/mail/account/view/action/list/list.html",controller:"MailAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],b.get("/api/mail/applications/"+c.actionId).success(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1]),console.log(c),a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})}).error(function(a){console.error(a)})},a.getQueues=function(){b.get("/api/mail/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.updateItem=function(){var e=["*","*","*","*"],g={app:a.application.app,timeout:a.application.timeout,MailAccountId:c.id};switch(a.application.app){case"agent":g.UserId=a.application.UserId;break;case"queue":g.MailQueueId=a.application.MailQueueId}switch(a.application.intType){case"always":g.interval=e.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(e[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),e[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",e[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",e[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",g.interval=e.join(","),delete a.application.IntervalId;break;case"list":g.IntervalId=a.application.IntervalId}b.put("/api/mail/applications/"+c.actionId,g).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/mail/account/view/action/view/view.html",controller:"MailAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionWizardCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){console.log(c),a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){b.get("/api/mail/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.createItem=function(){var d=["*","*","*","*"],f={app:a.application.app,timeout:a.application.timeout,MailAccountId:c.accountId};switch(a.application.app){case"agent":f.UserId=a.application.UserId;break;case"queue":f.MailQueueId=a.application.MailQueueId}switch(a.application.intType){case"always":f.interval=d.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(d[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),d[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",d[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",d[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",f.interval=d.join(","),delete a.application.IntervalId;break;case"list":f.IntervalId=a.application.IntervalId}b.post("/api/mail/applications",f).success(function(){e.path("/mail/accounts/view/"+c.accountId+"/actions/list")}).error(function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){g.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/mail/account/view/action/wizard/wizard.html",controller:"MailAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","MailAccount","MailMessage","MailServerIn","MailServerOut",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){a.account=g.get({id:c.accountId})},a.updateItemMailAccount=function(){g.update({id:c.accountId},{name:a.account.name,description:a.account.description,address:a.account.address}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.updateItemMailServerIn=function(){i.update({id:a.account.MailServerIn.id},a.account.MailServerIn).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.updateItemMailServerOut=function(){j.update({id:a.account.MailServerOut.id},a.account.MailServerOut).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.test=function(){j.test({id:a.account.MailServerOut.id,controller:"test"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view",{url:"/view/:accountId",templateUrl:"app/mail/account/view/view.html",controller:"MailAccountViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.mail.accounts.view.settings",{url:"/settings",templateUrl:"app/mail/account/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert",function(a,b,c,d,e,f){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.info={},a["in"]={"delete":!1,ssl:!0,protocol:"IMAP",port:993,mailbox:"INBOX",filter:"UNSEEN"},a.out={ssl:!0,port:465},a.$translate=d},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){var e={name:a.info.name,address:a.info.address,description:a.info.description,incoming:a["in"],outgoing:a.out};b.post("api/mail/accounts",e).success(function(){c.path("/mail/accounts/list")}).error(function(a){console.log(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.wizard",{url:"/wizard",templateUrl:"app/mail/account/wizard/wizard.html",controller:"MailAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={mailAutomationsByPage:{name:"10",value:10}},a.mailAutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.mailAutomations={checked:[]},a.check=function(b,c){c?a.mailAutomations.checked=angular.copy(_.pluck(a.displayedMailAutomations,"id")):a.mailAutomations.checked=[]},a.getMailAutomations=function(b){return _.map(a.displayedMailAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("mail_business_automation"),b.url="/api/mail/business/automations",e.getPage(b).then(function(c){a.displayedMailAutomations=c.mailAutomations,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.mailAutomationsByPage,a.displayedMailAutomations.length),d.updateTableConfig(a.conf.mailAutomationsByPage,a.displayedMailAutomations.length)}),g.socket.on("mail_business_automation:save",function(){a.initList(b)}),g.socket.on("mail_business_automation:remove",function(c){a.mailAutomations.checked=_.without(a.mailAutomations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/business/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/business/automations",{params:{id:a.mailAutomations.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/mail/business/automations/"+a,{status:d}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.list",{url:"/list",templateUrl:"app/mail/automation/list/list.html",controller:"MailAutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAutomationViewCtrl",["$scope","$stateParams","$http","$translate","automation","socket","xAlert",function(a,b,c,d,e,f,g){a.initView=function(){a.forms={info:{}},a.automations=e.automations,c.get("/api/mail/business/automations/"+b.id).success(function(c){a.test=c,a.automation=c,f.syncUpdatesByAttributes("business_condition",{MailBusinessAutomationId:b.id},c.BusinessConditions)}).error(function(){})},a.updateAutomation=function(){c.put("/api/mail/business/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description}).success(function(a){g.show(d.instant("MESSAGE_WELL_DONE"),"success"),console.log(a)}).error(function(a){console.error(a)})},a.getOperatorsByCondition=function(a){var b=[],c=_.find(e.automations.conditions,{key:a});return c.operators&&c.operators.length&&(b=c.operators),b},a.getAttributesByCondition=function(a){var b=[],c=_.find(e.automations.conditions,{key:a});if(c.attributes&&c.attributes.length)switch(c.key){case"createdAt":b=_.map(c.attributes,function(a){return a.value=parseInt(a.value,10),a});break;default:b=c.attributes}return b},a.addNewCondition=function(b){c.post("/api/business/conditions",{type:b,condition:"status",MailBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessConditions.push(b)}).error(function(a){console.error(a)})},a.removeCondition=function(a){c["delete"]("/api/business/conditions/"+a).success(function(a){console.log(a)}).error(function(a){console.error(a)})},a.addNewAction=function(){c.post("/api/business/actions",{condition:"status",MailBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessActions.push(b)}).error(function(a){console.error(a)})},a.removeAction=function(b){c["delete"]("/api/business/actions/"+b).success(function(b){a.automation.BusinessActions=_.reject(a.automation.BusinessActions,{id:b.id})}).error(function(a){console.error(a)})},a.updateCondition=function(a,b,d){var e={};e[b]=d,c.put("/api/business/conditions/"+a,e).error(function(a){console.error(a)})},a.updateAction=function(a,b,d){var e={};e[b]=d,c.put("/api/business/actions/"+a,e).success(function(a){console.log(a)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.view",{url:"/view/:id",templateUrl:"app/mail/automation/view/view.html",controller:"MailAutomationViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.mail.automations.view.settings",{url:"/settings",templateUrl:"app/mail/automation/view/view.settings.html"}).state("main.mail.automations.view.routes",{url:"/routes",templateUrl:"app/mail/automation/view/view.routes.html"}).state("main.mail.automations.view.application",{url:"/application",templateUrl:"app/mail/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("MailAutomationWizardCtrl",["$scope","$http","$location","$translate","automation","WizardHandler","xAlert",function(a,b,c,d,e,f,g){a.forms={},a.automations={or:[],and:[],actions:[]},a.addNewChoice=function(b){var c=angular.copy(e.automations);a.automations[b].push(c)},a.removeChoice=function(b,c){a.automations[b].splice(c)},a.goNext=function(){return a.automations.actions.length?a.automations.or.length||a.automations.and.length?void f.wizard().next():(g.show(d.instant("MESSAGE_INSERT_AT_LEAST_ONE_CONDITION"),"danger"),!1):(g.show(d.instant("MESSAGE_INSERT_AT_LEAST_ONE_ACTION"),"danger"),!1)},a.createItem=function(){a.automations.or.forEach(function(a){a.condition=a.condition.key,a.type="or",delete a.conditions,delete a.actions}),a.automations.and.forEach(function(a){a.condition=a.condition.key,a.type="and",delete a.conditions,delete a.actions}),a.automations.actions.forEach(function(a){a.condition=a.condition.key,delete a.conditions,delete a.actions}),b.post("api/mail/business/automations",a.automations).success(function(){c.path("/mail/automations/list")}).error(function(){g.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG","danger"))})},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.wizard",{url:"/wizard",templateUrl:"app/mail/automation/wizard/wizard.html",controller:"MailAutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailComposeCtrl",["$scope","$http","$location","$cookieStore","$translate","xAlert","FileUploader","Auth",function(a,b,c,d,e,f,g,h){var i=a.uploader=new g({url:"api/mail/messages",withCredentials:!0,headers:{Authorization:"Bearer "+d.get("token")},queueLimit:1});i.onBeforeUploadItem=function(b){b.formData.push({mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||null,html:a.form.html||null,text:a.form.text||null,attachment:!0,UserId:h.getCurrentUser().id})},i.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success")},i.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")},i.onCompleteAll=function(){console.log("onCompleteAll"),c.path("/mail/inbox/incoming")},a.forms={},a.form={to:[],sto:[],cc:[],scc:[]},b.get("api/mail/accounts").success(function(b){a.mailAccounts=b.rows}),a.sendMail=function(){if(i.queue.length)console.log("file"),i.uploadAll();else{console.log("no file");var d={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||null,html:a.form.html||null,text:a.form.text||null,UserId:h.getCurrentUser().id};b.post("/api/mail/messages",d).success(function(){f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),c.path("/mail/inbox/incoming")}).error(function(){f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")})}},a.cancel=function(){a.form.sto=[],a.form.scc=[],delete a.form.from,delete a.form.text,delete a.form.html}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.compose",{url:"/compose",templateUrl:"app/mail/inbox/room/room.html",controller:"MailComposeCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailInboxCtrl",["$scope","$http","$location",function(a,b,c){a.go=function(a){c.path(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox",{url:"/inbox",templateUrl:"app/mail/inbox/inbox.html",controller:"MailInboxCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css","assets/css/todo.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailIncomingCtrl",["$scope","$http","$location","$translate","$timeout","socket","xAlert","Auth","stResource","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$location=c,a.conf={mailRoomsByPage:{name:"10",value:10},labels:["fullname","name","email"],test:"OPEN"},a.mailRoomsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailRooms={checked:[]},a.check=function(b,c){c?a.mailRooms.checked=angular.copy(_.pluck(a.displayedMailRooms,"id")):a.mailRooms.checked=[]},a.initList=function(b){f.unsyncUpdates("mail_room"),b.search.predicateObject||(b.search.predicateObject={}),b.sort.predicate="createdAt",b.sort.reverse=!0,h.isAdmin()?(f.socket.on("mail_room:save",function(){e(function(){g.show(d.instant("MESSAGE_MAIL_NEW_INCOMING_MAIL"),"success"),a.initList(b)},2e3)}),f.socket.on("mail_room:remove",function(c){a.mailRooms.checked=_.without(a.mailRooms.mailRooms,c.id),a.initList(b)})):(f.socket.on("mail_room:save",function(c){c.UserId===h.getCurrentUser().id&&a.initList(b)}),f.socket.on("mail_room:remove",function(c){c.UserId===h.getCurrentUser().id&&(a.mailRooms.checked=_.without(a.mailRooms.checked,c.id),a.initList(b))}),b.search.predicateObject.UserId=h.getCurrentUser().id),b.url="/api/mail/rooms/",i.getPage(b).then(function(c){a.displayedMailRooms=c.mailRooms,b.pagination.numberOfPages=c.total_pages})},a.deleteItems=j.confirm["delete"](function(){b["delete"]("/api/mail/rooms",{params:{id:a.mailRooms.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})}),a.$on("$destroy",function(){f.unsyncUpdates("mail_room")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.incoming",{url:"/incoming",templateUrl:"app/mail/inbox/incoming/incoming.html",controller:"MailIncomingCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailRoomCtrl",["$scope","$http","$stateParams","$timeout","$cookieStore","$location","$translate","$log","$uibModal","xAlert","Auth","socket","FileUploader","MailMessage",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=a.uploader=new m({url:"api/mail/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});o.onErrorItem=function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")},o.onCompleteAll=function(){f.path("/mail/inbox/incoming")},o.onBeforeUploadItem=function(b){var c={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||a.mailRoom.subject||null,html:a.form.html||null,text:a.form.text||null,MailRoomId:a.mailRoom.id},d=angular.copy(a.mailRoom.MailMessages);d=_.reject(d,function(a){return"RECEIVED"!==a.status}),c.inReplyTo=d?_.last(d).messageId:null,b.formData.push(c)},a.retry=function(a){var b=i.open({animation:!0,templateUrl:"app/mail/inbox/room/room.retry.modal.html",controller:function(a,c){a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},a.ok=function(){c.close()},a.cancel=function(){c.dismiss("cancel")}}});b.result.then(function(){n.update({id:a,status:"SENDING"},function(a){console.log(a)})},function(){h.info("Modal dismissed at: "+new Date)})},a.initRoomView=function(){a.Auth=k,a.forms={},a.form={to:[],sto:[],cc:[],scc:[]},b.get("/api/agents").success(function(b){a.agents=b.rows}),b.get("/api/mail/accounts").success(function(b){a.mailAccounts=b.rows}),b.get("/api/mail/rooms/"+c.id).success(function(c){a.mailRoom=c,l.syncUpdatesByAttributes("mail_message",{MailRoomId:a.mailRoom.id},a.mailRoom.MailMessages);var d=_.last(a.mailRoom.MailMessages);d.MailRoom.MailAccount&&(a.form.from={name:d.MailRoom.MailAccount.name,address:d.MailRoom.MailAccount.address,id:d.MailRoom.MailAccount.id},a.form.to=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.cc.split(";"):[],d.bcc?d.bcc.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address}),a.form.cc=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.to.split(";"):[],d.bcc?d.bcc.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address}),a.form.bcc=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.cc.split(";"):[],d.bcc?d.to.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address})),"NEW"===a.mailRoom.status&&b.put("/api/mail/rooms/"+a.mailRoom.id,{status:"OPEN"})}).error(function(){f.path("/mail/inbox/incoming")})},a.sendMail=function(){var c=angular.copy(a.mailRoom.MailMessages);if(c=_.reject(c,function(a){return"RECEIVED"!==a.status}),c=_.sortBy(c,"id"),o.queue.length)o.uploadAll();else{if(!a.form.sto.length)return a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0);a.forms.compose.to.$valid=!0,a.forms.compose.to.$invalid=!1;var d={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||a.mailRoom.subject||null,html:a.form.html||null,text:a.form.text||null,MailRoomId:a.mailRoom.id};c&&_.last(c)&&(d.inReplyTo=_.last(c).messageId),b.post("/api/mail/messages",d).success(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),f.path("/mail/inbox/incoming")}).error(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")})}},a.cancel=function(){a.form.sto=[],a.form.scc=[],delete a.form.text},a.updateStatus=function(d){b.put("/api/mail/rooms/"+c.id,{status:d}).success(function(b){a.mailRoom.status=b.status,j.show(g.instant("MESSAGE_STATUS_UPDATE_SUCCESS"),"success"),f.path("/mail/inbox/incoming")}).error(function(){j.show(g.instant("MESSAGE_STATUS_UPDATE_FAILURE"),"danger")})},a.assignAgent=function(a){b.put("/api/mail/rooms/"+c.id,{UserId:a}).success(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_ASSIGNEMNT_SUCCESS"),"success")}).error(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_ASSIGNEMNT_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").factory("MailRoom",["$resource",function(a){return a("/api/mail/rooms/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.room",{url:"/room/:id",templateUrl:"app/mail/inbox/room/room.html",controller:"MailRoomCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail",{url:"/mail",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("MailMessage",["$resource",function(a){return a("/api/mail/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailQueueListCtrl",["$scope","$http","$translate","$rootScope","socket","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("mail_queue")}),a.conf={queuesByPage:{name:"10",value:10}},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailQueues={checked:[]},a.check=function(b,c){c?a.mailQueues.checked=angular.copy(_.pluck(a.displayedMailQueues,"id")):a.mailQueues.checked=[]},a.getMailQueues=function(b){return _.map(a.displayedMailQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("mail_queue"),b.url="/api/mail/queues/",g.getPage(b).then(function(c){a.displayedMailQueues=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(c.queuesByPage,a.displayedMailQueues.length),d.updateTableConfig(a.conf.queuesByPage,a.displayedMailQueues.length)}),e.socket.on("mail_queue:save",function(){a.initList(b)}),e.socket.on("mail_queue:remove",function(c){a.mailQueues.checked=_.without(a.mailQueues.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/queues/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/queues/",{params:{id:a.mailQueues.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.list",{url:"/list",templateUrl:"app/mail/queue/list/list.html",controller:"MailQueueListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailQueue",["$resource",function(a){return a("/api/mail/queues/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues",{url:"/queues",
-template:"<div ui-view></div>","abstract":!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/mail/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/mail/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/mail/queues/"+d.id).success(function(b){a.queue=b}).error(function(a){console.error(a)})},a.updateMailQueue=function(){var f=angular.copy(a.queue);b.put("/api/mail/queues/"+d.id,f).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){e.show(b.message,"success"),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b.get("/api/mail/user_has_queues",{params:{MailQueueId:a.queue.id}}).success(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.pluck(b,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.view",{url:"/view/:id",templateUrl:"app/mail/queue/view/view.html",controller:"MailQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.mail.queues.view.settings",{url:"/settings",templateUrl:"app/mail/queue/view/view.settings.html"}).state("main.mail.queues.view.agents",{url:"/agents",templateUrl:"app/mail/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailQueueWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert",function(a,b,c,d,e){a.forms={},a.item={},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/mail/queues",a.item).success(function(){c.path("/mail/queues/list")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.wizard",{url:"/wizard",templateUrl:"app/mail/queue/wizard/wizard.html",controller:"MailQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentCtrl",["$scope","$http","socket","MailQueue","Agent",function(a,b,c,d,e){a.gridOptions={enableSorting:!1,enableFiltering:!0,columnDefs:[{name:"queueName",displayName:"Queue"},{name:"agentName",displayName:"Agent",cellClass:"text-center",cellTemplate:'<span data-ng-if="row.entity.agentName">{{row.entity.fullname}} [{{row.entity.agentName}}]</span>'},{name:"online",cellClass:"text-center",cellTemplate:'<span class="badge badge-empty" data-ng-if="row.entity.online != null" data-ng-class="row.entity.online ? \'badge-success\' : \'badge-danger\'"></span>'},{name:"lastLoginAt",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentName" is="relative-time" datetime="{{row.entity.lastLoginAt}}">April 1, 2014</time>'}],onRegisterApi:function(b){a.gridApi=b,a.gridApi.treeBase.on.rowExpanded(a,function(b){var c=_.findIndex(a.gridOptions.data,{$$hashKey:b.entity.$$hashKey});b.entity.Users&&b.entity.Users.forEach(function(b){_.find(a.gridOptions.data,{name:b.name})||a.gridOptions.data.splice(c+1,0,b)})})}},d.get(function(b){a.gridOptions.data=[],b.rows.forEach(function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b),b.Users&&b.Users.forEach(function(b){b.agentName=b.name,a.gridOptions.data.push(b)})}),c.socket.on("agent:save",function(b){var c=_.filter(a.gridOptions.data,{agentName:b.name});c.forEach(function(a){a.online=b.online,a.lastLoginAt=b.lastLoginAt})}),c.socket.on("mail_queue:save",function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b)}),c.socket.on("mail_queue:remove",function(b){_.remov(a.gridOptions.data,{queueName:b.name})}),c.socket.on("user_has_mail_queue:save",function(b){var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.MailQueueId});e.get({id:b.UserId}).$promise.then(function(b){a.gridOptions.data.splice(c+1,0,{id:b.id,name:b.name,fullname:b.fullname,agentName:b.name,online:b.online,lastLoginAt:b.lastLoginAt})})["catch"](function(a){console.error(a)})}),c.socket.on("user_has_mail_queue:remove",function(b){for(var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.MailQueueId}),d=c+1;d<a.gridOptions.data.length;d++)a.gridOptions.data[d].id==b.UserId&&a.gridOptions.data.splice(d,1)})},function(a){console.error(a)}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_mail:save"),c.unsyncUpdates("report_mail:update")}),a.initAgents=function(){b.get("/api/report/mails").success(function(b){a.agents=b,c.socket.on("report_mail:save",function(b){var c=_.find(a.agents,{id:b.id});c||a.agents.unshift(b)}),c.socket.on("report_mail:update",function(b){var c=_.find(a.agents,{id:b.id}),d=a.agents.indexOf(c);c&&_.merge(a.agents[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime.view.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0}).state("main.mail.realtime.view.agents.queues",{url:"/queues",controller:"MailRealtimeViewAgentCtrl",templateUrl:"app/mail/realtime/view/agent/agent.queues.html"}).state("main.mail.realtime.view.agents.timeline",{url:"/attempts",controller:"MailRealtimeViewAgentCtrl",templateUrl:"app/mail/realtime/view/agent/agent.timeline.html"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewSessionCtrl",["$scope","$http","socket",function(a,b,c){a.conf={sessionsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.sessionsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_mail:save"),c.unsyncUpdates("report_mail:update")}),a.initMails=function(){b.get("/api/report/mail/sessions").success(function(b){a.sessions=b,c.socket.on("report_mail_session:save",function(b){var c=_.find(a.sessions,{id:b.id}),d=a.sessions.indexOf(c);c?_.merge(a.sessions[d],b):a.sessions.unshift(b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.mail.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.mail.realtime.view.sessions"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime.view",{url:"/view",templateUrl:"app/mail/realtime/view/view.html",controller:"MailRealtimeViewCtrl"}).state("main.mail.realtime.view.sessions",{url:"/sessions",controller:"MailRealtimeViewSessionCtrl",templateUrl:"app/mail/realtime/view/session/session.html"})}]),angular.module("xCallyShuttleApp").controller("MailStatisticsCtrl",["$scope","$http","$translate","socket",function(a,b,c,d){a.message="Hello",a.$translate=c,b.get("api/mail/rooms").success(function(b){a.mailRooms=b,d.syncUpdates("mail_room",a.mailRooms)}),b.get("api/mail/messages").success(function(b){a.mailMessages=b,d.syncUpdates("mail_message",a.mailMessages)})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.statistics",{url:"/statistics",templateUrl:"app/mail/statistics/statistics.html",controller:"MailStatisticsCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.mail.statistics.summary",{url:"/summary",templateUrl:"app/mail/statistics/statistics.summary.html",controller:"MailStatisticsCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile-old.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailTimelineListCtrl",["$scope","$http","socket",function(a,b,c){function d(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/mail").success(function(a){a.forEach(d),c.socket.on("event:chat:save",d)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.timeline.list",{url:"/list",templateUrl:"app/mail/timeline/list/list.html",controller:"MailTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChooseContactModalCtrl",["$scope","$uibModalInstance","params",function(a,b,c){a.forms={choose:void 0},a.contacts=c.contacts,a.item={},a.ok=function(){a.item.contactName=_.find(a.contacts,{id:a.item.contactId}).name,b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MainCtrl",["$scope","$http","$rootScope","$cookies","$translate","$interval","socket","Auth","xAlert","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j,k){function l(b){a.workspaces.push({name:b.contactName,type:"contact",contactID:b.contactId,active:!0})}function m(b){a.workspaces.push({name:"New Contact",type:"newContact",active:!0,data:b})}a.awesomeThings=[],a.isLoggedIn=h.isLoggedIn,a.isAdmin=h.isAdmin,a.getCurrentUser=h.getCurrentUser,a.workspaces=[],a.mainTab={active:!0},a.closeTab=function(b){a.workspaces.splice(b,1)},a.createContact=function(c,d){d.tags=d.tags?d.tags.join(","):void 0,_.forOwn(d.customFields,function(a,b){""===a&&delete d.customFields[b]}),d.id?b.put("/api/contactmanager/join/"+d.id,d).success(function(b){a.workspaces.splice(c,1),l(b),i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(a.message,"danger")}):b.post("/api/contactmanager",d).success(function(b){a.workspaces.splice(c,1),l({contactName:b.fullname,contactId:b.id}),i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(a.message,"danger")})},a.chooseContact=function(a){var b=j.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{params:function(){return{contacts:JSON.parse(a.contacts)}}}});b.result.then(function(a){l(a)},function(){k.info("Modal dismissed at: "+new Date)})},a.updateContact=function(a,c){c.tags=c.tags?c.tags.join(","):void 0,c.CompanyId||(c.CompanyId=null),b.put("/api/contactmanager/"+c.id,c).success(function(){i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(e.instant(a.message)+"!","danger")})},g.socket.on("report_integration:contactmanager",function(b){switch(b.event){case"openContactTab":a.chooseContact(b);break;case"newContactTab":m(b)}}),a.$on("$viewContentLoaded",function(){Metronic.init()}),c.language=e.use(),a.changeLanguage=function(a){e.use(a).then(function(a){c.language=a})["catch"](function(a){console.error(a)})},a.$on("$destroy",function(){})}]),angular.module("xCallyShuttleApp").directive("ngSpinnerBar",["$rootScope",function(a){return{link:function(b,c){c.addClass("hide"),a.$on("$stateChangeStart",function(){"spinner-page"===c[0].id&&c.removeClass("hide")}),a.$on("$stateChangeSuccess",function(){"spinner-page"===c[0].id&&(c.addClass("hide"),$("body").removeClass("page-on-load"),Layout.setSidebarMenuActiveLink("match"),setTimeout(function(){Metronic.scrollTop()},1e3))}),a.$on("$spinnerStart",function(){"spinner-request"===c[0].id&&c.removeClass("hide")}),a.$on("$spinnerStop",function(){"spinner-request"===c[0].id&&c.addClass("hide")}),a.$on("$stateNotFound",function(){"spinner-page"===c[0].id&&c.addClass("hide")}),a.$on("$stateChangeError",function(){"spinner-page"===c[0].id&&c.addClass("hide")})}}}]).directive("a",function(){return{restrict:"E",link:function(a,b,c){(c.ngClick||""===c.href||"#"===c.href)&&b.on("click",function(a){a.preventDefault()})}}}).directive("nxEqual",function(){return{require:"ngModel",link:function(a,b,c,d){return c.nxEqual?(a.$watch(c.nxEqual,function(a){d.$setValidity("nxEqual",a===d.$viewValue)}),void d.$parsers.push(function(b){var e=b===a.$eval(c.nxEqual);return d.$setValidity("nxEqual",e),e?b:void 0})):void console.error("nxEqual expects a model as an argument!")}}}).directive("ngEnter",function(){return function(a,b,c){b.bind("keydown keypress",function(b){13===b.which&&(a.$apply(function(){a.$eval(c.ngEnter)}),b.preventDefault())})}}).directive("dropdownMenuHover",function(){return{link:function(a,b){b.dropdownHover()}}}).directive("uiSelectRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.uiSelectRequired=function(a){return a&&a.length}}}}).directive("rpattern",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a,b){return null==b||""===b||!h||a.test(b)?(d.$setValidity("pattern",!0),b):void d.$setValidity("pattern",!1)}var f,g=c.rpattern,h=!0;g&&(g.match(/^\/(.*)\/$/)?(g=new RegExp(g.substr(1,g.length-2)),f=function(a){return e(g,a)}):f=function(b){var c=a.$eval(g);if(!c||!c.test)throw new Error("Expected "+g+" to be a RegExp but was "+c);return e(c,b)}),d.$formatters.push(f),d.$parsers.push(f),c.$observe("required",function(a){h=a,f(d.$viewValue)})}}}).directive("queryBuilder",["$compile","xAlert","$http",function(a,b,c){return{restrict:"E",scope:{group:"=",fields:"=",operators:"=",properties:"="},templateUrl:"app/main/template.queryBuilderView.html",compile:function(d,e){var f,g;return f=d.contents().remove(),function(d,e,h){d.booleans=[{name:"AND"},{name:"OR"}],d.addCondition=function(a){"CONDITION"==a?d.group.rules.push({operator:"=",field:"",data:""}):d.group.rules.push({field:"",data:""})},d.removeCondition=function(a){d.group.rules.splice(a,1)},d.addGroup=function(a){d.group.rules.push({group:{"boolean":"AND",rules:[],type:a,main:!1}})},d.choices=[],d.removeGroup=function(){d.$parent.group.rules.splice(d.$parent.$index,1)},d.initChoices=function(a,b,c,e,f,g,h){a[g]&&d.getResults(b,c,e,f)},d.clearData=function(a,b){for(var c in b)a[b[c]]&&delete a[b[c]]},d.getResults=function(a,e,f,g,h){if(a){var i="",j={};i=a.parseUrl?a.parseUrl.replace("%s",e):a.url,a.query&&h&&(j[a.query.field]=h),c.get(i,{params:j}).success(function(a){var b=[];a.rows&&(a=a.rows),a.forEach(function(a){b.push({name:a.name,value:a.id})}),d.choices[f]||(d.choices[f]=[]),d.choices[f][g]=b}).error(function(a){b.show(a.message,"danger")})}},g||(g=a(f)),e.append(g(d,function(a){return a}))}}}}]).directive("newContact",["$compile","xAlert","$http","socket",function(a,b,c,d){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template.newContactTab.html",compile:function(a,e){return function(a,e,f){a.forms={general:{}},a.item={Phones:[],Emails:[],customFields:{}},a.joinPrompt=!1,a.checkboxes={},a.workspace.data&&(a.item.fullname=a.workspace.data.calleridname?a.workspace.data.calleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.calleridnum&&a.item.Phones.push({phone:a.workspace.data.calleridnum}),a.workspace.data.from&&a.item.Emails.push({email:a.workspace.data.from})),a.getTags=function(){c.get("/api/tags").success(function(b){a.tags=_.pluck(b.rows,"name")}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCompanies=function(){c.get("/api/contactmanager/companies").success(function(b){a.companies=b.rows,d.syncUpdates("company",a.companies)}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCustomFields=function(){c.get("/api/contactmanager/customfields").success(function(b){a.customFields=b.rows,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)}),d.syncUpdates("custom_field",a.customFields,function(a,b){"string"==typeof b.values&&(b.values=JSON.parse(b.values))})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.addField=function(b){a.item[b].push({}),a.joinPrompt=!1},a.removeField=function(b,c){a.item[b].splice(c,1),a.joinPrompt=!1},a.getTags(),a.getCompanies(),a.getCustomFields()}}}}]).directive("contact",["$compile","xAlert","$http","socket",function(a,b,c,d){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template.contactTab.html",compile:function(a,e){return function(a,e,f){a.moment=moment,a.forms={general:{}},a.detail={tab:"main"},a.log={journal:{show:"Phones",type:"Inbounds",detail:"general"},history:{show:"Phones",type:"HistoryInbounds",detail:"general"}},a.columns={Phones:{general:{header:["APPLICATION_SOURCE","APPLICATION_DESTINATION","APPLICATION_DATE"],indexes:["source","destination","createdAt"]},QueueCalls:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]},ReportAgents:{header:["APPLICATION_AGENT","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["membername","queue","agentcalledAt"]},HistoryQueueCalls:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]},HistoryReportAgents:{header:["APPLICATION_AGENT","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["membername","queue","createdAt"]}},Emails:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_DATE"],indexes:["from","to","createdAt"]}}},a.rows={journal:[],history:[]},a.itemsByPage=15,a.rowCollection=[],a._=_,a.getRows=function(b){a.rows[b]=[],_.forEach(a.contact[a.log[b].show],function(c){console.log(c),"general"===a.log[b].detail?a.rows[b]=a.rows[b].concat(c[a.log[b].type]):_.forEach(c[a.log[b].type],function(c){a.rows[b]=a.rows[b].concat(c[a.log[b].detail])})}),console.log(a.rows[b])},a.addField=function(b){a.contact[b].push({})},a.removeField=function(b,c){a.contact[b].splice(c,1)},a.getContact=function(d){console.log("get contact in tab"),c.get("/api/contactmanager/"+d).success(function(b){b.tags=b.tags?b.tags.split(","):[],a.contact=b,a.getRows("journal"),a.getRows("history"),a.contact.customFields={},a.contact.CustomFields.forEach(function(b){a.contact.customFields[b.id]=b.ContactHasCustomField.value})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getTags=function(){c.get("/api/tags").success(function(b){a.tags=_.pluck(b.rows,"name")}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCompanies=function(){c.get("/api/contactmanager/companies").success(function(b){a.companies=b.rows,d.syncUpdates("company",a.companies)}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCustomFields=function(){c.get("/api/contactmanager/customfields/all").success(function(b){a.customFields=b,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)}),d.syncUpdates("custom_field",a.customFields,function(a,b){"string"==typeof b.values&&(b.values=JSON.parse(b.values))})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getTags(),a.getCompanies(),a.getCustomFields(),a.getContact(a.workspace.contactID)}}}}]),angular.module("xCallyShuttleApp").filter("capitalize",function(){return function(a){return a?a.replace(/([^\W_]+[^\s-]*) */g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()}):""}}).filter("salesforce",function(){var a=["CallDisposition","CallDurationInSeconds","CallObject","CallType","IsArchived","Priority","Status","Type"];return function(b){return _.remove(b,function(b){return b.custom===!1&&a.indexOf(b.name)<0}),b}}).filter("sugarcrm",function(){var a=["account_id","account_name","account_name1","assigned_user_name","assigned_user_id","case_number","created_by","created_by_name","date_entered","date_modified","deleted","description","id","modified_by_name","modified_user_id","name"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("freshdesk",function(){var a=["requester","subject","agent","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.ticket_field.name)>=0}),b}}).filter("zendesk",function(){var a=["subject","assignee","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.type)>=0}),b}}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main",{"abstract":!0,templateUrl:"app/main/main.html",controller:"MainCtrl",resolve:{authorization:["$q","Auth","$state","$timeout","$location",function(a,b,c,d,e){return b.getToken()?a.when():(d(function(){e.path("/login")}),a.reject())}],deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("xAlert",["$translate","Notification",function(a,b){return{show:function(c,d){switch(d){case"success":b.success({message:c,title:'<i class="glyphicon glyphicon-ok"></i> <strong>'+a.instant("MESSAGE_SUCCESS")+"!</strong>",delay:5e3});break;case"info":b.info({message:c,title:'<i class="glyphicon glyphicon-info-sign"></i> <strong>'+a.instant("MESSAGE_INFO")+"!</strong>",delay:5e3});break;case"danger":b.error({message:c,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4});break;case"warning":b.warning({message:c,title:'<i class="glyphicon glyphicon-warning-sign"></i> <strong>'+a.instant("MESSAGE_WARNING")+"!</strong>",delay:1e4});break;default:b.info(c)}}}}]).factory("stResource",["$q","$filter","$timeout","$rootScope","$http","$translate","xAlert",function(a,b,c,d,e,f,g){return{getPage:function(b){var c={page:Math.ceil(b.pagination.start/b.pagination.number),per_page:b.pagination.number};b.sort.predicate&&(c.sort_by=b.sort.predicate,c.sort_order=b.sort.reverse?"DESC":"ASC"),_.forIn(b.search.predicateObject,function(a,b){c[b]=a}),b.search.params&&(c.clientQuery={},_.forIn(b.search.params,function(a,b){c.clientQuery[b]=a})),d.$broadcast("$spinnerStart"),e.get(b.url,{params:c}).success(function(a){h.resolve(a),d.$broadcast("$spinnerStop")}).error(function(a){g.show(f.instant(a.message),"danger"),d.$broadcast("$spinnerStop")});var h=a.defer();return h.promise}}}]),angular.module("xCallyShuttleApp").controller("MarketCtrl",["$scope","$http","$translate","socket","xAlert","Modal","$timeout",function(a,b,c,d,e,f,g){function h(a,b){return Math.floor(Math.random()*(b-a+1))+a}a.initView=function(){b.get("/api/integrations").success(function(b){a.integrations=b,a.groupedIntegration=_.chunk(a.integrations,4),d.syncUpdates("integration",a.integrations,function(){a.groupedIntegration=_.chunk(a.integrations,4)})}).error(function(a){e.show(a.message,"danger")})},a.isProgressing=!1,a.$on("$destroy",function(){d.unsyncUpdates("integration")}),a.installIntegration=function(d){a.status="Downloading",a.percentage=h(1,50),a.isProgressing=!0,d.downloading=!0,b.put("/api/integrations/"+d.id,{active:!0}).success(function(){g(function(){a.percentage=h(51,99),a.status="Installing"},2500),g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",d.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success"),e.show(c.instant("MESSAGE_RESTART_REQUIRED")+".","warning")},5e3)}).error(function(){d.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.uninstallIntegration=function(d){a.status="Uninstalling",a.percentage=h(1,99),a.isProgressing=!0,d.downloading=!0,b.put("/api/integrations/"+d.id,{active:!1}).success(function(){g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",d.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success"),e.show(c.instant("MESSAGE_RESTART_REQUIRED")+".","warning")},5e3)}).error(function(){d.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.market",{url:"/market",templateUrl:"app/market/market.html",controller:"MarketCtrl"})}]),angular.module("xCallyShuttleApp").controller("MotionbarCtrl",["$scope","$stateParams","$cookieStore","settings","Auth",function(a,b,c,d,e){e.loginWithToken(b.token,b.userId,b.name),a.getCurrentUser=e.getCurrentUser,d.layout.pageQuickSidebarOpened=!0}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("motionbar",{url:"/motionbar",template:"<div ui-view></div>","abstract":!0}).state("motionbar.chat",{url:"/chat?token&userId&name",templateUrl:"app/motionbar/motionbar.chat.html",controller:"MotionbarCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedSalesforceAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedSalesforceAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("salesforce_account"),b.url="/api/salesforce/accounts",h.getPage(b).then(function(d){a.displayedSalesforceAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedSalesforceAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedSalesforceAccounts.length)}),f.socket.on("salesforce_account:save",function(){a.initList(b)}),f.socket.on("salesforce_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/salesforce/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/salesforce/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/salesforce/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.list",{url:"/list",templateUrl:"app/salesforce/list/list.html",controller:"SalesforceListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce",{url:"/salesforce",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","$filter",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("salesforce_configuration"),g.unsyncUpdates("salesforce_field")}),a.initView=function(){b.get("/api/salesforce/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/salesforce/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/salesforce/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("salesforce_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/salesforce/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/salesforce/configurations",a.configuration).success(function(a){e.path("salesforce/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/salesforce/accounts/"+c.id+"/fields").success(function(b){a.accountFields=_.sortByOrder(j("salesforce")(b),"name","asc")}).error(function(a){h.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/salesforce/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("salesforce_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/salesforce/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/salesforce/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),
-a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);if(c)switch(c.type){case"picklist":return c.picklistValues;default:return}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view",{url:"/view/:id",templateUrl:"app/salesforce/view/view.html",controller:"SalesforceViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.salesforce.view.account",{url:"/account",templateUrl:"app/salesforce/view/view.account.html"}).state("main.salesforce.view.configurations",{url:"/configurations",templateUrl:"app/salesforce/view/view.configurations.html"}).state("main.salesforce.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/salesforce/view/view.configurationSettings.html",controller:"SalesforceViewCtrl"}).state("main.salesforce.view.configuration",{url:"/configuration",templateUrl:"app/salesforce/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("SalesforceWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/salesforce/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/salesforce/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.wizard",{url:"/wizard",templateUrl:"app/salesforce/wizard/wizard.html",controller:"SalesforceWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmtpListCtrl",["$scope","$translate","MailServerOut","Modal","xAlert","socket",function(a,b,c,d,e,f){a.initList=function(b){a.mailServers=c.query({id:"service"}),f.socket.on("mail_server_out:save",function(){a.initList(b)}),f.socket.on("mail_server_out:remove",function(){a.initList(b)})},a.deleteItem=d.confirm["delete"](function(a){c["delete"]({id:a}).$promise.then(function(){e.show(b.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.show(b.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.smtp.list",{url:"/list",templateUrl:"app/smtp/list/list.html",controller:"SmtpListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Smtp",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.smtp",{url:"/smtp",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SmtpViewCtrl",["$scope","$stateParams","$translate","MailServerOut","xAlert",function(a,b,c,d,e){a.initView=function(){d.get({id:b.id}).$promise.then(function(b){a.item=b})["catch"](function(a){e.show(a.message,"danger")})},a.updateItem=function(){d.update({id:a.item.id},a.item).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")})},a.test=function(){d.test({id:a.item.id,controller:"test"}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.smtp.view",{url:"/view/:id",templateUrl:"app/smtp/view/view.html",controller:"SmtpViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.smtp.view.settings",{url:"/settings",templateUrl:"app/smtp/view/view.settings.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("SmtpWizardCtrl",["$scope","$location","MailServerOut","xAlert",function(a,b,c,d){a.initItem=function(){a.item={service:!0},a.form={}},a.createItem=function(){c.save(a.item).$promise.then(function(){b.path("/smtp/list")})["catch"](function(a){d.show(a.message,"danger")}),console.log(a.item)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.smtp.wizard",{url:"/wizard",templateUrl:"app/smtp/wizard/wizard.html",controller:"SmtpWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SoundListCtrl",["$scope","$http","socket","Modal","$q","FileUploader","$translate","xAlert","$cookieStore","$sce",function(a,b,c,d,e,f,g,h,i,j){a.isCollapsed=!0,a.audioSources={},a["delete"]=d.confirm["delete"](function(a){b["delete"]("/api/uploads/"+a).success(function(a){}).error(function(a){console.log(a)})}),a.getAudioSrc=function(a){return"/api/uploads/"+a},a.updateAudio=function(a,c){var d=e.defer();return b.put("/api/uploads/"+a,c).success(function(a){d.resolve()}).error(function(a){console.log(a.message),d.reject(a.message)}),d.promise},a.$on("$destroy",function(){c.unsyncUpdates("upload")}),a.initList=function(){b.get("/api/uploads").success(function(b){a.sounds=b,a.sounds.forEach(function(a){k(a)}),c.syncUpdates("upload",a.sounds)}).error(function(a){})};var k=function(c){b.get("/api/uploads/stream/"+c.id).success(function(b){a.audioSources[c.id]=b}).error(function(a){console.error(a)})};a.getSecureSrc=function(a){return j.trustAsResourceUrl("data:audio/ogg;base64,"+a)},a.getSecureDownloadSrc=function(a){return j.trustAsResourceUrl("data:application/octet-stream;charset=utf-16le;base64,"+a)};var l=a.uploader=new f({url:"/api/uploads",withCredentials:!0,headers:{Authorization:"Bearer "+i.get("token")}});l.filters.push({name:"customFilter",fn:function(a,b){return this.queue.length<10}}),l.onWhenAddingFileFailed=function(a,b,c){console.info("onWhenAddingFileFailed",a,b,c)},l.onAfterAddingFile=function(a){console.info("onAfterAddingFile",a)},l.onAfterAddingAll=function(a){console.info("onAfterAddingAll",a)},l.onBeforeUploadItem=function(a){console.info("onBeforeUploadItem",a)},l.onProgressItem=function(a,b){console.info("onProgressItem",a,b),a.isUploading=!0},l.onProgressAll=function(a){console.info("onProgressAll",a)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),a.isUploading=!1},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),a.responseMessage=b,a.isUploading=!1},l.onCancelItem=function(a,b,c,d){console.info("onCancelItem",a,b,c,d),a.isUploading=!1},l.onCompleteItem=function(a,b,c,d){console.info("onCompleteItem",a,b,c,d),a.isUploading=!1},l.onCompleteAll=function(){console.info("onCompleteAll")},console.info("uploader",l)}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sounds.list",{url:"/list",templateUrl:"app/sound/list/list.html",controller:"SoundListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sounds",{url:"/sounds",templateUrl:"app/sound/sound.html","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={odbcsByPage:{name:"10",value:10}},a.odbcsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Odbcs={checked:[]},a.check=function(b,c){c?a.Odbcs.checked=angular.copy(_.pluck(a.displayedOdbcs,"id")):a.Odbcs.checked=[]},a.getOdbcs=function(b){return _.map(a.displayedOdbcs,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("square_odbc"),b.url="/api/square/odbc",h.getPage(b).then(function(c){a.displayedOdbcs=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.odbcsByPage,a.displayedOdbcs.length),d.updateTableConfig(a.conf.odbcsByPage,a.displayedOdbcs.length)}),c.socket.on("square_odbc:save",function(){a.initList(b)}),c.socket.on("square_odbc:remove",function(c){a.Odbcs.checked=_.without(a.Odbcs.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/square/odbc/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/square/odbc",{params:{id:a.Odbcs.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.list",{url:"/list",templateUrl:"app/square/odbc/list/list.html",controller:"SquareOdbcListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs",{url:"/odbcs",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getOdbc=function(){b.get("/api/square/odbc/"+e.id).success(function(b){delete b.pwd,a.odbc=b}).error(function(a){console.error(a),f.path("/square/odbcs/list")})},a.updateOdbc=function(){var f=angular.copy(a.odbc);b.put("/api/square/odbc/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.odbc=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.view",{url:"/view/:id",templateUrl:"app/square/odbc/view/view.html",controller:"SquareOdbcViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.square.odbcs.view.settings",{url:"/settings",templateUrl:"app/square/odbc/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={odbc:void 0},a.item={},a.next=function(){b.post("/api/square/odbc/validate/",a.item).success(function(a){a.length?e.show(f.instant("MESSAGE_EXIST_ODBC"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/square/odbc/",a.item).success(function(){d.path("/square/odbcs/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.wizard",{url:"/wizard",templateUrl:"app/square/odbc/wizard/wizard.html",controller:"SquareOdbcWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={projectsByPage:{name:"10",value:10}},a.projectsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Projects={checked:[]},a.check=function(b,c){c?a.Projects.checked=angular.copy(_.pluck(a.displayedProjects,"id")):a.Projects.checked=[]},a.getProjects=function(b){return _.map(a.displayedProjects,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("square_project"),b.url="/api/square/projects",h.getPage(b).then(function(c){a.displayedProjects=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.projectsByPage,a.displayedProjects.length),d.updateTableConfig(a.conf.projectsByPage,a.displayedProjects.length)}),c.socket.on("square_project:save",function(){a.initList(b)}),c.socket.on("square_project:remove",function(c){a.Projects.checked=_.without(a.Projects.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/square/projects/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/square/projects",{params:{id:a.Projects.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.list",{url:"/list",templateUrl:"app/square/project/list/list.html",controller:"SquareProjectListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareProjectViewCtrl",["$scope","$http","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope",function(a,b,c,d,e,f,g,h,i){a.squareProject={},a.getProject=function(){b.get("/api/square/projects/"+c.id).success(function(b){a.squareProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!=a&&-1!=a.indexOf("Script error."));else{var d=new Image;d.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(e){}},b.token=e.getToken();var a=new EditorUi(new Editor);a.openString(b.preproduction,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),d.syncUpdates("square_project",[b],function(a,c,d){c.id===b.id})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.view",{url:"/view/:id",templateUrl:"app/square/project/view/view.html",controller:"SquareProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/mxgraph/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/mxgraph/js/Editor.js","assets/plugins/mxgraph/js/Graph.js","assets/plugins/mxgraph/js/EditorUi.js","assets/plugins/mxgraph/js/Actions.js","assets/plugins/mxgraph/js/Menus.js","assets/plugins/mxgraph/js/Sidebar.js","assets/plugins/mxgraph/js/Toolbar.js","assets/plugins/mxgraph/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SquareProjectWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={project:void 0},a.item={},a.next=function(){b.post("/api/square/projects/validate/",a.item).success(function(a){a.length?e.show(f.instant("MESSAGE_EXIST_PROJECT"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/square/projects/",a.item).success(function(){d.path("/square/projects/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.wizard",{url:"/wizard",templateUrl:"app/square/project/wizard/wizard.html",controller:"SquareProjectWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square",{url:"/square",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedSugarcrmAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedSugarcrmAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("sugarcrm_account"),b.url="/api/sugarcrm/accounts",h.getPage(b).then(function(d){a.displayedSugarcrmAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedSugarcrmAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedSugarcrmAccounts.length)}),f.socket.on("sugarcrm_account:save",function(){a.initList(b)}),f.socket.on("sugarcrm_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/sugarcrm/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/sugarcrm/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/sugarcrm/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.list",{url:"/list",templateUrl:"app/sugarcrm/list/list.html",controller:"SugarcrmListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm",{url:"/sugarcrm",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("sugarcrm_configuration"),h.unsyncUpdates("sugarcrm_field")}),a.initView=function(){b.get("/api/sugarcrm/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/sugarcrm/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/sugarcrm/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("sugarcrm_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/sugarcrm/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/sugarcrm/configurations",a.configuration).success(function(a){e.path("sugarcrm/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/sugarcrm/accounts/"+c.id+"/fields").success(function(b){a.accountFields=_.sortByOrder(f("sugarcrm")(_.toArray(b)),"name","asc"),_.forEach(b,function(a){a.options=_.toArray(a.options)})}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/sugarcrm/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("sugarcrm_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/sugarcrm/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/sugarcrm/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.options.length>0?c.options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view",{url:"/view/:id",templateUrl:"app/sugarcrm/view/view.html",controller:"SugarcrmViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.sugarcrm.view.account",{url:"/account",templateUrl:"app/sugarcrm/view/view.account.html"}).state("main.sugarcrm.view.configurations",{url:"/configurations",templateUrl:"app/sugarcrm/view/view.configurations.html"}).state("main.sugarcrm.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/sugarcrm/view/view.configurationSettings.html",controller:"SugarcrmViewCtrl"}).state("main.sugarcrm.view.configuration",{url:"/configuration",templateUrl:"app/sugarcrm/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmkWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/sugarcrm/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/sugarcrm/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.wizard",{url:"/wizard",templateUrl:"app/sugarcrm/wizard/wizard.html",controller:"SugarcrmkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TagListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("TagListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={tagsByPage:{name:"10",value:10}},a.tagsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Tags={checked:[]},a.check=function(b,c){c?a.Tags.checked=angular.copy(_.pluck(a.displayedTags,"id")):a.Tags.checked=[]},a.getTags=function(b){return _.map(a.displayedTags,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("tag"),b.url="/api/tags",h.getPage(b).then(function(c){console.log(c),a.displayedTags=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.tagsByPage,a.displayedTags.length),d.updateTableConfig(a.conf.tagsByPage,a.displayedTags.length)}),c.socket.on("tag:save",function(){console.log("save"),a.initList(b)}),c.socket.on("tag:remove",function(c){a.Tags.checked=_.without(a.Tags.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/tags/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/tags",{params:{id:a.Tags.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/tag/list/create.modal.html",controller:"TagListCreateModalCtrl"});a.result.then(function(a){b.post("/api/tags",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags.list",{url:"/list",templateUrl:"app/tag/list/list.html",controller:"TagListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags",{url:"/tags",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TagViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getTag=function(){b.get("/api/tags/"+e.id).success(function(b){a.tag=b}).error(function(a){console.error(a),f.path("/tags/list")})},a.updateTag=function(){var f=angular.copy(a.tag);b.put("/api/tags/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.tag=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags.view",{url:"/view/:id",templateUrl:"app/tag/view/view.html",controller:"TagViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tags.view.settings",{url:"/settings",templateUrl:"app/tag/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TeamListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={teamsByPage:{name:"10",value:10}},a.teamsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.teams={checked:[]},a.check=function(b,c){c?a.teams.checked=angular.copy(_.pluck(a.displayedTeams,"id")):a.teams.checked=[]},a.getTeams=function(b){return _.map(a.displayedTeams,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("team"),b.url="/api/teams/",h.getPage(b).then(function(c){a.displayedTeams=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.teamsByPage,a.displayedTeams.length),d.updateTableConfig(a.conf.teamsByPage,a.displayedTeams.length)}),f.socket.on("team:save",function(){a.initList(b)}),f.socket.on("team:remove",function(c){a.teams.checked=_.without(a.teams.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/teams/"+a).success(function(){e.show(c.instant("MESSAGE_TEAM_DELETE_SUCCESS"),"success")}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/teams",{params:{id:a.teams.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.list",{url:"/list",templateUrl:"app/team/list/list.html",controller:"TeamListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams",{url:"/teams",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TeamViewCtrl",["$scope","$http","$stateParams","$translate","xAlert",function(a,b,c,d,e){a.message="Hello";var f=function(){return{select:function(c){b.post("/api/teams/"+a.team.id+"/agents",{agents:c}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/teams/"+a.team.id+"/agents",{agents:c}).error(function(a){console.error(a)})}}};a.initView=function(){b.get("/api/teams/"+c.id).success(function(b){a.team=b}).error(function(a){e.show(a.message,"danger")})},a.initAgents=function(){b.get("/api/agents").success(function(d){a.agents=d.rows,b.get("/api/user_has_teams",{params:{TeamId:c.id}}).success(function(b){ComponentsDropdowns.bindTeam(_.pluck(b,"UserId"),_.map(a.agents,function(a){return{id:a.id,name:a.name}}),f)}).error(function(a){console.error(a)})})},a.updateItem=function(){var f=angular.copy(a.team),g=angular.copy(a.team);b.put("/api/teams/"+c.id,f).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.team=g,b.errors.forEach(function(a){e.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.view",{url:"/view/:id",templateUrl:"app/team/view/view.html",controller:"TeamViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]
-}])}]}}).state("main.teams.view.agents",{url:"/agents",templateUrl:"app/team/view/view.agents.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]}])}]}}).state("main.teams.view.settings",{url:"/settings",templateUrl:"app/team/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TeamWizardCtrl",["$scope","$http","$translate","$location","WizardHandler","xAlert",function(a,b,c,d,e,f){a.forms={info:void 0},a.item={},a.createItem=function(){b.post("api/teams",a.item).success(function(){f.show(c.instant("MESSAGE_TEAM_CREATE_SUCCESS"),"success"),d.path("/teams/list")}).error(function(a){a.errors.forEach(function(a){f.show(a.message,"danger")})})},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.wizard",{url:"/wizard",templateUrl:"app/team/wizard/wizard.html",controller:"TeamWizardCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({name:"ui.select",insertBefore:"#ng_load_plugins_before",files:["assets/plugins/ui-select/select.min.css","assets/plugins/ui-select/select.min.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("TemplateListCtrl",["$scope","$http","$translate","$rootScope","socket","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("mail_template")}),a.conf={templatesByPage:{name:"10",value:10}},a.templatesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Templates={checked:[]},a.check=function(b,c){c?a.Templates.checked=angular.copy(_.pluck(a.displayedTemplates,"id")):a.Templates.checked=[]},a.getTemplates=function(b){return _.map(a.displayedTemplates,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("mail_template"),b.url="/api/mail/templates/",g.getPage(b).then(function(c){a.displayedTemplates=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(c.templatesByPage,a.displayedTemplates.length),d.updateTableConfig(a.conf.templatesByPage,a.displayedTemplates.length)}),e.socket.on("mail_template:save",function(){a.initList(b)}),e.socket.on("mail_template:remove",function(c){a.Templates.checked=_.without(a.Templates.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/templates/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/templates/",{params:{id:a.Templates.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.templates.list",{url:"/list",templateUrl:"app/template/list/list.html",controller:"TemplateListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailTemplate",["$resource",function(a){return a("/api/mail/templates/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.templates",{url:"/templates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TemplateViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","Template",function(a,b,c,d,e,f){a.initItem=function(){a.form={},a.item={},a.groups=[{title:"Voice",variables:[]},{title:"Chat",variables:["username","email","text","chatWebsite"]},{title:"Mail",variables:[]},{title:"Fax",variables:[]}],a.item=f.get({id:d.id})},a.updateItem=function(){f.update(a.item).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.templates.view",{url:"/view/:id",templateUrl:"app/template/view/view.html",controller:"TemplateViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.templates.view.settings",{url:"/settings",templateUrl:"app/template/view/view.settings.html"}).state("main.templates.view.agents",{url:"/agents",templateUrl:"app/template/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("TemplateWizardCtrl",["$scope","$location","$http","WizardHandler","xAlert","MailServerOut","MailTemplate",function(a,b,c,d,e,f,g){a.initWizard=function(){a.item={},a.form={},a.groups=[{title:"Voice",variables:[]},{title:"Chat",variables:["username","email","text","chatWebsite"]},{title:"Mail",variables:[]},{title:"Fax",variables:[]}],a.mailAccounts=f.query()},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){var c={name:a.item.name,description:a.item.description,subject:a.item.subject||null,html:a.item.html||null,text:a.item.text||null};g.save(c).$promise.then(function(){b.path("/templates/list")})["catch"](function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.templates.wizard",{url:"/wizard",templateUrl:"app/template/wizard/wizard.html",controller:"TemplateWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TriggerListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={TriggersByPage:{name:"10",value:10}},a.TriggersByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.Triggers={checked:[]},a.check=function(b,c){c?a.Triggers.checked=angular.copy(_.pluck(a.displayedTriggers,"id")):a.Triggers.checked=[]},a.getTriggers=function(b){return _.map(a.displayedTriggers,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("trigger"),b.url="/api/triggers",e.getPage(b).then(function(c){a.displayedTriggers=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.TriggersByPage,a.displayedTriggers.length),d.updateTableConfig(a.conf.TriggersByPage,a.displayedTriggers.length)}),g.socket.on("trigger:save",function(){a.initList(b)}),g.socket.on("trigger:remove",function(c){a.Triggers.checked=_.without(a.Triggers.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/triggers/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/triggers",{params:{id:a.Triggers.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/triggers/"+a,{status:d}).success(function(a){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.list",{url:"/list",templateUrl:"app/trigger/list/list.html",controller:"TriggerListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers",{url:"/triggers",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TriggerViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","triggers",function(a,b,c,d,e,f){a.$triggers=f,a.forms={info:{}},a.fields={},a.properties=f.properties,a.initView=function(){c.get("/api/triggers/"+b.id).success(function(b){a.trigger=b,a.conditionsFilter=JSON.parse(b.conditions),a.actionsFilter=JSON.parse(b.actions),a.fields.conditions=a.$triggers.triggers[b.channel].conditions,a.fields.actions=a.$triggers.triggers[b.channel].actions}).error(function(a){e.show(a.message,"danger")})},a.getProperties=function(){h(),j(),i(),g()};var g=function(){c.get("/api/integrations",{params:{active:1}}).success(function(b){a.integrations=b;var c=[];b.forEach(function(a){c.push({name:a.name,value:a.state})}),a.properties.voice.integration=c}).error(function(a){e.show(a.message,"danger")})},h=function(){c.get("/api/mail/templates/").success(function(b){a.mailTemplates=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.id})}),a.properties.mail.template=c}).error(function(a){e.show(a.message,"danger")})},i=function(){c.get("/api/voice/queues/").success(function(b){a.voiceQueues=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.name})}),a.properties.voice.queue=c}).error(function(a){e.show(a.message,"danger")})},j=function(){c.get("/api/mail/servers/out/").success(function(b){a.stmpAccounts=b;var c=[];b.forEach(function(a){c.push({name:a.username,value:a.username})}),a.properties.mail.smtp=c}).error(function(a){e.show(a.message,"danger")})};a.updateTrigger=function(){c.put("/api/triggers/"+a.trigger.id,{name:a.trigger.name,description:a.trigger.description,conditions:angular.toJson(a.conditionsFilter),actions:angular.toJson(a.actionsFilter)}).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.view",{url:"/view/:id",templateUrl:"app/trigger/view/view.html",controller:"TriggerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.triggers.view.settings",{url:"/settings",templateUrl:"app/trigger/view/view.settings.html"}).state("main.triggers.view.routes",{url:"/routes",templateUrl:"app/trigger/view/view.routes.html"}).state("main.triggers.view.application",{url:"/application",templateUrl:"app/trigger/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("TriggerWizardCtrl",["$scope","$http","$location","xAlert","triggers","WizardHandler",function(a,b,c,d,e,f){a.$triggers=e,a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={},a.fields={},a.properties=e.properties,a.forms={general:{}};var g={group:{"boolean":"AND",rules:[],type:"CONDITION",main:!0}},h={group:{rules:[],type:"ACTION"}};a.conditionsFilter=_.clone(g,!0),a.actionsFilter=_.clone(h,!0),a.$watch("item.channel",function(b,c){c&&(a.tempData[c].conditionsFilter=_.clone(a.conditionsFilter,!0),a.tempData[c].actionsFilter=_.clone(a.actionsFilter,!0)),a.conditionsFilter=a.tempData[b].conditionsFilter?a.tempData[b].conditionsFilter:_.clone(g,!0),a.actionsFilter=a.tempData[b].actionsFilter?a.tempData[b].actionsFilter:_.clone(h,!0),a.fields.conditions=a.$triggers.triggers[b].conditions,a.fields.actions=a.$triggers.triggers[b].actions},!0),a.item.channel="voice",a.getProperties=function(){j(),l(),k(),i()};var i=function(){b.get("/api/integrations",{params:{active:1}}).success(function(b){a.integrations=b;var c=[];b.forEach(function(a){c.push({name:a.name,value:a.state})}),a.properties.voice.integration=c}).error(function(a){d.show(a.message,"danger")})},j=function(){b.get("/api/mail/templates/").success(function(b){a.mailTemplates=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.id})}),a.properties.mail.template=c}).error(function(a){d.show(a.message,"danger")})},k=function(){b.get("/api/mail/servers/out/").success(function(b){a.stmpAccounts=b;var c=[];b.forEach(function(a){c.push({name:a.username,value:a.username})}),a.properties.mail.smtp=c}).error(function(a){d.show(a.message,"danger")})},l=function(){b.get("/api/voice/queues/").success(function(b){a.voiceQueues=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.name})}),a.properties.voice.queue=c}).error(function(a){d.show(a.message,"danger")})};a.createItem=function(){a.item.conditions=angular.toJson(a.conditionsFilter),a.item.actions=angular.toJson(a.actionsFilter),b.post("/api/triggers",a.item).success(function(){c.path("/triggers/list")}).error(function(a){d.show(a.message,"danger")})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.wizard",{url:"/wizard",templateUrl:"app/trigger/wizard/wizard.html",controller:"TriggerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TrunkListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={trunksByPage:{name:"10",value:10},labels:["name","host","context","description"]},a.trunksByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.trunks={checked:[]},a.check=function(b,c){c?a.trunks.checked=angular.copy(_.pluck(a.displayedTrunks,"id")):a.trunks.checked=[]},a.getTrunks=function(b){return _.map(a.displayedTrunks,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("trunk"),b.url="/api/trunks",console.log(b),h.getPage(b).then(function(c){a.displayedTrunks=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.trunksByPage,a.displayedTrunks.length),d.updateTableConfig(a.conf.trunksByPage,a.displayedTrunks.length)}),f.socket.on("trunk:save",function(){a.initList(b)}),f.socket.on("trunk:remove",function(c){a.trunks.checked=_.without(a.trunks.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/trunks/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/trunks",{params:{id:a.trunks.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})}),a.$on("$destroy",function(){console.log("trunks destroy")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.list",{url:"/list",templateUrl:"app/trunk/list/list.html",controller:"TrunkListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks",{url:"/trunks",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TrunkViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location",function(a,b,c,d,e,f,g){a.getTrunk=function(){b.get("/api/trunks/"+e.id).success(function(b){b.nat=""===b.nat?[]:b.nat.split(","),b.allow=""===b.allow?[]:b.allow.split(";"),b.insecure=""===b.insecure?[]:b.insecure.split(","),b.transport=""===b.transport?[]:b.transport.split(","),delete b.secret,a.trunk=b}).error(function(a){console.error(a),g.path("/trunks/list")})},a.updateTrunk=function(){""===a.trunk.password&&delete a.trunk.password;var f=angular.copy(a.trunk);f.nat=f.nat.join(","),f.allow=f.allow.join(";"),f.insecure=f.insecure.join(","),f.transport=f.transport.join(","),b.put("/api/trunks/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),f.nat=f.nat.split(","),f.naallowt=f.allow.split(";"),f.insecure=f.insecure.split(","),f.transport=f.transport.split(","),a.trunk=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.view",{url:"/view/:id",templateUrl:"app/trunk/view/view.html",controller:"TrunkViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.trunks.view.settings",{url:"/settings",templateUrl:"app/trunk/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TrunkWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.initWizard=function(){a.forms={},a.item={context:"from-voip-provider"}},a.next=function(d){d?b.post("/api/trunks/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_TRUNK"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")}):c.wizard().next()},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/trunks/",a.item).success(function(){d.path("/trunks/list")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.wizard",{url:"/wizard",templateUrl:"app/trunk/wizard/wizard.html",controller:"TrunkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UpdateListCheckoutCtrl",["$scope","Update","$uibModalInstance",function(a,b,c){a.modal={dismissable:!0,title:"Confirm Checkout",html:"Are you sure you want to checkout?",buttons:[{classes:"btn btn-success",text:"Checkout",click:function(){c.close()}},{classes:"btn default",text:"Cancel",click:function(){c.dismiss("cancel")}}]},a.initList=function(){b.get(function(b){a.updates=b.all})}}]),angular.module("xCallyShuttleApp").controller("UpdateListCtrl",["$scope","$uibModal","$log","$translate","Update","xAlert",function(a,b,c,d,e,f){a.conf={updatesByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.updatesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.pull=function(){var a=b.open({animation:!0,templateUrl:"app/update/list/checkout/checkout.html",controller:"UpdateListCheckoutCtrl"});a.result.then(function(){e.pull(function(a){a.summary.changes?f.show(d.instant("APPLICATION_UPDATED_TO_LATEST_VERSION"),"success"):f.show(d.instant("APPLICATION_ALREADY_UP_TO_DATE"),"info")},function(a){f.show(a,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.checkout=function(a){var g=b.open({animation:!0,templateUrl:"app/update/list/checkout/checkout.html",controller:"UpdateListCheckoutCtrl",resolve:{hash:function(){return a}}});g.result.then(function(){e.checkout({controller:a.replace(/["']+/g,"")},function(){f.show(d.instant("APPLICATION_WELL_DONE"),"success")},function(a){f.show(a,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.initList=function(){e.query(function(b){console.log(b),a.updates=b})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.updates.list",{url:"/list",templateUrl:"app/update/list/list.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Update",["$resource",function(a){return a("/api/updates/:id/:controller",{id:"@id"},{pull:{method:"GET",params:{id:"pull"}},checkout:{method:"GET",params:{id:"checkout"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.updates",{url:"/updates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("UpdateViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","socket","FileUploader","Auth",function(a,b,c,d,e,f,g,h,i){a.Auth=i,a.updatePassword=function(){var f,g;i.isAdmin()?(f="/api/updates/password/"+e.id+"/reset",g={newPassword:a.update.newPwd}):(f="/api/updates/password/",g={oldPassword:a.update.currentPwd,newPassword:a.update.newPwd}),b.put(f,g).success(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})};var j=a.uploader=new h({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});j.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),j.onSuccessItem=function(b,e,f,g){a.update.userpic=e.userpic,a.update.id===i.getCurrentUser().id&&(i.getCurrentUser().userpic=e.userpic),c.show(d.instant("MESSAGE_WELL_DONE"),"success")},j.onErrorItem=function(a,b,e,f){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},j.onCompleteAll=function(){j.clearQueue()},a.initView=function(){b.get("/api/updates/"+e.id).success(function(b){a.update=b,a.update.transport=a.update.transport?a.update.transport.split(","):[],a.update.allow=a.update.allow?a.update.allow.split(";"):[]}).error(function(a){c.show(a.message,"danger")})},a.updateItem=function(){var f=angular.copy(a.update),g=angular.copy(a.update);delete f.password,delete f.md5secret,f.transport=f.transport.join(","),f.allow=f.allow.join(";"),b.put("/api/updates/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.update=g,b.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.updates.view",{url:"/view/:id",templateUrl:"app/update/view/view.html",controller:"UpdateViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.updates.view.account",{url:"/account",templateUrl:"app/update/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("UpdateWizardCtrl",["$scope","$http","xAlert","$location","WizardHandler","$translate",function(a,b,c,d,e,f){a.forms={info:void 0,voice:void 0},a.item={role:"update",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){b.post("/api/updates/validate/",a.item).success(function(a){console.log(a),a.length?c.show(f.instant("MESSAGE_EXIST_INTERNAL"),"danger"):e.wizard().next()}).error(function(a){c.show(f.instant(a.message),"danger")})},a.getFirstFreeInternal=function(){b.get("/api/settings/internal").success(function(b){a.item.internal=b.value}).error(function(a){c.show(f.instant(a.message),"danger")})},a.exitValidation=function(a){return a},a.createItem=function(){a.item.transport&&(a.item.transport=a.item.transport.join(",")),a.item.allow&&(a.item.allow=a.item.allow.join(";")),b.post("/api/updates/",a.item).success(function(){d.path("/updates/list")}).error(function(a){a.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.updates.wizard",{url:"/wizard",templateUrl:"app/update/wizard/wizard.html",controller:"UpdateWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UserListCtrl",["$scope","$http","xAlert","$rootScope","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={usersByPage:{name:"10",value:10}},a.usersByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.users={checked:[]},a.check=function(b,c){c?a.users.checked=angular.copy(_.pluck(a.displayedUsers,"id")):a.users.checked=[]},a.getUsers=function(b){return _.map(a.displayedUsers,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/users/"+a).success(function(){c.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){a.errors.forEach(function(b){c.show(a.message+": "+b.message,"danger")})})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/users",{params:{id:a.users.checked}}).success(function(){c.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){a.errors.forEach(function(b){c.show(a.message+": "+b.message,"danger")})})}),a.initList=function(b){f.unsyncUpdates("user"),b.url="/api/users/",h.getPage(b).then(function(c){a.displayedUsers=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.usersByPage,a.displayedUsers.length),d.updateTableConfig(a.conf.usersByPage,a.displayedUsers.length)}),f.socket.on("user:save",function(){a.initList(b)}),f.socket.on("user:remove",function(c){a.users.checked=_.without(a.users.checked,c.id),a.initList(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.list",{url:"/list",templateUrl:"app/user/list/list.html",controller:"UserListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users",{url:"/users",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("UserViewCtrl",["$scope","$http","$stateParams","$translate","FileUploader","$cookieStore","Auth","xAlert",function(a,b,c,d,e,f,g,h){a.Auth=g,a.updatePassword=function(){var e,f;g.isAdmin()?(e="/api/users/password/"+c.id+"/reset",f={newPassword:a.user.newPwd}):(e="/api/users/password/",f={oldPassword:a.user.currentPwd,newPassword:a.user.newPwd}),b.put(e,f).success(function(a){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})};var i=a.uploader=new e({url:"api/users/"+c.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});i.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),i.onSuccessItem=function(b,c,e,f){a.user.userpic=c.userpic,a.user.id===g.getCurrentUser().id&&(g.getCurrentUser().userpic=c.userpic),h.show(d.instant("MESSAGE_WELL_DONE"),"success")},i.onErrorItem=function(a,b,c,e){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},i.onCompleteAll=function(){i.clearQueue()},a.initView=function(){b.get("/api/users/"+c.id).success(function(b){a.user=b,a.user.transport=a.user.transport?a.user.transport.split(","):[],a.user.allow=a.user.allow?a.user.allow.split(";"):[]}).error(function(a){a.errors.forEach(function(b){h.show(a.message+": "+b.message,"danger")})})},a.updateItem=function(){var e=angular.copy(a.user),f=angular.copy(a.user);delete e.password,delete e.md5secret,e.transport=e.transport.join(","),e.allow=e.allow.join(";"),b.put("/api/users/"+c.id,e).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.user=f,b.errors.forEach(function(a){h.show(b.message+": "+a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.view",{url:"/view/:id",templateUrl:"app/user/view/view.html",controller:"UserViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.users.view.account",{url:"/account",templateUrl:"app/user/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("UserWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert","$translate",function(a,b,c,d,e,f){a.forms={info:void 0,voice:void 0},a.item={role:"user",host:"dynamic",context:"from-sip"},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/users/",a.item).success(function(){e.show(f.instant("MESSAGE_WELL_DONE"),"success"),c.path("/users/list")}).error(function(a){a.errors.forEach(function(b){e.show(a.message+": "+b.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.wizard",{url:"/wizard",templateUrl:"app/user/wizard/wizard.html",controller:"UserWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VariableListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VariableListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={variablesByPage:{name:"10",value:10}},a.variablesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Variables={checked:[]},a.check=function(b,c){c?a.Variables.checked=angular.copy(_.pluck(a.displayedVariables,"id")):a.Variables.checked=[]},a.getVariables=function(b){return _.map(a.displayedVariables,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("variable"),b.url="/api/variables",h.getPage(b).then(function(c){a.displayedVariables=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.variablesByPage,a.displayedVariables.length),d.updateTableConfig(a.conf.variablesByPage,a.displayedVariables.length)}),c.socket.on("variable:save",function(){a.initList(b)}),c.socket.on("variable:remove",function(c){a.Variables.checked=_.without(a.Variables.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/variables/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/variables",{params:{id:a.Variables.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/variable/list/create.modal.html",controller:"VariableListCreateModalCtrl"});a.result.then(function(a){b.post("/api/variables",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables.list",{url:"/list",templateUrl:"app/variable/list/list.html",controller:"VariableListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",
-insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables",{url:"/variables",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VariableViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getVariable=function(){b.get("/api/variables/"+e.id).success(function(b){a.variable=b}).error(function(a){console.error(a),f.path("/variables/list")})},a.updateVariable=function(){var f=angular.copy(a.variable);b.put("/api/variables/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.variable=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables.view",{url:"/view/:id",templateUrl:"app/variable/view/view.html",controller:"VariableViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.variables.view.settings",{url:"/settings",templateUrl:"app/variable/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts",{url:"/contexts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceContextListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={contextsByPage:{name:"10",value:10}},a.contextsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.voiceContexts={checked:[]},a.check=function(b,c){c?a.voiceContexts.checked=angular.copy(_.pluck(a.displayedVoiceContexts,"id")):a.voiceContexts.checked=[]},a.getVoiceContexts=function(b){return _.map(a.displayedVoiceContexts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_context"),b.url="/api/voice/contexts",h.getPage(b).then(function(c){a.displayedVoiceContexts=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.contextsByPage,a.displayedVoiceContexts.length),d.updateTableConfig(a.conf.contextsByPage,a.displayedVoiceContexts.length)}),c.socket.on("voice_context:save",function(){a.initList(b)}),c.socket.on("voice_context:remove",function(c){a.voiceContexts.checked=_.without(a.voiceContexts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/contexts/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/contexts",{params:{id:a.voiceContexts.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.list",{url:"/list",templateUrl:"app/voice/context/list/list.html",controller:"VoiceContextListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceContextViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getContext=function(){b.get("/api/voice/contexts/"+e.id).success(function(b){a.context=b}).error(function(a){console.error(a),f.path("/voice/contexts/list")})},a.updateVoiceContext=function(){var f=angular.copy(a.context);b.put("/api/voice/contexts/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.context=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.view",{url:"/view/:id",templateUrl:"app/voice/context/view/view.html",controller:"VoiceContextViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.contexts.view.settings",{url:"/settings",templateUrl:"app/voice/context/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("VoiceContextWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={context:void 0},a.item={},a.next=function(){b.post("/api/voice/contexts/validate/",a.item).success(function(a){console.log(a),a.length?e.show(f.instant("MESSAGE_EXIST_CONTEXT"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/contexts/",a.item).success(function(){d.path("/voice/contexts/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.wizard",{url:"/wizard",templateUrl:"app/voice/context/wizard/wizard.html",controller:"VoiceContextWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceMohListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={mohsByPage:{name:"10",value:10},labels:["name","directory","sort","description"]},a.mohsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mohs={checked:[]},a.check=function(b,c){c?a.mohs.checked=angular.copy(_.pluck(a.displayedMohs,"id")):a.mohs.checked=[]},a.getMohs=function(b){return _.map(a.displayedMohs,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("voice_musiconhold"),b.url="/api/voice/musiconholds",h.getPage(b).then(function(c){a.displayedMohs=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.mohsByPage,a.displayedMohs.length),d.updateTableConfig(a.conf.mohsByPage,a.displayedMohs.length)}),f.socket.on("voice_musiconhold:save",function(){a.initList(b)}),f.socket.on("voice_musiconhold:remove",function(c){a.mohs.checked=_.without(a.mohs.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/musiconholds/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/musiconholds",{params:{id:a.mohs.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.list",{url:"/list",templateUrl:"app/voice/moh/list/list.html",controller:"VoiceMohListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs",{url:"/mohs",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceMohViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","Modal","$sce","$location",function(a,b,c,d,e,f,g,h,i){a.$translate=d,a.audioSources={},a.sortOptions=[{value:"random",name:"APPLICATION_RANDOM"},{value:"alpha",name:"APPLICATION_ALPHABETICAL"}],a.getMoh=function(){b.get("/api/voice/musiconholds/"+e.id).success(function(b){delete b.stamp,a.moh=b}).error(function(a){console.error(a),i.path("/voice/mohs/list")})},a.updateVoiceMoh=function(){console.log("update");var f=angular.copy(a.moh);b.put("/api/voice/musiconholds/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.voiceMoh=f})},a.addMohs=function(){b.post("/api/voice/musiconholds/"+e.id+"/files",a.item).success(function(){i.path("voice/mohs/view/"+e.id+"/audios")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getAudioFiles=function(){b.get("/api/voice/musiconholds/"+e.id+"/files").success(function(b){a.audioFiles=b.files,a.mohPath=b.path,a.audioFiles.forEach(function(a){j(a)})}).error(function(a){console.error(a)})},a.getSecureSrc=function(a){return h.trustAsResourceUrl(a)};var j=function(c){b.get("/api/voice/musiconholds/stream",{params:{path:encodeURI(a.mohPath+"/"+c)}}).success(function(b){a.audioSources[c]="data:audio/ogg;base64,"+b}).error(function(a){console.error(a)})};a.getSounds=function(){a.item={sounds:[]},b.get("/api/uploads").success(function(b){a.soundList=b}).error(function(a){console.error(a)})},a.deleteItem=g.confirm["delete"](function(f){b["delete"]("/api/voice/musiconholds/"+e.id+"/files",{params:{filename:f}}).success(function(){_.remove(a.audioFiles,function(a){return a===f}),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.view",{url:"/view/:id",templateUrl:"app/voice/moh/view/view.html",controller:"VoiceMohViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.mohs.view.settings",{url:"/settings",templateUrl:"app/voice/moh/view/view.settings.html"}).state("main.voice.mohs.view.audios",{url:"/audios",templateUrl:"app/voice/moh/view/view.audios.html",cache:!1}).state("main.voice.mohs.view.add",{url:"/add",templateUrl:"app/voice/moh/view/view.addFiles.html",cache:!1})}]),angular.module("xCallyShuttleApp").controller("VoiceMohWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.$translate=g,a.initWizard=function(){a.forms={},a.item={sort:"alpha"}},a.next=function(){b.post("/api/voice/musiconholds/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_MOH"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/musiconholds/",a.item).success(function(a){d.path("/voice/mohs/view/"+a.id+"/audios")}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.wizard",{url:"/wizard",templateUrl:"app/voice/moh/wizard/wizard.html",controller:"VoiceMohWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCtrl",["$scope","$http","socket","$translate","$rootScope","Modal","xAlert","stResource",function(a,b,c,d,e,f,g,h){a.conf={voiceQueuesByPage:{name:"10",value:10},labels:["name","description","strategy","context"]},a.voiceQueuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.queues={checked:[]},a.check=function(b,c){c?a.queues.checked=angular.copy(_.pluck(a.displayedQueues,"name")):a.queues.checked=[]},a.getQueues=function(b){return _.map(a.displayedQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_queue"),b.url="/api/voice/queues",h.getPage(b).then(function(c){a.displayedQueues=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.voiceQueuesByPage,a.displayedQueues.length),e.updateTableConfig(a.conf.voiceQueuesByPage,a.displayedQueues.length)}),c.socket.on("voice_queue:save",function(){a.initList(b)}),c.socket.on("voice_queue:remove",function(c){console.log("remove"),a.queues.checked=_.without(a.queues.checked,c.name),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/voice/queues/"+a).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/voice/queues",{params:{name:a.queues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.list",{url:"/list",templateUrl:"app/voice/queue/list/list.html",controller:"VoiceQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location",function(a,b,c,d,e,f,g){a.binaryChoices=[{name:"Yes",value:1},{name:"No",value:0}],a.monitorFormats=[{name:"wav",value:"wav"},{name:"gsm",value:"gsm"},{name:"Inactive",value:""}],a.queueAnnounces=[{display_name:"Default",value:null},{display_name:"Disabled",value:""}];var h=function(){return{select:function(c){b.post("/api/voice/queues/"+a.queue.name+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/voice/queues/"+a.queue.name+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/voice/queues/"+e.id).success(function(b){b.joinempty=""===b.joinempty?[]:b.joinempty.split(","),b.leavewhenempty=""===b.leavewhenempty?[]:b.leavewhenempty.split(","),b.periodic_announce=""===b.periodic_announce?[]:b.periodic_announce.split(","),a.queue=b}).error(function(a){g.path("/voice/queues/list")})},a.updateVoiceQueue=function(){var f=angular.copy(a.queue);f.joinempty=f.joinempty.join(","),f.leavewhenempty=f.leavewhenempty.join(","),f.periodic_announce=f.periodic_announce.join(","),f.context||(f.context=null),b.put("/api/voice/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),f.joinempty=f.joinempty.split(","),f.leavewhenempty=f.leavewhenempty.split(","),f.periodic_announce=f.periodic_announce.split(","),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/voice/user_has_queues",method:"GET",params:{queue:a.queue.name}}).success(function(b){ComponentsDropdowns.bindQueue(a.teams,_.pluck(b,"UserId"),h)})}).error(function(a){console.error(a)})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getMohs=function(){b.get("/api/voice/musiconholds").success(function(b){a.voiceMohs=b.rows,f.syncUpdates("voice_musiconhold",a.voiceMohs)}).error(function(a){c.show(a.message,"danger")})},a.getSounds=function(){b.get("/api/uploads").success(function(b){a.queueAnnounces=a.queueAnnounces.concat(b),a.periodicAnnounces=angular.copy(b),b.unshift({display_name:"None",converted_path:null,value:""}),a.sounds=b,f.syncUpdates("upload",a.sounds)}).error(function(a){console.error(a)})},a.returnAnnouncePath=function(a){return console.log("func"),a.converted_path?a.converted_path+"/"+a.save_name:null===a.value?null:a.value}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.view",{url:"/view/:id",templateUrl:"app/voice/queue/view/view.html",controller:"VoiceQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.queues.view.settings",{url:"/settings",templateUrl:"app/voice/queue/view/view.settings.html"}).state("main.voice.queues.view.agents",{url:"/agents",templateUrl:"app/voice/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={queue:void 0},a.item={},a.next=function(){b.post("/api/voice/queues/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_QUEUE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/queues/",a.item).success(function(){d.path("/voice/queues/list")}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.wizard",{url:"/wizard",templateUrl:"app/voice/queue/wizard/wizard.html",controller:"VoiceQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentCtrl",["$scope","$http","$log","$uibModal","$translate","socket","xAlert",function(a,b,c,d,e,f,g){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){f.unsyncUpdates("user_has_voice_queue")}),a.groups=[],a.pauses=["pausa1","pausa2","pausa3"],a.pause=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/agent/pause.modal.html",controller:"VoiceRealtimeViewAgentPauseModalCtrl",resolve:{items:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.add=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/agent/queue.modal.add.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl",resolve:{pauses:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){console.log(a),b.post("/api/voice/user_has_queues",a).then(function(){a.login?b.post("/api/ami",a).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.remove=function(a,f){var h=d.open({animation:!0,size:a,templateUrl:"app/voice/realtime/view/agent/queue.modal.remove.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl",resolve:{pauses:function(){return null},data:function(){return f}}});h.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.initAgents=function(){b.get("/api/voice/user_has_queues").success(function(b){a.agents=b,a.groups=_.map(_.groupBy(a.agents,"membername"),function(a,b){return{membername:b,queues:a}}),f.socket.on("user_has_voice_queue:save",function(b){var c=_.find(a.groups,{membername:b.membername}),d=a.groups.indexOf(c);if(c){var e=_.find(c.queues,{queue:b.queue});e?_.merge(e,b):a.groups[d].queues.push(b)}else{var f={membername:b.membername,queues:[b]};a.groups.unshift(f)}}),f.socket.on("user_has_voice_queue:remove",function(b){var c=_.find(a.groups,{membername:b.membername});_.remove(c.queues,{queue:b.queue}),c.queues.length||_.remove(a.groups,{membername:b.membername})}),f.socket.on("report_agent:save",function(b){var c=_.find(a.groups,{membername:b.membername}),d=a.groups.indexOf(c);if(c){var e=_.find(c.queues,{queue:b.queue});e?_.merge(e,b):a.groups[d].queues.push(b)}else{var f={membername:b.membername,queues:[b]};a.groups.unshift(f)}})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentPauseModalCtrl",["$scope","$uibModalInstance","items","data",function(a,b,c,d){a.items=c,a.data=d,a.selected={item:a.items[0],queue:_.isArray(d)?a.data[0].queue:a.data.queue,membername:_.isArray(d)?a.data[0].membername:a.data.membername,"interface":_.isArray(d)?a.data[0]["interface"]:a.data["interface"]},a.ok=function(c){var e={action:"QueuePause","interface":a.selected["interface"],paused:c,reason:a.selected.item};_.isArray(d)||(e.queue=a.selected.queue),b.close(e)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","pauses","data",function(a,b,c,d,e){a.initAdd=function(){a.data=e,a.pauses=d,a.selected={membername:a.data[0].membername,"interface":a.data[0]["interface"],penalty:0,paused:!1,reason:a.pauses[0],UserId:a.data[0].UserId},c.get("/api/voice/queues",{params:{page:0,per_page:100}}).success(function(b){a.queues=_.reject(b.rows,function(b){return _.find(a.data,{queue:b.name})?!0:!1}),a.selected.queue=a.queues[0]?a.queues[0].name:null,console.log(a.queues)}).error(function(a){console.error(a)})},a.initRemove=function(){a.data=e,_.isArray(e)?a.selected={membername:a.data[0].membername,"interface":a.data[0]["interface"],logout:!1,UserId:a.data[0].UserId}:a.selected={membername:a.data.membername,"interface":a.data["interface"],queue:a.data.queue,logout:!1,UserId:a.data.UserId}},a.okAdd=function(){console.log(a.selected);var c={action:"QueueAdd",logged:a.data[0].logged,loggedAt:a.data[0].loggedAt,queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],penalty:a.selected.penalty,paused:a.selected.paused,UserId:a.selected.UserId};c.paused&&(c.reason=a.selected.reason),b.close(c)},a.okRemove=function(){var c;_.isArray(a.data)?(c=[],a.data.forEach(function(b){c.push({action:"QueueRemove",queue:b.queue,"interface":b["interface"],logout:a.selected.logout,UserId:b.UserId})})):c={action:"QueueRemove",queue:a.selected.queue,logout:a.selected.logout,"interface":a.selected["interface"],UserId:a.selected.UserId},b.close(c)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentReportCtrl",["$scope","$http","socket",function(a,b,c){a.$on("$destroy",function(){c.unsyncUpdates("report_agent")}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.initReport=function(){a.agents=[],b.get("/api/report/agents").success(function(b){a.agents=b,c.syncUpdates("report_agent",a.agents)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").filter("VoiceRealtimeViewAgentReportFilter",function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueReportCtrl",["$scope","$http","socket",function(a,b,c){a.$on("$destroy",function(){c.unsyncUpdates("report_queue")}),a.conf={queuesByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.initReport=function(){a.queues=[],b.get("/api/report/queues").success(function(b){console.log(b),a.queues=b,c.syncUpdates("report_queue",a.queues)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").filter("VoiceRealtimeViewQueueReportFilter",function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueuePauseModalCtrl",["$scope","$uibModalInstance","items","data",function(a,b,c,d){a.items=c,a.data=d,console.log(d),a.selected={item:a.items[0],queue:_.isArray(d)?a.data[0].queue:a.data.queue,membername:_.isArray(d)?a.data[0].membername:a.data.membername,"interface":_.isArray(d)?a.data[0]["interface"]:a.data["interface"]},a.ok=function(c,e){var f;_.isArray(d)?(f=[],d.forEach(function(b){f.push({action:"QueuePause",queue:b.queue,membername:b.membername,"interface":b["interface"],paused:c,reason:a.selected.item})})):f={action:"QueuePause",queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],paused:c,reason:a.selected.item},b.close(f)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCtrl",["$scope","$http","$log","$uibModal","$translate","socket","xAlert",function(a,b,c,d,e,f,g){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){f.unsyncUpdates("user_has_voice_queue")}),a.groups=[],a.pauses=["pausa1","pausa2","pausa3"],a.pause=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/queue/pause.modal.html",controller:"VoiceRealtimeViewQueuePauseModalCtrl",resolve:{items:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.add=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/queue/queue.modal.add.html",controller:"VoiceRealtimeViewQueueQueueModalCtrl",resolve:{pauses:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){console.log("action",a),b.post("/api/voice/user_has_queues",a).then(function(){a.login?b.post("/api/ami",a).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.message,"danger")}),console.log(a)},function(){c.info("Modal dismissed at: "+new Date)})},a.remove=function(a,f){var h=d.open({animation:!0,size:a,templateUrl:"app/voice/realtime/view/queue/queue.modal.remove.html",controller:"VoiceRealtimeViewQueueQueueModalCtrl",resolve:{pauses:function(){return null},data:function(){return f}}});h.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.initQueues=function(){b.get("/api/voice/user_has_queues").success(function(b){a.queues=b,a.groups=_.map(_.groupBy(a.queues,"queue"),function(a,b){return{queue:b,agents:a}}),console.log("ok"),f.socket.on("user_has_voice_queue:save",function(b){console.log("item",b);var c=_.find(a.groups,{queue:b.queue}),d=a.groups.indexOf(c);if(c){var e=_.find(c.agents,{membername:b.membername});e?_.merge(e,b):a.groups[d].agents.push(b)}else{var f={queue:b.queue,agents:[b]};a.groups.unshift(f)}}),f.socket.on("user_has_voice_queue:remove",function(b){var c=_.find(a.groups,{queue:b.queue});_.remove(c.agents,{membername:b.membername}),c.agents.length||_.remove(a.groups,{queue:b.queue})}),f.socket.on("report_agent:save",function(b){var c=_.find(a.groups,{queue:b.queue}),d=a.groups.indexOf(c);if(c){var e=_.find(c.agents,{membername:b.membername});e?_.merge(e,b):a.groups[d].agents.push(b)}else{var f={queue:b.queue,agents:[b]};a.groups.unshift(f)}})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueQueueModalCtrl",["$scope","$uibModalInstance","$http","pauses","data",function(a,b,c,d,e){a.initAdd=function(){a.data=e,a.pauses=d,a.selected={penalty:0,paused:!1,reason:a.pauses[0]},a.$watch("selected.agent",function(b){b&&(a.selected.membername=b.name,a.selected["interface"]="SIP/"+b.name,a.selected.UserId=b.id)}),c.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=_.reject(b.rows,function(b){return _.find(a.data,{membername:b.name})?!0:!1}),a.selected.queue=a.data[0]?a.data[0].queue:null}).error(function(a){console.error(a)})},a.initRemove=function(){a.data=e,console.log(e),_.isArray(e)?a.selected={queue:a.data[0].queue,logout:!1}:a.selected={membername:a.data.membername,"interface":a.data["interface"],queue:a.data.queue,logout:!1,UserId:a.data.UserId}},a.okAdd=function(){var c={action:"QueueAdd",queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],penalty:a.selected.penalty,paused:a.selected.paused,UserId:a.selected.UserId};c.paused&&(c.reason=a.selected.reason),b.close(c)},a.okRemove=function(){var c;_.isArray(a.data)?(c=[],a.data.forEach(function(b){c.push({action:"QueueRemove",queue:b.queue,"interface":b["interface"],logout:a.selected.logout,UserId:b.UserId})})):c={action:"QueueRemove",queue:a.selected.queue,logout:a.selected.logout,"interface":a.selected["interface"],UserId:a.selected.UserId},b.close(c)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"View1",link:"main.voice.realtime.view.agents"},{name:"View2",link:"main.voice.realtime.view.areports"}],a.queues=[{name:"View1",link:"main.voice.realtime.view.queues"},{name:"View2",link:"main.voice.realtime.view.qreports"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.realtime.view",{url:"/view",templateUrl:"app/voice/realtime/view/view.html",controller:"VoiceRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]
-}])}]}}).state("main.voice.realtime.view.queues",{url:"/queues",controller:"VoiceRealtimeViewQueueCtrl",templateUrl:"app/voice/realtime/view/queue/queue.html"}).state("main.voice.realtime.view.qreports",{url:"/qreport/:search",controller:"VoiceRealtimeViewQueueReportCtrl",templateUrl:"app/voice/realtime/view/qreport/report.html"}).state("main.voice.realtime.view.agents",{url:"/agents",controller:"VoiceRealtimeViewAgentCtrl",templateUrl:"app/voice/realtime/view/agent/agent.html"}).state("main.voice.realtime.view.areports",{url:"/areport",controller:"VoiceRealtimeViewAgentReportCtrl",templateUrl:"app/voice/realtime/view/areport/report.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound",{url:"/inbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/inbound",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.routesByPage,a.displayedRoutes.length),e.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"inbound"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"inbound"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.list",{url:"/list",templateUrl:"app/voice/route/inbound/list/list.html",controller:"VoiceRouteInboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundViewCtrl",["$scope","$http","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=c,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={settings:void 0,interval:void 0},a.application={VoiceExtensionId:d.id,type:"inbound"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var e,f;switch(d.appId||(a.application={VoiceExtensionId:d.id,type:"inbound",interval:a.application.interval}),c){case"Queue":e="api/voice/queues",f="/api/uploads";break;case"Playback":e="/api/uploads";break;case"AGI":e="/api/square/projects";break;case"Goto":e="/api/voice/contexts";break;default:e=null,f=null}e&&b.get(e).success(function(b){a.items="Playback"!==c?b.rows:b}),f&&b.get(f).success(function(b){a.items2=b})}},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+d.id+"/applications").success(function(b){a.routeApplications=b,e.unsyncUpdates("voice_extension"),e.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),e.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===d.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+d.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(b){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0},a.getRoute=function(){b.get("/api/voice/extensions/"+d.id).success(function(b){a.route=b,e.socket.on("voice_extension:update",function(b){b.id==d.id&&(a.route=b)})}).error(function(a){f.path("/voice/routes/inbound/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+d.appId).success(function(b){var c=_.filter(a.$application.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),"Queue"===b.app&&(a.application.app_options=b.app_options?b.app_options.split(","):[]),a.interval.intType=b.IntervalId?"list":"*,*,*,*"===b.interval?"always":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){f.path("/voice/routes/inbound/view/"+d.id+"/applications")})},a.updateRoute=function(){var e=angular.copy(a.route);b.put("/api/voice/extensions/"+d.id,e).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){i.show(c.instant(b.message),"danger"),a.route=e})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){f.path("/voice/routes/inbound/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.updateItem=function(){switch(a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+d.appId,a.application).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),f.path("/voice/routes/inbound/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.deleteItem=h.confirm["delete"](function(d){b["delete"]("/api/voice/extensions/"+d).success(function(){a.getRouteApplications(),i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(c.instant(a.message),"danger")})}),a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.view",{url:"/view/:id",templateUrl:"app/voice/route/inbound/view/view.html",controller:"VoiceRouteInboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.inbound.view.settings",{url:"/settings",templateUrl:"app/voice/route/inbound/view/view.settings.html"}).state("main.voice.routes.inbound.view.applications",{url:"/applications",templateUrl:"app/voice/route/inbound/view/view.applications.html",cache:!1}).state("main.voice.routes.inbound.view.application",{url:"/application",templateUrl:"app/voice/route/inbound/view/view.application.html",authenticate:!0}).state("main.voice.routes.inbound.view.applications.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/inbound/view/view.applicationSettings.html",authenticate:!0,controller:"VoiceRouteInboundViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"inbound",appdata:"Inbound Call",context:"from-voip-provider"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/inbound/view/"+a.id+"/applications")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.wizard",{url:"/wizard",templateUrl:"app/voice/route/inbound/wizard/wizard.html",controller:"VoiceRouteInboundWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/internal",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.routesByPage,a.displayedRoutes.length),e.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"internal"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"internal"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.list",{url:"/list",templateUrl:"app/voice/route/internal/list/list.html",controller:"VoiceRouteInternalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalViewCtrl",["$scope","$http","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=c,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={settings:void 0,interval:void 0},a.application={VoiceExtensionId:d.id,type:"internal"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var e,f;switch(d.appId||(a.application={VoiceExtensionId:d.id,type:"internal",interval:a.application.interval}),c){case"Queue":e="api/voice/queues",f="/api/uploads";break;case"Playback":e="/api/uploads";break;case"AGI":e="/api/square/projects";break;case"Goto":e="/api/voice/contexts";break;default:e=null,f=null}e&&b.get(e).success(function(b){a.items="Playback"!==c?b.rows:b}),f&&b.get(f).success(function(b){a.items2=b})}},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+d.id+"/applications").success(function(b){a.routeApplications=b,e.unsyncUpdates("voice_extension"),e.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),e.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===d.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+d.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(b){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0},a.getRoute=function(){b.get("/api/voice/extensions/"+d.id).success(function(b){a.route=b,e.socket.on("voice_extension:update",function(b){b.id==d.id&&(a.route=b)})}).error(function(a){console.error(a),f.path("/voice/routes/internal/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+d.appId).success(function(b){var c=_.filter(a.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),"Queue"===b.app&&(a.application.app_options=b.app_options?b.app_options.split(","):[]),a.interval.intType=b.IntervalId?"list":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){f.path("/voice/routes/internal/view/"+d.id+"/applications")})},a.updateRoute=function(){var e=angular.copy(a.route);b.put("/api/voice/extensions/"+d.id,e).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){i.show(c.instant(b.message),"danger"),a.route=e})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){f.path("/voice/routes/internal/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.updateItem=function(){switch(a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+d.appId,a.application).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),f.path("/voice/routes/internal/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.deleteItem=h.confirm["delete"](function(d){b["delete"]("/api/voice/extensions/"+d).success(function(b){a.getRouteApplications(),i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(c.instant(a.message),"danger")})}),a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.view",{url:"/view/:id",templateUrl:"app/voice/route/internal/view/view.html",controller:"VoiceRouteInternalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.internal.view.settings",{url:"/settings",templateUrl:"app/voice/route/internal/view/view.settings.html"}).state("main.voice.routes.internal.view.applications",{url:"/applications",templateUrl:"app/voice/route/internal/view/view.applications.html",cache:!1}).state("main.voice.routes.internal.view.application",{url:"/application",templateUrl:"app/voice/route/internal/view/view.application.html",authenticate:!0}).state("main.voice.routes.internal.view.applications.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/internal/view/view.applicationSettings.html",authenticate:!0,controller:"VoiceRouteInternalViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"internal",appdata:"Iternal Call",context:"from-sip"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/internal/view/"+a.id+"/applications")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.wizard",{url:"/wizard",templateUrl:"app/voice/route/internal/wizard/wizard.html",controller:"VoiceRouteInternalWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/outbound",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.routesByPage,a.displayedRoutes.length),d.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"outbound"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"outbound"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(e.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.list",{url:"/list",templateUrl:"app/voice/route/outbound/list/list.html",controller:"VoiceRouteOutboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound",{url:"/outbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={info:void 0,interval:void 0},a.application={VoiceExtensionId:e.id,type:"outbound"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""},a.applications=[{name:"Dial",value:"Dial"},{name:"Custom",value:"custom"}]},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var d,f;switch(e.appId||(a.application={VoiceExtensionId:e.id,type:"outbound",interval:a.application.interval}),c){case"Dial":d="api/trunks",f="/api/voice/contexts";break;default:d=null,f=null}d&&b.get(d).success(function(b){a.items="Dial"===c?b.rows:b}),f&&b.get(f).success(function(b){a.items2="Dial"===c?b.rows:b})}},!0),a.$watch("application.TrunkId",function(b){b&&(a.application.trunk=_.result(_.find(a.items,{id:b}),"name"))},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,f.syncUpdates("interval",a.Intervals)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+e.id+"/applications").success(function(b){a.routeApplications=b,f.unsyncUpdates("voice_extension"),f.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),f.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===e.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+e.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0},a.getRoute=function(){b.get("/api/voice/extensions/"+e.id).success(function(b){a.route=b,f.socket.on("voice_extension:update",function(b){b.id==e.id&&(a.route=b)})}).error(function(a){g.path("/voice/routes/outbound/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+e.appId).success(function(b){var c=_.filter(a.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.intType=b.IntervalId?"list":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){console.error(a),g.path("/voice/routes/outbound/view/"+e.id+"/routes")})},a.updateRoute=function(){var f=angular.copy(a.route);b.put("/api/voice/extensions/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.route=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){g.path("/voice/routes/outbound/view/"+e.id+"/routes")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.updateItem=function(){switch(a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+e.appId,a.application).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),g.path("/voice/routes/outbound/view/"+e.id+"/routes")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.deleteItem=i.confirm["delete"](function(e){b["delete"]("/api/voice/extensions/"+e).success(function(b){a.getRouteApplications(),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.goNext=function(){h.wizard().next()},a.previous=function(){h.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){f.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.view",{url:"/view/:id",templateUrl:"app/voice/route/outbound/view/view.html",controller:"VoiceRouteOutboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.outbound.view.settings",{url:"/settings",templateUrl:"app/voice/route/outbound/view/view.settings.html"}).state("main.voice.routes.outbound.view.routes",{url:"/routes",templateUrl:"app/voice/route/outbound/view/view.routes.html",cache:!1}).state("main.voice.routes.outbound.view.route",{
-url:"/route",templateUrl:"app/voice/route/outbound/view/view.route.html",authenticate:!0}).state("main.voice.routes.outbound.view.routes.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/outbound/view/view.routeSettings.html",authenticate:!0,controller:"VoiceRouteOutboundViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"outbound",appdata:"Outbound Call",context:"from-sip"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/outbound/view/"+a.id+"/routes")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.wizard",{url:"/wizard",templateUrl:"app/voice/route/outbound/wizard/wizard.html",controller:"VoiceRouteOutboundWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes",{url:"/routes",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice",{url:"/voice",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={voicemailsByPage:{name:"10",value:10},labels:["mailbox","fullname","email"]},a.voicemailsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.voicemails={checked:[]},a.check=function(b,c){c?a.voicemails.checked=angular.copy(_.pluck(a.displayedVoicemails,"uniqueid")):a.voicemails.checked=[]},a.getVoicemails=function(b){return _.map(a.displayedVoicemails,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("voice_voicemail"),b.url="/api/voice/voicemails",h.getPage(b).then(function(c){a.displayedVoicemails=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.voicemailsByPage,a.displayedVoicemails.length),d.updateTableConfig(a.conf.voicemailsByPage,a.displayedVoicemails.length)}),f.socket.on("voice_voicemail:save",function(){a.initList(b)}),f.socket.on("voice_voicemail:remove",function(c){a.voicemails.checked=_.without(a.voicemails.checked,c.uniqueid),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/voicemails/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/voicemails",{params:{uniqueid:a.voicemails.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.list",{url:"/list",templateUrl:"app/voice/voicemail/list/list.html",controller:"VoiceVoicemailListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$sce","Modal","$location",function(a,b,c,d,e,f,g,h,i){a.getVoicemail=function(){b.get("/api/voice/voicemails/"+e.uniqueid).success(function(b){delete b.password,delete b.stamp,a.voicemail=b}).error(function(a){console.error(a),i.path("/voice/voicemails/list")})},a.updateVoiceVoicemail=function(){var f=angular.copy(a.voicemail);b.put("/api/voice/voicemails/"+e.uniqueid,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.voicemail=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(a.message,"danger")})},a.getMessages=function(){b.get("/api/voice/voicemails/"+e.uniqueid+"/messages/").success(function(b){a.voicemailMessages=b,f.syncUpdates("voice_voicemail_messages",a.voicemailMessages)}).error(function(a){c.show(a.message,"danger")})},a.encodeRecording=function(a){return g.trustAsResourceUrl("data:audio/ogg;base64,"+j(a.data))},a.returnMessageDate=function(a){return a.split("T")[0]},a.returnDuration=function(a){return 1e3*a},a.deleteItem=h.confirm["delete"](function(a){b["delete"]("/api/voice/voicemails/messages/"+a+"/delete").success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){console.log(a),c.show(a.message,"danger")})});var j=function(a){for(var b=new Uint8Array(a),c=b.byteLength,d="",e=0;c>e;e++)d+=String.fromCharCode(b[e]);return window.btoa(d)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.view",{url:"/view/:uniqueid",templateUrl:"app/voice/voicemail/view/view.html",controller:"VoiceVoicemailViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.voicemails.view.settings",{url:"/settings",templateUrl:"app/voice/voicemail/view/view.settings.html"}).state("main.voice.voicemails.view.messages",{url:"/messages",templateUrl:"app/voice/voicemail/view/view.messages.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails",{url:"/voicemails",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.initWizard=function(){a.forms={},a.item={}},a.next=function(){b.post("/api/voice/voicemails/validate/",a.item).success(function(a){a.length?e.show(g.instant("MESSAGE_EXIST_MAILBOX"),"danger"):c.wizard().next()}).error(function(a){e.show(a.message,"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){a.item.customer_id=a.item.mailbox,b.post("/api/voice/voicemails/",a.item).success(function(){d.path("/voice/voicemails/list")}).error(function(a){e.show(a.message,"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.wizard",{url:"/wizard",templateUrl:"app/voice/voicemail/wizard/wizard.html",controller:"VoiceVoicemailWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={dashboardsByPage:{name:"10",value:10}},a.dashboardsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.dashboards={checked:[]},a.check=function(b,c){c?a.dashboards.checked=angular.copy(_.pluck(a.displayedDashboards,"id")):a.dashboards.checked=[]},a.getDashboards=function(b){return _.map(a.displayedDashboards,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){b.url="/api/dashboards",h.getPage(b).then(function(c){a.displayedDashboards=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.dashboardsByPage,a.displayedDashboards.length),d.updateTableConfig(a.conf.dashboardsByPage,a.displayedDashboards.length)}),c.socket.on("dashboard:save",function(){a.initList(b)}),c.socket.on("dashboard:remove",function(c){a.dashboards.checked=_.without(a.dashboards.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/dashboards/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/dashboards",{params:{id:a.dashboards.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/yourdashboard/list/create.modal.html",controller:"YourdashboardListCreateModalCtrl"});a.result.then(function(a){b.post("/api/dashboards",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.list",{url:"/list",templateUrl:"app/yourdashboard/list/list.html",controller:"YourdashboardListCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardShowCtrl",["$scope","localStorageService","$http","xAlert","$translate","Auth","$stateParams","$location",function(a,b,c,d,e,f,g,h){a.Auth=f,a.dashboard={name:"dashboard",structure:"4-8",enableconfirmdelete:!0,editable:f.isAdmin()?!0:!1,maximizable:!0,collapsible:!0},a.getDashboard=function(){c.get("/api/dashboards/"+g.id).success(function(b){b.model=JSON.parse(b.model),a.dashboard=_.merge(a.dashboard,b)}).error(function(a){h.path("/yourdashboards/list")})};var i=function(b,f,h){var i=angular.copy(a.dashboard);i.name=a.dashboard.model.title,i.model=JSON.stringify(i.model),c.put("/api/dashboards/"+g.id,i).success(function(){d.show(e.instant("MESSAGE_DASHBOARD_SAVED")+"!","success")}).error(function(b){d.show(b.message,"danger"),i.model=JSON.parse(i.model),i.name="dashboard",a.dashboard=i})};a.$on("adfDashboardChanged",i),a.$on("destroy",function(){console.log("main dashboard")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.show",{url:"/show/:id",templateUrl:"app/yourdashboard/show/show.html",controller:"YourdashboardShowCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getDashboard=function(){b.get("/api/dashboards/"+e.id).success(function(b){delete b.model,a.dashboard=b}).error(function(a){f.path("/yourdashboards/list")})},a.updateDashboard=function(){var f=angular.copy(a.dashboard);b.put("/api/dashboards/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.dashboard=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.view",{url:"/view/:id",templateUrl:"app/yourdashboard/view/view.html",controller:"YourdashboardViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.yourdashboards.view.settings",{url:"/settings",templateUrl:"app/yourdashboard/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards",{url:"/yourdashboards",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedZdAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedZdAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("zendesk_account"),b.url="/api/zendesk/accounts",h.getPage(b).then(function(d){a.displayedZdAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedZdAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedZdAccounts.length)}),f.socket.on("zendesk_account:save",function(){a.initList(b)}),f.socket.on("zendesk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/zendesk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/zendesk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/zendesk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.list",{url:"/list",templateUrl:"app/zendesk/list/list.html",controller:"ZendeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("zendesk_configuration"),h.unsyncUpdates("zendesk_field")}),a.initView=function(){b.get("/api/zendesk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/zendesk/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/zendesk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("zendesk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/zendesk/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/zendesk/configurations",a.configuration).success(function(a){e.path("zendesk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/zendesk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=f("zendesk")(b)}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/zendesk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("zendesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/zendesk/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/zendesk/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.system_field_options?c.system_field_options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view",{url:"/view/:id",templateUrl:"app/zendesk/view/view.html",controller:"ZendeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.zendesk.view.account",{url:"/account",templateUrl:"app/zendesk/view/view.account.html"}).state("main.zendesk.view.configurations",{url:"/configurations",templateUrl:"app/zendesk/view/view.configurations.html"}).state("main.zendesk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/zendesk/view/view.configurationSettings.html",controller:"ZendeskViewCtrl"}).state("main.zendesk.view.configuration",{url:"/configuration",templateUrl:"app/zendesk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("ZendeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.authType="password"},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/zendesk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/zendesk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.wizard",{url:"/wizard",templateUrl:"app/zendesk/wizard/wizard.html",controller:"ZendeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk",{url:"/zendesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").service("application",function(){var a={applications:[{name:"Queue",value:"Queue"},{name:"Playback",value:"Playback"},{name:"Dial",value:"Dial"},{name:"Cally-Square IVR",value:"AGI"},{name:"GoTo",value:"Goto"},{name:"Hangup",value:"Hangup"},{name:"Set",value:"Set"},{name:"Custom",value:"custom"},{name:"VoiceMail",value:"Voicemail"}],queueOptions:[{value:"C",name:"APPLICATION_QUEUE_OPTION_C"},{value:"c",name:"APPLICATION_QUEUE_OPTION_c"},{value:"d",name:"APPLICATION_QUEUE_OPTION_d"},{value:"F",name:"APPLICATION_QUEUE_OPTION_F"},{value:"h",name:"APPLICATION_QUEUE_OPTION_h"},{value:"H",name:"APPLICATION_QUEUE_OPTION_H"},{value:"n",name:"APPLICATION_QUEUE_OPTION_n"},{value:"i",name:"APPLICATION_QUEUE_OPTION_i"},{value:"I",name:"APPLICATION_QUEUE_OPTION_I"},{value:"r",name:"APPLICATION_QUEUE_OPTION_r"},{value:"R",name:"APPLICATION_QUEUE_OPTION_R"},{value:"t",name:"APPLICATION_QUEUE_OPTION_t"},{value:"T",name:"APPLICATION_QUEUE_OPTION_T"},{value:"w",name:"APPLICATION_QUEUE_OPTION_w"},{value:"W",name:"APPLICATION_QUEUE_OPTION_W"},{value:"k",name:"APPLICATION_QUEUE_OPTION_k"},{value:"K",name:"APPLICATION_QUEUE_OPTION_K"},{value:"x",name:"APPLICATION_QUEUE_OPTION_x"},{value:"X",name:"APPLICATION_QUEUE_OPTION_X"}],audioOptions:[{value:"skip",name:"APPLICATION_PLAYBACK_OPTION_SKIP"},{value:"noanswer",name:"APPLICATION_PLAYBACK_OPTION_NOANSWER"},{value:"j",name:"APPLICATION_PLAYBACK_OPTION_J"},{value:"say",name:"APPLICATION_PLAYBACK_OPTION_SAY"}],hangupCauses:[{value:"",name:"--"},{value:"1",name:"APPLICATION_HANGUP_CAUSE_1"},{value:"16",name:"APPLICATION_HANGUP_CAUSE_16"},{value:"17",name:"APPLICATION_HANGUP_CAUSE_17"},{value:"18",name:"APPLICATION_HANGUP_CAUSE_18"},{value:"21",name:"APPLICATION_HANGUP_CAUSE_21"},{value:"22",name:"APPLICATION_HANGUP_CAUSE_22"},{value:"27",name:"APPLICATION_HANGUP_CAUSE_27"},{value:"38",name:"APPLICATION_HANGUP_CAUSE_38"},{value:"41",name:"APPLICATION_HANGUP_CAUSE_41"}],intTypes:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"custom",name:"APPLICATION_CUSTOM"},{value:"list",name:"APPLICATION_FROM_LIST"}]};return{application:a}}),angular.module("xCallyShuttleApp").factory("Auth",["$location","$rootScope","$http","User","$cookieStore","$q",function(a,b,c,d,e,f){var g={};return e.get("token")&&(g=d.me()),{login:function(a,h){var i=h||angular.noop,j=f.defer();return c.post("/auth/local",{name:a.name,password:a.password,remember:a.remember}).success(function(a){return e.put("token",a.token),e.put("userId",a.userId),g=d.me({},function(){b.$broadcast("login")}),j.resolve(a),i()}).error(function(a){return this.logout(),j.reject(a),i(a)}.bind(this)),j.promise},loginWithToken:function(a,b,c){e.put("token",a),e.put("userId",b),e.put("name",c),g=d.me()},logout:function(){c.put("/api/users/"+g.id,{online:!1}).success(function(){e.remove("token"),e.remove("userId"),g={},b.$broadcast("logout")}).error(function(a){return a})},createUser:function(a,b){var c=b||angular.noop;return d.save(a,function(b){return e.put("token",b.token),g=d.me(),c(a)},function(a){return this.logout(),c(a)}.bind(this)).$promise},changePassword:function(a,b,c){var e=c||angular.noop;return d.changePassword({id:g.id},{oldPassword:a,newPassword:b},function(a){return e(null,a)},function(a){return e(a)}).$promise},getCurrentUser:function(){return g},isLoggedIn:function(){return g.hasOwnProperty("role")},isLoggedInAsync:function(a){g.hasOwnProperty("$promise")?g.$promise.then(function(){a(!0)})["catch"](function(){a(!1)}):a(g.hasOwnProperty("role")?!0:!1)},isAdmin:function(){return"admin"===g.role},getRole:function(){return g.role},getToken:function(){return e.get("token")},getUserId:function(){return console.log(e.get("userId")),e.get("userId")},getName:function(){return e.get("name")}}}]),angular.module("xCallyShuttleApp").factory("User",["$resource",function(a){return a("/api/users/:id/:controller",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},me:{method:"GET",params:{id:"me"}}})}]),angular.module("xCallyShuttleApp").service("automations",function(){var a={voice:{conditions:[],actions:[]},mail:{conditions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select",operators:"equals"},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",propertyField:"number",operators:"noequals"}],actions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select"}]},chat:{conditions:[],actions:[]},fax:{conditions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select",operators:"equals"},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",propertyField:"number",operators:"noequals"}],actions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select"}]}},b=["voice","mail","chat","fax"],c={equals:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"}],all:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"},{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}],noequals:[{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}]},d={voice:{},mail:{status:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_SOLVED",value:"SOLVED"}]},chat:{},fax:{status:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_SOLVED",value:"SOLVED"}]}};return{automations:a,properties:d,channels:b,operators:c}}),angular.module("xCallyShuttleApp").service("desk_com",function(){var a=[{id:"priority",label:"Priority",custom:!1,data:{choices:[1,2,3,4,5,6,7,8,9,10]}},{id:"status",label:"Status",custom:!1,data:{choices:["new","open","pending","resolved","closed"]}},{id:"type",label:"Type",custom:!1,data:{choices:["chat","twitter","email","qna","facebook","phone"]}}];return{fields:a}}),angular.module("xCallyShuttleApp").controller("FooterController",["$scope","$http",function(a,b){a.$on("$includeContentLoaded",function(){Layout.initFooter()}),a.initFooter=function(){b.get("/api/settings/info").success(function(b){a.info=b}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("HeaderController",["$scope","$rootScope","$location","$state","$http","$notification","Auth","xAlert","socket","ngAudio","settings","toastr","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.toggleQuickSidebar=function(){k.layout.pageQuickSidebarOpened=!k.layout.pageQuickSidebarOpened,k.layout.pageQuickSidebarOpened||m.remove("chatRoomId")},a.initHeader=function(){var c=j.load("api/xchatty/assets?resource=notification/xc_blubb.mp3"),d={};"agent"===g.getCurrentUser().role&&(i.socket.on("report_mail:save",function(a){c.play();var b=f("MAIL CHANNEL",{icon:"assets/images/media/channels/mail64.png",body:"NEW Incoming Mail Message!",delay:1e3*a.timeslot});b.$on("click",function(){e.put("/api/report/mails/"+a.id,{connect:!0}).success(function(){b.close(),h.show("Mail properly assigned","success")}).error(function(a){h.show(a.message,"danger")})})}),i.socket.on("report_chat:save",function(a){d[a.uniqueid]&&(d[a.uniqueid].close(),delete d[a.uniqueid]),c.play(),d[a.uniqueid]=f("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Chat Visitor!",delay:1e3*a.timeslot}),d[a.uniqueid].$on("click",function(){e.put("/api/report/chats/"+a.id,{connect:!0}).success(function(){d[a.uniqueid].close(),h.show("Chat properly assigned","success"),b.$broadcast("chatMessageEvent",{type:"external",chatRoomId:a.chatroomid})}).error(function(a){"SequelizeUniqueConstraintError"===a.name?h.show("Chat has been already assigned!","danger"):h.show(a.message,"danger")})})}),i.socket.on("chat_message:save",function(a){var d=m.get("chatRoomId");if(!d||d!==a.ChatRoomId){c.play();var e=f(a.User.fullname,{icon:"assets/images/media/channels/chat64.png",body:a.body.length>35?a.body.substring(0,35)+"...":a.body,delay:1e4});e.$on("click",function(){b.$broadcast("chatMessageEvent",{chatRoomId:a.ChatRoomId})})}}),i.socket.on("user_has_chat_room:save",function(a){c.play();var d=f("Chat Group ",{icon:"assets/images/media/channels/chat64.png",body:"New Chat Group",delay:1e4});d.$on("click",function(){b.$broadcast("chatGroupEvent",a)})})),e({url:"/api/fax/user_has_queues",method:"GET",params:{UserId:g.getCurrentUser().id}}).success(function(b){a.faxQueues=_.pluck(b,"FaxQueueId"),a.faxQueues.forEach(function(a){i.socket.on("FAX:QUEUE:"+a,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})})}),i.socket.on("FAX:AGENT:"+g.getCurrentUser().id,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){b(g.getCurrentUser().id),l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})})}).error(function(a){console.error(a)}),i.socket.on("user_has_fax_queue:save",function(b){b=_.map(b,function(a){return a.UserId=parseInt(a.UserId,10),a}),b=_.find(b,{UserId:g.getCurrentUser().id}),b&&-1===_.indexOf(a.faxQueues,b.FaxQueueId)&&(a.faxQueues.push(b.FaxQueueId),i.socket.on("FAX:QUEUE:"+b.FaxQueueId,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){b(g.getCurrentUser().id),l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})}))}),i.socket.on("user_has_fax_queue:remove",function(b){_.indexOf(b.where.UserId,g.getCurrentUser().id.toString())>=0&&_.indexOf(a.faxQueues,b.where.FaxQueueId)>=0&&(a.faxQueues=_.remove(a.faxQueues,b.where.FaxQueueId),i.socket.removeAllListeners("FAX:QUEUE:"+b.where.FaxQueueId))})},a.logout=function(){e.get("/auth/local/logout").success(function(){g.logout(),c.path("/login")}).error(function(a){console.error(a)})},a.isActive=function(a){return a===c.path()}}]),angular.module("xCallyShuttleApp").service("interval",function(){
-var a={months:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"jan",name:"APPLICATION_JANUARY"},{value:"feb",name:"APPLICATION_FEBRUARY"},{value:"mar",name:"APPLICATION_MARCH"},{value:"apr",name:"APPLICATION_APRIL"},{value:"may",name:"APPLICATION_MAY"},{value:"jun",name:"APPLICATION_JUNE"},{value:"jul",name:"APPLICATION_JULY"},{value:"aug",name:"APPLICATION_AUGUST"},{value:"sep",name:"APPLICATION_SEPTEMBER"},{value:"oct",name:"APPLICATION_OCTOBER"},{value:"nov",name:"APPLICATION_NOVEMBER"},{value:"dec",name:"APPLICATION_DECEMBER"}],daysOfWeek:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"mon",name:"APPLICATION_MONDAY"},{value:"tue",name:"APPLICATION_TUESDAY"},{value:"wed",name:"APPLICATION_WEDNESDAY"},{value:"thu",name:"APPLICATION_THURSDAY"},{value:"fri",name:"APPLICATION_FRIDAY"},{value:"sat",name:"APPLICATION_SATURDAY"},{value:"sun",name:"APPLICATION_SUNDAY"}],daysOfMonth:["always",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]};return{interval:a}}),angular.module("xCallyShuttleApp").factory("Modal",["$rootScope","$uibModal",function(a,b){function c(c,d){console.log("openModal",d);var e=a.$new();return c=c||{},d=d||"modal-default",angular.extend(e,c),b.open({templateUrl:"components/modal/delete.html",windowClass:d,scope:e})}return{confirm:{"delete":function(a){return a=a||angular.noop,function(){console.log(Array.prototype.slice.call(arguments));var b,d=Array.prototype.slice.call(arguments),e=d.shift();b=c({modal:{dismissable:!0,title:"Confirm Delete",html:"<p>Are you sure you want to delete"+(e?"<strong> "+e+"</strong>":" selected items")+"?</p>",buttons:[{classes:"btn red",text:"Delete",click:function(a){b.close(a)}},{classes:"btn default",text:"Cancel",click:function(a){b.dismiss(a)}}]}},"over-topbar center"),b.result.then(function(b){a.apply(b,d)})}}}}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarControllerAddModal",["$scope","$uibModalInstance","Agent","items",function(a,b,c,d){a.items=d,a.agents=c.get(function(b){a.agents=b,a.items.forEach(function(b){_.remove(a.agents.rows,{id:b.id})})}),a.selected={items:[]},a.modal={title:"APPLICATION_AGENTS_SELECTION"},a.ok=function(){b.close(_.union(_.pluck(a.selected.items,"id"),_.pluck(a.items,"id")))},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarControllerCloseModal",["$scope","$uibModalInstance",function(a,b){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_CHAT"},a.ok=function(){b.close()},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarController",["$scope","$rootScope","$window","$http","$uibModal","$log","$timeout","$interval","Auth","Agent","User","ChatRoom","ChatMessage","socket","settings","localStorageService","xAlert","$translate","QuickSidebarFactory",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a.emojiMessage={},a.options=s.options,a.message={body:"",user:""};var t=a.currentUser=i.getCurrentUser();a.$on("$includeContentLoaded",function(){p.get("chatRoomId")&&l.get({id:p.get("chatRoomId")},u,v),p.get("currentTab")&&(a.currentTab=p.get("currentTab"))}),a.agents=j.get({page:0,per_page:1e3},function(){n.syncUpdates("agent",a.agents.rows)}),a.users=k.get({page:0,per_page:1e3},function(){n.syncUpdates("user",a.users.rows)}),a.currentTab=0,a.messagesTab=!1,a.chatRooms=l.me(function(b){a.chatRooms=b},function(a){console.error(a)}),n.socket.on("report_chat:assignment",function(a){a.agentid&&l.get({id:a.chatroomid},u,v)}),n.socket.on("chat_room:save",function(b){if(a.chatRoom&&a.chatRoom.id===b.id){_.merge(a.chatRoom,b);var c=_.find(a.chatRooms,{id:b.id});c&&_.merge(c,b)}}),n.socket.on("chat_message:save",function(b){a.chatRoom&&a.chatRoom.id===b.ChatRoomId&&(a.chatRoom.ChatMessages.push(b),angular.element("page-quick-sidebar-chat-user-messages").mCustomScrollbar("scrollTo","last"))}),n.socket.on("user_has_chat_room:save",function(b){var c=_.findIndex(a.chatRooms,{id:b.id});c>=0?a.chatRooms[c]=b:a.chatRooms.push(b)}),b.$on("chatMessageEvent",function(a,b){l.get({id:b.chatRoomId},u,v)}),b.$on("chatGroupEvent",function(b,c){a.currentTab=3,a.messagesTab=!0,o.layout.pageQuickSidebarOpened=!0,a.chatRoom=c}),a.goToTab=function(b){a.currentTab=b,a.messagesTab=!1,a.chatRoom=null,p.set("currentTab",a.currentTab),p.set("messagesTab",a.messagesTab),p.remove("chatRoomId")},a.goToMessage=function(a,b){a?l.users({users:[t.id,a]},u,v):l.get({id:b},u,v)},a.sendMessage=function(){a.message.body.trim().length&&m.save({ChatRoomId:a.chatRoom.id,body:a.message.body},function(){a.message.body=""},function(a){console.error(a)})},a.goBack=function(){a.messagesTab=!1,a.chatRoom=null,p.set("messagesTab",a.messagesTab),p.remove("chatRoomId")},a.closeChatRoom=function(a,b){var c=e.open({animation:!0,size:b,templateUrl:"components/quickSidebar/modal/close.html",controller:"QuickSidebarControllerCloseModal"});c.result.then(function(){l.update({id:a,status:"close"}).$promise.then(function(){q.show(r.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){q.show(a.data.message,"danger")})},function(){f.info("Modal dismissed at: "+new Date)})},a.addAgent=function(b,c){var g=e.open({animation:!0,size:c,templateUrl:"components/quickSidebar/modal/add.html",controller:"QuickSidebarControllerAddModal",resolve:{items:function(){return _.map(a.chatRoom.Users?a.chatRoom.Users:[],function(a){return{id:a.id,fullname:a.fullname}})}}});g.result.then(function(a){d.put("/api/chat/rooms/"+b+"/users",{users:a}).then(function(a){q.show(r.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){q.show(a.data.message,"danger")})},function(){f.info("Modal dismissed at: "+new Date)})};var u=function(b){switch(a.messagesTab=!0,o.layout.pageQuickSidebarOpened=!0,p.set("chatRoomId",b.id),p.set("messagesTab",a.messagesTab),a.chatRoom=b,b.type){case"internal":a.currentTab=0;break;case"external":a.currentTab=2,_.find(a.chatRooms,{id:b.id})||a.chatRooms.push(b)}b.Users.length>2&&(a.currentTab=3),g(function(){angular.element("page-quick-sidebar-chat-user-messages").mCustomScrollbar("scrollTo","last")},1500)},v=function(a){console.error(a)},w=function(){var b=angular.element(c),d=function(){return{h:b.height(),w:b.width()}};a.$watch(d,function(b){a.style={height:b.h-46-46-46+"px"},a.style2={height:b.h-46-46-46-180+"px"}},!0),b.bind("resize",function(){a.$apply()})};w(),a.$on("$destroy",function(){n.unsyncUpdates("agent"),n.unsyncUpdates("user")})}]),angular.module("xCallyShuttleApp").directive("resizeQuickSidebar",["$window",function(a){return function(b){var c=angular.element(a);b.getWindowDimensions=function(){return{h:c.height(),w:c.width()}},b.$watch(b.getWindowDimensions,function(a){b.style={height:a.h-46-46-46+"px"}},!0),c.bind("resize",function(){b.$apply()})}}]),angular.module("xCallyShuttleApp").factory("QuickSidebarFactory",function(){return{options:{link:!0,linkTarget:"_blank",pdf:{embed:!1},image:{embed:!0},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!1,video:{embed:!1,width:null,height:null,ytTheme:"dark",details:!1,ytAuthKey:"_nkO9h1A7HlVyiUICO17oA"}}}}),angular.module("xCallyShuttleApp").filter("QuickSidebarFilterUsersGreaterThan",function(){return function(a,b){var c=[];return a.forEach(function(a){var d=0;a.ChatVisitor&&d++,d+=a.Users.length,d>b&&c.push(a)}),c}}).filter("QuickSidebarFilterUsersLowerThan",function(){return function(a,b){var c=[];return a.forEach(function(a){a.Users.length<b&&c.push(a)}),c}}),angular.module("xCallyShuttleApp").controller("SidebarController",["$scope","$rootScope","$resource","$location","Auth","$http","xAlert","$stateParams","socket",function(a,b,c,d,e,f,g,h,i){a.Auth=e,a.$stateParams=h,a.$on("$includeContentLoaded",function(){Metronic.init(),Layout.initSidebar()}),a.isAssociated=function(a){if(e.isAdmin())return!0;if(e.getCurrentUser().Modules)for(var b=0;b<e.getCurrentUser().Modules.length;b++)if(e.getCurrentUser().Modules[b].name===a)return!0;return!1},a.getSidebarDashboards=function(){f.get("/api/dashboards").then(function(b){a.dashboards=b.data.rows,i.syncUpdates("dashboard",a.dashboards)})["catch"](function(a){g.show("Error loading your dashboards","danger")})},a.getSidebarIntegrations=function(){f.get("/api/integrations").success(function(b){a.integrations=b,i.syncUpdates("integration",a.integrations)}).error(function(a){g.show(a.message,"danger")})},a.isActive=function(a){return a===d.path()},a.$on("destroy",function(){i.unsyncUpdates("dashboard"),i.unsyncUpdates("integration")})}]),angular.module("xCallyShuttleApp").factory("socket",["$rootScope","$window","socketFactory","Auth",function(a,b,c,d){var e=d.getCurrentUser(),f=io("",{query:"token="+d.getToken()+"&userId="+(e.id||d.getUserId())+"&name="+(e.name||d.getName())+"&role="+(e.role||"agent")+"&source=browser",path:"/socket.io-client"}),g=c({ioSocket:f});return a.$on("logout",function(){g&&(g.disconnect(!0),b.location.reload())}),{socket:g,syncUpdates:function(a,b,c){c=c||angular.noop,g.on(a+":save",function(a){var d=_.find(b,{id:a.id}),e=b.indexOf(d),f="created";d?(_.merge(b[e],a),f="updated"):b.unshift(a),c(f,a,b)}),g.on(a+":remove",function(a){var d="deleted";_.remove(b,{id:a.id}),c(d,a,b)})},unsyncUpdates:function(a){g.removeAllListeners(a+":save"),g.removeAllListeners(a+":remove")},syncUpdatesByAttributes:function(a,b,c,d){d=d||angular.noop,g.on(a+":save",function(a){var e=!0;if(_.forIn(b,function(b,c){return a[c]&&a[c]===b?!0:e=!1}),e){var f=_.find(c,{id:a.id}),g=c.indexOf(f),h="created";f?(_.merge(c[g],a),h="updated"):c.unshift(a),d(h,a,c)}}),g.on(a+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},syncMailMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncMailMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")},syncFaxMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncFaxMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")}}}]),angular.module("xCallyShuttleApp").service("triggers",function(){var a={voice:{conditions:[{name:"APPLICATION_QUEUE",value:"queue",propertyField:"select",operators:"equals"},{name:"APPLICATION_CALL_STATUS",value:"lastevent",propertyField:"select",operators:"equals"}],actions:[{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"},{name:"APPLICATION_INTEGRATIONS",value:"integration",propertyField:"select",subField:{propertyField:"select",value:"account",api:{url:void 0,parseUrl:"/api/%s/accounts",query:void 0},subField:{propertyField:"select",value:"configuration",api:{url:void 0,parseUrl:"/api/%s/configurations",query:{field:"AccountId"}}}}}]},mail:{conditions:[{name:"APPLICATION_FROM",value:"from",propertyField:"input",operators:"equals"},{name:"APPLICATION_CC",value:"cc",propertyField:"input",operators:"equals"},{name:"APPLICATION_SUBJECT",value:"subject",propertyField:"input",operators:"equals"}],actions:[{name:"APPLICATION_TEMPLATE",value:"template",propertyField:"select",subField:{propertyField:"select",value:"smtp"}},{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"}]},chat:{conditions:[],actions:[]},fax:{conditions:[],actions:[]}},b={equals:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"}],all:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"},{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}],noequals:[{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}]},c={voice:{lastevent:[{name:"APPLICATION_LASTEVENT_RINGING",value:"called"},{name:"APPLICATION_LASTEVENT_UP",value:"connect"},{name:"APPLICATION_LASTEVENT_COMPLETE",value:"complete"},{name:"APPLICATION_LASTEVENT_REJECTED",value:"rejected"},{name:"APPLICATION_LASTEVENT_ABANDONED",value:"abandoned"}]},mail:{},chat:{},fax:{}},d=["voice","mail","chat","fax"];return{triggers:a,properties:c,operators:b,channels:d}}),function(a,b){angular.module("adf.widget.counter",["adf.provider"]).value("apiServiceUrlCounter","/api/widgets/counter").config(["dashboardProvider",function(a){a.widget("counter",{title:"Counter",description:"Counter for db results",templateUrl:"{widgetsPath}/counter/src/view.html",controller:"apiwidgetCounterViewCtrl",edit:{templateUrl:"{widgetsPath}/counter/src/edit.html",controller:"apiwidgetCounterEditCtrl"}})}]).service("apiServiceCounter",["$q","$http","apiServiceUrlCounter",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiwidgetCounterEditCtrl",["$scope",function(a){a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.colors=[{name:"Blue",value:"blue-madison"},{name:"Red",value:"red-intense"},{name:"Green",value:"green-haze"},{name:"Purple",value:"purple-plum"},{name:"Orange",value:"yellow-casablanca"},{name:"Yellow",value:"yellow-crusta"}],a.config.icons=[{name:"Talk bubbles",value:"fa-comments"},{name:"Bar Chart",value:"fa-bar-chart"},{name:"Shopping Cart",value:"fa-shopping-cart"},{name:"Globe",value:"fa-globe"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE"}]).controller("apiwidgetCounterViewCtrl",["$scope","$interval","apiServiceCounter",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE",a.counterApiCall=function(){a.config.condition&&a.config.report&&c.get(a.config).then(function(b){a.count=parseInt(b[0].count)})},a.counterApiCall();var d=b(function(){a.counterApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.counter").run(["$templateCache",function(a){a.put("{widgetsPath}/counter/src/edit.html","<form role=form><div class=form-group><label class=control-label>{{'APPLICATION_REPORT' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_REPORT' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"report.value as report in config.reportTables | filter: $select.search\"><div ng-bind-html=\"report.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_CONDITION' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder=\"{{'APPLICATION_CONDITION' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_REFRESH_TIMEOUT' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder=\"{{'APPLICATION_REFRESH_TIMEOUT' | translate}}\" min=1></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_COLOR' | translate}}</label><ui-select data-ng-model=config.color name=color theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_COLOR' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"color.value as color in config.colors | filter: $select.search\"><div ng-bind-html=\"color.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_ICON' | translate}}</label><ui-select data-ng-model=config.icon name=icon theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_ICON' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"icon.value as icon in config.icons | filter: $select.search\"><div ng-bind-html=\"icon.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_DETAILS' | translate}}</label> <input type=text class=form-control id=details ng-model=config.details maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_DETAILS' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK' | translate}}</label> <input type=text class=form-control id=link ng-model=config.link placeholder=http://yourlink></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}</label> <input type=text class=form-control id=linkText ng-model=config.linkText maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}\"></div></form>"),a.put("{widgetsPath}/counter/src/view.html",'<div class=dashboard-stat ng-class=config.color ng-if="count || count === 0"><div class=visual><i class=fa ng-class=config.icon></i></div><div class=details><div class=number>{{count}}</div><div class=desc>{{config.details}}</div></div><a class=more href={{config.link}}>{{config.linkText}} <i class="m-icon-swapright m-icon-white"></i></a></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if="!count && count != 0"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.pie-chart",["adf.provider"]).value("apiServiceUrlPieChart","/api/widgets/piechart").config(["dashboardProvider",function(a){a.widget("pie-chart",{title:"Pie-Chart",description:"Display a pie-chart starting from DB values",templateUrl:"{widgetsPath}/pie-chart/src/view.html",controller:"apiWidgetPieChartViewCtrl",edit:{templateUrl:"{widgetsPath}/pie-chart/src/edit.html",controller:"apiWidgetPieChartEditCtrl"}})}]).service("apiServicePieChart",["$q","$http","apiServiceUrlPieChart",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetPieChartEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetPieChartViewCtrl",["$scope","$interval","apiServicePieChart",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.pieChartApiCall=function(){a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){if(b&&1===b.length){a.labels=[],a.data=[];for(var c in b[0])a.labels.push(c),a.data.push(b[0][c])}else a.labels=[],a.data=[]})},a.pieChartApiCall();var d=b(function(){a.pieChartApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.pie-chart").run(["$templateCache",function(a){a.put("{widgetsPath}/pie-chart/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_FIELDS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div></form>'),a.put("{widgetsPath}/pie-chart/src/view.html",'<div ng-if=labels.length ng-style=config.style><canvas id=doughnut class="chart chart-doughnut" chart-data=data chart-labels=labels legend=true></canvas></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_METRIC_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.table",["adf.provider"]).value("apiServiceUrlTable","/api/widgets/table").config(["dashboardProvider",function(a){a.widget("table",{title:"Table",description:"Show tabbed results from db",templateUrl:"{widgetsPath}/table/src/view.html",controller:"apiWidgetTableViewCtrl",edit:{templateUrl:"{widgetsPath}/table/src/edit.html",controller:"apiWidgetTableEditCtrl"}})}]).service("apiServiceTable",["$q","$http","apiServiceUrlTable",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetTableEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetTableViewCtrl",["$scope","$interval","apiServiceTable",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.style={"max-height":a.config.height+"px",overflow:"scroll"},a.tableApiCall=function(){a.config.condition&&a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){a.results=b})},a.tableApiCall();var d=b(function(){a.tableApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.table").run(["$templateCache",function(a){a.put("{widgetsPath}/table/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_METRICS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div><div class=form-group><label for=condition>{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}</label> <input type=number class=form-control id=height ng-model=config.height placeholder="{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}" min=350></div></form>'),a.put("{widgetsPath}/table/src/view.html",'<div ng-if=results ng-style=config.style><table st-table=results class="table table-striped table-bordered table-hover"><div class=table-responsive><thead><tr><th colspan={{config.fields.length}}><div class=row><div class=col-md-6></div><div class=col-md-6><div class="input-group input-medium pull-right"><input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class=form-control type=search> <span class=input-group-addon><i class="fa fa-search"></i></span></div></div></div></th></tr><tr><th ng-repeat="field in config.fields">{{field.alias}}</th></tr></thead><tbody><tr data-ng-repeat="result in results" class=animate-repeat><td ng-repeat="field in config.fields">{{result[field.alias]}}</td></tr><tr data-ng-hide=results.length><td colspan={{config.fields.length}} style=text-align:center;><i>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</i></td></tr></tbody><tfoot><tr><td colspan={{config.fields.length}} class=text-center><div st-pagination class=pagination st-items-by-page=10 st-displayed-pages=3></div></td></tr></tfoot></div></table></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_FIELD_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(){angular.module("pdf",[]).directive("ngPdf",["$window",function(a){return{restrict:"E",templateUrl:function(a,b){return b.templateUrl?b.templateUrl:"partials/viewer.html"},link:function(b,c,d){var e=d.pdfUrl,f=null,g=d.page?d.page:1,h=d.scale>0?d.scale:1,i=c.find("canvas"),j=i[0],k=j.getContext("2d"),l=angular.element(a);l.on("scroll",function(){b.$apply(function(){b.scroll=l[0].scrollY})}),PDFJS.disableWorker=!0,b.pageNum=g,b.renderPage=function(a){f.getPage(a).then(function(a){var e,f,g,i={};"page-fit"!==d.scale||h?e=a.getViewport(h):(e=a.getViewport(1),f=c[0].clientWidth/e.width,g=c[0].clientHeight/e.height,h=Math.min(f,g)),j.height=e.height,j.width=e.width,i={canvasContext:k,viewport:e},a.render(i).promise.then(function(){"function"==typeof b.onPageRender&&b.onPageRender()})})},b.goPrevious=function(){b.pageToDisplay<=1||(b.pageNum=parseInt(b.pageNum)-1)},b.goNext=function(){b.pageToDisplay>=f.numPages||(b.pageNum=parseInt(b.pageNum)+1)},b.zoomIn=function(){return h=parseFloat(h)+.2,b.renderPage(b.pageToDisplay),h},b.zoomOut=function(){return h=parseFloat(h)-.2,b.renderPage(b.pageToDisplay),h},b.changePage=function(){b.renderPage(b.pageToDisplay)},b.rotate=function(){"rotate0"===j.getAttribute("class")?j.setAttribute("class","rotate90"):"rotate90"===j.getAttribute("class")?j.setAttribute("class","rotate180"):"rotate180"===j.getAttribute("class")?j.setAttribute("class","rotate270"):j.setAttribute("class","rotate0")},PDFJS.getDocument(e,null,null,b.onProgress).then(function(a){"function"==typeof b.onLoad&&b.onLoad(),f=a,b.renderPage(b.pageToDisplay),b.$apply(function(){b.pageCount=a.numPages})},function(a){a&&"function"==typeof b.onError&&b.onError(a)}),b.$watch("pageNum",function(a){b.pageToDisplay=parseInt(a),null!==f&&b.renderPage(b.pageToDisplay)})}}}])}();var Metronic=function(){var a,b=!1,c=!1,d=!1,e=!1,f=[],g="assets/",h="img/",i="plugins/",j="css/",k={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},l=function(){"rtl"===$("body").css("direction")&&(b=!0),c=!!navigator.userAgent.match(/MSIE 8.0/),d=!!navigator.userAgent.match(/MSIE 9.0/),e=!!navigator.userAgent.match(/MSIE 10.0/),e&&$("html").addClass("ie10"),(e||d||c)&&$("html").addClass("ie")},m=function(){for(var a=0;a<f.length;a++){var b=f[a];b.call()}},n=function(){var a;if(c){var b;$(window).resize(function(){b!=document.documentElement.clientHeight&&(a&&clearTimeout(a),a=setTimeout(function(){m()},50),b=document.documentElement.clientHeight)})}else $(window).resize(function(){a&&clearTimeout(a),a=setTimeout(function(){m()},50)})},o=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(a){a.preventDefault();var b=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),
-b.find(".portlet-title .fullscreen").tooltip("destroy"),b.find(".portlet-title > .tools > .reload").tooltip("destroy"),b.find(".portlet-title > .tools > .remove").tooltip("destroy"),b.find(".portlet-title > .tools > .config").tooltip("destroy"),b.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),b.remove()}),$("body").on("click",".portlet > .portlet-title .fullscreen",function(a){a.preventDefault();var b=$(this).closest(".portlet");if(b.hasClass("portlet-fullscreen"))$(this).removeClass("on"),b.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height","auto");else{var c=Metronic.getViewPort().height-b.children(".portlet-title").outerHeight()-parseInt(b.children(".portlet-body").css("padding-top"))-parseInt(b.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),b.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height",c)}}),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(a){a.preventDefault();var b=$(this).closest(".portlet").children(".portlet-body"),c=$(this).attr("data-url"),d=$(this).attr("data-error-display");c?(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:c,dataType:"html",success:function(a){Metronic.unblockUI(b),b.html(a)},error:function(a,c,e){Metronic.unblockUI(b);var f="Error on reloading the content. Please check your connection and try again.";"toastr"==d&&toastr?toastr.error(f):"notific8"==d&&$.notific8?($.notific8("zindex",11500),$.notific8(f,{theme:"ruby",life:3e3})):alert(f)}})):(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),window.setTimeout(function(){Metronic.unblockUI(b)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(a){a.preventDefault()})},p=function(){if($().uniform){var a=$("input[type=checkbox]:not(.toggle, .make-switch, .icheck), input[type=radio]:not(.toggle, .star, .make-switch, .icheck)");a.size()>0&&a.each(function(){0===$(this).parents(".checker").size()&&$(this).show()})}},q=function(){$().iCheck&&$(".icheck").each(function(){var a=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",b=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";a.indexOf("_line")>-1||b.indexOf("_line")>-1?$(this).iCheck({checkboxClass:a,radioClass:b,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:a,radioClass:b})})},r=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},s=function(){$().confirmation&&$("[data-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn-xs btn-success",btnCancelClass:"btn-xs btn-danger"})},t=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",function(a){Metronic.scrollTo($(a.target))})},u=function(){if(location.hash){var a=location.hash.substr(1);$('a[href="#'+a+'"]').parents(".tab-pane:hidden").each(function(){var a=$(this).attr("id");$('a[href="#'+a+'"]').click()}),$('a[href="#'+a+'"]').click()}},v=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&$("html").hasClass("modal-open")===!1?$("html").addClass("modal-open"):$(".modal:visible").size()<=1&&$("html").removeClass("modal-open")}),$("body").on("show.bs.modal",".modal",function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")}),$("body").on("hide.bs.modal",".modal",function(){$("body").removeClass("modal-open-noscroll")}),$("body").on("hidden.bs.modal",".modal:not(.modal-cached)",function(){$(this).removeData("bs.modal")})},w=function(){$(".tooltips").tooltip(),$(".portlet > .portlet-title .fullscreen").tooltip({container:"body",title:"Fullscreen"}),$(".portlet > .portlet-title > .tools > .reload").tooltip({container:"body",title:"Reload"}),$(".portlet > .portlet-title > .tools > .remove").tooltip({container:"body",title:"Remove"}),$(".portlet > .portlet-title > .tools > .config").tooltip({container:"body",title:"Settings"}),$(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({container:"body",title:"Collapse/Expand"})},x=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(a){a.stopPropagation()})},y=function(){$("body").on("click",'[data-close="alert"]',function(a){$(this).parent(".alert").hide(),$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-close="note"]',function(a){$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-remove="note"]',function(a){$(this).closest(".note").remove(),a.preventDefault()})},z=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})},A=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(b){a&&a.popover("hide")})},B=function(){Metronic.initSlimScroll(".scroller")},C=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},D=function(){(c||d)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var a=$(this);""===a.val()&&""!==a.attr("placeholder")&&a.addClass("placeholder").val(a.attr("placeholder")),a.focus(function(){a.val()==a.attr("placeholder")&&a.val("")}),a.blur(function(){(""===a.val()||a.val()==a.attr("placeholder"))&&a.val(a.attr("placeholder"))})})},E=function(){$().select2&&$(".select2me").select2({placeholder:"Select"})};return{init:function(){l(),n(),p(),q(),r(),B(),C(),E(),o(),y(),x(),u(),w(),A(),t(),v(),s(),D()},initAjax:function(){p(),q(),r(),z(),B(),E(),C(),x(),w(),A(),t(),s()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(b){a=b},addResizeHandler:function(a){f.push(a)},runResizeHandlers:function(){m()},scrollTo:function(a,b){var c=a&&a.size()>0?a.offset().top:0;a&&($("body").hasClass("page-header-fixed")&&(c-=$(".page-header").height()),c+=b?b:-1*a.height()),$("html,body").animate({scrollTop:c},"slow")},initSlimScroll:function(a){$(a).each(function(){if(!$(this).attr("data-initialized")){var a;a=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:b?"left":"right",height:a,alwaysVisible:"1"==$(this).attr("data-always-visible")?!0:!1,railVisible:"1"==$(this).attr("data-rail-visible")?!0:!1,disableFadeOut:!0}),$(this).attr("data-initialized","1")}})},destroySlimScroll:function(a){$(a).each(function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var a={};$(this).attr("data-handle-color")&&(a["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(a["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(a["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(a["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(a["data-rail-visible"]=$(this).attr("data-rail-visible")),$(this).slimScroll({wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",destroy:!0});var b=$(this);$.each(a,function(a,c){b.attr(a,c)})}})},scrollTop:function(){Metronic.scrollTo()},blockUI:function(a){a=$.extend(!0,{},a);var b="";if(b=a.animate?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':a.iconOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""></div>':a.textOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><span> '+(a.message?a.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""><span> '+(a.message?a.message:"LOADING...")+"</span></div>",a.target){var c=$(a.target);c.height()<=$(window).height()&&(a.cenrerY=!0),c.block({message:b,baseZ:a.zIndex?a.zIndex:1e3,centerY:void 0!==a.cenrerY?a.cenrerY:!1,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:b,baseZ:a.zIndex?a.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(a){a?$(a).unblock({onUnblock:function(){$(a).css("position",""),$(a).css("zoom","")}}):$.unblockUI()},startPageLoading:function(a){a&&a.animate?($(".page-spinner-bar").remove(),$("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')):($(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif"/> <span>'+(a&&a.message?a.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(a){a=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},a);var b=Metronic.getUniqueID("Metronic_alert"),c='<div id="'+b+'" class="Metronic-alerts alert alert-'+a.type+' fade in">'+(a.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!==a.icon?'<i class="fa-lg fa fa-'+a.icon+'"></i> ':"")+a.message+"</div>";return a.reset&&$(".Metronic-alerts").remove(),a.container?"append"==a.place?$(a.container).append(c):$(a.container).prepend(c):$("body").hasClass("page-container-bg-solid")?$(".page-title").after(c):$(".page-bar").size()>0?$(".page-bar").after(c):$(".page-breadcrumb").after(c),a.focus&&Metronic.scrollTo($("#"+b)),a.closeInSeconds>0&&setTimeout(function(){$("#"+b).remove()},1e3*a.closeInSeconds),b},initUniform:function(a){a?$(a).each(function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):p()},updateUniform:function(a){$.uniform.update(a)},initFancybox:function(){C()},getActualVal:function(a){return a=$(a),a.val()===a.attr("placeholder")?"":a.val()},getURLParameter:function(a){var b,c,d=window.location.search.substring(1),e=d.split("&");for(b=0;b<e.length;b++)if(c=e[b].split("="),c[0]==a)return unescape(c[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},getViewPort:function(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}},getUniqueID:function(a){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return c},isIE9:function(){return d},isRTL:function(){return b},isAngularJsApp:function(){return"undefined"==typeof angular?!1:!0},getAssetsPath:function(){return g},setAssetsPath:function(a){g=a},setGlobalImgPath:function(a){h=a},getGlobalImgPath:function(){return g+h},setGlobalPluginsPath:function(a){i=a},getGlobalPluginsPath:function(){return g+i},getGlobalCssPath:function(){return g+j},getBrandColor:function(a){return k[a]?k[a]:""},getResponsiveBreakpoint:function(a){var b={xs:480,sm:768,md:900,lg:1200};return b[a]?b[a]:0}}}(),Layout=function(){var a="img/",b="css/",c=Metronic.getResponsiveBreakpoint("md"),d=function(){var a,b=$(".page-content"),d=$(".page-sidebar"),e=$("body");if(e.hasClass("page-footer-fixed")===!0&&e.hasClass("page-sidebar-fixed")===!1){var f=Metronic.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();b.height()<f&&b.attr("style","min-height:"+f+"px")}else{if(e.hasClass("page-sidebar-fixed"))a=g(),e.hasClass("page-footer-fixed")===!1&&(a-=$(".page-footer").outerHeight());else{var h=$(".page-header").outerHeight(),i=$(".page-footer").outerHeight();a=Metronic.getViewPort().width<c?Metronic.getViewPort().height-h-i:d.height()+20,a+h+i<=Metronic.getViewPort().height&&(a=Metronic.getViewPort().height-h-i)}b.attr("style","min-height:"+a+"px")}},e=function(a,b){var d=location.hash.toLowerCase(),e=$(".page-sidebar-menu");if("click"===a||"set"===a?b=$(b):"match"===a&&e.find("li > a").each(function(){var a=$(this).attr("href").toLowerCase();return a.length>1&&d.substr(1,a.length-1)==a.substr(1)?void(b=$(this)):void 0}),b&&0!=b.size()&&"javascript:;"!==b.attr("href").toLowerCase()&&"#"!==b.attr("href").toLowerCase()){parseInt(e.data("slide-speed")),e.data("keep-expanded");e.find("li.active").removeClass("active"),e.find("li > a > .selected").remove(),e.hasClass("page-sidebar-menu-hover-submenu")===!1?e.find("li.open").each(function(){0===$(this).children(".sub-menu").size()&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))}):e.find("li.open").removeClass("open"),b.parents("li").each(function(){$(this).addClass("active"),$(this).find("> a > span.arrow").addClass("open"),1===$(this).parent("ul.page-sidebar-menu").size()&&$(this).find("> a").append('<span class="selected"></span>'),1===$(this).children("ul.sub-menu").size()&&$(this).addClass("open")}),"click"===a&&Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},f=function(){jQuery(".page-sidebar").on("click","li > a",function(a){var b=$(this).next().hasClass("sub-menu");if(!(Metronic.getViewPort().width>=c&&1===$(this).parents(".page-sidebar-menu-hover-submenu").size())){if(b===!1)return void(Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click());if(!$(this).next().hasClass("sub-menu always-open")){var e=$(this).parent().parent(),f=$(this),g=$(".page-sidebar-menu"),h=jQuery(this).next(),i=g.data("auto-scroll"),j=parseInt(g.data("slide-speed")),k=g.data("keep-expanded");k!==!0&&(e.children("li.open").children("a").children(".arrow").removeClass("open"),e.children("li.open").children(".sub-menu:not(.always-open)").slideUp(j),e.children("li.open").removeClass("open"));var l=-200;h.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),h.slideUp(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})):b&&(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),h.slideDown(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})),a.preventDefault()}}}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=jQuery(".page-sidebar ul"),e=($(".page-content"),$(".page-content .page-content-body"));d.children("li.active").removeClass("active"),d.children("arrow.open").removeClass("open"),$(this).parents("li").each(function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")}),$(this).parents("li").addClass("active"),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),Metronic.startPageLoading();var f=$(this);$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){0===f.parents("li.open").size()&&$(".page-sidebar-menu > li.open > a").click(),Metronic.stopPageLoading(),e.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){Metronic.stopPageLoading(),e.html("<h4>Could not load the requested content.</h4>")}})}),jQuery(".page-content").on("click",".ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=($(".page-content"),$(".page-content .page-content-body"));Metronic.startPageLoading(),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){Metronic.stopPageLoading(),d.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){d.html("<h4>Could not load the requested content.</h4>"),Metronic.stopPageLoading()}})}),i(),$(".page-sidebar").on("click",".sidebar-search .remove",function(a){a.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(a){return 13==a.which?($(".sidebar-search").submit(),!1):void 0}),0!==$(".sidebar-search").size()&&($(".sidebar-search .input-group").on("click",function(a){a.stopPropagation()}),$("body").on("click",function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")}))},g=function(){var a=Metronic.getViewPort().height-$(".page-header").outerHeight();return $("body").hasClass("page-footer-fixed")&&(a-=$(".page-footer").outerHeight()),a},h=function(){var a=$(".page-sidebar-menu");return Metronic.destroySlimScroll(a),0===$(".page-sidebar-fixed").size()?void d():void(Metronic.getViewPort().width>=c&&(a.attr("data-height",g()),Metronic.initSlimScroll(a),d()))},i=function(){var a=$("body");a.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")}).on("mouseleave",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")})},j=function(){var a=$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&Metronic.getViewPort().width>=c?($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")):$.cookie&&$.cookie("sidebar_closed","0"),$("body").on("click",".sidebar-toggler",function(b){var c=$(".page-sidebar"),d=$(".page-sidebar-menu");$(".sidebar-search",c).removeClass("open"),a.hasClass("page-sidebar-closed")?(a.removeClass("page-sidebar-closed"),d.removeClass("page-sidebar-menu-closed"),$.cookie&&$.cookie("sidebar_closed","0")):(a.addClass("page-sidebar-closed"),d.addClass("page-sidebar-menu-closed"),a.hasClass("page-sidebar-fixed")&&d.trigger("mouseleave"),$.cookie&&$.cookie("sidebar_closed","1")),$(window).trigger("resize")})},k=function(){$(".page-header").on("click",'.hor-menu a[data-toggle="tab"]',function(a){a.preventDefault();var b=$(".hor-menu .nav"),c=b.find("li.current");$("li.active",c).removeClass("active"),$(".selected",c).remove();var d=$(this).parents("li").last();d.addClass("current"),d.find("a:first").append('<span class="selected"></span>')}),$(".page-header").on("click",".search-form",function(a){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",function(a){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")})}),$(".page-header").on("keypress",".hor-menu .search-form .form-control",function(a){return 13==a.which?($(this).closest(".search-form").submit(),!1):void 0}),$(".page-header").on("mousedown",".search-form.open .submit",function(a){a.preventDefault(),a.stopPropagation(),$(this).closest(".search-form").submit()}),$('[data-hover="megamenu-dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")}),$(document).on("click",".mega-menu-dropdown .dropdown-menu",function(a){a.stopPropagation()})},l=function(){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(){d()})},m=function(){var a=300,b=500;navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",function(c){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}):$(window).scroll(function(){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}),$(".scroll-to-top").click(function(a){return a.preventDefault(),$("html, body").animate({scrollTop:0},b),!1})},n=function(){var a,b=$(".full-height-content");if(a=Metronic.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),b.hasClass("portlet")){var d=b.find(".portlet-body");if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(d.find(".full-height-content-body"));a=a-b.find(".portlet-title").outerHeight(!0)-parseInt(b.find(".portlet-body").css("padding-top"))-parseInt(b.find(".portlet-body").css("padding-bottom"))-2,b.hasClass("full-height-content-scrollable")?(a-=35,d.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(d.find(".full-height-content-body"))):d.css("min-height",a)}else{if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(b.find(".full-height-content-body"));b.hasClass("full-height-content-scrollable")?(a-=35,b.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(b.find(".full-height-content-body"))):b.css("min-height",a)}};return{initHeader:function(){k()},setSidebarMenuActiveLink:function(a,b){e(a,b)},initSidebar:function(){h(),f(),j(),Metronic.isAngularJsApp()&&e("match"),Metronic.addResizeHandler(h)},initContent:function(){n(),l(),Metronic.addResizeHandler(d),Metronic.addResizeHandler(n)},initFooter:function(){m()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){d()},initFixedSidebarHoverEffect:function(){i()},initFixedSidebar:function(){h()},getLayoutImgPath:function(){return Metronic.getAssetsPath()+a},getLayoutCssPath:function(){return Metronic.getAssetsPath()+b}}}();angular.module("xCallyShuttleApp").run(["$templateCache",function(a){a.put("app/agent/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-people font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="agents.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AGENT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/agents/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAgents([\'name\', \'fullname\', \'email\'])" csv-header="[\'Username\', \'Fullname\', \'Email\']" field-separator=";" filename="agents.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedAgents" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="agent in displayedAgents" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="agents.checked" checklist-value="agent.id"></td>\n <td>{{agent.fullname}}</td>\n <td>{{agent.name}}</td>\n <td><a data-ng-href="mailto:{{agent.email}}">{{agent.email}}</a></td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/agents/view/{{agent.id}}/account">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(agent.fullname,agent.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedAgents.length">\n <td colspan="5" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/agent/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="agent.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="agent.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="agent.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.internal" required disabled/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}" id="tab_1_3">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.reNewPwd" nx-equal="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
-a.put("app/agent/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{agent.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.agents.view.account\')}">\n <a data-ng-href="/agents/view/{{agent.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/agent/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" required ng-remote-validate="/api/agents/validate/name"/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required ng-remote-validate="/api/agents/validate/email"/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_EMAIL\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled" ng-remote-validate="/api/agents/validate/internal"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START ACCOUNTCODE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNTCODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="accountcode" placeholder="{{\'APPLICATION_ACCOUNTCODE\' | translate}}" class="form-control" data-ng-model="item.accountcode" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END ACCOUNTCODE -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START HOST -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END HOST -->\n\n <!-- START NAT -->\n <!-- <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n <ui-select multiple ng-model="item.nat" name="nat" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n {{nat}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n </span>\n </div> -->\n\n <!-- END NAT -->\n\n <!-- START TYPE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TYPE -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/analytic/metric/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.metric.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/metric/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calculator"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Metrics.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_METRIC\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMetrics([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="metrics.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMetrics" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.metricsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="metricByPage in metricsByPage | filter: $select.search">\n <div ng-bind-html="metricByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(metric, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="metric in displayedMetrics" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="metric.defaultEntry" type="checkbox" checklist-model="Metrics.checked" checklist-value="metric.id"></td>\n <td>{{metric.name}}</td>\n <td>{{metric.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/analytics/metrics/view/{{metric.id}}/settings" data-ng-class="{\'disabled\': metric.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(metric.name,metric.id)" data-ng-class="{\'disabled\': metric.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMetrics.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_METRICS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.metricsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMetric()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n <i data-ng-show="metric" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="metric">\n <a href="#">{{metric.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/metric.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{metric.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.analytics.metrics.view.settings\')}">\n <a data-ng-href="/analytics/metrics/view/{{metric.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_METRIC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMetric()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="metric.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="metric.metric" required/></textarea>\n <span data-ng-show="(forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/analytic/report/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TAG\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.tag" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.tag.name.$touched || forms.tag.$submitted) && forms.tag.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.tag.name.$touched || forms.tag.$submitted) && forms.tag.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.tag.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrees()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <div class="col-fixed">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FOLDERS\' | translate }} </span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small">\n <div class="input-icon right">\n <i class="icon-magnifier"></i>\n <input type="text" data-ng-model="searchField" data-ng-change="searchTrees()" class="form-control input-circle" placeholder="search...">\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="defaultTreeConfig" ng-model="defaultTreeData" should-apply="ac()" tree="defaultTreeInstance" tree-events="ready:initDefaultScopeTree;select_node:selectDefaultNode;"></div>\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;select_node:selectCustomNode;rename_node:updateCustomTree;delete_node:updateCustomTree;move_node:updateCustomTree;create_node:updateCustomTree;"></div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="row tree-row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}<span data-ng-if="selectedNode"> - {{selectedNode}}</span></span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table data-ng-if="defaultTreeReady && customTreeReady" st-table="displayedReports" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.reportsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="reportByPage in reportsByPage | filter: $select.search">\n <div ng-bind-html="reportByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(report, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="report in displayedReports" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="report.defaultEntry" type="checkbox" checklist-model="Reports.checked" checklist-value="report.id"></td>\n <td>{{report.name}}</td>\n <td>{{report.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/analytics/reports/view/{{report.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(report.name,report.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedReports.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_REPORTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.reportsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/analytic/report/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getPage()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <!-- <div class="btn-group" data-ng-show="trunks.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div> -->\n <div class="btn-group">\n <a class="btn green-jungle " href="/analytics/reports/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_REPORT\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTrunks([\'name\', \'host\', \'context\', \'description\'])" csv-header="[\'Name\', \'Host\', \'Context\', \'Description\']" field-separator=";" filename="trunks.csv"> -->\n <!-- <i class="icon-cloud-download"></i></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-grouping class="grid"></div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_NEW_REPORT\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_REPORT\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && createItem()" novalidate>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/automation/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Automations.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/automations/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAutomations([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="automations.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedAutomations" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.AutomationsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="AutomationByPage in AutomationsByPage | filter: $select.search">\n <div ng-bind-html="AutomationByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <!-- <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th> -->\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(Automation, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="channel">{{ \'APPLICATION_CHANNEL\' | translate }}</th>\n <th>{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="Automation in displayedAutomations">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Automations.checked" checklist-value="Automation.id"></td>\n <td>{{Automation.name}}</td>\n <td>{{Automation.description}}</td>\n <td>{{Automation.channel | capitalize}}</td>\n <td>\n <input\n data-ng-change="updateItem(Automation.id, Automation.status)",\n bs-switch\n ng-model="Automation.status"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ onText }}"\n switch-off-text="{{ offText }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/automations/view/{{Automation.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(Automation.name, Automation.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedAutomations.length">\n <td colspan="6" class="text-center">\n <i>No available automations</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="channel" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CHANNEL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.AutomationsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/automation/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="automation"></i>\n </li>\n <li data-ng-show="automation">\n <a href="#">{{ automation.description || automation.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ automation.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ automation.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.automations.view.settings\')}">\n <a href="/automations/view/{{automation.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/automation/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateAutomation()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$automations.operators" properties="properties[automation.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[automation.channel]"></query-builder>\n </div>\n </div>\n\n <input class="btn green-haze" type="button" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-click="updateAutomation()"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/automation/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <!-- <pre>\n {{item | json}}\n </pre>\n <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" data-ng-submit="submit()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.name.$touched && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.name.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(conditionsData.query.length && actionsData.query.length)">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" >\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $automations.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$automations.operators" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/preview/preview.html",'<style>\n .xc_footer\n {\n text-align: center;\n padding-bottom: 5px;\n }\n\n .xc_powered\n {\n color: grey;\n font: 10px/16px "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;\n padding-bottom: 5px;\n }\n\n .xc_chat_container\n {\n //width:379px;\n //position:fixed;\n //bottom:0;\n //right:50px;\n z-index:9999;\n background-color:transparent;\n }\n\n .xc_chat_container *\n {\n font-family:Arial,Helvetica,sans-serif;\n font-size:13px;\n margin:0;\n padding:0;\n }\n\n .xc_chat_container p\n {\n margin:5px 0;\n }\n\n .xc_signup_wrapper\n {\n max-height:375px;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n list-style:none;\n overflow:auto;\n margin:0;\n padding:20px 10px;\n }\n\n .xc_conversation_container a\n {\n color:#036;\n }\n\n .xc_conversation_container a.xc_btn_style\n {\n color:#fff;\n }\n\n div.xc_chat_head\n {\n color:#fff;\n background:{{chatWebsite.color}};\n //border-radius: 20px 20px 0px 0px !important;\n height:52px;\n line-height:55px;\n cursor:pointer;\n }\n\n div.xc_chat_head.rounded\n {\n border-radius: 20px 20px 0px 0px !important;\n }\n\n div.xc_chat_head.squared\n {\n //border-radius: 20px 20px 0px 0px !important;\n }\n\n .xc_chat_head-title\n {\n margin:5px 0 0 15px;\n color: #fff;\n }\n\n .xc_header_icon\n {\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n width:21px;\n height:16px;\n float:right;\n margin:20px 20px 0 0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n display:block;\n height:16px;\n width:15px;\n text-align:center;\n font-size:9px;\n color:#555;\n position:relative;\n top:-20px;\n left:4px;\n margin:0;\n padding:0;\n }\n\n .xc_sub-head-spacer\n {\n padding:1px;\n }\n\n .xc_conversation\n {\n display:none;\n margin:0 12px 0 11px;\n }\n\n .xc_chat_toggle_container\n {\n /*background:mediumslateblue center -52px;*/\n background: white;\n border-style: solid;\n border-width: 1px;\n border-color: {{chatWebsite.color}};\n //display:none;\n }\n\n .xc_signup_wrapper,.xc_notifications_wrapper,.xc_enquiry_wrapper\n {\n //display:none;\n display:block;\n overflow:auto;\n line-height:1;\n padding:25px;\n }\n\n .xc_exit_chat_container\n {\n text-align:right;\n width:95%;\n margin:0 auto;\n padding:5px 1px 0 0;\n }\n\n .xc_exit_chat_container span,.xc_exit_chat_container a\n {\n font-size:80%;\n color:#666;\n text-decoration:none;\n }\n\n .xc_exit_chat_container a:hover\n {\n color:#333;\n }\n\n a.xc_btn_exit_chat_confirm:hover\n {\n color:red;\n }\n\n a.xc_btn_exit_chat_cancel:hover\n {\n color:#0c0;\n }\n\n form.xc_form_reply\n {\n position:relative;\n }\n\n .xc_form_reply\n {\n /*background-color:#e3e3e3;*/\n text-align:center;\n /*border-top:1px solid #d3d3d3;*/\n }\n\n .xc_input_message\n {\n height:100px;\n margin:10px auto 5px;\n }\n\n .xc_input_enquiry_message\n {\n height:100px;\n }\n\n .xc_form_signup,.xc_form_enquiry\n {\n text-align:center;\n }\n\n .xc_chat_container textarea,.xc_chat_container input[type=text]\n {\n width:95%;\n min-width:95%;\n max-width:95%;\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n box-sizing:border-box;\n background-color:#fff;\n border:1px solid #ccc;\n -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -webkit-transition:border linear .2s, box-shadow linear .2s;\n -moz-transition:border linear .2s, box-shadow linear .2s;\n -o-transition:border linear .2s, box-shadow linear .2s;\n transition:border linear .2s, box-shadow linear .2s;\n display:inline-block;\n font-size:14px;\n line-height:20px;\n color:#555;\n -webkit-border-radius:4px;\n -moz-border-radius:4px;\n border-radius:4px;\n vertical-align:middle;\n margin:3px 0;\n padding:4px 6px;\n resize: none;\n }\n\n .xc_chat_container textarea:focus,.xc_chat_container input[type=text]:focus\n {\n outline: {{chatWebsite.color_focus}} auto 5px;\n }\n\n .xc_chat_container input[type=text]\n {\n height: 30px;\n }\n\n .xc_message_sending textarea, .xc_enquiry_sending textarea\n {\n background: #fff url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/loading.gif) 98% 5px no-repeat;\n }\n\n .xc_chatrow\n {\n display:block;\n border-top:1px dashed #e3e3e3;\n margin:5px 0;\n clear: both;\n }\n\n .xc_chatrow p\n {\n color:#444;\n word-wrap:break-word;\n }\n\n .xc_time\n {\n float:right;\n font-size:80%;\n color:#ccc;\n padding-left:12px;\n margin:3px;\n }\n\n .xc_submission_pending\n {\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_clock.png) left center no-repeat;\n }\n\n .xc_submission_confirmed\n {\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_tick.png) left center no-repeat;\n }\n\n .xc_fullname\n {\n font-weight:700;\n }\n\n .xc_fullname:after\n {\n content:":";\n }\n\n .xc_avatar\n {\n float: left;\n margin: 0 5px 5px 0;\n display: inline-block;\n width: 40px;\n height: 40px;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n\n .xc_smilie\n {\n background-repeat:no-repeat;\n display:inline-block;\n width:18px;\n height:18px;\n text-indent:-9999px;\n white-space:nowrap;\n }\n\n .xc_btn_load_more\n {\n width:100%!important;\n }\n\n .xc_notifications_wrapper\n {\n text-shadow:0 1px 0 rgba(255,255,255,0.5);\n }\n\n .xc_notification_success\n {\n color:#468847;\n }\n\n .xc_notification_error\n {\n color:#b94a48;\n }\n\n .xc_errorlist\n {\n margin:0 0 0 25px;\n padding:0;\n }\n\n i.xc_btn_notifications_close\n {\n float:right;\n font-weight:700;\n font-size:20px;\n color:#ccc;\n cursor:pointer;\n margin:-15px 0 0;\n padding:0;\n }\n\n .xc_btn_style\n {\n width:95%;\n text-align:center;\n line-height:1.2;\n font-size:90%;\n -moz-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n -webkit-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n background:0;\n background-color:{{chatWebsite.color_button}};\n -moz-border-radius:4px;\n -webkit-border-radius:4px;\n border-radius:4px;\n border:1px solid {{chatWebsite.color_button}};\n display:inline-block;\n color:#fff;\n font-weight:700;\n text-decoration:none;\n text-shadow:1px 1px 0 #000c17;\n margin:0 auto 5px;\n padding:2px 0;\n }\n\n .xc_btn_style:hover\n {\n background:0;\n background-color:{{chatWebsite.color_button}};\n color: #fff;\n text-decoration: none;\n }\n\n .xc_btn_style:active\n {\n position:relative;\n top:1px;\n }\n\n .xc_composing_container\n {\n display: none;\n width: 95%;\n margin: 0 auto;\n background: transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_pencil.png) 6px center no-repeat;\n padding-left: 19px;\n font-style: italic;\n }\n\n @media only screen and (max-height: 620px) {\n .xc_conversation_container\n {\n max-height:300px!important;\n }\n }\n\n @media only screen and (max-height: 545px) {\n .xc_conversation_container\n {\n max-height:200px!important;\n }\n }\n\n @media only screen and (max-height: 445px) {\n .xc_conversation_container\n {\n max-height:150px!important;\n }\n }\n\n @media only screen and (max-width: 480px) {\n .xc_chat_container\n {\n width:95%!important;\n right:auto!important;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n box-shadow:0 0 5px rgba(0,0,0,.5);\n -webkit-box-shadow:0 0 5px rgba(0,0,0,.5);\n -moz-box-shadow:0 0 5px rgba(0,0,0,.5);\n }\n\n div.xc_chat_head\n {\n background-color:#036;\n background-image:none;\n line-height:25px;\n height:auto;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n padding:10px;\n }\n\n .xc_chat_toggle_container\n {\n background-color:#fff;\n background-image:none;\n border-color:#036;\n border-style:solid;\n border-width:0 1px;\n }\n\n .xc_header_icon\n {\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n margin:0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n top:-5px;\n left:5px;\n }\n\n .xc_notification_success\n {\n background-color:#dff0d8;\n border:1px solid #d6e9c6;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n border-color:#036;\n }\n\n .xc_notification_error\n {\n background-color:#f2dede;\n border:1px solid #eed3d7;\n }\n\n .xc_sub-head-spacer\n {\n display:none;\n padding:0;\n }\n\n .xc_chat_head-title,.xc_conversation\n {\n margin:0;\n }\n }\n</style>\n<div class="xc_chat_container">\n <div class="xc_chat_head {{chatWebsite.header_shape}}">\n <i class="xc_header_icon">\n <span class="xc_notification_badge">\n <span class="xc_notification_badge_number"></span>\n </span>\n </i>\n <span class="xc_chat_head-title">{{statePreview.state == \'online\' ? chatWebsite.header_online : chatWebsite.header_offline}}</span>\n </div>\n <div class="xc_chat_toggle_container">\n <div class="xc_sub-head-spacer"></div>\n <div class="xc_notifications_wrapper">\n <!--<i class="xc_btn_notifications_close">×</i>-->\n <ul class="xc_errorlist"></ul>\n </div>\n <div class="xc_enquiry_wrapper" data-ng-show=\'statePreview.state == "offline"\'>\n <form class="xc_form_enquiry" accept-charset="UTF-8">\n <p ng-bind-html=\'chatWebsite.offline_message\'></p>\n <input maxlength="45" type="text" name="data[Enquiry][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_enquiry_fullname" />\n <input maxlength="85" type="text" name="data[Enquiry][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_enquiry_email" />\n <textarea maxlength="1500" placeholder="{{chatWebsite.enquiry_message_placeholder}}" name="data[Enquiry][message]" class="xc_input_enquiry_message"></textarea>\n <a href="#" class="xc_btn_enquiry xc_btn_style">{{chatWebsite.enquiry_button}}</a></form>\n </div>\n <div class="xc_signup_wrapper" data-ng-show=\'statePreview.state == "online"\'>\n <form class="xc_form_signup" accept-charset="UTF-8">\n <p ng-bind-html=\'chatWebsite.online_message\'></p>\n <input maxlength="45" type="text" name="data[Discussion][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_fullname" />\n <input maxlength="85" type="text" name="data[Discussion][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_email" />\n <input type="hidden" class="xc_input_visitor_time" name="data[Discussion][visitor_time]" /><a href="#" class="xc_btn_signup xc_btn_style">{{chatWebsite.start_chat_button}}</a></form>\n </div>\n <!-- <div class="xc_conversation">\n <div class="xc_conversation_container">\n <p class="xc_message_intro" data-id="-10">{FirstMessageText}</p>\n </div>\n <div class="xc_composing_container"></div>\n <form class="xc_form_reply" accept-charset="UTF-8">\n <div class="xc_exit_chat_container"><a href="#" class="xc_btn_exit_chat">{ExitChatButtonText}</a>\n <div class="xc_exit_chat_confirmation_wrapper" style="display: none;"><span>{ExitChatQuestionText} </span><a href="#" class="xc_btn_exit_chat_confirm">{ExitChatButtonConfirmText}</a><span> | </span><a href="#" class="xc_btn_exit_chat_cancel">{ExitChatButtonCancelText}</a></div>\n </div>\n <textarea maxlength="750" placeholder="{MessagePlaceholderText}" name="data[Message][message]" class="xc_input_message"></textarea><a href="#" class="xc_btn_send xc_btn_style">{MessageSendButtonText}</a></form>\n </div> -->\n <div class="xc_footer">\n <div class="xc_powered"><a>Powered by Xenialab | Trademark xCALLY</a></div>\n </div>\n </div>\n</div>\n'),
-a.put("app/chat/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="chatQueues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <!-- <li>\n <a href="#" data-ng-click="open()">\n <i class="icon-user"></i> {{ \'APPLICATION_QUICK\' | translate }} </a>\n </li> -->\n <li>\n <a href="/chat/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-users"></i> {{ \'APPLICATION_BULK\' | translate }} </a>\n </li> -->\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getChatQueues([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Username\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="chat_queues.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.chatQueuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="chatQueueByPage in chatQueuesByPage | filter: $select.search">\n <div ng-bind-html="chatQueueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="timeout">{{ \'APPLICATION_AGENT_TIMEOUT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatQueue in displayedChatQueues" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="chatQueues.checked" checklist-value="chatQueue.id"></td>\n <td>{{chatQueue.name}}</td>\n <td>{{chatQueue.description}}</td>\n <td>{{chatQueue.strategy | uppercase}}</td>\n <td>{{chatQueue.timeout}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/queues/view/{{chatQueue.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(chatQueue.name,chatQueue.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedChatQueues.length">\n <td colspan="6" style="text-align:center;">\n <i>No chat queues available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatQueuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" style="width: 50%; margin: 0 auto;">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body text-center">\n <div class="form-group last">\n <div class="col-md-9" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.chat.queues.view.settings\')}">\n <a data-ng-href="/chat/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.queues.view.agents\')}">\n <a data-ng-href="/chat/queues/view/{{queue.id}}/agents">\n <i class="icon-users"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChatQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}} {{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/queue/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.general" data-ng-submit="forms.general.$valid && createItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CREATE\' | translate}}"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/chat/realtime/view/agent/queue/queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-tree-view class="grid"></div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/agent/timeline/timeline.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" class="grid"></div>\n <!-- START TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/session/session.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initChats()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedChats" st-safe-src="sessions" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="12">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.sessionsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="sessionByPage in sessionsByPage | filter: $select.search">\n <div ng-bind-html="sessionByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid" reverse class="input-small">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue" class="input-medium">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername" class="input-medium">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="visitorname" class="input-medium">{{ \'APPLICATION_VISITOR\' | translate }}</th>\n <th st-sort="websitename" class="input-small">{{ \'APPLICATION_WEB_SITE\' | translate }}</th>\n <th st-sort="sessioncalledAt" st-sort-default="reverse">{{ \'APPLICATION_JOIN_AT\' | translate }}</th>\n <th st-sort="sessionconnectAt">{{ \'APPLICATION_LEAVE_AT\' | translate }}</th>\n <th st-sort="sessionringnoanswerAt">{{ \'APPLICATION_UNMANAGED_AT\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="session in displayedChats">\n <td>\n <span>\n <i data-ng-class="{\'icon-user font-yellow\': session.mailjoinAt && !session.mailleaveAt,\n \'icon-user-following font-green\': session.fullname,\n \'icon-user-unfollow font-red\': session.mailunmanagedAt}"></i>\n </span>\n </td>\n <td>{{session.uniqueid}}</td>\n <td>{{session.chatqueuename}}</td>\n <td>{{session.fullname}}</td>\n <td>{{session.visitorname + \' [\' + session.visitoremail + \']\'}}</td>\n <td>{{session.websitename}}</td>\n <td>\n <time is="relative-time" datetime="{{session.chatjoinAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.chatleaveAt}}" data-ng-show="session.chatleaveAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.chatunmanagedAt}}" data-ng-show="session.chatunmanagedAt">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedChats.length">\n <td colspan="11" style="text-align:center;">\n <i>No sessions available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" data-ng-model="filters.uniqueid" placeholder="{{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="visitorname" placeholder="{{ \'APPLICATION_VISITOR\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="websitename" placeholder="{{ \'APPLICATION_WEB_SITE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="7"></td>\n </tr>\n <tr>\n <td colspan="12" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.sessionsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/chat/realtime/list">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <!-- <a class="navbar-brand" ui-sref="home">Brand</a> -->\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'">\n <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_AGENTS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'agents\'></tree>\n </li>\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_SESSIONS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'sessions\'></tree>\n </li>\n </ul>\n <!-- <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_QUEUES\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'queues\'></tree>\n </li>\n </ul> -->\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.conversation.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONVERSATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatRooms" filename="rooms.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatRooms" st-safe-src="chatRooms" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatRoomsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatRooms.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search"/>\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="type">{{ \'APPLICATION_TYPE\' | translate }}</th>\n <th st-sort="users">{{ \'APPLICATION_USERS\' | translate }}</th>\n <th st-sort="visitor">{{ \'APPLICATION_VISITOR\' | translate }}</th>\n <th st-sort="status">{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatRoom in displayedChatRooms" data-ng-click="$location.path(\'/chat/statistics/conversation/\' + chatRoom.id)">\n <td style="text-align: center;">{{chatRoom.type | uppercase}}</td>\n <td style="text-align: center;">{{getUsersFullname(chatRoom.Users)}}</td>\n <td style="text-align: center;">{{chatRoom.ChatVisitor.email}}</td>\n <td style="text-align: center;">\n <span class="label label-sm label-success" data-ng-class="{\'label-success\': chatRoom.status == \'close\', \'label-warning\': chatRoom.status == \'open\'}">\n {{chatRoom.status | capitalize}}\n </span>\n </td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatRoom.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatRoomsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.conversation.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initRoomView()">\n <div class="col-md-6">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRANSCRIPT\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="chatRoom.ChatMessages" filename="chatMessages.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="scroller" style="height: 352px;" data-always-visible="1" data-rail-visible1="1">\n <ul class="chats">\n <li data-ng-class="{\'out\': chatMessage.visitorId, \'in\': chatMessage.userId}" data-ng-repeat="chatMessage in chatRoom.ChatMessages | orderBy:\'-createdAt\'">\n <img class="avatar" data-ng-src="api/users/{{chatMessage.userId ? chatMessage.userId : \'avatar\'}}/avatar"/>\n <div class="message">\n <span class="arrow">\n </span>\n <a href="#" class="name">\n {{chatMessage.fullname}} </a>\n <span class="datetime">\n <time is="relative-time" datetime="{{chatMessage.createdAt}}">\n April 1, 2014\n </time>\n </span>\n <span class="body">\n {{chatMessage.body}}\n </span>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatRoom.ChatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatRoom.ChatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatRoom.ChatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-repeat="user in chatRoom.Users">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-earphones-alt font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }}:</a> </span>\n <span class="caption-helper">{{user.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.fullname}}\n </div>\n </div>\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_USERNAME\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.name}}\n </div>\n </div>\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_ROLE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.role | uppercase}}\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/chat/statistic/statistic.enquiry.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ENQUIRIES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatEnquiries" filename="enquiries.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatEnquiries" st-safe-src="chatEnquiries" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatEnquiriesByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatEnquiries.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search"/>\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="type">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="users">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatEnquiry in displayedChatEnquiries" data-ng-click="$location.path(\'/chat/statistics/enquiry/\' + chatEnquiry.id)">\n <td style="text-align: center;">{{chatEnquiry.username}}</td>\n <td style="text-align: center;">{{chatEnquiry.email}}</td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatEnquiry.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatEnquiriesByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.enquiry.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initEnquiryView()">\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEXT\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="chatEnquiry" filename="chatEnquery.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN PAGE CONTENT-->\n <div class="note note-warning">\n <h4 class="block">{{chatEnquiry.ChatVisitor.fullname}} -\n <time is="relative-time" datetime="{{chatEnquiry.createdAt}}">\n April 1, 2014\n </time>\n </h4>\n <p>\n {{chatEnquiry.text}}\n </p>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatEnquiry.ChatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatEnquiry.ChatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatEnquiry.ChatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initList()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eyeglass"></i>\n <a href="/chat/statistics">{{ \'APPLICATION_STATISTICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/statistics.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <!-- <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatWebsite.name}}\n </div>\n <div class="profile-usertitle-job">\n {{chatWebsite.address}}\n </div>\n </div> -->\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR BUTTONS -->\n <!-- <div class="profile-userbuttons">\n <button type="button" class="btn btn-circle green-haze btn-sm">Follow</button>\n <button type="button" class="btn btn-circle btn-danger btn-sm">Message</button>\n </div> -->\n <!-- END SIDEBAR BUTTONS -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.summary\')}">\n <a ng-href="/chat/statistics/summary">\n <i class="icon-list"></i>\n {{ \'APPLICATION_SUMMARY\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.enquiry\') || $state.is(\'main.chat.statistics.enquiries\')}">\n <a ng-href="/chat/statistics/enquiries">\n <i class="icon-question"></i>\n {{ \'APPLICATION_ENQUIRIES\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.conversation\') || $state.is(\'main.chat.statistics.conversations\')}">\n <a ng-href="/chat/statistics/conversations">\n <i class="icon-notebook"></i>\n {{ \'APPLICATION_CONVERSATIONS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.visitor\') || $state.is(\'main.chat.statistics.visitors\')}">\n <a ng-href="/chat/statistics/visitors">\n <i class="icon-users"></i>\n {{ \'APPLICATION_VISITORS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.summary.html",'<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-show="online">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCATIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <map center="0, 0" zoom="2">\n <marker data-ng-show="chatVisitor.latitude && chatVisitor.longitude" data-ng-repeat="chatVisitor in chatVisitors" position="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" title="{{chatVisitor.fullname}}"></marker>\n </map>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONVERSATIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_OPENED\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (chatRooms | filter:{ status:\'open\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_CLOSED\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (chatRooms | filter:{ status:\'close\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatRooms | filter:{ status:\'open\' }).length, (chatRooms | filter:{ status:\'close\' }).length]" labels="[$translate.instant(\'APPLICATION_OPENED\'), $translate.instant(\'APPLICATION_CLOSED\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_PENDING\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'pending\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_SERVED\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'served\' }:true).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_UNSERVED\' | translate }} </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'unserved\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatVisitors | filter:{ status:\'pending\' }).length, (chatVisitors | filter:{ status:\'served\' }:true).length, (chatVisitors | filter:{ status:\'unserved\' }).length]" labels="[$translate.instant(\'APPLICATION_PENDING\'), $translate.instant(\'APPLICATION_SERVED\'), $translate.instant(\'APPLICATION_UNSERVED\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ENQUIRIES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_READ\' | translate }}<i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{(chatEnquiries | filter:{ read:true }).length}} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_UNREAD\' | translate }}<i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{(chatEnquiries | filter:{ read:false }).length}} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatEnquiries | filter:{ read:true }).length, (chatEnquiries | filter:{ read:false }).length]" labels="[$translate.instant(\'APPLICATION_READ\'), $translate.instant(\'APPLICATION_UNREAD\')]" legend="true" ng-show="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n'),a.put("app/chat/statistic/statistic.visitor.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatVisitors" filename="visitors.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatVisitors" st-safe-src="chatVisitors" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatVisitorsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatVisitors.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remote_address">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th st-sort="referer">{{ \'APPLICATION_ORIGIN\' | translate }}</th>\n <th st-sort="device">{{ \'APPLICATION_DEVICE\' | translate }}</th>\n <th st-sort="browser">{{ \'APPLICATION_BROWSER\' | translate }}</th>\n <th st-sort="visitor_language">{{ \'APPLICATION_LANGUAGES\' | translate }}</th>\n <th st-sort="status">{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatVisitor in displayedChatVisitors" data-ng-click="$location.path(\'/chat/statistics/visitor/\' + chatVisitor.id)">\n <td>{{chatVisitor.fullname}}</td>\n <td>{{chatVisitor.email}}</td>\n <td>{{chatVisitor.remote_address}}</td>\n <td>{{chatVisitor.referer}}</td>\n <td class="centered-td">{{chatVisitor.device ? chatVisitor.device : \'--\'}}</td>\n <td class="centered-td">\n <img data-ng-show="chatVisitor.browser.includes(\'Chrome\')" data-ng-src="assets/images/browsers/chrome/chrome_16x16.png" data-title="{{chatVisitor.browser}}" bs-tooltip>\n <img data-ng-show="chatVisitor.browser.includes(\'Safari\')" data-ng-src="assets/images/browsers/safari/safari_16x16.png">\n <img data-ng-show="chatVisitor.browser.includes(\'Firefox\')" data-ng-src="assets/images/browsers/firefox/firefox_16x16.png">\n <img data-ng-show="chatVisitor.browser.includes(\'Explorer\')" data-ng-src="assets/images/browsers/internet-explorer/internet-explorer_16x16.png">\n </td>\n <td class="centered-td">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'IT\') || chatVisitor.visitor_language.includes(\'it\')" data-ng-src="assets/images/flags/it.png">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'US\') || chatVisitor.visitor_language.includes(\'us\')" data-ng-src="assets/images/flags/us.png">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'EN\') || chatVisitor.visitor_language.includes(\'en\')" data-ng-src="assets/images/flags/en_EN.png">\n </td>\n <td class="centered-td">\n <span class="label label-sm label-success" data-ng-class="{\'label-warning\': chatVisitor.status == \'pending\', \'label-danger\': chatVisitor.status == \'unserved\'}">\n {{ $translate.instant(\'APPLICATION_\' + $filter(\'uppercase\')(chatVisitor.status)) }}\n </span>\n </td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatVisitorsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.visitor.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initVisitorView()">\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pin font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCATION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN PAGE CONTENT-->\n <map center="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" zoom="8">\n <marker position="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" title="{{chatVisitor.fullname}}"></marker>\n </map>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatVisitor.longitude && chatVisitor.latitude">\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/timeline/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-list"></i>\n <a href="/mail/timeline/list"> Timeline</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initList()">\n <div class="col-md-12">\n <h3 class="page-title">\n Timeline\n </h3>\n <!-- END PAGE HEADER-->\n <!-- BEGIN PAGE CONTENT-->\n <div class="timeline">\n <!-- TIMELINE ITEM -->\n <div class="timeline-item" data-ng-repeat="event in events | orderBy:\'-id\'" ng-animate=" \'animate\' ">\n <div class="timeline-badge">\n <div class="timeline-icon">\n <i class="icon-envelope font-green-haze"></i>\n </div>\n </div>\n <div class="timeline-body">\n <div class="timeline-body-arrow"></div>\n <div class="timeline-body-head">\n <div class="timeline-body-head-caption">\n <span class="timeline-body-alerttitle" data-ng-class="{\'font-red\': event.name == \'INCOMING\', \'font-blue\': event.name == \'ATTEMPT\', \'font-green\': event.name == \'TAKEN\'}">{{event.name | uppercase}}</span>\n <span class="timeline-body-time font-grey-cascade">at {{event.createdAt | date:\'yyyy-MM-dd HH:mm:ss\'}}</span>\n </div>\n <div class="timeline-body-head-actions">\n <div class="btn-group">\n <a class="btn btn-circle btn-sm dropdown-toggle btn-success" href="/mail/inbox/room/{{event.MailRoomId}}">Go To Mail</a>\n </div>\n </div>\n </div>\n <div class="timeline-body-content">\n <span class="font-grey-cascade" data-ng-show="event.User">\n {{event.MailRoom.subject ? event.MailRoom.subject + \' - \' : \'\'}}<a href="/agents/view/{{event.UserId}}/account">{{event.User.fullname}}</a>\n </span>\n </div>\n </div>\n </div>\n <!-- END TIMELINE ITEM -->\n </div>\n <!-- END PAGE CONTENT-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="chatWebsites.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_WEB_SITE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <!-- <li>\n <a href="#" data-ng-click="open()">\n <i class="icon-user"></i> {{ \'APPLICATION_QUICK\' | translate }} </a>\n </li> -->\n <li>\n <a href="/chat/websites/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-users"></i> {{ \'APPLICATION_BULK\' | translate }} </a>\n </li> -->\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getChatWebsites([\'name\', \'address\', \'description\', \'remote\'])" csv-header="[\'Name\', \'Address\', \'Description\', \'Remote\']" field-separator=";" filename="chat_websites.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatWebsites" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.chatWebsitesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="chatWebsiteByPage in chatWebsitesByPage | filter: $select.search">\n <div ng-bind-html="chatWebsiteByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="address">{{ \'APPLICATION_WEB_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatWebsite in displayedChatWebsites" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="chatWebsites.checked" checklist-value="chatWebsite.id"></td>\n <td>{{chatWebsite.name}}</td>\n <td>{{chatWebsite.description}}</td>\n <td><a ng-href="{{chatWebsite.address}}">{{chatWebsite.address}}</a></td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(chatWebsite.name,chatWebsite.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedChatWebsites.length">\n <td colspan="5" style="text-align:center;">\n <i>{{\'MESSAGE_NO_AVAILABLE_WEBSITES\' | translate}}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="address" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_WEB_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatWebsitesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/chat/website/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/chat/websites/view/{{chatWebsite.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th class="input-small" align="center">{{\'APPLICATION_APPLICATION\' | translate}}</th>\n <th class="input-small" align="center">{{\'APPLICATION_TIMEOUT\' | translate}} [s]</th>\n <th align="center">{{ \'APPLICATION_INTERVAL\' | translate }}</th>\n <th class="input-small">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="chatApplications">\n <tr data-ng-repeat="application in chatApplications">\n <td align="center">\n {{application.User ? \'agent\' : \'queue\' | uppercase}} [{{application.User ? application.User.fullname : application.ChatQueue.name}}]\n </td>\n <td align="center">{{application.timeout}}</td>\n <td align="center">{{application.Interval ? application.Interval.name : application.interval}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/websites/view/{{chatWebsite.id}}/actions/view/{{application.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(application.app, application.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="chatApplications.length">\n <td colspan="5" style="text-align:center;">\n <i>No applications available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/website/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select class="input-medium" data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group inpu" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <!-- <button class="btn green-haze" type="button" wz-previous><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button> -->\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/view/snippet/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SNIPPET\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_EMBEDDING\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_APPEARANCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FORMS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_LABELS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_5" data-toggle="tab">{{\'APPLICATION_SETTINGS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_6" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-8">\n <div class="tab-content">\n <!-- EMBEDDING TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <h3>{{\'APPLICATION_EMBED_SNIPPET\' | translate}}</h3>\n <p>\n {{\'MESSAGE_EMBED_SNIPPET\' | translate}}\n </p>\n <div class="form-body">\n <div class="form-group">\n <div class="col-md-12">\n <textarea name="snippet" rows="13" style="resize:none;cursor:text;" class="form-control" readonly data-ng-model="snippetCode"></textarea>\n </div>\n </div>\n </div>\n </div>\n <!-- END EMBEDDING TAB -->\n\n <!-- APPEARANCE TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.formAppearance" data-ng-submit="forms.formAppearance.$valid && updateItem()" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{chatWebsite.color}}" class="form-control" data-ng-model="chatWebsite.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{chatWebsite.color_focus}}" class="form-control" data-ng-model="chatWebsite.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{chatWebsite.color_button}}" class="form-control" data-ng-model="chatWebsite.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.animation" name="animationToggle" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="animationToggle in [true, false] | filter: $select.search">\n <div ng-bind-html="animationToggle ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END APPEARANCE TAB -->\n\n <!-- FORMS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.formFunctionality" data-ng-submit="forms.formFunctionality.$valid && updateItem()" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n <ui-select data-ng-model="chatWebsite.download_transcript" name="downloadTranscript" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n <div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END FORMS TAB -->\n\n <!-- STRINGS TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.formLabel" data-ng-submit="forms.formLabel.$valid && updateItem()" novalidate>\n\n <h4 class="block" data-ng-show="statePreview.state == \'online\'">{{\'APPLICATION_ONLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'offline\'">{{\'APPLICATION_OFFLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STRINGS TAB -->\n\n <!-- SETTINGS TAB -->\n <div class="tab-pane" id="tab_1_5">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chatWebsite.name" required/>\n <span data-ng-show="(forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSettings.name.$invalid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.remote" required/>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.description.$touched || forms.formSetting.$submitted) && forms.formSetting.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chatWebsite.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END SETTINGS TAB -->\n\n <!-- OFFLINE TAB -->\n <div class="tab-pane" id="tab_1_6">\n <form name="forms.formOffline" data-ng-submit="forms.formOffline.$valid && updateItem()" novalidate>\n\n <!-- START ENQUIRY FORWARDING -->\n <div class="form-group">\n <div class="row">\n <label class="col-md-4">\n {{\'APPLICATION_ENQUIRY_FORWARDING\' | translate}}\n </label>\n <label class="col-md-8">\n <input type="checkbox" ng-model="chatWebsite.enquiry_forwarding">\n </label>\n </div>\n <div class="row">\n <span class="help-block col-md-12">\n {{\'MESSAGE_REMEMBER_SMTP_SERVICE_ACCOUNT\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ENQUIRY FORWARDING -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formSetting.forwardingAddress.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="forwardingAddress" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_forwarding_address" required/>\n <span data-ng-show="(forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formOffline.forwardingAddress.$invalid && forms.formOffline.forwardingAddress.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chatWebsite.OfflineTemplateId" name="OfflineTemplateId" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailTemplate.id as mailTemplate in mailTemplates | filter: $select.search">\n <div ng-bind-html="mailTemplate.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid && forms.formOffline.OfflineTemplateId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END OFFLINE TAB -->\n </div>\n </div>\n <div class="col-md-4">\n <!-- START STATE -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label> -->\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="statePreview.state" name="statePreview" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="statePreview in [\'online\',\'offline\'] | filter: $select.search">\n <div ng-bind-html="statePreview | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STATE -->\n <preview></preview>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+"use strict";angular.module("xCallyShuttleApp",["adf","adf.structures.base","adf.widget.clock","adf.widget.iframe","adf.widget.counter","adf.widget.table","adf.widget.pie-chart","angular-md5","angular.filter","angularFileUpload","btford.socket-io","chart.js","checklist-model","colorpicker.module","frapontillo.bootstrap-switch","infinite-scroll","LocalStorageModule","mgo-angular-wizard","ng-slide-down","ngAnimate","ngCookies","ngCsv","ngFileSaver","ngJsTree","ngMap","ngPapaParse","ngResource","ngSanitize","notification","oc.lazyLoad","pascalprecht.translate","pdf","remoteValidation","smart-table","sprintf","textAngular","toastr","ui-notification","ui.bootstrap.modal","ui.bootstrap.dropdown","ui.bootstrap.popover","ui.bootstrap.timepicker","ui.bootstrap.tooltip","ui.bootstrap.tpls","ui.bootstrap.accordion","ui.bootstrap.progressbar","ui.grid","ui.grid.grouping","ui.grid.moveColumns","ui.grid.pagination","ui.grid.treeView","ui.router","ui.navbar","ui.select","ui.sortable","xeditable","ngAudio","truncate","ngScrollbars","ngEmoticons"]).config(["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider","$translateProvider","localStorageServiceProvider","dashboardProvider","ScrollBarsProvider",function(a,b,c,d,e,f,g,h){b.otherwise("/dashboard/voice"),e.useStaticFilesLoader({prefix:"assets/languages/locale-",suffix:".json"}),e.preferredLanguage("en_EN"),e.useLocalStorage(),e.useSanitizeValueStrategy("sanitize"),c.html5Mode(!0),d.interceptors.push("authInterceptor"),g.structure("4-4-4",{rows:[{columns:[{styleClass:"col-md-4"},{styleClass:"col-md-4"},{styleClass:"col-md-4"}]}]}).structure("3-3-3-3",{rows:[{columns:[{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"}]}]}),f.setPrefix("xcally"),h.defaults={scrollButtons:{scrollAmount:"auto",enable:!0},axis:"y"}}]).factory("settings",["$rootScope","$interval","License",function(a,b,c){var d={layout:{pageSidebarClosed:!1,pageQuickSidebarOpened:!1,pageBodySolid:!1,pageAutoScrollOnLoad:1e3}};return a.settings=d,c.get(function(b){b.license&&(a.license=b.license)}),d}]).factory("authInterceptor",["$rootScope","$q","$cookieStore",function(a,b,c){return{request:function(a){return a.headers=a.headers||{},c.get("token")&&(a.headers.Authorization="Bearer "+c.get("token")),a}}}]).run(["$rootScope","$location","$state","$stateParams","$window","$http","Auth","editableThemes","editableOptions",function(a,b,c,d,e,f,g,h,i){a.$state=c,a.$stateParams=d,h.bs3.inputClass="input-sm",h.bs3.buttonsClass="btn-xs",i.theme="bs3",a.online=navigator.onLine,e.addEventListener("offline",function(){a.$apply(function(){a.online=!1})},!1),e.addEventListener("online",function(){a.$apply(function(){a.online=!0})},!1),a.$on("$stateChangeStart",function(a,c){g.isLoggedInAsync(function(a){c.authenticate&&!a&&b.path("/login")})}),a.updateTableConfig=function(a,b){var c=_.find(a,{name:"All"});c&&(c.value=b)}}]),angular.module("xCallyShuttleApp").factory("Agent",["$resource",function(a){return a("/api/agents/:id/:controller",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AgentListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.agents={checked:[]},a.check=function(b,c){c?a.agents.checked=angular.copy(_.pluck(a.displayedAgents,"id")):a.agents.checked=[]},a.getAgents=function(b){return _.map(a.displayedAgents,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("agent"),b.url="/api/agents",h.getPage(b).then(function(d){a.displayedAgents=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.agentsByPage,a.displayedAgents.length),c.updateTableConfig(a.conf.agentsByPage,a.displayedAgents.length)}),f.socket.on("agent:save",function(){a.initList(b)}),f.socket.on("agent:remove",function(c){a.agents.checked=_.without(a.agents.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/agents/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/agents",{params:{id:a.agents.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.list",{url:"/list",templateUrl:"app/agent/list/list.html",controller:"AgentListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("AgentViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","socket","FileUploader","Auth",function(a,b,c,d,e,f,g,h,i){a.Auth=i,a.updatePassword=function(){var f,g;i.isAdmin()?(f="/api/agents/password/"+e.id+"/reset",g={newPassword:a.agent.newPwd}):(f="/api/agents/password/",g={oldPassword:a.agent.currentPwd,newPassword:a.agent.newPwd}),b.put(f,g).success(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})};var j=a.uploader=new h({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});j.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),j.onSuccessItem=function(b,e,f,g){a.agent.userpic=e.userpic,a.agent.id===i.getCurrentUser().id&&(i.getCurrentUser().userpic=e.userpic),c.show(d.instant("MESSAGE_WELL_DONE"),"success")},j.onErrorItem=function(a,b,e,f){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},j.onCompleteAll=function(){j.clearQueue()},a.initView=function(){b.get("/api/agents/"+e.id).success(function(b){a.agent=b,a.agent.transport=a.agent.transport?a.agent.transport.split(","):[],a.agent.allow=a.agent.allow?a.agent.allow.split(";"):[]}).error(function(a){c.show(a.message,"danger")})},a.updateItem=function(){var f=angular.copy(a.agent),g=angular.copy(a.agent);delete f.password,delete f.md5secret,f.transport=f.transport.join(","),f.allow=f.allow.join(";"),b.put("/api/agents/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.agent=g,b.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.view",{url:"/view/:id",templateUrl:"app/agent/view/view.html",controller:"AgentViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.agents.view.account",{url:"/account",templateUrl:"app/agent/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("AgentWizardCtrl",["$scope","$http","xAlert","$location","WizardHandler","$translate",function(a,b,c,d,e,f){a.forms={info:void 0,voice:void 0},a.item={role:"agent",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){b.post("/api/agents/validate/",a.item).success(function(a){console.log(a),a.length?c.show(f.instant("MESSAGE_EXIST_INTERNAL"),"danger"):e.wizard().next()}).error(function(a){c.show(f.instant(a.message),"danger")})},a.getFirstFreeInternal=function(){b.get("/api/settings/internal").success(function(b){a.item.internal=b.value}).error(function(a){c.show(f.instant(a.message),"danger")})},a.exitValidation=function(a){return a},a.createItem=function(){a.item.transport&&(a.item.transport=a.item.transport.join(",")),a.item.allow&&(a.item.allow=a.item.allow.join(";")),b.post("/api/agents/",a.item).success(function(){d.path("/agents/list")}).error(function(a){a.errors.forEach(function(a){c.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.agents.wizard",{url:"/wizard",templateUrl:"app/agent/wizard/wizard.html",controller:"AgentWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics",{url:"/analytics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.tables=[{name:"Agent Report",value:"report_agent_history"},{name:"Mail Report",value:"report_mail_session_history"},{name:"Queue Report",value:"report_queue_history"},{name:"Integration Report",value:"report_integration_history"},{name:"Chat Report",value:"report_chat_session_history"}],a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={metricsByPage:{name:"10",value:10}},a.metricsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Metrics={checked:[]},a.check=function(b,c){c?a.Metrics.checked=angular.copy(_.pluck(a.displayedMetrics,"id")):a.Metrics.checked=[]},a.getMetrics=function(b){return _.map(a.displayedMetrics,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("metric"),b.url="/api/analytics/metrics",h.getPage(b).then(function(c){a.displayedMetrics=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.metricsByPage,a.displayedMetrics.length),d.updateTableConfig(a.conf.metricsByPage,a.displayedMetrics.length)}),c.socket.on("metric:save",function(){a.initList(b)}),c.socket.on("metric:remove",function(c){a.Metrics.checked=_.without(a.Metrics.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/analytics/metrics/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/analytics/metrics",{params:{id:a.Metrics.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/analytic/metric/list/create.modal.html",controller:"AnalyticMetricListCreateModalCtrl"});a.result.then(function(a){b.post("/api/analytics/metrics",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.list",{url:"/list",templateUrl:"app/analytic/metric/list/list.html",controller:"AnalyticMetricListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics",{url:"/metrics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.tables=[{name:"Agent Report",value:"report_agent"},{name:"Mail Report",value:"report_mail_session"},{name:"Queue Report",value:"report_queue"},{name:"Integration Report",value:"report_integration"},{name:"Chat Report",value:"report_chat_session"}],a.getMetric=function(){b.get("/api/analytics/metrics/"+e.id).success(function(b){a.metric=b}).error(function(a){console.error(a),f.path("/analytics/metrics/list")})},a.updateMetric=function(){var f=angular.copy(a.metric);b.put("/api/analytics/metrics/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.metric=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.view",{url:"/view/:id",templateUrl:"app/analytic/metric/view/view.html",controller:"AnalyticMetricViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.metrics.view.settings",{url:"/settings",templateUrl:"app/analytic/metric/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("ReportListCopyModalCtrl",["$scope","$uibModalInstance","$log","customTreeData",function(a,b,c,d){a.customTreeData=d,a.forms={dashboard:void 0},a.item={},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){c.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0}},a.ac=function(){return!0},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.open_all()},a.ok=function(){b.close({parent:a.customTree.get_selected(!0).pop().id})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListCreateModalCtrl",["$scope","$uibModalInstance","path",function(a,b,c){a.path=c,a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticReportListCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","$log","Modal","$rootScope","stResource","$uibModal","FileSaver","Blob",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a.searchField="",a.ac=function(){return!0},a.initDefaultScopeTree=function(){a.defaultTree=a.defaultTreeInstance.jstree(!0),a.defaultTree.deselect_all(),a.defaultTree.close_all(),a.defaultTree.open_node({id:1}),a.defaultTreeReady=!0,a.defaultTreeActive=!0,a.previousDefaultNode=""},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.close_all(),a.customTree.open_node({id:1}),a.customTreeReady=!0,a.previousCustomNode=""},a.$watchGroup(["defaultTreeReady","customTreeReady"],function(b,c,d){b[0]&&b[1]&&a.defaultTree.select_node({id:"1"})}),a.updateCustomTree=function(){var e={tree:angular.toJson(a.customTree.get_json("#",{flat:!0}))};b.put("/api/analytics/reports/trees/2",e).success(function(a){console.log("Custom Tree Updated")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.configTrees=function(){a.defaultTreeConfig={multiple:!1,animation:!0,core:{error:function(a){h.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0},plugins:["search"]},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){h.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0},plugins:["contextmenu","dnd","search"],contextmenu:{items:function(b,c){var e={create:{label:d.instant("APPLICATION_CREATE"),action:function(c){a.customTree.create_node(b),a.customTree.open_node(b)}},rename:{label:d.instant("APPLICATION_RENAME"),action:function(c){a.customTree.edit(b)}},remove:{label:d.instant("APPLICATION_REMOVE"),action:function(c){console.log(b),a.deleteNode(b.text,b)}}};return"#"===b.parent&&(delete e.rename,delete e.remove),c(e),e}}}},a.deleteNode=i.confirm["delete"](function(b){a.customTree.delete_node(b),a.previousCustomNode==b.id&&a.customTree.select_node({id:b.parent})}),a.searchTrees=function(){a.defaultTree.search(a.searchField),a.customTree.search(a.searchField)},a.selectDefaultNode=function(){if(a.customTreeReady){a.previousCustomNode="";var b=a.defaultTree.get_selected(!0),c=b.pop();if(a.defaultTree.deselect_node(b[0],!0),a.customTree.deselect_all(),a.defaultTree.select_node(c,!0),c.id===a.previousDefaultNode)return void console.log("def");a.previousDefaultNode=c.id,a.defaultTreeActive=!0,a.initList(a.tableState)}},a.selectCustomNode=function(){if(a.defaultTreeReady){a.previousDefaultNode="";var b=a.customTree.get_selected(!0),c=b.pop();if(a.customTree.deselect_node(b[0],!0),a.defaultTree.deselect_all(),a.customTree.select_node(c,!0),c.id===a.previousCustomNode)return void console.log("cus");a.previousCustomNode=c.id,a.defaultTreeActive=!1,a.initList(a.tableState)}},a.getTrees=function(){b.get("/api/analytics/reports/trees").success(function(b){a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),a.configTrees()}).error(function(a){c.show(d.instant(a.message),"danger")})},a.conf={reportsByPage:{name:"10",value:10}},a.reportsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Reports={checked:[]},a.check=function(b,c){c?a.Reports.checked=angular.copy(_.pluck(a.displayedReports,"id")):a.Reports.checked=[]},a.getReports=function(b){return _.map(a.displayedReports,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){if(b){f.unsyncUpdates("custom_report"),a.Reports.checked=[];var c=a.defaultTree.get_selected(),d=a.customTree.get_selected();if(c.length){var e=c.pop();a.selectedNode=a.defaultTree.get_path(e," / "),b.url="/api/analytics/reports/default",b.search.params={parent:e}}else{if(!d.length)return;var e=d.pop();a.selectedNode=a.customTree.get_path(e," / "),b.url="/api/analytics/reports/custom",b.search.params={parent:e}}a.tableState=b,k.getPage(b).then(function(c){a.displayedReports=c.rows,b.pagination.numberOfPages=c.total_pages,j.updateTableConfig(a.reportsByPage,a.displayedReports.length),j.updateTableConfig(a.conf.reportsByPage,a.displayedReports.length)}),f.socket.on("custom_report:save",function(){a.defaultTreeActive||(console.log("save"),a.initList(b))}),f.socket.on("custom_report:remove",function(c){a.defaultTreeActive||(a.Reports.checked=_.without(a.Reports.checked,c.id),a.initList(b))})}},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("/api/analytics/reports/custom/"+a).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.deleteItems=i.confirm["delete"](function(){b["delete"]("/api/analytics/reports/custom",{params:{id:a.Reports.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.create=function(){var d=l.open({animation:!0,templateUrl:"app/analytic/report/list/create.modal.html",controller:"ReportListCreateModalCtrl",resolve:{path:function(){return a.selectedNode}}});d.result.then(function(d){d.parent=a.previousCustomNode,b.post("/api/analytics/reports/custom",d).then(function(a){g.path("/analytics/reports/view/"+a.data.id+"/settings")})["catch"](function(a){c.show(a.data.message,"danger")})},function(){h.info("Modal dismissed at: "+new Date)})},a.copy=function(e){var f=a.defaultTreeActive?"/api/analytics/reports/default/copy/"+e:"/api/analytics/reports/custom/copy/"+e,g=l.open({animation:!0,templateUrl:"app/analytic/report/list/copy.modal.html",controller:"ReportListCopyModalCtrl",resolve:{customTreeData:function(){return a.customTreeData}}});g.result.then(function(a){b.post(f,a).then(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.show(a.data.message,"danger")})},function(){h.info("Modal dismissed at: "+new Date)})},a["export"]=function(a){b.get("/api/analytics/reports/custom/"+a).success(function(a){delete a.id,_.forEach(a.Fields,function(a){delete a.id,delete a.CustomReportId});var b=new n([angular.toJson(a)],{type:"application/json;charset=utf-8"});m.saveAs(b,a.name+".json")}).error(function(a){console.error(a),c.show(a.message,"danger")})},a["import"]=function(e){var f=JSON.parse(e);f.parent=a.previousCustomNode;var g=f.name&&f.parent?!0:!1,h=!0;_.forEach(f.Fields,function(a){a.field&&a.alias||(h=!1)}),g&&h?b.post("/api/analytics/reports/custom/import",f).then(function(a){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.show(a.data.message,"danger")}):c.show(d.instant("MESSAGE_INVALID_JSON"),"danger")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.list",{url:"/list",templateUrl:"app/analytic/report/list/list.html",controller:"AnalyticReportListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports",{url:"/reports",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){function g(e){var f=_.find(a.tables,{table:e}).url;b.get(f).success(function(b){delete b.createdAt,delete b.updatedAt,delete b.id,a.tableFields=_.map(b,function(a,b){return{name:b,value:b}})}).error(function(a){c.show(d.instant(a.message),"danger")})}function h(e){console.log(e),b.get("/api/analytics/metrics/table",{params:{table:e}}).success(function(b){_.forEach(b,function(b){a.tableFields.push({name:"<strong>Metric.</strong>"+b.name,value:b.metric})})}).error(function(a){c.show(d.instant(a.message),"danger")})}function i(a){return String(a).replace(/</g,"<").replace(/>/g,">")}function j(a){if(!a)return"";for(var b="(",c=0;c<a.rules.length;c++)c>0&&(b+=" <strong>"+a.operator+"</strong> "),b+=a.rules[c].group?j(a.rules[c].group):a.rules[c].field+" "+i(a.rules[c].condition)+" '"+("like"===a.rules[c].condition?"%"+a.rules[c].value+"%":a.rules[c].value)+"'";return b+")"}a.$translate=d,a.tempReport={},a.tables=[{name:"Agent Report",table:"report_agent_history",url:"/api/report/agents/describe"},{name:"Mail Report",table:"report_mail_session_history",url:"/api/report/mail/sessions/describe"},{name:"Queue Report",table:"report_queue_history",url:"/api/report/queues/describe"},{name:"Integration Report",table:"report_integration_history",url:"/api/report/integrations/describe"},{name:"Chat Report",table:"report_chat_session_history",url:"/api/report/chat/sessions/describe"}];var k={group:{operator:"AND",rules:[]}};a.getReport=function(){a.firstLoad=!0,b.get("/api/analytics/reports/custom/"+e.id).success(function(b){a.report=b,_.forEach(a.report.Fields,function(a){delete a.id}),a.report.conditions=a.report.conditions?JSON.parse(a.report.conditions):_.clone(k,!0),a.getPreview()}).error(function(a){console.error(a),f.path("/analytics/reports/list")})},a.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},a.$watch("report.table",function(b,c){console.log(b),b&&(console.log("is newvalue"),g(b),h(b),c&&(console.log("is oldvalue"),a.tempReport[c]={conditions:a.report.conditions,fields:a.report.Fields}),a.firstLoad?a.firstLoad=!1:a.tempReport[b]?(a.report.Fields=a.tempReport[b].fields,a.report.conditions=a.tempReport[b].conditions):(a.report.Fields=[],a.report.conditions=_.clone(k,!0)))},!0),a.groupByField=[{name:"APPLICATION_YES",value:!0},{name:"APPLICATION_NO",value:!1}],a.functions=[{name:"Sum",value:"SUM"},{name:"Count",value:"COUNT"},{name:"Count Distinct",value:"COUNT DISTINCT"},{name:"Maximum",value:"MAX"},{name:"Minimum",value:"MIN"},{name:"Average",value:"AVG"},{name:"Group Concat",value:"GROUP_CONCAT"},{name:"Group Concat(asc)",value:"GROUP_CONCAT ASC"},{name:"Group Concat(desc)",value:"GROUP_CONCAT DESC"}],a.addField=function(){a.report.Fields.push({groupBy:!1,CustomReportId:a.report.id})},a.removeField=function(b){a.report.Fields.splice(b,1)},a.sortableOptions={stop:function(){},"ui-floating":!0,cancel:".unsortable",handle:".report-field-handle",axis:"y"},a.updateReport=function(){if(a.report.Fields.length){var f=angular.copy(a.report);f.conditions=angular.toJson(f.conditions),b.put("/api/analytics/reports/custom/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.getPreview()}).error(function(b){c.show(d.instant(b.message),"danger"),f.conditions=JSON.parse(f.conditions),a.report=f})}else c.show(d.instant("MESSAGE_SELECT_A_FIELD"),"danger")},a.$watch("report.conditions",function(b){a.output=b?j(b.group):"()"},!0),a.gridOptions={enableFiltering:!0,treeRowHeaderAlwaysVisible:!1,enableGridMenu:!0},a.getPreview=function(){a.showPreview=!1,b.get("/api/analytics/reports/custom/preview/"+e.id).success(function(b){a.gridOptions.data=b,a.gridOptions.columnDefs=_.map(a.report.Fields,function(a){return{name:a.alias}}),a.showPreview=!0}).error(function(a){c.show(d.instant(a.message||"MESSAGE_QUERY_NOT_VALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.view",{url:"/view/:id",templateUrl:"app/analytic/report/view/view.html",controller:"AnalyticReportViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.reports.view.settings",{url:"/settings",templateUrl:"app/analytic/report/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportWizardCtrl",["$scope","$http","$location","xAlert","socket","$translate",function(a,b,c,d,e,f){a.initWizard=function(){a.forms={},a.item={}},a.createItem=function(){b.post("/api/analytics/reports/",a.item).success(function(){c.path("/analytics/reports/list")}).error(function(a){d.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.wizard",{url:"/wizard",templateUrl:"app/analytic/report/wizard/wizard.html",controller:"AnalyticReportWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={AutomationsByPage:{name:"10",value:10}},a.AutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.Automations={checked:[]},a.check=function(b,c){c?a.Automations.checked=angular.copy(_.pluck(a.displayedAutomations,"id")):a.Automations.checked=[]},a.getAutomations=function(b){return _.map(a.displayedAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("automation"),b.url="/api/automations",e.getPage(b).then(function(c){a.displayedAutomations=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.AutomationsByPage,a.displayedAutomations.length),d.updateTableConfig(a.conf.AutomationsByPage,a.displayedAutomations.length)}),g.socket.on("automation:save",function(){a.initList(b)}),g.socket.on("automation:remove",function(c){a.Automations.checked=_.without(a.Automations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/automations",{params:{id:a.Automations.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/automations/"+a,{status:d}).success(function(a){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations.list",{url:"/list",templateUrl:"app/automation/list/list.html",controller:"AutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AutomationViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","automations",function(a,b,c,d,e,f){a.$automations=f,a.forms={info:{}},a.fields={},a.properties=f.properties,a.initView=function(){c.get("/api/automations/"+b.id).success(function(b){a.automation=b,a.conditionsFilter=JSON.parse(b.conditions),a.actionsFilter=JSON.parse(b.actions),a.fields.conditions=a.$automations.automations[b.channel].conditions,a.fields.actions=a.$automations.automations[b.channel].actions}).error(function(a){e.show(a.message,"danger")})},a.updateAutomation=function(){c.put("/api/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description,conditions:angular.toJson(a.conditionsFilter),actions:angular.toJson(a.actionsFilter)}).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.automations.view",{url:"/view/:id",templateUrl:"app/automation/view/view.html",controller:"AutomationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.automations.view.settings",{url:"/settings",templateUrl:"app/automation/view/view.settings.html"}).state("main.automations.view.routes",{url:"/routes",templateUrl:"app/automation/view/view.routes.html"}).state("main.automations.view.application",{url:"/application",templateUrl:"app/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("AutomationWizardCtrl",["$scope","$http","$location","xAlert","automations","WizardHandler",function(a,b,c,d,e,f){a.$automations=e,a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={},a.fields={},a.properties=e.properties,a.forms={general:{}};var g={group:{"boolean":"AND",rules:[],type:"CONDITION",main:!0}},h={group:{rules:[],type:"ACTION"}};a.conditionsFilter=_.clone(g,!0),a.actionsFilter=_.clone(h,!0),a.$watch("item.channel",function(b,c){c&&(a.tempData[c].conditionsFilter=_.clone(a.conditionsFilter,!0),a.tempData[c].actionsFilter=_.clone(a.actionsFilter,!0)),a.conditionsFilter=a.tempData[b].conditionsFilter?a.tempData[b].conditionsFilter:_.clone(g,!0),a.actionsFilter=a.tempData[b].actionsFilter?a.tempData[b].actionsFilter:_.clone(h,!0),a.fields.conditions=a.$automations.automations[b].conditions,a.fields.actions=a.$automations.automations[b].actions},!0),a.item.channel="mail",a.createItem=function(){a.item.conditions=angular.toJson(a.conditionsFilter),a.item.actions=angular.toJson(a.actionsFilter),b.post("/api/automations",a.item).success(function(){c.path("/automations/list")}).error(function(a){d.show(a.message,"danger")})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){
+a.state("main.automations.wizard",{url:"/wizard",templateUrl:"app/automation/wizard/wizard.html",controller:"AutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat",{url:"/chat",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("ChatMessage",["$resource",function(a){return a("/api/chat/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatRoom",["$resource",function(a){return a("/api/chat/rooms/:id/:controller",{id:"@id"},{me:{method:"GET",isArray:!0,params:{id:"me"}},users:{method:"GET",params:{id:"users"}},externals:{method:"GET",isArray:!0,params:{id:"type",controller:"external"}},groups:{method:"GET",isArray:!0,params:{id:"groups"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").directive("preview",function(){return{templateUrl:"app/chat/preview/preview.html",restrict:"EA",link:function(a,b,c){}}}),angular.module("xCallyShuttleApp").controller("ChatQueueListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","stResource",function(a,b,c,d,e,f,g,h){a.conf={chatQueuesByPage:{name:"10",value:10}},a.chatQueuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.chatQueues={checked:[]},a.check=function(b,c){c?a.chatQueues.checked=angular.copy(_.pluck(a.displayedChatQueues,"id")):a.chatQueues.checked=[]},a.initList=function(b){e.unsyncUpdates("chat_queue"),b.url="/api/chat/queues/",h.getPage(b).then(function(c){a.displayedChatQueues=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(c.queuesByPage,a.displayedChatQueues.length),g.updateTableConfig(a.conf.queuesByPage,a.displayedChatQueues.length)}),e.socket.on("chat_queue:save",function(){a.initList(b)}),e.socket.on("chat_queue:remove",function(c){a.chatQueues.checked=_.without(a.chatQueues.checked,c.id),a.initList(b)})},a.getChatQueues=function(b){return _.map(a.displayedChatQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/chat/queues/"+a).success(function(){c.show(d.instant("MESSAGE_CHAT_QUEUE_DELETE_SUCCESS")+"!","success")}).error(function(){c.show(d.instant("MESSAGE_CHAT_QUEUE_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/chat/queues/",{params:{id:a.chatQueues.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.$on("$destroy",function(){e.unsyncUpdates("chat_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.list",{url:"/list",templateUrl:"app/chat/queue/list/list.html",controller:"ChatQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("ChatQueue",["$resource",function(a){return a("/api/chat/queues/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/chat/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/chat/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/chat/queues/"+e.id).success(function(b){a.queue=b}).error(function(a){console.error(a)})},a.updateChatQueue=function(){var f=angular.copy(a.queue);b.put("/api/chat/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){a.queue=f,b.errors.forEach(function(a){c.show(a.message,"danger")})})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/chat/user_has_queues",method:"GET",params:{ChatQueueId:a.queue.id}}).success(function(a){ComponentsDropdowns.bindChatQueue(c.rows,_.pluck(a,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.view",{url:"/view/:id",templateUrl:"app/chat/queue/view/view.html",controller:"ChatQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.chat.queues.view.settings",{url:"/settings",templateUrl:"app/chat/queue/view/view.settings.html"}).state("main.chat.queues.view.agents",{url:"/agents",templateUrl:"app/chat/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueWizardCtrl",["$scope","$http","$location","xAlert","WizardHandler","$translate",function(a,b,c,d,e,f){a.forms={},a.item={},a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/chat/queues",a.item).success(function(){d.show(f.instant("MESSAGE_WELL_DONE"),"success"),c.path("/chat/queues/list")}).error(function(a){d.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.queues.wizard",{url:"/wizard",templateUrl:"app/chat/queue/wizard/wizard.html",controller:"ChatQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent",{url:"/agent",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentQueueCtrl",["$scope","$http","socket","Agent","ChatQueue",function(a,b,c,d,e){a.gridOptions={enableSorting:!1,enableFiltering:!0,columnDefs:[{name:"queueName",displayName:"Queue"},{name:"agentName",displayName:"Agent",cellClass:"text-center",cellTemplate:'<span data-ng-if="row.entity.agentName">{{row.entity.fullname}} [{{row.entity.agentName}}]</span>'},{name:"online",cellClass:"text-center",cellTemplate:'<span class="badge badge-empty" data-ng-if="row.entity.online != null" data-ng-class="row.entity.online ? \'badge-success\' : \'badge-danger\'"></span>'},{name:"lastLoginAt",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.lastLoginAt" is="relative-time" datetime="{{row.entity.lastLoginAt}}">April 1, 2014</time>'}],onRegisterApi:function(b){a.gridApi=b,a.gridApi.treeBase.on.rowExpanded(a,function(b){var c=_.findIndex(a.gridOptions.data,{$$hashKey:b.entity.$$hashKey});b.entity.Users&&b.entity.Users.forEach(function(b){_.find(a.gridOptions.data,{name:b.name})||a.gridOptions.data.splice(c+1,0,b)})})}},e.get(function(b){a.gridOptions.data=[],b.rows.forEach(function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b),b.Users&&b.Users.forEach(function(b){b.agentName=b.name,a.gridOptions.data.push(b)})}),c.socket.on("agent:save",function(b){var c=_.filter(a.gridOptions.data,{agentName:b.name});c.forEach(function(a){a.online=b.online,a.lastLoginAt=b.lastLoginAt})}),c.socket.on("chat_queue:save",function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b)}),c.socket.on("chat_queue:remove",function(b){_.remov(a.gridOptions.data,{queueName:b.name})}),c.socket.on("user_has_chat_queue:save",function(b){var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.ChatQueueId});d.get({id:b.UserId}).$promise.then(function(b){a.gridOptions.data.splice(c+1,0,{id:b.id,name:b.name,fullname:b.fullname,agentName:b.name,online:b.online,lastLoginAt:b.lastLoginAt})})["catch"](function(a){console.error(a)})}),c.socket.on("user_has_chat_queue:remove",function(b){for(var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.ChatQueueId}),d=c+1;d<a.gridOptions.data.length;d++)a.gridOptions.data[d].id==b.UserId&&a.gridOptions.data.splice(d,1)})},function(a){console.error(a)}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_chat:save"),c.unsyncUpdates("report_chat:update")}),a.initAgents=function(){b.get("/api/report/chats").success(function(b){a.agents=b,c.socket.on("report_chat:save",function(b){var c=_.find(a.agents,{id:b.id});c||a.agents.unshift(b)}),c.socket.on("report_chat:update",function(b){var c=_.find(a.agents,{id:b.id}),d=a.agents.indexOf(c);c&&_.merge(a.agents[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent.queues",{url:"/queues",controller:"ChatRealtimeViewAgentQueueCtrl",templateUrl:"app/chat/realtime/view/agent/queue/queue.html"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentTimelineCtrl",["$scope","$http","socket","Agent","ChatQueue","uiGridConstants",function(a,b,c,d,e,f){a.gridOptions={enableFiltering:!0,columnDefs:[{name:"lastevent",cellClass:"text-center",enableFiltering:!1,enableSorting:!1,displayName:"",cellTemplate:"<span><i data-ng-class=\"{'icon-user font-yellow': row.entity.lastevent === 'called', 'icon-user-following font-green': row.entity.lastevent === 'agent', 'icon-user-unfollow font-red': row.entity.lastevent === 'timeout', 'icon-user-unfollow font-blue': row.entity.lastevent === 'answered_elsewhere'}\"></i></span>"},{name:"chatqueuename",displayName:"Queue Name",cellClass:"text-center"},{name:"fullname",cellClass:"text-center"},{name:"visitoremail",displayName:"Visitor",cellClass:"text-center"},{name:"websitename",displayName:"Website",cellClass:"text-center"},{name:"agentcalledAt",displayName:"Called At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentcalledAt" is="relative-time" datetime="{{row.entity.agentcalledAt}}">April 1, 2014</time>',sort:{direction:f.DESC,priority:0}},{name:"agentconnectAt",displayName:"Connected At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentconnectedAt" is="relative-time" datetime="{{row.entity.agentconnectedAt}}">April 1, 2014</time>'},{name:"agentringnoanswerAt",displayName:"No Answer At",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentringnoanswerAt" is="relative-time" datetime="{{row.entity.agentringnoanswerAt}}">April 1, 2014</time>'}],data:[]},a.initAgents=function(){b.get("/api/report/chats").success(function(b){a.gridOptions.data=b,c.socket.on("report_chat:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c||a.gridOptions.data.unshift(b)}),c.socket.on("report_chat:update",function(b){var c=_.find(a.gridOptions.data,{id:b.id}),d=a.gridOptions.data.indexOf(c);c&&_.merge(a.gridOptions.data[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view.agent.timeline",{url:"/timeline",controller:"ChatRealtimeViewAgentTimelineCtrl",templateUrl:"app/chat/realtime/view/agent/timeline/timeline.html"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewSessionCtrl",["$scope","$http","socket",function(a,b,c){a.conf={sessionsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.sessionsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_chat:save"),c.unsyncUpdates("report_chat:update")}),a.initChats=function(){b.get("/api/report/chat/sessions").success(function(b){a.sessions=b,c.socket.on("report_chat_session:save",function(b){var c=_.find(a.sessions,{id:b.id}),d=a.sessions.indexOf(c);c?_.merge(a.sessions[d],b):a.sessions.push(b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.chat.realtime.view.agent.queues"},{name:"Timeline",link:"main.chat.realtime.view.agent.timeline"}],a.sessions=[{name:"Sessions",link:"main.chat.realtime.view.sessions"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.realtime.view",{url:"/view",templateUrl:"app/chat/realtime/view/view.html",controller:"ChatRealtimeViewCtrl"}).state("main.chat.realtime.view.sessions",{url:"/sessions",controller:"ChatRealtimeViewSessionCtrl",templateUrl:"app/chat/realtime/view/session/session.html"})}]),angular.module("xCallyShuttleApp").controller("ChatStatisticCtrl",["$scope","$http","$stateParams","xAlert","socket","$location","$translate","$filter",function(a,b,c,d,e,f,g,h){a.conf={chatVisitorsByPage:10,chatRoomsByPage:10,chatEnquiriesByPage:10},a.$location=f,a.$translate=g,a.$filter=h,a.initList=function(){b.get("api/chat/visitors").success(function(b){a.chatVisitors=b,e.syncUpdates("chat_visitor",a.chatVisitors)}),b.get("api/chat/rooms").success(function(b){a.chatRooms=b,e.syncUpdates("chat_room",a.chatRooms)}),b.get("api/chat/enquiries").success(function(b){a.chatEnquiries=b,e.syncUpdates("chat_enquery",a.chatEnquiries)})},a.initVisitorView=function(){b.get("api/chat/visitors/"+c.id).success(function(b){a.chatVisitor=b}).error(function(a){d.show(g.instant(a.message),"danger")})},a.initEnquiryView=function(){b.get("api/chat/enquiries/"+c.id).success(function(b){a.chatEnquiry=b}).error(function(a){d.show(g.instant(a.message),"danger")})},a.initRoomView=function(){console.log(c),b.get("api/chat/rooms/"+c.id).success(function(b){a.chatRoom=b}).error(function(a){d.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.statistics",{url:"/statistics",templateUrl:"app/chat/statistic/statistic.html",controller:"ChatStatisticCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]},{name:"ui.select",insertBefore:"#ng_load_plugins_before",files:["assets/plugins/ui-select/select.min.css","assets/plugins/ui-select/select.min.js"]}])}]}}).state("main.chat.statistics.summary",{url:"/summary",templateUrl:"app/chat/statistic/statistic.summary.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile-old.css"]})}]}}).state("main.chat.statistics.enquiries",{url:"/enquiries",templateUrl:"app/chat/statistic/statistic.enquiry.html"}).state("main.chat.statistics.enquiry",{url:"/enquiry/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.enquiry.view.html"}).state("main.chat.statistics.conversations",{url:"/conversations",templateUrl:"app/chat/statistic/statistic.conversation.html"}).state("main.chat.statistics.conversation",{url:"/conversation/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.conversation.view.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]})}]}}).state("main.chat.statistics.visitors",{url:"/visitors",templateUrl:"app/chat/statistic/statistic.visitor.html"}).state("main.chat.statistics.visitor",{url:"/visitor/:id",controller:"ChatStatisticCtrl",templateUrl:"app/chat/statistic/statistic.visitor.view.html"})}]),angular.module("xCallyShuttleApp").controller("ChatTimelineListCtrl",["$scope","$http","socket",function(a,b,c){function d(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/chat").success(function(a){a.forEach(d),c.socket.on("event:chat:save",d)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.timeline.list",{url:"/list",templateUrl:"app/chat/timeline/list/list.html",controller:"ChatTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","stResource",function(a,b,c,d,e,f,g,h){a.conf={chatWebsitesByPage:{name:"10",value:10}},a.chatWebsitesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.chatWebsites={checked:[]},a.check=function(b,c){c?a.chatWebsites.checked=angular.copy(_.pluck(a.displayedChatWebsites,"id")):a.chatWebsites.checked=[]},a.getChatWebsites=function(b){return _.map(a.displayedChatWebsites,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("chat_website"),b.url="/api/chat/websites",h.getPage(b).then(function(c){a.displayedChatWebsites=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(a.chatWebsitesByPage,a.displayedChatWebsites.length),g.updateTableConfig(a.conf.chatWebsitesByPage,a.displayedChatWebsites.length)}),e.socket.on("chat_website:save",function(){a.initList(b)}),e.socket.on("chat_website:remove",function(c){a.chatWebsites.checked=_.without(a.chatWebsites.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/chat/websites/"+a).success(function(){c.show(d.instant("MESSAGE_CHAT_WEBSITE_DELETE_SUCCESS")+"!","success")}).error(function(){c.show(d.instant("MESSAGE_CHAT_WEBSITE_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/chat/websites",{params:{id:a.chatWebsites.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(a.message,"danger")})}),a.$on("$destroy",function(){e.unsyncUpdates("chat_website")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.list",{url:"/list",templateUrl:"app/chat/website/list/list.html",controller:"ChatWebsiteListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionListCtrl",["$scope","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g){a.initActons=function(){console.log(d),a.sortableOptions={stop:function(){console.log("stop",_.pluck(a.chatApplications,"id")),b.post("api/chat/websites/"+d.websiteId+"/applications",{applications:_.pluck(a.chatApplications,"id")}).success(function(b){angular.copy(b,a.chatApplications)}).error(function(a){console.error(a)})}},b.get("/api/chat/applications",{params:{ChatWebsiteId:d.websiteId}}).success(function(b){a.chatApplications=b,e.socket.on("chat_application:remove",function(b){_.remove(a.chatApplications,{id:b.id})})})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/chat/applications/"+a).success(function(){f.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.list",{url:"/list",templateUrl:"app/chat/website/view/action/list/list.html",controller:"chatWebsiteViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],b.get("/api/chat/applications/"+c.actionId).success(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1]),console.log(c),a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})}).error(function(a){console.error(a)})},a.getQueues=function(){b.get("/api/chat/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.updateItem=function(){var e=["*","*","*","*"],g={app:a.application.app,timeout:a.application.timeout,chatAccountId:c.id};switch(a.application.app){case"agent":g.UserId=a.application.UserId;break;case"queue":g.chatQueueId=a.application.chatQueueId}switch(a.application.intType){case"always":g.interval=e.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(e[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),e[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",e[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",e[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",g.interval=e.join(","),delete a.application.IntervalId;break;case"list":g.IntervalId=a.application.IntervalId}b.put("/api/chat/applications/"+c.actionId,g).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.view",{url:"/view/:actionId",templateUrl:"app/chat/website/view/action/view/view.html",controller:"chatWebsiteViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("chatWebsiteViewActionWizardCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){console.log(c),a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){b.get("/api/chat/queues",{params:{page:0,per_page:1e3}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:1e3}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.createItem=function(){var d=["*","*","*","*"],f={app:a.application.app,timeout:a.application.timeout,ChatWebsiteId:c.websiteId};switch(a.application.app){case"agent":f.UserId=a.application.UserId;break;case"queue":f.ChatQueueId=a.application.ChatQueueId}switch(a.application.intType){case"always":f.interval=d.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(d[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),d[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",d[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",d[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",f.interval=d.join(","),delete a.application.IntervalId;break;case"list":f.IntervalId=a.application.IntervalId}b.post("/api/chat/applications",f).success(function(){e.path("/chat/websites/view/"+c.websiteId+"/actions/list")}).error(function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){g.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.actions.wizard",{url:"/wizard",templateUrl:"app/chat/website/view/action/wizard/wizard.html",controller:"chatWebsiteViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.snippet",{url:"/snippet",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewSnippetViewCtrl",["$scope","$http","$stateParams","$translate","MailTemplate",function(a,b,c,d,e){a.$translate=d,a.statePreview={state:"online"},a.lang={HeaderCurrentlyChatting:"Live Chat",HeaderOffline:"Contact us",OperatorOfflineMessage:"It appears as if all operators are currently offline.",OfflineMessage:"<strong>We're not online.</strong><br/>It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",EnquiryMessagePlaceholder:"Your message...",EnquiryButtonText:"Leave message",EnquirySubmitSuccess:"Your message was sucessfully submitted - we will contact you as soon as possible.",OperatorComposing:"{fullname} is typing...",FirstMessageText:"",ExitChatButtonText:"Exit Chat",ExitChatQuestionText:"Are you sure?",ExitChatButtonConfirmText:"Yes",ExitChatButtonCancelText:"No",MessagePlaceholderText:"Your message...",MessageSendButtonText:"Send",ValidationEmailRequired:"Please enter your email address",ValidationEmailInvalid:"Please enter a valid email address",ValidationEmailMaxLength:"The email address may not exceed 85 characters",ValidationUsernameRequired:"Please enter your name",ValidationUsernameMaxLength:"The name may not exceed 45 characters",ValidationEnquiryRequired:"Please enter your enquiry",ValidationEnquiryMaxLength:"The enquiry may not exceed 1500 characters",ValidationMessageRequired:"Please enter your message",ValidationMessageMaxLength:"The message may not exceed 750 characters"},a.initView=function(){e.get().$promise.then(function(b){a.mailTemplates=b.rows}),b.get("api/chat/websites/"+c.websiteId+"/snippet").success(function(b){a.snippetCode=b})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view.snippet.view",{url:"/view",templateUrl:"app/chat/website/view/snippet/view/view.html",controller:"ChatWebsiteViewSnippetViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewCtrl",["$scope","xAlert","$http","$location","$stateParams","$translate","WizardHandler",function(a,b,c,d,e,f,g){a.initApplication=function(){a.forms={},a.application={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.deleteItem=function(a){c["delete"]("api/chat/applications/"+a).error(function(){b.show(f.instant("Something went wrong!"),"danger")})},a.initView=function(){c.get("/api/chat/websites/"+e.websiteId).success(function(b){a.chatWebsite=b}).error(function(a){b.show(a.message,"danger")})},a.updateItem=function(){c.put("/api/chat/websites/"+a.chatWebsite.id,a.chatWebsite).success(function(){b.show(f.instant("MESSAGE_CHAT_WEBSITE_UPDATE_SUCCESS")+"!","success")}).error(function(){b.show(f.instant("MESSAGE_CHAT_WEBSITE_UPDATE_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.view",{url:"/view/:websiteId",templateUrl:"app/chat/website/view/view.html",controller:"ChatWebsiteViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites",{url:"/websites",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert",function(a,b,c,d,e,f){a.$translate=d,a.forms={formSetting:void 0,formAppearance:void 0,formLabel:void 0,formFunctionality:void 0},a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.item={},a.createItem=function(){b.post("api/chat/websites",a.item).success(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_SUCCESS"),"success"),c.path("/chat/websites/list")}).error(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.chat.websites.wizard",{url:"/wizard",templateUrl:"app/chat/website/wizard/wizard.html",controller:"ChatWebsiteWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies",{url:"/companies",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("CompanyListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={companiesByPage:{name:"10",value:10}},a.companiesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Companies={checked:[]},a.check=function(b,c){c?a.Companies.checked=angular.copy(_.pluck(a.displayedCompanies,"id")):a.Companies.checked=[];
+},a.getCompanies=function(b){return _.map(a.displayedCompanies,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("company"),b.url="/api/contactmanager/companies",h.getPage(b).then(function(c){a.displayedCompanies=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.companiesByPage,a.displayedCompanies.length),d.updateTableConfig(a.conf.companiesByPage,a.displayedCompanies.length)}),c.socket.on("company:save",function(){console.log("save"),a.initList(b)}),c.socket.on("company:remove",function(c){a.Companies.checked=_.without(a.Companies.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/companies/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager/companies",{params:{id:a.Companies.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/contactmanager/company/list/create.modal.html",controller:"CompanyListCreateModalCtrl"});a.result.then(function(a){b.post("/api/contactmanager/companies",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.list",{url:"/list",templateUrl:"app/contactmanager/company/list/list.html",controller:"ContactManagerCompanyListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getCompany=function(){b.get("/api/contactmanager/companies/"+e.id).success(function(b){a.company=b}).error(function(a){f.path("/contactmanager/companies/list")})},a.updateCompany=function(){var f=angular.copy(a.company);b.put("/api/contactmanager/companies/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.company=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.view",{url:"/view/:id",templateUrl:"app/contactmanager/company/view/view.html",controller:"ContactManagerCompanyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.companies.view.settings",{url:"/settings",templateUrl:"app/contactmanager/company/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts",{url:"/contacts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListImportModalCtrl",["$scope","$uibModalInstance","indexes","csv","xAlert","socket","$http",function(a,b,c,d,e,f,g){function h(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);var c={Phones:[],Emails:[],customFields:{}};_.forOwn(a.item,function(e,f){switch(f){case"Phones":a.item.Phones.forEach(function(a){""!==d[b][a]&&c.Phones.push({phone:d[b][a]})});break;case"Emails":a.item.Emails.forEach(function(a){""!==d[b][a]&&c.Emails.push({email:d[b][a]})});break;case"customFields":_.forOwn(a.item.customFields,function(a,e){c.customFields[e]=d[b][a]});break;case"tags":c.tags=[],a.item.tags.forEach(function(a){""!==d[b][a]&&c.tags.push(d[b][a])});break;default:c[f]=d[b][e]}}),c.tags=c.tags?c.tags.join(","):void 0,_.forOwn(c.customFields,function(a,b){""===a&&delete c.customFields[b]}),g.post("/api/contactmanager",c).success(function(c){a["import"].success+=i,a["import"].succeeded+=1,h(b+1)}).error(function(c){a["import"].fail+=i,a["import"].failed+=1,h(b+1)})}a.indexes=c,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=d.length;var i=100/a.csvLength;a.forms={dashboard:void 0},a.item={},a.start=function(){console.log(d),a.importing=!0,a.submitted=!0,h(0)},a.getCustomFields=function(){g.get("/api/contactmanager/customfields").success(function(b){a.customFields=b.rows,f.syncUpdates("custom_field",a.customFields)}).error(function(a){console.error(a),e.show(a.message,"danger")})},a.close=function(){b.close()},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").controller("ContactManagerContactListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource","FileUploader","Papa","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j,k,l){var m;i.FileSelect.prototype.isEmptyAfterSelection=function(){return!0};var n=a.uploader=new i({queueLimit:1,clearInputAfterAddedToQueue:!0});n.onAfterAddingFile=function(b){console.log("fileadded"),j.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),a["import"](b.data)},error:function(a){console.log(a)}})},a["import"]=function(b){f.unsyncUpdates("contact_manager");var c=k.open({animation:!0,size:"lg",backdrop:"static",keyboard:!1,templateUrl:"app/contactmanager/contact/list/import.modal.html",controller:"ContactManagerListImportModalCtrl",resolve:{indexes:function(){return _.keys(b[0])},csv:function(){return b}}});c.result.then(function(b){console.log("dismiss and synch"),f.socket.on("contact_manager:save",function(){a.initList(m)}),f.socket.on("contact_manager:remove",function(b){a.contacts.checked=_.without(a.contacts.checked,b.id),a.initList(m)})},function(){l.info("Modal dismissed at: "+new Date)})},a.conf={contactsByPage:{name:"10",value:10},labels:["mailbox","fullname","email"]},a.contactsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.contacts={checked:[]},a.newContact=function(b){a.workspaces.push({name:"New Contact",type:"newContact",active:!0,data:b?b:null})},a.openContactTab=function(b){var c=_.find(a.workspaces,{contactID:b.id});c?c.active=!0:a.workspaces.push({name:b.fullname,type:"contact",contactID:b.id,active:!0})},a.check=function(b,c){c?a.contacts.checked=angular.copy(_.pluck(a.displayedContacts,"id")):a.contacts.checked=[]},a.getContacts=function(b){return _.map(a.displayedContacts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("contact_manager"),b.url="/api/contactmanager",m=b,h.getPage(b).then(function(c){console.log(c),a.displayedContacts=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.contactsByPage,a.displayedContacts.length),d.updateTableConfig(a.conf.contactsByPage,a.displayedContacts.length)}),f.socket.on("contact_manager:save",function(){a.initList(b)}),f.socket.on("contact_manager:remove",function(c){a.contacts.checked=_.without(a.contacts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager",{params:{id:a.contacts.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts.list",{url:"/list",templateUrl:"app/contactmanager/contact/list/list.html",controller:"ContactManagerContactListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager",{url:"/contactmanager",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields",{url:"/customfields",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={cutomFieldsByPage:{name:"10",value:10}},a.customFieldsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.customFields={checked:[]},a.check=function(b,c){c?a.customFields.checked=angular.copy(_.pluck(a.displayedCustomFields,"id")):a.customFields.checked=[]},a.getCustomFields=function(b){return _.map(a.displayedCustomFields,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("custom_field"),b.url="/api/contactmanager/customfields",h.getPage(b).then(function(c){a.displayedCustomFields=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.customFieldsByPage,a.displayedCustomFields.length),d.updateTableConfig(a.conf.customFieldsByPage,a.displayedCustomFields.length)}),c.socket.on("custom_field:save",function(){console.log("save"),a.initList(b)}),c.socket.on("custom_field:remove",function(c){a.customFields.checked=_.without(a.customFields.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/contactmanager/customfields/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/contactmanager/customfields/",{params:{id:a.customFields.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/contactmanager/customfield/list/create.modal.html",controller:"ContactManagerCustomFieldListCreateModalCtrl"});a.result.then(function(a){b.post("/api/contactmanager/customfields/",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.list",{url:"/list",templateUrl:"app/contactmanager/customfield/list/list.html",controller:"ContactManagerCustomFieldListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getCustomField=function(){b.get("/api/contactmanager/customfields/"+e.id).success(function(b){a.customField=b,"select"===a.customField.type&&(a.choices=JSON.parse(a.customField.values))}).error(function(a){console.error(a),f.path("/contactmanager/customfields/list")})},a.updateCustomField=function(){"select"===a.customField.type&&(a.customField.values=angular.toJson(a.choices));var f=angular.copy(a.customField);b.put("/api/contactmanager/customfields/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.customField=f})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.view",{url:"/view/:id",templateUrl:"app/contactmanager/customfield/view/view.html",controller:"ContactManagerCustomFieldViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.customfields.view.settings",{url:"/settings",templateUrl:"app/contactmanager/customfield/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("DashboardCtrl",["$scope","$translate",function(a,b){a.voice=[{name:b.instant("APPLICATION_QUEUE"),link:"main.dashboard.voice"}],a.mail=[{name:b.instant("APPLICATION_QUEUE"),link:"main.dashboard.mail"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.dashboard",{"abstract":!0,url:"/dashboard",templateUrl:"app/dashboard/dashboard.html",controller:"DashboardCtrl"}).state("main.dashboard.voice",{url:"/voice",controller:"DashboardVoiceCtrl",templateUrl:"app/dashboard/voice/voice.html"}).state("main.dashboard.mail",{url:"/mail",controller:"DashboardMailCtrl",templateUrl:"app/dashboard/mail/mail.html"})}]),angular.module("xCallyShuttleApp").controller("DashboardMailCtrl",["$scope",function(a){a.message="Hello"}]),angular.module("xCallyShuttleApp").controller("DashboardVoiceCtrl",["$scope","$http","xAlert","socket",function(a,b,c,d){function e(b,c){var d;return!b.queuecallerjoinAt||b.queuecallerleaveAt||b.queuecallercompleteAt||b.queuecallerabandonAt?b.queuecallerjoinAt&&b.queuecallerleaveAt&&!b.queuecallercompleteAt&&!b.queuecallerabandonAt?d="activeCalls":b.queuecallerjoinAt&&b.queuecallerleaveAt&&b.queuecallercompleteAt&&!b.queuecallerabandonAt?d="completedCalls":b.queuecallerjoinAt&&b.queuecallerleaveAt&&!b.queuecallercompleteAt&&b.queuecallerabandonAt&&(d="abandonedCalls"):d="waitCalls",c?d:void(d&&a.queueStats[d]++)}a.queueStats={abandonedCalls:0,completedCalls:0,waitCalls:0,activeCalls:0},a.getQueueStats=function(){b.get("/api/report/queues").then(function(b){a.queueReports=b.data,a.queueReports.forEach(function(a){e(a,!1)}),d.socket.on("report_queue:save",function(b){console.log("report save or update");var c=_.find(a.queueReports,{id:b.id}),d=a.queueReports.indexOf(c);if(c){console.log("found item, is an update");var f=e(c,!0);console.log("old item value is "+f+", decrementing..."),f&&a.queueStats[f]--,_.merge(a.queueReports[d],b)}else console.log("item not found in collection, is a create"),a.queueReports.unshift(b);console.log("checking new item type and increasing..."),e(b,!1)})})["catch"](function(a){c.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk",{url:"/desk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("DeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedDeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedDeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("desk_account"),b.url="/api/desk/accounts",h.getPage(b).then(function(d){a.displayedDeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedDeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedDeskAccounts.length)}),f.socket.on("desk_account:save",function(){a.initList(b)}),f.socket.on("desk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/desk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/desk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/desk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.list",{url:"/list",templateUrl:"app/desk/list/list.html",controller:"DeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("DeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","desk_com",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("desk_configuration"),g.unsyncUpdates("desk_field")}),a.initView=function(){b.get("/api/desk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/desk/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/desk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("desk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/desk/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/desk/configurations",a.configuration).success(function(a){e.path("desk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/desk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=j.fields.concat(b)}).error(function(a){h.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/desk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("desk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/desk/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/desk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/desk/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(b.customField=_.result(c,"custom",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.data.choices?c.data.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.view",{url:"/view/:id",templateUrl:"app/desk/view/view.html",controller:"DeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.desk.view.account",{url:"/account",templateUrl:"app/desk/view/view.account.html"}).state("main.desk.view.configurations",{url:"/configurations",templateUrl:"app/desk/view/view.configurations.html"}).state("main.desk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/desk/view/view.configurationSettings.html",controller:"DeskViewCtrl"}).state("main.desk.view.configuration",{url:"/configuration",templateUrl:"app/desk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("DeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/desk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/desk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.wizard",{url:"/wizard",templateUrl:"app/desk/wizard/wizard.html",controller:"DeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCtrl",["$scope","$http","xAlert","$translate","socket","Modal","$rootScope","$log","stResource",function(a,b,c,d,e,f,g,h,i){a.conf={faxAccountsByPage:{name:"10",value:10}},a.faxAccountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.fax_accounts={checked:[]},a.check=function(b,c){c?a.fax_accounts.checked=angular.copy(_.pluck(a.displayedFaxAccounts,"id")):a.fax_accounts.checked=[]},a.initList=function(b){e.unsyncUpdates("fax_account"),b.url="/api/fax/accounts",i.getPage(b).then(function(c){a.displayedFaxAccounts=c.rows,b.pagination.numberOfPages=c.total_pages,g.updateTableConfig(a.faxAccountsByPage,a.displayedFaxAccounts.length),g.updateTableConfig(a.conf.faxAccountsByPage,a.displayedFaxAccounts.length)}),e.socket.on("fax_account:save",function(){a.initList(b)}),e.socket.on("fax_account:remove",function(c){a.fax_accounts.checked=_.without(a.fax_accounts.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("api/fax/accounts/"+a).success(function(){c.show(d.instant("MESSAGE_FAX_ACCOUNT_DELETE_SUCCESS"),"success")}).error(function(){c.show(d.instant("MESSAGE_FAX_ACCOUNT_DELETE_FAILURE"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/fax/accounts",{params:{id:a.fax_accounts.checked}}).success(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.getFaxAccounts=function(b){return _.map(a.faxAccountsByPage,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.$on("$destroy",function(){e.unsyncUpdates("fax_account")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.list",{url:"/list",templateUrl:"app/fax/account/list/list.html",controller:"FaxAccountListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.forms={},a.sortableOptions={stop:function(){b.post("api/fax/accounts/"+c.id+"/applications",{applications:_.pluck(a.faxApplications,"id")}).success(function(b){a.faxApplications=b}).error(function(a){console.error(a)})},"ui-floating":!0},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.initApplication=function(){a.forms={},a.application={}},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("api/fax/applications/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.getAppdata=function(b,c){switch(b){case"agent":return a.agents?_.find(a.agents,{id:c}).name:c;case"queue":return a.faxQueues?_.find(a.faxQueues,{id:c}).name:c}return"UNKNOWN"},a.createItem=function(){switch(a.application.appdata=a.application.appdata.id,a.application.app){case"agent":a.application.UserId=parseInt(a.application.appdata,10);break;case"queue":a.application.FaxQueueId=parseInt(a.application.appdata,10)}a.application.FaxAccountId=c.id,b.post("api/fax/applications",a.application).success(function(){e.path("fax/accounts/view/"+c.id+"/routes")}).error(function(){h.show("Something went wrong!","danger")})},a.$watch("application.app",function(c){if(c){var d;switch(c){case"agent":d="api/agents";break;case"queue":d="api/fax/queues"}b.get(d).success(function(b){a.items=b.rows})}},!0),a.initView=function(){b.get("/api/trunks").success(function(b){a.trunks=b.rows}).error(function(a){console.log(a)}),b.get("/api/fax/accounts/"+c.id).success(function(b){a.account=b}).error(function(){})},a.getAgents=function(){b.get("api/fax/agents").success(function(b){a.agents=b})},a.getFaxApplications=function(){b.get("/api/fax/applications",{params:{FaxAccountId:c.id}}).success(function(b){a.faxApplications=b,g.socket.on("fax_application:remove",function(b){_.remove(a.faxApplications,{id:b.id})})}),b.get("/api/agents").success(function(b){a.agents=b.rows}),b.get("/api/fax/queues").success(function(b){a.faxQueues=b.rows})},a.updateItemFaxAccount=function(){b.put("/api/fax/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_FAX_ACCOUNT_UPDATE_SUCCESS")+".","success")}).error(function(){h.show(d.instant("MESSAGE_FAX_ACCOUNT_UPDATE_FAILURE")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.view",{url:"/view/:id",templateUrl:"app/fax/account/view/view.html",controller:"FaxAccountViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.fax.accounts.view.settings",{url:"/settings",templateUrl:"app/fax/account/view/view.settings.html",authenticate:!0}).state("main.fax.accounts.view.routes",{url:"/routes",templateUrl:"app/fax/account/view/view.routes.html",authenticate:!0}).state("main.fax.accounts.view.applications",{url:"/applications",templateUrl:"app/fax/account/view/view.applications.html",authenticate:!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.ecm=!1,a.item.minrate="9600",a.item.maxrate="33600",b.get("/api/trunks").success(function(b){a.trunks=b.rows}).error(function(a){console.error(a)})},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/fax/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_FAX_ACCOUNT_CREATE_SUCCESS")+".","success"),c.path("/fax/accounts/list")}).error(function(){e.show(d.instant("MESSAGE_FAX_ACCOUNT_CREATE_FAILURE")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.accounts.wizard",{url:"/wizard",templateUrl:"app/fax/account/wizard/wizard.html",controller:"FaxAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={faxAutomationsByPage:{name:"10",value:10}},a.faxAutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.faxAutomations={checked:[]},a.check=function(b,c){c?a.faxAutomations.checked=angular.copy(_.pluck(a.displayedFaxAutomations,"id")):a.faxAutomations.checked=[]},a.getFaxAutomations=function(b){return _.map(a.displayedFaxAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("fax_business_automation"),b.url="/api/fax/business/automations",e.getPage(b).then(function(c){a.displayedFaxAutomations=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.faxAutomationsByPage,a.displayedFaxAutomations.length),d.updateTableConfig(a.conf.faxAutomationsByPage,a.displayedFaxAutomations.length)}),g.socket.on("fax_business_automation:save",function(){a.initList(b)}),g.socket.on("fax_business_automation:remove",function(c){a.faxAutomations.checked=_.without(a.faxAutomations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/fax/business/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/fax/business/automations",{params:{id:a.faxAutomations.checked}}).success(function(){
+h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/fax/business/automations/"+a,{status:d}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.$on("$destroy",function(){g.unsyncUpdates("fax_business_automation")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.list",{url:"/list",templateUrl:"app/fax/automation/list/list.html",controller:"FaxAutomationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationViewCtrl",["$scope","$stateParams","$http","automation","socket","xAlert","$translate","$log",function(a,b,c,d,e,f,g,h){a.initView=function(){a.forms={info:{}},a.automations=d.automations,c.get("/api/fax/business/automations/"+b.id).success(function(c){h.debug(c),a.test=c,a.automation=c,e.syncUpdatesByAttributes("business_condition",{FaxBusinessAutomationId:b.id},c.BusinessConditions)}).error(function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateAutomation=function(){c.put("/api/fax/business/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description}).success(function(a){h.debug(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),h.error(a)})},a.getOperatorsByCondition=function(a){var b=[],c=_.find(d.automations.conditions,{key:a});return c.operators&&c.operators.length&&(b=c.operators),b},a.getAttributesByCondition=function(a){var b=[],c=_.find(d.automations.conditions,{key:a});if(c.attributes&&c.attributes.length)switch(c.key){case"createdAt":b=_.map(c.attributes,function(a){return a.value=parseInt(a.value,10),a});break;default:b=c.attributes}return b},a.addNewCondition=function(b){c.post("/api/business/conditions",{type:b,condition:"status",FaxBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessConditions.push(b)}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addNewAction=function(){c.post("/api/business/actions",{condition:"status",FaxBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessActions.push(b)}).error(function(a){console.error(a)})},a.removeCondition=function(a){c["delete"]("/api/business/conditions/"+a).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.removeAction=function(b){c["delete"]("/api/business/actions/"+b).success(function(b){console.log(b),a.automation.BusinessActions=_.reject(a.automation.BusinessActions,{id:b.id})}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateCondition=function(a,b,d){var e={};e[b]=d,c.put("/api/business/conditions/"+a,e).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateAction=function(a,b,d){var e={};e[b]=d,c.put("/api/business/actions/"+a,e).success(function(a){console.log(a),f.show(g.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.view",{url:"/view/:id",templateUrl:"app/fax/automation/view/view.html",controller:"FaxAutomationViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.fax.automations.view.settings",{url:"/settings",templateUrl:"app/fax/automation/view/view.settings.html",authenticate:!0}).state("main.fax.automations.view.routes",{url:"/routes",templateUrl:"app/fax/automation/view/view.routes.html",authenticate:!0}).state("main.fax.automations.view.application",{url:"/application",templateUrl:"app/fax/automation/view/view.application.html",authenticate:!0})}]),angular.module("xCallyShuttleApp").controller("FaxAutomationWizardCtrl",["$scope","$http","$location","automation","WizardHandler","xAlert","$translate",function(a,b,c,d,e,f,g){a.forms={},a.automations={or:[],and:[],actions:[]},a.addNewChoice=function(b){var c=angular.copy(d.automations);a.automations[b].push(c)},a.removeChoice=function(b,c){a.automations[b].splice(c)},a.goNext=function(){e.wizard().next()},a.createItem=function(){a.automations.or.forEach(function(a){a.condition=a.condition.key,a.type="or",delete a.conditions,delete a.actions}),a.automations.and.forEach(function(a){a.condition=a.condition.key,a.type="and",delete a.conditions,delete a.actions}),a.automations.actions.forEach(function(a){a.condition=a.condition.key,delete a.conditions,delete a.actions}),b.post("api/fax/business/automations",a.automations).success(function(){f.show(g.instant("MESSAGE_WELL_DONE"),"success"),c.path("/fax/automations/list")}).error(function(a){console.error(a),f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.automations.wizard",{url:"/wizard",templateUrl:"app/fax/automation/wizard/wizard.html",controller:"FaxAutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax",{url:"/fax",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxInboxComposeCtrl",["$scope","$http","FileUploader","$location","Auth","xAlert","$cookieStore","$translate",function(a,b,c,d,e,f,g,h){a.forms={},a.form={to:[],sto:[]},b.get("api/fax/accounts").success(function(b){a.faxAccounts=b.rows}),a.isNewMessageFromEmpty=!0;var i=a.uploader=new c({url:"api/fax/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+g.get("token")}});i.filters.push({name:"pdfFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|".indexOf(b)}}),i.onBeforeUploadItem=function(b){b.formData.push({accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:e.getCurrentUser().id,html:a.form.html?a.form.html:""})},i.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d)},i.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d)},i.onCompleteAll=function(){i.clearQueue(),f.show(h.instant("MESSAGE_WELL_DONE"),"success"),d.path("/fax/inbox/incoming")},i.onWhenAddingFileFailed=function(){f.show(h.instant("MESSAGE_WRONG_FORMAT"),"danger")},a.sendFax=function(){return a.form.sto.length?void(i.queue.length?i.uploadAll():b.post("api/fax/messages",{accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:e.getCurrentUser().id,html:a.form.html,onlyText:!0}).success(function(){f.show(h.instant("MESSAGE_WELL_DONE"),"success"),d.path("/fax/inbox/incoming")}).error(function(a){f.show(h.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})):(a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0))},a.cancel=function(){a.form.sto=[],delete a.form.from}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.compose",{url:"/compose",templateUrl:"app/fax/inbox/room/room.html",controller:"FaxInboxComposeCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxInboxCtrl",["$scope","$http","$location","$translate","$timeout","$notification","Auth","socket","$interval",function(a,b,c,d,e,f,g,h,i){a.go=function(a,d,e){e?b.put("/api/fax/rooms/"+d,{status:e}).success(function(){c.path(a)}).error(function(a){console.error(a)}):c.path(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox",{url:"/inbox",templateUrl:"app/fax/inbox/inbox.html",controller:"FaxInboxCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/inbox.css","assets/css/todo.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxIncomingCtrl",["$scope","$http","$location","socket","Auth","xAlert",function(a,b,c,d,e,f){a.$location=c,a.getRooms=function(){e.isAdmin()?b.get("api/fax/rooms").success(function(b){a.faxRooms=b,d.syncUpdates("fax_room",a.faxRooms)}).error(function(a){console.error(a),f.show($translate.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}):b.get("api/fax/rooms/agent/"+e.getCurrentUser().id).success(function(b){a.faxRooms=b,d.socket.on("fax_room:update",function(b){b.UserId===e.getCurrentUser().id&&a.faxRooms.push(b)})}).error(function(a){f.show($translate.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.incoming",{url:"/incoming",templateUrl:"app/fax/inbox/incoming/incoming.html",controller:"FaxInboxIncomingCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxInboxRoomCtrl",["$scope","$http","$stateParams","$location","FileUploader","socket","Auth","xAlert","$translate","$cookieStore",function(a,b,c,d,e,f,g,h,i,j){function k(){a.lastMessage=_.reject(a.faxRoom.FaxMessages,function(a){return"RECEIVED"!==a.status}),a.lastMessage=_.sortByOrder(a.lastMessage,["id"],["desc"])[0],a.lastMessage&&(console.log(a.faxRoom),a.form.from=a.faxRoom.FaxAccount,a.form.to=[a.lastMessage.From.phone],a.form.sto=[a.lastMessage.From.phone])}var l=a.uploader=new e({url:"api/fax/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+j.get("token")}});l.filters.push({name:"pdfFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|".indexOf(b)}}),l.onBeforeUploadItem=function(b){console.log(a.form.from.id,a.form.sto[0],a.isNewMessageFromEmpty,c.id,g.getCurrentUser().id),b.formData.push({accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,roomId:c.id,userId:g.getCurrentUser().id,html:a.form.html}),console.log(b)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d)},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",b,c,d)},l.onCompleteAll=function(){l.clearQueue(),h.show(i.instant("MESSAGE_WELL_DONE"),"success")},l.onWhenAddingFileFailed=function(){h.show(i.instant("MESSAGE_WRONG_FORMAT"),"danger")},a.initRoomView=function(){a.isNewMessageFromEmpty=!0,a.Auth=g,a.forms={},a.form={to:[],sto:[]},b.get("api/agents").success(function(b){a.agents=b}),b.get("api/fax/accounts").success(function(b){a.faxAccounts=b.rows}),c.id&&b.get("/api/fax/rooms/"+c.id).success(function(b){a.faxRoom=b,a.isNewMessageFromEmpty=!1,f.syncUpdates("fax_message",[],function(b,c){"created"===b&&c.FaxRoomId===a.faxRoom.id&&(a.faxRoom.FaxMessages.push(c),k())}),k()}).error(function(a){console.error(a),h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.sendFax=function(){return a.form.sto.length?void(l.queue.length?l.uploadAll():b.post("api/fax/messages",{accountId:a.form.from.id,toNum:a.form.sto[0],isNewRoom:a.isNewMessageFromEmpty,userId:g.getCurrentUser().id,html:a.form.html,onlyText:!0}).success(function(){h.show(i.instant("MESSAGE_WELL_DONE"),"success"),console.log("Fax Message sent")}).error(function(a){h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),console.error(a)})):(a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0))},a.assignAgent=function(a){b.put("/api/fax/rooms/"+c.id,{UserId:a}).success(function(){h.show(i.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateStatus=function(d){b.put("/api/fax/rooms/"+c.id,{status:d}).success(function(b){a.faxRoom.status=b.status,h.show(i.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(a){console.error(a),h.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){a.form.sto=[],delete a.form.from,l.clearQueue()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.inbox.room",{url:"/room/:id",templateUrl:"app/fax/inbox/room/room.html",controller:"FaxInboxRoomCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCtrl",["$scope","$rootScope","$http","$translate","socket","Modal","xAlert","stResource",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("fax_queue")}),a.conf={queuesByPage:{name:"10",value:10}},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.faxQueues={checked:[]},a.check=function(b,c){c?a.faxQueues.checked=angular.copy(_.pluck(a.displayedFaxQueues,"id")):a.faxQueues.checked=[]},a.getFaxQueues=function(b){return _.map(a.displayedFaxQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(c){e.unsyncUpdates("fax_queue"),c.url="/api/fax/queues",h.getPage(c).then(function(d){a.displayedFaxQueues=d.rows,c.pagination.numberOfPages=d.total_pages,b.updateTableConfig(d.queuesByPage,a.displayedFaxQueues.length),b.updateTableConfig(a.conf.queuesByPage,a.displayedFaxQueues.length)}),e.socket.on("fax_queue:save",function(){a.initList(c)}),e.socket.on("fax_queue:remove",function(b){a.faxQueues.checked=_.without(a.faxQueues.checked,b.id),a.initList(c)})},a.deleteItem=f.confirm["delete"](function(a){c["delete"]("/api/fax/queues/"+a).success(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){g.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){c["delete"]("/api/fax/queues/",{params:{id:a.faxQueues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})}),a.deleteItems=f.confirm["delete"](function(){c["delete"]("/api/fax/queues/",{params:{id:a.faxQueues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.list",{url:"/list",templateUrl:"app/fax/queue/list/list.html",controller:"FaxQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/fax/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/fax/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/fax/queues/"+d.id).success(function(b){a.queue=b}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateFaxQueue=function(){var f=angular.copy(a.queue);b.put("/api/fax/queues/"+d.id,f).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/fax/user_has_queues",method:"GET",params:{FaxQueueId:a.queue.id}}).success(function(b){ComponentsDropdowns.bindFaxQueue(a.teams,_.pluck(b,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.view",{url:"/view/:id",templateUrl:"app/fax/queue/view/view.html",controller:"FaxQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.fax.queues.view.settings",{url:"/settings",templateUrl:"app/fax/queue/view/view.settings.html"}).state("main.fax.queues.view.agents",{url:"/agents",templateUrl:"app/fax/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueWizardCtrl",["$scope","$http","WizardHandler","xAlert","$translate","$location",function(a,b,c,d,e,f){a.forms={},a.item={},a.next=function(){c.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/fax/queues",a.item).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success"),f.path("/fax/queues/list")}).error(function(a){d.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.queues.wizard",{url:"/wizard",templateUrl:"app/fax/queue/wizard/wizard.html",controller:"FaxQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxTimelineListCtrl",["$scope","$http","socket","xAlert","$translate",function(a,b,c,d,e){function f(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/fax").success(function(a){a.forEach(f),c.socket.on("event:fax:save",f)}).error(function(a){console.error(a),d.show(e.instant("MESSAGE_FAX_ACCOUNT_GET_FAILURE"),"danger")})},a.$on("$destroy",function(){c.socket.removeAllListeners("event:fax:save")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.timeline.list",{url:"/list",templateUrl:"app/fax/timeline/list/list.html",controller:"FaxTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.fax.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk",{url:"/freshdesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FreshdeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedFreshdeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedFreshdeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("freshdesk_account"),b.url="/api/freshdesk/accounts",h.getPage(b).then(function(d){a.displayedFreshdeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedFreshdeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedFreshdeskAccounts.length)}),f.socket.on("freshdesk_account:save",function(){a.initList(b)}),f.socket.on("freshdesk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/freshdesk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/freshdesk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/freshdesk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.list",{url:"/list",templateUrl:"app/freshdesk/list/list.html",controller:"FreshdeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("freshdesk_configuration"),h.unsyncUpdates("freshdesk_field")}),a.initView=function(){b.get("/api/freshdesk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/freshdesk/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/freshdesk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("freshdesk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/freshdesk/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/freshdesk/configurations",a.configuration).success(function(a){e.path("freshdesk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/freshdesk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=[],b=f("freshdesk")(b),_.forEach(b,function(b){a.accountFields.push(b.ticket_field)})}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/freshdesk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("freshdesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/freshdesk/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/freshdesk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/freshdesk/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"name",b.idField);c&&(b.customField=!_.result(c,"default",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.choices.length>0?c.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view",{url:"/view/:id",templateUrl:"app/freshdesk/view/view.html",controller:"FreshdeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.freshdesk.view.account",{url:"/account",templateUrl:"app/freshdesk/view/view.account.html"}).state("main.freshdesk.view.configurations",{url:"/configurations",templateUrl:"app/freshdesk/view/view.configurations.html"}).state("main.freshdesk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/freshdesk/view/view.configurationSettings.html",controller:"FreshdeskViewCtrl"}).state("main.freshdesk.view.configuration",{url:"/configuration",templateUrl:"app/freshdesk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/freshdesk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/freshdesk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.wizard",{url:"/wizard",templateUrl:"app/freshdesk/wizard/wizard.html",controller:"FreshdeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations",{url:"/integrations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("Integration",["$resource",function(a){return a("/api/integrations/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").controller("IntegrationListCtrl",["$scope","Modal","socket","FileUploader","Integration","xAlert",function(a,b,c,d,e,f){a.integrationsByPage=10;var g=a.uploader=new d({url:"api/integrations",autoUpload:!0,removeAfterUpload:!0});g.filters.push({name:"zipFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|zip|".indexOf(b)}}),g.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(b.name,"success")},g.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),b.errors.forEach(function(a){f.show(a.message,"danger")})},a.deleteItem=b.confirm["delete"](function(a){e["delete"]({id:a},function(){f.show("Integration Removed","success")},function(a){f.show(a.data.errors,"danger")})}),a.initList=function(){a.integrations=e.query({},function(a){c.syncUpdates("integration",a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations.list",{url:"/list",templateUrl:"app/integration/list/list.html",controller:"IntegrationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals",{url:"/intervals",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IntervalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={intervalsByPage:{name:"10",value:10},labels:["name"]},a.intervalsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.intervals={checked:[]},a.check=function(b,c){c?a.intervals.checked=angular.copy(_.pluck(a.displayedIntervals,"id")):a.intervals.checked=[]},a.getIntervals=function(b){return _.map(a.displayedIntervals,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("interval"),b.url="/api/intervals",h.getPage(b).then(function(c){a.displayedIntervals=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.intervalsByPage,a.displayedIntervals.length),e.updateTableConfig(a.conf.intervalsByPage,a.displayedIntervals.length)}),c.socket.on("interval:save",function(){a.initList(b)}),c.socket.on("interval:remove",function(c){a.intervals.checked=_.without(a.intervals.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/intervals/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(d.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/intervals",{params:{id:a.intervals.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.list",{url:"/list",templateUrl:"app/interval/list/list.html",controller:"IntervalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("IntervalViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","interval",function(a,b,c,d,e,f,g,h,i,j){a.$translate=d,a.$interval=j.interval,a.forms={subinterval:void 0,general:void 0},a.initSubInterval=function(){a.subinterval={IntervalId:e.id},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0}},a.next=function(){b.post("/api/intervals/validate/",a.subinterval).success(function(a){console.log(a),a.length?c.show(d.instant("MESSAGE_EXIST_SUBINTERVAL"),"danger"):h.wizard().next()}).error(function(a){c.show(d.instant(a.message),"danger")})},a.previous=function(){h.wizard().previous()},a.exitValidation=function(a){return a},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from,a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to)):c="*",
+a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from,a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to)):e="*",b+","+c+","+d+","+e},a.getInterval=function(){b.get("/api/intervals/"+e.id).success(function(b){a.interval=b,a.subIntervals=b.SubIntervals,f.unsyncUpdates("interval"),f.socket.on("interval:remove",function(b){b.id&&_.remove(a.subIntervals,function(a){return b.id===a.id})}),f.socket.on("interval:update",function(b){var c=_.find(a.subIntervals,{id:b.id});c.interval=b.interval}),f.socket.on("interval:save",function(b){if(b.IntervalId===e.id){var c=_.find(a.subIntervals,{id:b.id});c||a.subIntervals.push(b)}})}).error(function(a){console.error(a),g.path("/intervals/list")})},a.updateInterval=function(){var f=angular.copy(a.interval);b.put("/api/intervals/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.interval=f})},a.getSubInterval=function(){b.get("/api/intervals/"+e.appId).success(function(b){a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)},a.subinterval=b;var c,d=b.interval?b.interval.split(","):["*","*","*","*"];d.forEach(function(b,d){switch(d){case 0:"*"!==b?(c=b.split("-"),a.splittedInterval.t_from=moment(c[0],"HH:mm"),a.splittedInterval.t_to=moment(c[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==b?(c=b.split("-"),a.splittedInterval.wd_from=_.capitalize(c[0]),a.splittedInterval.wd_to=c[1]?_.capitalize(c[1]):"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==b?(c=b.split("-"),a.splittedInterval.md_from=c[0],a.splittedInterval.md_to=c[1]?c[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==b?(c=b.split("-"),a.splittedInterval.m_from=_.capitalize(c[0]),a.splittedInterval.m_to=c[1]?_.capitalize(c[1]):"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})}).error(function(a){console.error(a),g.path("/intervals/view/"+e.id+"/subintervals")})},a.createItem=function(){a.subinterval.interval=a.joinInterval(a.splittedInterval),b.post("/api/intervals/",a.subinterval).success(function(){g.path("/intervals/view/"+e.id+"/subintervals")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.updateItem=function(){a.subinterval.interval=a.joinInterval(a.splittedInterval),b.put("/api/intervals/"+e.appId,a.subinterval).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),g.path("/intervals/view/"+e.id+"/subintervals")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.deleteItem=i.confirm["delete"](function(a){b["delete"]("/api/intervals/"+a).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){console.log(a),c.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.view",{url:"/view/:id",templateUrl:"app/interval/view/view.html",controller:"IntervalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.intervals.view.settings",{url:"/settings",templateUrl:"app/interval/view/view.settings.html"}).state("main.intervals.view.subintervals",{url:"/subintervals",templateUrl:"app/interval/view/view.subintervals.html",cache:!1}).state("main.intervals.view.subinterval",{url:"/subinterval",templateUrl:"app/interval/view/view.subinterval.html",authenticate:!0}).state("main.intervals.view.subintervals.settings",{url:"/settings/:appId",templateUrl:"app/interval/view/view.subintervalSettings.html",authenticate:!0,controller:"IntervalViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={interval:void 0},a.item={},a.next=function(){b.post("/api/intervals/validate/",a.item).success(function(a){console.log(a),a.length?e.show(f.instant("MESSAGE_EXIST_INTERVAL"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/intervals/",a.item).success(function(a){d.path("/intervals/view/"+a.id+"/subintervals")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.intervals.wizard",{url:"/wizard",templateUrl:"app/interval/wizard/wizard.html",controller:"IntervalWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("LoginCtrl",["$scope","Auth","$location","$window","$rootScope",function(a,b,c,d,e){a.userLogin={},a.userSignUp={},a.loginSubmitted=!1,a.signupSubmitted=!1,a.errorLogin=!1,a.errorSignup=!1,a.errorLog="",a.flagLogin1=!1,a.toogleLogin=function(){a.flagLogin1=!a.flagLogin1},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.login=function(d){a.loginSubmitted=!0,d.$valid?b.login({name:a.userLogin.name,password:a.userLogin.password,remember:a.userLogin.remember}).then(function(){c.path("/dashboard/voice")})["catch"](function(b){a.errorLog=b.message,a.errorLogin=!0}):a.errorLogin=!0},a.signup=function(d){a.signupSubmitted=!0,d.$valid?b.createUser({email:a.userSignUp.email,fullname:a.userSignUp.fullname,name:a.userSignUp.name,password:a.userSignUp.password,role:a.userSignUp.role,online:!0}).then(function(){c.path("/")})["catch"](function(b){a.errorLog=b.message,a.errorSignup=!0}):a.errorSignup=!0},a.loginOauth=function(a){d.location.href="/auth/"+a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("login",{url:"/login",templateUrl:"app/login/login.html",controller:"LoginCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountListCtrl",["$scope","$http","socket","$translate","$rootScope","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.conf={mailAccountsByPage:{name:"10",value:10}},a.mailAccountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailAccounts={checked:[]},a.check=function(b,c){c?a.mailAccounts.checked=angular.copy(_.pluck(a.displayedMailAccounts,"id")):a.mailAccounts.checked=[]},a.getMailAccounts=function(b){return _.map(a.displayedMailAccounts,function(a){var c={};return b.forEach(function(b){_.isObject(b)?_.forIn(b,function(b,d){c[b]=a[d][b]}):c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("mail_server_in"),c.unsyncUpdates("mail_account"),b.url="/api/mail/accounts",g.getPage(b).then(function(c){a.displayedMailAccounts=c.rows,b.pagination.numberOfPages=c.total_pages}),c.socket.on("mail_server_in:save",function(){a.initList(b)}),c.socket.on("mail_account:save",function(){a.initList(b)}),c.socket.on("mail_account:remove",function(c){a.mailAccounts.checked=_.without(a.mailAccounts.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/accounts/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/accounts",{params:{id:a.mailAccounts.checked}}).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(d.instant(a.message),"danger")})}),a.restart=function(a){c.socket.emit("IMAP:"+a+":RESTART",{msg:"IMAP:"+a+":RESTART"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.list",{url:"/list",templateUrl:"app/mail/account/list/list.html",controller:"MailAccountListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailAccount",["$resource",function(a){return a("/api/mail/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerIn",["$resource",function(a){return a("/api/mail/servers/in/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerOut",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"},{update:{method:"PUT"},test:{method:"GET"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionListCtrl",["$scope","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g){a.initActons=function(){console.log(d),a.sortableOptions={stop:function(){console.log("stop",_.pluck(a.mailApplications,"id")),b.post("api/mail/accounts/"+d.accountId+"/applications",{applications:_.pluck(a.mailApplications,"id")}).success(function(b){angular.copy(b,a.mailApplications)}).error(function(a){console.error(a)})}},b.get("/api/mail/applications",{params:{MailAccountId:d.accountId}}).success(function(b){a.mailApplications=b,e.socket.on("mail_application:remove",function(b){_.remove(a.mailApplications,{id:b.id})})})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/mail/applications/"+a).success(function(){f.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.list",{url:"/list",templateUrl:"app/mail/account/view/action/list/list.html",controller:"MailAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],b.get("/api/mail/applications/"+c.actionId).success(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1]),console.log(c),a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})}).error(function(a){console.error(a)})},a.getQueues=function(){b.get("/api/mail/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.updateItem=function(){var e=["*","*","*","*"],g={app:a.application.app,timeout:a.application.timeout,MailAccountId:c.id};switch(a.application.app){case"agent":g.UserId=a.application.UserId;break;case"queue":g.MailQueueId=a.application.MailQueueId}switch(a.application.intType){case"always":g.interval=e.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(e[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),e[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",e[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",e[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",g.interval=e.join(","),delete a.application.IntervalId;break;case"list":g.IntervalId=a.application.IntervalId}b.put("/api/mail/applications/"+c.actionId,g).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/mail/account/view/action/view/view.html",controller:"MailAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionWizardCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){console.log(c),a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"}],a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){b.get("/api/mail/queues",{params:{page:0,per_page:500}}).success(function(b){a.queues=b.rows}).error(function(a){console.error(a)})},a.getAgents=function(){b.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=b.rows}).error(function(a){console.error(a)})},a.getIntervals=function(){b.get("/api/intervals",{params:{page:0,per_page:500}}).success(function(b){a.intervals=b.rows}).error(function(a){console.error(a)})},a.createItem=function(){var d=["*","*","*","*"],f={app:a.application.app,timeout:a.application.timeout,MailAccountId:c.accountId};switch(a.application.app){case"agent":f.UserId=a.application.UserId;break;case"queue":f.MailQueueId=a.application.MailQueueId}switch(a.application.intType){case"always":f.interval=d.join(","),delete a.application.IntervalId;break;case"custom":a.application.alwaysTime||(d[0]=a.application.alwaysTime?"*":a.application.t_from_hm+"-"+a.application.t_to_hm),d[1]=a.application.wd_from&&a.application.wd_to?a.application.wd_from+"-"+a.application.wd_to:"*",d[2]=a.application.md_from&&a.application.md_to?a.application.md_from+"-"+a.application.md_to:"*",d[3]=a.application.m_from&&a.application.m_to?a.application.m_from+"-"+a.application.m_to:"*",f.interval=d.join(","),delete a.application.IntervalId;break;case"list":f.IntervalId=a.application.IntervalId}b.post("/api/mail/applications",f).success(function(){e.path("/mail/accounts/view/"+c.accountId+"/actions/list")}).error(function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){g.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/mail/account/view/action/wizard/wizard.html",controller:"MailAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","MailAccount","MailMessage","MailServerIn","MailServerOut",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){a.account=g.get({id:c.accountId})},a.updateItemMailAccount=function(){g.update({id:c.accountId},{name:a.account.name,description:a.account.description,address:a.account.address}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.updateItemMailServerIn=function(){i.update({id:a.account.MailServerIn.id},a.account.MailServerIn).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.updateItemMailServerOut=function(){j.update({id:a.account.MailServerOut.id},a.account.MailServerOut).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})},a.test=function(){j.test({id:a.account.MailServerOut.id,controller:"test"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.view",{url:"/view/:accountId",templateUrl:"app/mail/account/view/view.html",controller:"MailAccountViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.mail.accounts.view.settings",{url:"/settings",templateUrl:"app/mail/account/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert",function(a,b,c,d,e,f){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.info={},a["in"]={"delete":!1,ssl:!0,protocol:"IMAP",port:993,mailbox:"INBOX",filter:"UNSEEN"},a.out={ssl:!0,port:465},a.$translate=d},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){var e={name:a.info.name,address:a.info.address,description:a.info.description,incoming:a["in"],outgoing:a.out};b.post("api/mail/accounts",e).success(function(){c.path("/mail/accounts/list")}).error(function(a){console.log(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.accounts.wizard",{url:"/wizard",templateUrl:"app/mail/account/wizard/wizard.html",controller:"MailAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAutomationListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={mailAutomationsByPage:{name:"10",value:10}},a.mailAutomationsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.mailAutomations={checked:[]},a.check=function(b,c){c?a.mailAutomations.checked=angular.copy(_.pluck(a.displayedMailAutomations,"id")):a.mailAutomations.checked=[]},a.getMailAutomations=function(b){return _.map(a.displayedMailAutomations,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("mail_business_automation"),b.url="/api/mail/business/automations",e.getPage(b).then(function(c){a.displayedMailAutomations=c.mailAutomations,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.mailAutomationsByPage,a.displayedMailAutomations.length),d.updateTableConfig(a.conf.mailAutomationsByPage,a.displayedMailAutomations.length)}),g.socket.on("mail_business_automation:save",function(){a.initList(b)}),g.socket.on("mail_business_automation:remove",function(c){a.mailAutomations.checked=_.without(a.mailAutomations.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/business/automations/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"danger")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/business/automations",{params:{id:a.mailAutomations.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/mail/business/automations/"+a,{status:d}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.list",{url:"/list",templateUrl:"app/mail/automation/list/list.html",controller:"MailAutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAutomationViewCtrl",["$scope","$stateParams","$http","$translate","automation","socket","xAlert",function(a,b,c,d,e,f,g){a.initView=function(){a.forms={info:{}},a.automations=e.automations,c.get("/api/mail/business/automations/"+b.id).success(function(c){a.test=c,a.automation=c,f.syncUpdatesByAttributes("business_condition",{MailBusinessAutomationId:b.id},c.BusinessConditions)}).error(function(){})},a.updateAutomation=function(){c.put("/api/mail/business/automations/"+a.automation.id,{name:a.automation.name,description:a.automation.description}).success(function(a){g.show(d.instant("MESSAGE_WELL_DONE"),"success"),console.log(a)}).error(function(a){console.error(a)})},a.getOperatorsByCondition=function(a){var b=[],c=_.find(e.automations.conditions,{key:a});return c.operators&&c.operators.length&&(b=c.operators),b},a.getAttributesByCondition=function(a){var b=[],c=_.find(e.automations.conditions,{key:a});if(c.attributes&&c.attributes.length)switch(c.key){case"createdAt":b=_.map(c.attributes,function(a){return a.value=parseInt(a.value,10),a});break;default:b=c.attributes}return b},a.addNewCondition=function(b){c.post("/api/business/conditions",{type:b,condition:"status",MailBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessConditions.push(b)}).error(function(a){console.error(a)})},a.removeCondition=function(a){c["delete"]("/api/business/conditions/"+a).success(function(a){console.log(a)}).error(function(a){console.error(a)})},a.addNewAction=function(){c.post("/api/business/actions",{condition:"status",MailBusinessAutomationId:a.automation.id}).success(function(b){a.automation.BusinessActions.push(b)}).error(function(a){console.error(a)})},a.removeAction=function(b){c["delete"]("/api/business/actions/"+b).success(function(b){a.automation.BusinessActions=_.reject(a.automation.BusinessActions,{id:b.id})}).error(function(a){console.error(a)})},a.updateCondition=function(a,b,d){var e={};e[b]=d,c.put("/api/business/conditions/"+a,e).error(function(a){console.error(a)})},a.updateAction=function(a,b,d){var e={};e[b]=d,c.put("/api/business/actions/"+a,e).success(function(a){console.log(a)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.view",{url:"/view/:id",templateUrl:"app/mail/automation/view/view.html",controller:"MailAutomationViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.mail.automations.view.settings",{url:"/settings",templateUrl:"app/mail/automation/view/view.settings.html"}).state("main.mail.automations.view.routes",{url:"/routes",templateUrl:"app/mail/automation/view/view.routes.html"}).state("main.mail.automations.view.application",{url:"/application",templateUrl:"app/mail/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("MailAutomationWizardCtrl",["$scope","$http","$location","$translate","automation","WizardHandler","xAlert",function(a,b,c,d,e,f,g){a.forms={},a.automations={or:[],and:[],actions:[]},a.addNewChoice=function(b){var c=angular.copy(e.automations);a.automations[b].push(c)},a.removeChoice=function(b,c){a.automations[b].splice(c)},a.goNext=function(){return a.automations.actions.length?a.automations.or.length||a.automations.and.length?void f.wizard().next():(g.show(d.instant("MESSAGE_INSERT_AT_LEAST_ONE_CONDITION"),"danger"),!1):(g.show(d.instant("MESSAGE_INSERT_AT_LEAST_ONE_ACTION"),"danger"),!1)},a.createItem=function(){a.automations.or.forEach(function(a){a.condition=a.condition.key,a.type="or",delete a.conditions,delete a.actions}),a.automations.and.forEach(function(a){a.condition=a.condition.key,a.type="and",delete a.conditions,delete a.actions}),a.automations.actions.forEach(function(a){a.condition=a.condition.key,delete a.conditions,delete a.actions}),b.post("api/mail/business/automations",a.automations).success(function(){c.path("/mail/automations/list")}).error(function(){g.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG","danger"))})},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.automations.wizard",{url:"/wizard",templateUrl:"app/mail/automation/wizard/wizard.html",controller:"MailAutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailComposeCtrl",["$scope","$http","$location","$cookieStore","$translate","xAlert","FileUploader","Auth",function(a,b,c,d,e,f,g,h){var i=a.uploader=new g({url:"api/mail/messages",withCredentials:!0,headers:{Authorization:"Bearer "+d.get("token")},queueLimit:1});i.onBeforeUploadItem=function(b){b.formData.push({mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||null,html:a.form.html||null,text:a.form.text||null,attachment:!0,UserId:h.getCurrentUser().id})},i.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success")},i.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")},i.onCompleteAll=function(){console.log("onCompleteAll"),c.path("/mail/inbox/incoming")},a.forms={},a.form={to:[],sto:[],cc:[],scc:[]},b.get("api/mail/accounts").success(function(b){a.mailAccounts=b.rows}),a.sendMail=function(){if(i.queue.length)console.log("file"),i.uploadAll();else{console.log("no file");var d={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||null,html:a.form.html||null,text:a.form.text||null,UserId:h.getCurrentUser().id};b.post("/api/mail/messages",d).success(function(){f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),c.path("/mail/inbox/incoming")}).error(function(){f.show(e.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")})}},a.cancel=function(){a.form.sto=[],a.form.scc=[],delete a.form.from,delete a.form.text,delete a.form.html}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.compose",{url:"/compose",templateUrl:"app/mail/inbox/room/room.html",controller:"MailComposeCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailInboxCtrl",["$scope","$http","$location",function(a,b,c){a.go=function(a){c.path(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox",{url:"/inbox",template:"<div ui-view></div>",controller:"MailInboxCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css","assets/css/todo.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailIncomingCtrl",["$scope","$http","$location","$translate","$timeout","socket","xAlert","Auth","stResource","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$location=c,a.conf={mailRoomsByPage:{name:"10",value:10},labels:["fullname","name","email"],test:"OPEN"},a.mailRoomsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailRooms={checked:[]},a.check=function(b,c){c?a.mailRooms.checked=angular.copy(_.pluck(a.displayedMailRooms,"id")):a.mailRooms.checked=[]},a.initList=function(b){f.unsyncUpdates("mail_room"),b.search.predicateObject||(b.search.predicateObject={}),b.sort.predicate="createdAt",b.sort.reverse=!0,h.isAdmin()?(f.socket.on("mail_room:save",function(){e(function(){g.show(d.instant("MESSAGE_MAIL_NEW_INCOMING_MAIL"),"success"),a.initList(b)},2e3)}),f.socket.on("mail_room:remove",function(c){a.mailRooms.checked=_.without(a.mailRooms.mailRooms,c.id),a.initList(b)})):(f.socket.on("mail_room:save",function(c){c.UserId===h.getCurrentUser().id&&a.initList(b)}),f.socket.on("mail_room:remove",function(c){c.UserId===h.getCurrentUser().id&&(a.mailRooms.checked=_.without(a.mailRooms.checked,c.id),a.initList(b))}),b.search.predicateObject.UserId=h.getCurrentUser().id),b.url="/api/mail/rooms/",i.getPage(b).then(function(c){a.displayedMailRooms=c.mailRooms,b.pagination.numberOfPages=c.total_pages})},a.deleteItems=j.confirm["delete"](function(){b["delete"]("/api/mail/rooms",{params:{id:a.mailRooms.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})}),a.$on("$destroy",function(){f.unsyncUpdates("mail_room")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.incoming",{url:"/incoming",templateUrl:"app/mail/inbox/incoming/incoming.html",controller:"MailIncomingCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailRoomCtrl",["$scope","$http","$stateParams","$timeout","$cookieStore","$location","$translate","$log","$uibModal","xAlert","Auth","socket","FileUploader","MailMessage",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=a.uploader=new m({url:"api/mail/messages",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});o.onErrorItem=function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")},o.onCompleteAll=function(){f.path("/mail/inbox/incoming")},o.onBeforeUploadItem=function(b){var c={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||a.mailRoom.subject||null,html:a.form.html||null,text:a.form.text||null,MailRoomId:a.mailRoom.id},d=angular.copy(a.mailRoom.MailMessages);d=_.reject(d,function(a){return"RECEIVED"!==a.status}),c.inReplyTo=d?_.last(d).messageId:null,b.formData.push(c)},a.retry=function(a){var b=i.open({animation:!0,templateUrl:"app/mail/inbox/room/room.retry.modal.html",controller:function(a,c){a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",
+buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},a.ok=function(){c.close()},a.cancel=function(){c.dismiss("cancel")}}});b.result.then(function(){n.update({id:a,status:"SENDING"},function(a){console.log(a)})},function(){h.info("Modal dismissed at: "+new Date)})},a.initRoomView=function(){a.Auth=k,a.forms={},a.form={to:[],sto:[],cc:[],scc:[]},b.get("/api/agents").success(function(b){a.agents=b.rows}),b.get("/api/mail/accounts").success(function(b){a.mailAccounts=b.rows}),b.get("/api/mail/rooms/"+c.id).success(function(c){a.mailRoom=c,l.syncUpdatesByAttributes("mail_message",{MailRoomId:a.mailRoom.id},a.mailRoom.MailMessages);var d=_.last(a.mailRoom.MailMessages);d.MailRoom.MailAccount&&(a.form.from={name:d.MailRoom.MailAccount.name,address:d.MailRoom.MailAccount.address,id:d.MailRoom.MailAccount.id},a.form.to=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.cc.split(";"):[],d.bcc?d.bcc.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address}),a.form.cc=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.to.split(";"):[],d.bcc?d.bcc.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address}),a.form.bcc=_.remove(_.union(d.to?d.from.split(";"):[],d.cc?d.cc.split(";"):[],d.bcc?d.to.split(";"):[]),function(a){return a!==d.MailRoom.MailAccount.address})),"NEW"===a.mailRoom.status&&b.put("/api/mail/rooms/"+a.mailRoom.id,{status:"OPEN"})}).error(function(){f.path("/mail/inbox/incoming")})},a.sendMail=function(){var c=angular.copy(a.mailRoom.MailMessages);if(c=_.reject(c,function(a){return"RECEIVED"!==a.status}),c=_.sortBy(c,"id"),o.queue.length)o.uploadAll();else{if(!a.form.sto.length)return a.forms.compose.to.$valid=!1,void(a.forms.compose.to.$invalid=!0);a.forms.compose.to.$valid=!0,a.forms.compose.to.$invalid=!1;var d={mailAccountId:a.form.from.id,status:"SENDING",roomStatus:"OPEN",from:a.form.from.address,to:a.form.sto.join(";"),cc:a.form.scc.join(";"),subject:a.form.subject||a.mailRoom.subject||null,html:a.form.html||null,text:a.form.text||null,MailRoomId:a.mailRoom.id};c&&_.last(c)&&(d.inReplyTo=_.last(c).messageId),b.post("/api/mail/messages",d).success(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),f.path("/mail/inbox/incoming")}).error(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_SEND_FAILURE"),"danger")})}},a.cancel=function(){a.form.sto=[],a.form.scc=[],delete a.form.text},a.updateStatus=function(d){b.put("/api/mail/rooms/"+c.id,{status:d}).success(function(b){a.mailRoom.status=b.status,j.show(g.instant("MESSAGE_STATUS_UPDATE_SUCCESS"),"success"),f.path("/mail/inbox/incoming")}).error(function(){j.show(g.instant("MESSAGE_STATUS_UPDATE_FAILURE"),"danger")})},a.assignAgent=function(a){b.put("/api/mail/rooms/"+c.id,{UserId:a}).success(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_ASSIGNEMNT_SUCCESS"),"success")}).error(function(){j.show(g.instant("MESSAGE_MAIL_MESSAGE_ASSIGNEMNT_FAILURE"),"danger")})}}]),angular.module("xCallyShuttleApp").factory("MailRoom",["$resource",function(a){return a("/api/mail/rooms/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.inbox.room",{url:"/room/:id",templateUrl:"app/mail/inbox/room/room.html",controller:"MailRoomCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail",{url:"/mail",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("MailMessage",["$resource",function(a){return a("/api/mail/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailQueueListCtrl",["$scope","$http","$translate","$rootScope","socket","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("mail_queue")}),a.conf={queuesByPage:{name:"10",value:10}},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mailQueues={checked:[]},a.check=function(b,c){c?a.mailQueues.checked=angular.copy(_.pluck(a.displayedMailQueues,"id")):a.mailQueues.checked=[]},a.getMailQueues=function(b){return _.map(a.displayedMailQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("mail_queue"),b.url="/api/mail/queues/",g.getPage(b).then(function(c){a.displayedMailQueues=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(c.queuesByPage,a.displayedMailQueues.length),d.updateTableConfig(a.conf.queuesByPage,a.displayedMailQueues.length)}),e.socket.on("mail_queue:save",function(){a.initList(b)}),e.socket.on("mail_queue:remove",function(c){a.mailQueues.checked=_.without(a.mailQueues.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/queues/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/queues/",{params:{id:a.mailQueues.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.list",{url:"/list",templateUrl:"app/mail/queue/list/list.html",controller:"MailQueueListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailQueue",["$resource",function(a){return a("/api/mail/queues/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e){var f=function(){return{select:function(c){b.post("/api/mail/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/mail/queues/"+a.queue.id+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/mail/queues/"+d.id).success(function(b){a.queue=b}).error(function(a){console.error(a)})},a.updateMailQueue=function(){var f=angular.copy(a.queue);b.put("/api/mail/queues/"+d.id,f).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){e.show(b.message,"success"),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b.get("/api/mail/user_has_queues",{params:{MailQueueId:a.queue.id}}).success(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.pluck(b,"UserId"),f)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.view",{url:"/view/:id",templateUrl:"app/mail/queue/view/view.html",controller:"MailQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.mail.queues.view.settings",{url:"/settings",templateUrl:"app/mail/queue/view/view.settings.html"}).state("main.mail.queues.view.agents",{url:"/agents",templateUrl:"app/mail/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailQueueWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert",function(a,b,c,d,e){a.forms={},a.item={},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/mail/queues",a.item).success(function(){c.path("/mail/queues/list")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.queues.wizard",{url:"/wizard",templateUrl:"app/mail/queue/wizard/wizard.html",controller:"MailQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentCtrl",["$scope","$http","socket","MailQueue","Agent",function(a,b,c,d,e){a.gridOptions={enableSorting:!1,enableFiltering:!0,columnDefs:[{name:"queueName",displayName:"Queue"},{name:"agentName",displayName:"Agent",cellClass:"text-center",cellTemplate:'<span data-ng-if="row.entity.agentName">{{row.entity.fullname}} [{{row.entity.agentName}}]</span>'},{name:"online",cellClass:"text-center",cellTemplate:'<span class="badge badge-empty" data-ng-if="row.entity.online != null" data-ng-class="row.entity.online ? \'badge-success\' : \'badge-danger\'"></span>'},{name:"lastLoginAt",cellClass:"text-center",cellTemplate:'<time data-ng-if="row.entity.agentName" is="relative-time" datetime="{{row.entity.lastLoginAt}}">April 1, 2014</time>'}],onRegisterApi:function(b){a.gridApi=b,a.gridApi.treeBase.on.rowExpanded(a,function(b){var c=_.findIndex(a.gridOptions.data,{$$hashKey:b.entity.$$hashKey});b.entity.Users&&b.entity.Users.forEach(function(b){_.find(a.gridOptions.data,{name:b.name})||a.gridOptions.data.splice(c+1,0,b)})})}},d.get(function(b){a.gridOptions.data=[],b.rows.forEach(function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b),b.Users&&b.Users.forEach(function(b){b.agentName=b.name,a.gridOptions.data.push(b)})}),c.socket.on("agent:save",function(b){var c=_.filter(a.gridOptions.data,{agentName:b.name});c.forEach(function(a){a.online=b.online,a.lastLoginAt=b.lastLoginAt})}),c.socket.on("mail_queue:save",function(b){b.$$treeLevel=0,b.queueName=b.name,a.gridOptions.data.push(b)}),c.socket.on("mail_queue:remove",function(b){_.remov(a.gridOptions.data,{queueName:b.name})}),c.socket.on("user_has_mail_queue:save",function(b){var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.MailQueueId});e.get({id:b.UserId}).$promise.then(function(b){a.gridOptions.data.splice(c+1,0,{id:b.id,name:b.name,fullname:b.fullname,agentName:b.name,online:b.online,lastLoginAt:b.lastLoginAt})})["catch"](function(a){console.error(a)})}),c.socket.on("user_has_mail_queue:remove",function(b){for(var c=_.findIndex(a.gridOptions.data,function(a){return a.queueName&&a.id===b.MailQueueId}),d=c+1;d<a.gridOptions.data.length;d++)a.gridOptions.data[d].id==b.UserId&&a.gridOptions.data.splice(d,1)})},function(a){console.error(a)}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_mail:save"),c.unsyncUpdates("report_mail:update")}),a.initAgents=function(){b.get("/api/report/mails").success(function(b){a.agents=b,c.socket.on("report_mail:save",function(b){var c=_.find(a.agents,{id:b.id});c||a.agents.unshift(b)}),c.socket.on("report_mail:update",function(b){var c=_.find(a.agents,{id:b.id}),d=a.agents.indexOf(c);c&&_.merge(a.agents[d],b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime.view.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0}).state("main.mail.realtime.view.agents.queues",{url:"/queues",controller:"MailRealtimeViewAgentCtrl",templateUrl:"app/mail/realtime/view/agent/agent.queues.html"}).state("main.mail.realtime.view.agents.timeline",{url:"/attempts",controller:"MailRealtimeViewAgentCtrl",templateUrl:"app/mail/realtime/view/agent/agent.timeline.html"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewSessionCtrl",["$scope","$http","socket",function(a,b,c){a.conf={sessionsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.sessionsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){c.unsyncUpdates("report_mail:save"),c.unsyncUpdates("report_mail:update")}),a.initMails=function(){b.get("/api/report/mail/sessions").success(function(b){a.sessions=b,c.socket.on("report_mail_session:save",function(b){var c=_.find(a.sessions,{id:b.id}),d=a.sessions.indexOf(c);c?_.merge(a.sessions[d],b):a.sessions.unshift(b)})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.mail.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.mail.realtime.view.sessions"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.realtime.view",{url:"/view",templateUrl:"app/mail/realtime/view/view.html",controller:"MailRealtimeViewCtrl"}).state("main.mail.realtime.view.sessions",{url:"/sessions",controller:"MailRealtimeViewSessionCtrl",templateUrl:"app/mail/realtime/view/session/session.html"})}]),angular.module("xCallyShuttleApp").controller("MailStatisticsCtrl",["$scope","$http","$translate","socket",function(a,b,c,d){a.message="Hello",a.$translate=c,b.get("api/mail/rooms").success(function(b){a.mailRooms=b,d.syncUpdates("mail_room",a.mailRooms)}),b.get("api/mail/messages").success(function(b){a.mailMessages=b,d.syncUpdates("mail_message",a.mailMessages)})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.statistics",{url:"/statistics",templateUrl:"app/mail/statistics/statistics.html",controller:"MailStatisticsCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.mail.statistics.summary",{url:"/summary",templateUrl:"app/mail/statistics/statistics.summary.html",controller:"MailStatisticsCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile-old.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailTimelineListCtrl",["$scope","$http","socket",function(a,b,c){function d(b){a.events>50&&a.events.pop(),a.events.unshift(b)}a.initList=function(){a.events=[],b.get("/api/events/channel/mail").success(function(a){a.forEach(d),c.socket.on("event:chat:save",d)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.timeline.list",{url:"/list",templateUrl:"app/mail/timeline/list/list.html",controller:"MailTimelineListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/timeline.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.mail.timeline",{url:"/timeline",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChooseContactModalCtrl",["$scope","$uibModalInstance","params",function(a,b,c){a.forms={choose:void 0},a.contacts=c.contacts,a.item={},a.ok=function(){a.item.contactName=_.find(a.contacts,{id:a.item.contactId}).name,b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MainCtrl",["$scope","$http","$rootScope","$cookies","$translate","$interval","socket","Auth","xAlert","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j,k){function l(b){a.workspaces.push({name:b.contactName,type:"contact",contactID:b.contactId,active:!0})}function m(b){a.workspaces.push({name:"New Contact",type:"newContact",active:!0,data:b})}a.awesomeThings=[],a.isLoggedIn=h.isLoggedIn,a.isAdmin=h.isAdmin,a.getCurrentUser=h.getCurrentUser,a.workspaces=[],a.mainTab={active:!0},a.closeTab=function(b){a.workspaces.splice(b,1)},a.createContact=function(c,d){d.tags=d.tags?d.tags.join(","):void 0,_.forOwn(d.customFields,function(a,b){""===a&&delete d.customFields[b]}),d.id?b.put("/api/contactmanager/join/"+d.id,d).success(function(b){a.workspaces.splice(c,1),l(b),i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(a.message,"danger")}):b.post("/api/contactmanager",d).success(function(b){a.workspaces.splice(c,1),l({contactName:b.fullname,contactId:b.id}),i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(a.message,"danger")})},a.chooseContact=function(a){var b=j.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{params:function(){return{contacts:JSON.parse(a.contacts)}}}});b.result.then(function(a){l(a)},function(){k.info("Modal dismissed at: "+new Date)})},a.updateContact=function(a,c){c.tags=c.tags?c.tags.join(","):void 0,c.CompanyId||(c.CompanyId=null),b.put("/api/contactmanager/"+c.id,c).success(function(){i.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(e.instant(a.message)+"!","danger")})},g.socket.on("report_integration:contactmanager",function(b){switch(b.event){case"openContactTab":a.chooseContact(b);break;case"newContactTab":m(b)}}),a.$on("$viewContentLoaded",function(){Metronic.init()}),c.language=e.use(),a.changeLanguage=function(a){e.use(a).then(function(a){c.language=a})["catch"](function(a){console.error(a)})},a.$on("$destroy",function(){})}]),angular.module("xCallyShuttleApp").directive("ngSpinnerBar",["$rootScope",function(a){return{link:function(b,c){c.addClass("hide"),a.$on("$stateChangeStart",function(){"spinner-page"===c[0].id&&c.removeClass("hide")}),a.$on("$stateChangeSuccess",function(){"spinner-page"===c[0].id&&(c.addClass("hide"),$("body").removeClass("page-on-load"),Layout.setSidebarMenuActiveLink("match"),setTimeout(function(){Metronic.scrollTop()},1e3))}),a.$on("$spinnerStart",function(){"spinner-request"===c[0].id&&c.removeClass("hide")}),a.$on("$spinnerStop",function(){"spinner-request"===c[0].id&&c.addClass("hide")}),a.$on("$stateNotFound",function(){"spinner-page"===c[0].id&&c.addClass("hide")}),a.$on("$stateChangeError",function(){"spinner-page"===c[0].id&&c.addClass("hide")})}}}]).directive("a",function(){return{restrict:"E",link:function(a,b,c){(c.ngClick||""===c.href||"#"===c.href)&&b.on("click",function(a){a.preventDefault()})}}}).directive("nxEqual",function(){return{require:"ngModel",link:function(a,b,c,d){return c.nxEqual?(a.$watch(c.nxEqual,function(a){d.$setValidity("nxEqual",a===d.$viewValue)}),void d.$parsers.push(function(b){var e=b===a.$eval(c.nxEqual);return d.$setValidity("nxEqual",e),e?b:void 0})):void console.error("nxEqual expects a model as an argument!")}}}).directive("ngEnter",function(){return function(a,b,c){b.bind("keydown keypress",function(b){13===b.which&&(a.$apply(function(){a.$eval(c.ngEnter)}),b.preventDefault())})}}).directive("dropdownMenuHover",function(){return{link:function(a,b){b.dropdownHover()}}}).directive("uiSelectRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.uiSelectRequired=function(a){return a&&a.length}}}}).directive("rpattern",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a,b){return null==b||""===b||!h||a.test(b)?(d.$setValidity("pattern",!0),b):void d.$setValidity("pattern",!1)}var f,g=c.rpattern,h=!0;g&&(g.match(/^\/(.*)\/$/)?(g=new RegExp(g.substr(1,g.length-2)),f=function(a){return e(g,a)}):f=function(b){var c=a.$eval(g);if(!c||!c.test)throw new Error("Expected "+g+" to be a RegExp but was "+c);return e(c,b)}),d.$formatters.push(f),d.$parsers.push(f),c.$observe("required",function(a){h=a,f(d.$viewValue)})}}}).directive("queryBuilder",["$compile","xAlert","$http",function(a,b,c){return{restrict:"E",scope:{group:"=",fields:"=",operators:"=",properties:"="},templateUrl:"app/main/template.queryBuilderView.html",compile:function(d,e){var f,g;return f=d.contents().remove(),function(d,e,h){d.booleans=[{name:"AND"},{name:"OR"}],d.addCondition=function(a){"CONDITION"==a?d.group.rules.push({operator:"=",field:"",data:""}):d.group.rules.push({field:"",data:""})},d.removeCondition=function(a){d.group.rules.splice(a,1)},d.addGroup=function(a){d.group.rules.push({group:{"boolean":"AND",rules:[],type:a,main:!1}})},d.choices=[],d.removeGroup=function(){d.$parent.group.rules.splice(d.$parent.$index,1)},d.initChoices=function(a,b,c,e,f,g,h){a[g]&&d.getResults(b,c,e,f)},d.clearData=function(a,b){for(var c in b)a[b[c]]&&delete a[b[c]]},d.getResults=function(a,e,f,g,h){if(a){var i="",j={};i=a.parseUrl?a.parseUrl.replace("%s",e):a.url,a.query&&h&&(j[a.query.field]=h),c.get(i,{params:j}).success(function(a){var b=[];a.rows&&(a=a.rows),a.forEach(function(a){b.push({name:a.name,value:a.id})}),d.choices[f]||(d.choices[f]=[]),d.choices[f][g]=b}).error(function(a){b.show(a.message,"danger")})}},g||(g=a(f)),e.append(g(d,function(a){return a}))}}}}]).directive("newContact",["$compile","xAlert","$http","socket",function(a,b,c,d){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template.newContactTab.html",compile:function(a,e){return function(a,e,f){a.forms={general:{}},a.item={Phones:[],Emails:[],customFields:{}},a.joinPrompt=!1,a.checkboxes={},a.workspace.data&&(a.item.fullname=a.workspace.data.calleridname?a.workspace.data.calleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.calleridnum&&a.item.Phones.push({phone:a.workspace.data.calleridnum}),a.workspace.data.from&&a.item.Emails.push({email:a.workspace.data.from})),a.getTags=function(){c.get("/api/tags").success(function(b){a.tags=_.pluck(b.rows,"name")}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCompanies=function(){c.get("/api/contactmanager/companies").success(function(b){a.companies=b.rows,d.syncUpdates("company",a.companies)}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCustomFields=function(){c.get("/api/contactmanager/customfields").success(function(b){a.customFields=b.rows,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)}),d.syncUpdates("custom_field",a.customFields,function(a,b){"string"==typeof b.values&&(b.values=JSON.parse(b.values))})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.addField=function(b){a.item[b].push({}),a.joinPrompt=!1},a.removeField=function(b,c){a.item[b].splice(c,1),a.joinPrompt=!1},a.getTags(),a.getCompanies(),a.getCustomFields()}}}}]).directive("contact",["$compile","xAlert","$http","socket",function(a,b,c,d){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template.contactTab.html",compile:function(a,e){return function(a,e,f){a.moment=moment,a.forms={general:{}},a.detail={tab:"main"},a.log={journal:{show:"Phones",type:"Inbounds",detail:"general"},history:{show:"Phones",type:"HistoryInbounds",detail:"general"}},a.columns={Phones:{general:{header:["APPLICATION_SOURCE","APPLICATION_DESTINATION","APPLICATION_DATE"],indexes:["source","destination","createdAt"]},QueueCalls:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]},ReportAgents:{header:["APPLICATION_AGENT","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["membername","queue","agentcalledAt"]},HistoryQueueCalls:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]},HistoryReportAgents:{header:["APPLICATION_AGENT","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["membername","queue","createdAt"]}},Emails:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_DATE"],indexes:["from","to","createdAt"]}}},a.rows={journal:[],history:[]},a.itemsByPage=15,a.rowCollection=[],a._=_,a.getRows=function(b){a.rows[b]=[],_.forEach(a.contact[a.log[b].show],function(c){console.log(c),"general"===a.log[b].detail?a.rows[b]=a.rows[b].concat(c[a.log[b].type]):_.forEach(c[a.log[b].type],function(c){a.rows[b]=a.rows[b].concat(c[a.log[b].detail])})}),console.log(a.rows[b])},a.addField=function(b){a.contact[b].push({})},a.removeField=function(b,c){a.contact[b].splice(c,1)},a.getContact=function(d){console.log("get contact in tab"),c.get("/api/contactmanager/"+d).success(function(b){b.tags=b.tags?b.tags.split(","):[],a.contact=b,a.getRows("journal"),a.getRows("history"),a.contact.customFields={},a.contact.CustomFields.forEach(function(b){a.contact.customFields[b.id]=b.ContactHasCustomField.value})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getTags=function(){c.get("/api/tags").success(function(b){a.tags=_.pluck(b.rows,"name")}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCompanies=function(){c.get("/api/contactmanager/companies").success(function(b){a.companies=b.rows,d.syncUpdates("company",a.companies)}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getCustomFields=function(){c.get("/api/contactmanager/customfields/all").success(function(b){a.customFields=b,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)}),d.syncUpdates("custom_field",a.customFields,function(a,b){"string"==typeof b.values&&(b.values=JSON.parse(b.values))})}).error(function(a){console.error(a),b.show(a.message,"danger")})},a.getTags(),a.getCompanies(),a.getCustomFields(),a.getContact(a.workspace.contactID)}}}}]).directive("reportBuilder",["$compile",function(a){return{restrict:"E",scope:{group:"=",fields:"=",forms:"=",firstCall:"="},templateUrl:"app/main/template.reportBuilderView.html",compile:function(b,c){var d,e;return d=b.contents().remove(),function(b,c,f){b.operators=[{name:"AND"},{name:"OR"}],b.conditions=[{name:"="},{name:"!="},{name:"<"},{name:"<="},{name:">"},{name:">="},{name:"LIKE"}],b.addCondition=function(){b.group.rules.push({condition:"=",field:"",value:""})},b.removeCondition=function(a){b.group.rules.splice(a,1)},b.addGroup=function(){b.group.rules.push({group:{operator:"AND",rules:[{condition:"=",field:"",value:""}]}})},b.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},b.removeGroup=function(){b.$parent.group&&b.$parent.group.rules.splice(b.$parent.$index,1)},e||(e=a(d)),c.append(e(b,function(a){return a}))}}}}]).directive("dynamicName",["$compile",function(a){return{restrict:"A",terminal:!0,priority:1e3,link:function(b,c,d){c.attr("name",b.$eval(d.dynamicName)),c.removeAttr("dynamic-name"),a(c)(b)}}}]).directive("onReadFile",["$parse",function(a){return{restrict:"A",scope:!1,link:function(b,c,d){var e=a(d.onReadFile);c.on("change",function(a){var c=new FileReader;c.onload=function(a){b.$apply(function(){e(b,{$fileContent:a.target.result})})},c.readAsText((a.srcElement||a.target).files[0])})}}}]),angular.module("xCallyShuttleApp").filter("capitalize",function(){return function(a){return a?a.replace(/([^\W_]+[^\s-]*) */g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()}):""}}).filter("salesforce",function(){var a=["CallDisposition","CallDurationInSeconds","CallObject","CallType","IsArchived","Priority","Status","Type"];return function(b){return _.remove(b,function(b){return b.custom===!1&&a.indexOf(b.name)<0}),b}}).filter("sugarcrm",function(){var a=["account_id","account_name","account_name1","assigned_user_name","assigned_user_id","case_number","created_by","created_by_name","date_entered","date_modified","deleted","description","id","modified_by_name","modified_user_id","name"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("freshdesk",function(){var a=["requester","subject","agent","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.ticket_field.name)>=0}),b}}).filter("zendesk",function(){var a=["subject","assignee","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.type)>=0}),b}}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main",{"abstract":!0,templateUrl:"app/main/main.html",controller:"MainCtrl",resolve:{authorization:["$q","Auth","$state","$timeout","$location",function(a,b,c,d,e){return b.getToken()?a.when():(d(function(){e.path("/login")}),a.reject())}],deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("xAlert",["$translate","Notification",function(a,b){return{show:function(c,d){switch(d){case"success":b.success({message:c,title:'<i class="glyphicon glyphicon-ok"></i> <strong>'+a.instant("MESSAGE_SUCCESS")+"!</strong>",delay:5e3});break;case"info":b.info({message:c,title:'<i class="glyphicon glyphicon-info-sign"></i> <strong>'+a.instant("MESSAGE_INFO")+"!</strong>",delay:5e3});break;case"danger":b.error({message:c,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4});break;case"warning":b.warning({message:c,title:'<i class="glyphicon glyphicon-warning-sign"></i> <strong>'+a.instant("MESSAGE_WARNING")+"!</strong>",delay:1e4});break;default:b.info(c)}}}}]).factory("stResource",["$q","$filter","$timeout","$rootScope","$http","$translate","xAlert",function(a,b,c,d,e,f,g){return{getPage:function(b){var c={page:Math.ceil(b.pagination.start/b.pagination.number),per_page:b.pagination.number};b.sort.predicate&&(c.sort_by=b.sort.predicate,c.sort_order=b.sort.reverse?"DESC":"ASC"),_.forIn(b.search.predicateObject,function(a,b){c[b]=a}),b.search.params&&(c.clientQuery={},_.forIn(b.search.params,function(a,b){c.clientQuery[b]=a})),d.$broadcast("$spinnerStart"),e.get(b.url,{params:c}).success(function(a){h.resolve(a),d.$broadcast("$spinnerStop")}).error(function(a){g.show(f.instant(a.message),"danger"),d.$broadcast("$spinnerStop")});var h=a.defer();return h.promise}}}]),angular.module("xCallyShuttleApp").controller("MarketCtrl",["$scope","$http","$translate","socket","xAlert","Modal","$timeout",function(a,b,c,d,e,f,g){function h(a,b){return Math.floor(Math.random()*(b-a+1))+a}a.initView=function(){b.get("/api/integrations").success(function(b){a.integrations=b,a.groupedIntegration=_.chunk(a.integrations,4),d.syncUpdates("integration",a.integrations,function(){a.groupedIntegration=_.chunk(a.integrations,4)})}).error(function(a){e.show(a.message,"danger")})},a.isProgressing=!1,a.$on("$destroy",function(){d.unsyncUpdates("integration")}),a.installIntegration=function(d){a.status="Downloading",a.percentage=h(1,50),a.isProgressing=!0,d.downloading=!0,b.put("/api/integrations/"+d.id,{active:!0}).success(function(){g(function(){a.percentage=h(51,99),a.status="Installing"},2500),g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",d.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)}).error(function(){d.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.uninstallIntegration=function(d){a.status="Uninstalling",a.percentage=h(1,99),a.isProgressing=!0,d.downloading=!0,b.put("/api/integrations/"+d.id,{active:!1}).success(function(){g(function(){a.percentage=100,
+a.isProgressing=!1,a.status="Completed!",d.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)}).error(function(){d.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.market",{url:"/market",templateUrl:"app/market/market.html",controller:"MarketCtrl"})}]),angular.module("xCallyShuttleApp").controller("MotionbarCtrl",["$scope","$stateParams","$cookieStore","settings","Auth",function(a,b,c,d,e){e.loginWithToken(b.token,b.userId,b.name),a.getCurrentUser=e.getCurrentUser,d.layout.pageQuickSidebarOpened=!0}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("motionbar",{url:"/motionbar",template:"<div ui-view></div>","abstract":!0}).state("motionbar.chat",{url:"/chat?token&userId&name",templateUrl:"app/motionbar/motionbar.chat.html",controller:"MotionbarCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedSalesforceAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedSalesforceAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("salesforce_account"),b.url="/api/salesforce/accounts",h.getPage(b).then(function(d){a.displayedSalesforceAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedSalesforceAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedSalesforceAccounts.length)}),f.socket.on("salesforce_account:save",function(){a.initList(b)}),f.socket.on("salesforce_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/salesforce/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/salesforce/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/salesforce/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.list",{url:"/list",templateUrl:"app/salesforce/list/list.html",controller:"SalesforceListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce",{url:"/salesforce",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","$filter",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("salesforce_configuration"),g.unsyncUpdates("salesforce_field")}),a.initView=function(){b.get("/api/salesforce/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/salesforce/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/salesforce/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("salesforce_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/salesforce/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/salesforce/configurations",a.configuration).success(function(a){e.path("salesforce/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/salesforce/accounts/"+c.id+"/fields").success(function(b){a.accountFields=_.sortByOrder(j("salesforce")(b),"name","asc")}).error(function(a){h.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/salesforce/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("salesforce_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/salesforce/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/salesforce/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/salesforce/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);if(c)switch(c.type){case"picklist":return c.picklistValues;default:return}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view",{url:"/view/:id",templateUrl:"app/salesforce/view/view.html",controller:"SalesforceViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.salesforce.view.account",{url:"/account",templateUrl:"app/salesforce/view/view.account.html"}).state("main.salesforce.view.configurations",{url:"/configurations",templateUrl:"app/salesforce/view/view.configurations.html"}).state("main.salesforce.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/salesforce/view/view.configurationSettings.html",controller:"SalesforceViewCtrl"}).state("main.salesforce.view.configuration",{url:"/configuration",templateUrl:"app/salesforce/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("SalesforceWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/salesforce/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/salesforce/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.wizard",{url:"/wizard",templateUrl:"app/salesforce/wizard/wizard.html",controller:"SalesforceWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("License",["$resource",function(a){return a("/api/licenses/:id/:controller",{id:"@id"},{request:{method:"POST",params:{id:"request"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license",{url:"/license",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("LicenseViewCtrl",["$scope","$rootScope","$translate","License","xAlert",function(a,b,c,d,e){a.initView=function(){d.get(function(b){a.item=b.license})},a.submitRequest=function(){console.log("submitRequest"),d.request(a.item,function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")},function(a){switch(a.status){case 301:e.show(a.message,"info");break;case 500:e.show(a.message,"danger")}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license.view",{url:"/view",templateUrl:"app/setting/license/view/view.html",controller:"LicenseViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-tables.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting",{url:"/setting",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("Smtp",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp",{url:"/smtp",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SmtpViewCtrl",["$scope","$stateParams","$translate","MailServerOut","xAlert",function(a,b,c,d,e){a.initView=function(){a.item={},d.get({id:"service"}).$promise.then(function(b){a.item=b})["catch"](function(a){e.show(a.message,"danger")})},a.updateItem=function(){a.item.id?d.update({id:a.item.id},a.item).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")}):(a.item.service=!0,d.save(a.item).$promise.then(function(b){a.item=b,e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")}))},a.test=function(){d.test({id:a.item.id,controller:"test"}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.statusText,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp.view",{url:"/view",templateUrl:"app/setting/smtp/view/view.html",controller:"SmtpViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("TemplateListCtrl",["$scope","$http","$translate","$rootScope","socket","Modal","stResource","xAlert",function(a,b,c,d,e,f,g,h){a.$on("$destroy",function(){e.unsyncUpdates("mail_template")}),a.conf={templatesByPage:{name:"10",value:10}},a.templatesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Templates={checked:[]},a.check=function(b,c){c?a.Templates.checked=angular.copy(_.pluck(a.displayedTemplates,"id")):a.Templates.checked=[]},a.getTemplates=function(b){return _.map(a.displayedTemplates,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){e.unsyncUpdates("mail_template"),b.url="/api/mail/templates/",g.getPage(b).then(function(c){a.displayedTemplates=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(c.templatesByPage,a.displayedTemplates.length),d.updateTableConfig(a.conf.templatesByPage,a.displayedTemplates.length)}),e.socket.on("mail_template:save",function(){a.initList(b)}),e.socket.on("mail_template:remove",function(c){a.Templates.checked=_.without(a.Templates.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/mail/templates/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){h.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/mail/templates/",{params:{id:a.Templates.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.templates.list",{url:"/list",templateUrl:"app/setting/template/list/list.html",controller:"TemplateListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Template",["$resource",function(a){return a("/api/mail/templates/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.templates",{url:"/templates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TemplateViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","Template",function(a,b,c,d,e,f){a.initItem=function(){a.form={},a.item={},a.groups=[{title:"Voice",variables:[]},{title:"Chat",variables:["username","email","text","chatWebsite"]},{title:"Mail",variables:[]},{title:"Fax",variables:[]}],a.item=f.get({id:d.id})},a.updateItem=function(){f.update(a.item).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.templates.view",{url:"/view/:id",templateUrl:"app/setting/template/view/view.html",controller:"TemplateViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.setting.templates.view.settings",{url:"/settings",templateUrl:"app/setting/template/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateWizardCtrl",["$scope","$location","$http","WizardHandler","xAlert","MailServerOut","Template",function(a,b,c,d,e,f,g){a.initWizard=function(){a.item={},a.form={},a.groups=[{title:"Voice",variables:[]},{title:"Chat",variables:["username","email","text","chatWebsite"]},{title:"Mail",variables:[]},{title:"Fax",variables:[]}],a.mailAccounts=f.query()},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){var c={name:a.item.name,description:a.item.description,subject:a.item.subject||null,html:a.item.html||null,text:a.item.text||null};g.save(c).$promise.then(function(){b.path("/templates/list")})["catch"](function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.templates.wizard",{url:"/wizard",templateUrl:"app/setting/template/wizard/wizard.html",controller:"TemplateWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UpdateListCtrl",["$scope","$uibModal","$log","$translate","Update","xAlert",function(a,b,c,d,e,f){a.conf={updatesByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.updatesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.initList=function(){e.query(function(b){a.updates=b})},a.pull=function(){var a=b.open({animation:!0,templateUrl:"app/setting/update/list/list.pull.html",controller:function(a,b){a.modal={dismissable:!0,title:"Confirm Checkout",html:"Are you sure you want to checkout?",buttons:[{classes:"btn btn-success",text:"Checkout",click:function(){b.close()}},{classes:"btn default",text:"Cancel",click:function(){b.dismiss("cancel")}}]}}});a.result.then(function(){e.pull(function(a){a.summary.changes?f.show(d.instant("APPLICATION_UPDATED_TO_LATEST_VERSION"),"success"):f.show(d.instant("APPLICATION_ALREADY_UP_TO_DATE"),"info")},function(a){f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},function(){c.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates.list",{url:"/list",templateUrl:"app/setting/update/list/list.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Update",["$resource",function(a){return a("/api/updates/:id/:controller",{id:"@id"},{pull:{method:"GET",params:{id:"pull"}},checkout:{method:"GET",params:{id:"checkout"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates",{url:"/updates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SoundListCtrl",["$scope","$http","socket","Modal","$q","FileUploader","$translate","xAlert","$cookieStore","$sce",function(a,b,c,d,e,f,g,h,i,j){a.isCollapsed=!0,a.audioSources={},a["delete"]=d.confirm["delete"](function(a){b["delete"]("/api/uploads/"+a).success(function(a){}).error(function(a){console.log(a)})}),a.getAudioSrc=function(a){return"/api/uploads/"+a},a.updateAudio=function(a,c){var d=e.defer();return b.put("/api/uploads/"+a,c).success(function(a){d.resolve()}).error(function(a){console.log(a.message),d.reject(a.message)}),d.promise},a.$on("$destroy",function(){c.unsyncUpdates("upload")}),a.initList=function(){b.get("/api/uploads").success(function(b){a.sounds=b,a.sounds.forEach(function(a){k(a)}),c.syncUpdates("upload",a.sounds)}).error(function(a){})};var k=function(c){b.get("/api/uploads/stream/"+c.id).success(function(b){a.audioSources[c.id]=b}).error(function(a){console.error(a)})};a.getSecureSrc=function(a){return j.trustAsResourceUrl("data:audio/ogg;base64,"+a)},a.getSecureDownloadSrc=function(a){return j.trustAsResourceUrl("data:application/octet-stream;charset=utf-16le;base64,"+a)};var l=a.uploader=new f({url:"/api/uploads",withCredentials:!0,headers:{Authorization:"Bearer "+i.get("token")}});l.filters.push({name:"customFilter",fn:function(a,b){return this.queue.length<10}}),l.onWhenAddingFileFailed=function(a,b,c){console.info("onWhenAddingFileFailed",a,b,c)},l.onAfterAddingFile=function(a){console.info("onAfterAddingFile",a)},l.onAfterAddingAll=function(a){console.info("onAfterAddingAll",a)},l.onBeforeUploadItem=function(a){console.info("onBeforeUploadItem",a)},l.onProgressItem=function(a,b){console.info("onProgressItem",a,b),a.isUploading=!0},l.onProgressAll=function(a){console.info("onProgressAll",a)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),a.isUploading=!1},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),a.responseMessage=b,a.isUploading=!1},l.onCancelItem=function(a,b,c,d){console.info("onCancelItem",a,b,c,d),a.isUploading=!1},l.onCompleteItem=function(a,b,c,d){console.info("onCompleteItem",a,b,c,d),a.isUploading=!1},l.onCompleteAll=function(){console.info("onCompleteAll")},console.info("uploader",l)}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sounds.list",{url:"/list",templateUrl:"app/sound/list/list.html",controller:"SoundListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sounds",{url:"/sounds",templateUrl:"app/sound/sound.html","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={odbcsByPage:{name:"10",value:10}},a.odbcsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Odbcs={checked:[]},a.check=function(b,c){c?a.Odbcs.checked=angular.copy(_.pluck(a.displayedOdbcs,"id")):a.Odbcs.checked=[]},a.getOdbcs=function(b){return _.map(a.displayedOdbcs,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("square_odbc"),b.url="/api/square/odbc",h.getPage(b).then(function(c){a.displayedOdbcs=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.odbcsByPage,a.displayedOdbcs.length),d.updateTableConfig(a.conf.odbcsByPage,a.displayedOdbcs.length)}),c.socket.on("square_odbc:save",function(){a.initList(b)}),c.socket.on("square_odbc:remove",function(c){a.Odbcs.checked=_.without(a.Odbcs.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/square/odbc/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/square/odbc",{params:{id:a.Odbcs.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.list",{url:"/list",templateUrl:"app/square/odbc/list/list.html",controller:"SquareOdbcListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs",{url:"/odbcs",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getOdbc=function(){b.get("/api/square/odbc/"+e.id).success(function(b){delete b.pwd,a.odbc=b}).error(function(a){console.error(a),f.path("/square/odbcs/list")})},a.updateOdbc=function(){var f=angular.copy(a.odbc);b.put("/api/square/odbc/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.odbc=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.view",{url:"/view/:id",templateUrl:"app/square/odbc/view/view.html",controller:"SquareOdbcViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.square.odbcs.view.settings",{url:"/settings",templateUrl:"app/square/odbc/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={odbc:void 0},a.item={},a.next=function(){b.post("/api/square/odbc/validate/",a.item).success(function(a){a.length?e.show(f.instant("MESSAGE_EXIST_ODBC"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/square/odbc/",a.item).success(function(){d.path("/square/odbcs/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbcs.wizard",{url:"/wizard",templateUrl:"app/square/odbc/wizard/wizard.html",controller:"SquareOdbcWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={projectsByPage:{name:"10",value:10}},a.projectsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Projects={checked:[]},a.check=function(b,c){c?a.Projects.checked=angular.copy(_.pluck(a.displayedProjects,"id")):a.Projects.checked=[]},a.getProjects=function(b){return _.map(a.displayedProjects,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("square_project"),b.url="/api/square/projects",h.getPage(b).then(function(c){a.displayedProjects=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.projectsByPage,a.displayedProjects.length),d.updateTableConfig(a.conf.projectsByPage,a.displayedProjects.length)}),c.socket.on("square_project:save",function(){a.initList(b)}),c.socket.on("square_project:remove",function(c){a.Projects.checked=_.without(a.Projects.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/square/projects/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/square/projects",{params:{id:a.Projects.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.list",{url:"/list",templateUrl:"app/square/project/list/list.html",controller:"SquareProjectListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareProjectViewCtrl",["$scope","$http","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope",function(a,b,c,d,e,f,g,h,i){a.squareProject={},a.getProject=function(){b.get("/api/square/projects/"+c.id).success(function(b){a.squareProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!=a&&-1!=a.indexOf("Script error."));else{var d=new Image;d.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(e){}},b.token=e.getToken();var a=new EditorUi(new Editor);a.openString(b.preproduction,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),d.syncUpdates("square_project",[b],function(a,c,d){c.id===b.id})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.view",{url:"/view/:id",templateUrl:"app/square/project/view/view.html",controller:"SquareProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/mxgraph/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/mxgraph/js/Editor.js","assets/plugins/mxgraph/js/Graph.js","assets/plugins/mxgraph/js/EditorUi.js","assets/plugins/mxgraph/js/Actions.js","assets/plugins/mxgraph/js/Menus.js","assets/plugins/mxgraph/js/Sidebar.js","assets/plugins/mxgraph/js/Toolbar.js","assets/plugins/mxgraph/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SquareProjectWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={project:void 0},a.item={},a.next=function(){b.post("/api/square/projects/validate/",a.item).success(function(a){a.length?e.show(f.instant("MESSAGE_EXIST_PROJECT"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/square/projects/",a.item).success(function(){d.path("/square/projects/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.wizard",{url:"/wizard",templateUrl:"app/square/project/wizard/wizard.html",controller:"SquareProjectWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square",{url:"/square",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedSugarcrmAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedSugarcrmAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("sugarcrm_account"),b.url="/api/sugarcrm/accounts",h.getPage(b).then(function(d){a.displayedSugarcrmAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedSugarcrmAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedSugarcrmAccounts.length)}),f.socket.on("sugarcrm_account:save",function(){a.initList(b)}),f.socket.on("sugarcrm_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/sugarcrm/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/sugarcrm/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/sugarcrm/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.list",{url:"/list",templateUrl:"app/sugarcrm/list/list.html",controller:"SugarcrmListCtrl",
+resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm",{url:"/sugarcrm",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("sugarcrm_configuration"),h.unsyncUpdates("sugarcrm_field")}),a.initView=function(){b.get("/api/sugarcrm/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/sugarcrm/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/sugarcrm/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("sugarcrm_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/sugarcrm/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/sugarcrm/configurations",a.configuration).success(function(a){e.path("sugarcrm/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/sugarcrm/accounts/"+c.id+"/fields").success(function(b){a.accountFields=_.sortByOrder(f("sugarcrm")(_.toArray(b)),"name","asc"),_.forEach(b,function(a){a.options=_.toArray(a.options)})}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/sugarcrm/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("sugarcrm_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/sugarcrm/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/sugarcrm/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/sugarcrm/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.options.length>0?c.options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view",{url:"/view/:id",templateUrl:"app/sugarcrm/view/view.html",controller:"SugarcrmViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.sugarcrm.view.account",{url:"/account",templateUrl:"app/sugarcrm/view/view.account.html"}).state("main.sugarcrm.view.configurations",{url:"/configurations",templateUrl:"app/sugarcrm/view/view.configurations.html"}).state("main.sugarcrm.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/sugarcrm/view/view.configurationSettings.html",controller:"SugarcrmViewCtrl"}).state("main.sugarcrm.view.configuration",{url:"/configuration",templateUrl:"app/sugarcrm/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmkWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/sugarcrm/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/sugarcrm/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.wizard",{url:"/wizard",templateUrl:"app/sugarcrm/wizard/wizard.html",controller:"SugarcrmkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TagListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("TagListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={tagsByPage:{name:"10",value:10}},a.tagsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Tags={checked:[]},a.check=function(b,c){c?a.Tags.checked=angular.copy(_.pluck(a.displayedTags,"id")):a.Tags.checked=[]},a.getTags=function(b){return _.map(a.displayedTags,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("tag"),b.url="/api/tags",h.getPage(b).then(function(c){console.log(c),a.displayedTags=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.tagsByPage,a.displayedTags.length),d.updateTableConfig(a.conf.tagsByPage,a.displayedTags.length)}),c.socket.on("tag:save",function(){console.log("save"),a.initList(b)}),c.socket.on("tag:remove",function(c){a.Tags.checked=_.without(a.Tags.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/tags/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/tags",{params:{id:a.Tags.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/tag/list/create.modal.html",controller:"TagListCreateModalCtrl"});a.result.then(function(a){b.post("/api/tags",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags.list",{url:"/list",templateUrl:"app/tag/list/list.html",controller:"TagListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags",{url:"/tags",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TagViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getTag=function(){b.get("/api/tags/"+e.id).success(function(b){a.tag=b}).error(function(a){console.error(a),f.path("/tags/list")})},a.updateTag=function(){var f=angular.copy(a.tag);b.put("/api/tags/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.tag=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tags.view",{url:"/view/:id",templateUrl:"app/tag/view/view.html",controller:"TagViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tags.view.settings",{url:"/settings",templateUrl:"app/tag/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TeamListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={teamsByPage:{name:"10",value:10}},a.teamsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.teams={checked:[]},a.check=function(b,c){c?a.teams.checked=angular.copy(_.pluck(a.displayedTeams,"id")):a.teams.checked=[]},a.getTeams=function(b){return _.map(a.displayedTeams,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("team"),b.url="/api/teams/",h.getPage(b).then(function(c){a.displayedTeams=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.teamsByPage,a.displayedTeams.length),d.updateTableConfig(a.conf.teamsByPage,a.displayedTeams.length)}),f.socket.on("team:save",function(){a.initList(b)}),f.socket.on("team:remove",function(c){a.teams.checked=_.without(a.teams.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("api/teams/"+a).success(function(){e.show(c.instant("MESSAGE_TEAM_DELETE_SUCCESS"),"success")}).error(function(){e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/teams",{params:{id:a.teams.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.list",{url:"/list",templateUrl:"app/team/list/list.html",controller:"TeamListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams",{url:"/teams",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TeamViewCtrl",["$scope","$http","$stateParams","$translate","xAlert",function(a,b,c,d,e){a.message="Hello";var f=function(){return{select:function(c){b.post("/api/teams/"+a.team.id+"/agents",{agents:c}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/teams/"+a.team.id+"/agents",{agents:c}).error(function(a){console.error(a)})}}};a.initView=function(){b.get("/api/teams/"+c.id).success(function(b){a.team=b}).error(function(a){e.show(a.message,"danger")})},a.initAgents=function(){b.get("/api/agents").success(function(d){a.agents=d.rows,b.get("/api/user_has_teams",{params:{TeamId:c.id}}).success(function(b){ComponentsDropdowns.bindTeam(_.pluck(b,"UserId"),_.map(a.agents,function(a){return{id:a.id,name:a.name}}),f)}).error(function(a){console.error(a)})})},a.updateItem=function(){var f=angular.copy(a.team),g=angular.copy(a.team);b.put("/api/teams/"+c.id,f).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.team=g,b.errors.forEach(function(a){e.show(a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.view",{url:"/view/:id",templateUrl:"app/team/view/view.html",controller:"TeamViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.teams.view.agents",{url:"/agents",templateUrl:"app/team/view/view.agents.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]}])}]}}).state("main.teams.view.settings",{url:"/settings",templateUrl:"app/team/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TeamWizardCtrl",["$scope","$http","$translate","$location","WizardHandler","xAlert",function(a,b,c,d,e,f){a.forms={info:void 0},a.item={},a.createItem=function(){b.post("api/teams",a.item).success(function(){f.show(c.instant("MESSAGE_TEAM_CREATE_SUCCESS"),"success"),d.path("/teams/list")}).error(function(a){a.errors.forEach(function(a){f.show(a.message,"danger")})})},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.teams.wizard",{url:"/wizard",templateUrl:"app/team/wizard/wizard.html",controller:"TeamWizardCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({name:"ui.select",insertBefore:"#ng_load_plugins_before",files:["assets/plugins/ui-select/select.min.css","assets/plugins/ui-select/select.min.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("TriggerListCtrl",["$scope","$http","$translate","$rootScope","stResource","Modal","socket","xAlert",function(a,b,c,d,e,f,g,h){a.conf={TriggersByPage:{name:"10",value:10}},a.TriggersByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.Triggers={checked:[]},a.check=function(b,c){c?a.Triggers.checked=angular.copy(_.pluck(a.displayedTriggers,"id")):a.Triggers.checked=[]},a.getTriggers=function(b){return _.map(a.displayedTriggers,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){g.unsyncUpdates("trigger"),b.url="/api/triggers",e.getPage(b).then(function(c){a.displayedTriggers=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.TriggersByPage,a.displayedTriggers.length),d.updateTableConfig(a.conf.TriggersByPage,a.displayedTriggers.length)}),g.socket.on("trigger:save",function(){a.initList(b)}),g.socket.on("trigger:remove",function(c){a.Triggers.checked=_.without(a.Triggers.checked,c.id),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/triggers/"+a).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/triggers",{params:{id:a.Triggers.checked}}).success(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(c.instant(a.message),"danger")})}),a.updateItem=function(a,d){b.put("api/triggers/"+a,{status:d}).success(function(a){h.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.list",{url:"/list",templateUrl:"app/trigger/list/list.html",controller:"TriggerListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers",{url:"/triggers",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TriggerViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","triggers",function(a,b,c,d,e,f){a.$triggers=f,a.forms={info:{}},a.fields={},a.properties=f.properties,a.initView=function(){c.get("/api/triggers/"+b.id).success(function(b){a.trigger=b,a.conditionsFilter=JSON.parse(b.conditions),a.actionsFilter=JSON.parse(b.actions),a.fields.conditions=a.$triggers.triggers[b.channel].conditions,a.fields.actions=a.$triggers.triggers[b.channel].actions}).error(function(a){e.show(a.message,"danger")})},a.getProperties=function(){h(),j(),i(),g()};var g=function(){c.get("/api/integrations",{params:{active:1}}).success(function(b){a.integrations=b;var c=[];b.forEach(function(a){c.push({name:a.name,value:a.state})}),a.properties.voice.integration=c}).error(function(a){e.show(a.message,"danger")})},h=function(){c.get("/api/mail/templates/").success(function(b){a.mailTemplates=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.id})}),a.properties.mail.template=c}).error(function(a){e.show(a.message,"danger")})},i=function(){c.get("/api/voice/queues/").success(function(b){a.voiceQueues=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.name})}),a.properties.voice.queue=c}).error(function(a){e.show(a.message,"danger")})},j=function(){c.get("/api/mail/servers/out/").success(function(b){a.stmpAccounts=b;var c=[];b.forEach(function(a){c.push({name:a.username,value:a.username})}),a.properties.mail.smtp=c}).error(function(a){e.show(a.message,"danger")})};a.updateTrigger=function(){c.put("/api/triggers/"+a.trigger.id,{name:a.trigger.name,description:a.trigger.description,conditions:angular.toJson(a.conditionsFilter),actions:angular.toJson(a.actionsFilter)}).success(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.view",{url:"/view/:id",templateUrl:"app/trigger/view/view.html",controller:"TriggerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.triggers.view.settings",{url:"/settings",templateUrl:"app/trigger/view/view.settings.html"}).state("main.triggers.view.routes",{url:"/routes",templateUrl:"app/trigger/view/view.routes.html"}).state("main.triggers.view.application",{url:"/application",templateUrl:"app/trigger/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("TriggerWizardCtrl",["$scope","$http","$location","xAlert","triggers","WizardHandler",function(a,b,c,d,e,f){a.$triggers=e,a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={},a.fields={},a.properties=e.properties,a.forms={general:{}};var g={group:{"boolean":"AND",rules:[],type:"CONDITION",main:!0}},h={group:{rules:[],type:"ACTION"}};a.conditionsFilter=_.clone(g,!0),a.actionsFilter=_.clone(h,!0),a.$watch("item.channel",function(b,c){c&&(a.tempData[c].conditionsFilter=_.clone(a.conditionsFilter,!0),a.tempData[c].actionsFilter=_.clone(a.actionsFilter,!0)),a.conditionsFilter=a.tempData[b].conditionsFilter?a.tempData[b].conditionsFilter:_.clone(g,!0),a.actionsFilter=a.tempData[b].actionsFilter?a.tempData[b].actionsFilter:_.clone(h,!0),a.fields.conditions=a.$triggers.triggers[b].conditions,a.fields.actions=a.$triggers.triggers[b].actions},!0),a.item.channel="voice",a.getProperties=function(){j(),l(),k(),i()};var i=function(){b.get("/api/integrations",{params:{active:1}}).success(function(b){a.integrations=b;var c=[];b.forEach(function(a){c.push({name:a.name,value:a.state})}),a.properties.voice.integration=c}).error(function(a){d.show(a.message,"danger")})},j=function(){b.get("/api/mail/templates/").success(function(b){a.mailTemplates=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.id})}),a.properties.mail.template=c}).error(function(a){d.show(a.message,"danger")})},k=function(){b.get("/api/mail/servers/out/").success(function(b){a.stmpAccounts=b;var c=[];b.forEach(function(a){c.push({name:a.username,value:a.username})}),a.properties.mail.smtp=c}).error(function(a){d.show(a.message,"danger")})},l=function(){b.get("/api/voice/queues/").success(function(b){a.voiceQueues=b.rows;var c=[];b.rows.forEach(function(a){c.push({name:a.name,value:a.name})}),a.properties.voice.queue=c}).error(function(a){d.show(a.message,"danger")})};a.createItem=function(){a.item.conditions=angular.toJson(a.conditionsFilter),a.item.actions=angular.toJson(a.actionsFilter),b.post("/api/triggers",a.item).success(function(){c.path("/triggers/list")}).error(function(a){d.show(a.message,"danger")})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.triggers.wizard",{url:"/wizard",templateUrl:"app/trigger/wizard/wizard.html",controller:"TriggerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TrunkListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={trunksByPage:{name:"10",value:10},labels:["name","host","context","description"]},a.trunksByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.trunks={checked:[]},a.check=function(b,c){c?a.trunks.checked=angular.copy(_.pluck(a.displayedTrunks,"id")):a.trunks.checked=[]},a.getTrunks=function(b){return _.map(a.displayedTrunks,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("trunk"),b.url="/api/trunks",console.log(b),h.getPage(b).then(function(c){a.displayedTrunks=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.trunksByPage,a.displayedTrunks.length),d.updateTableConfig(a.conf.trunksByPage,a.displayedTrunks.length)}),f.socket.on("trunk:save",function(){a.initList(b)}),f.socket.on("trunk:remove",function(c){a.trunks.checked=_.without(a.trunks.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/trunks/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/trunks",{params:{id:a.trunks.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})}),a.$on("$destroy",function(){console.log("trunks destroy")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.list",{url:"/list",templateUrl:"app/trunk/list/list.html",controller:"TrunkListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks",{url:"/trunks",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TrunkViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location",function(a,b,c,d,e,f,g){a.getTrunk=function(){b.get("/api/trunks/"+e.id).success(function(b){b.nat=""===b.nat?[]:b.nat.split(","),b.allow=""===b.allow?[]:b.allow.split(";"),b.insecure=""===b.insecure?[]:b.insecure.split(","),b.transport=""===b.transport?[]:b.transport.split(","),delete b.secret,a.trunk=b}).error(function(a){console.error(a),g.path("/trunks/list")})},a.updateTrunk=function(){""===a.trunk.password&&delete a.trunk.password;var f=angular.copy(a.trunk);f.nat=f.nat.join(","),f.allow=f.allow.join(";"),f.insecure=f.insecure.join(","),f.transport=f.transport.join(","),b.put("/api/trunks/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),f.nat=f.nat.split(","),f.naallowt=f.allow.split(";"),f.insecure=f.insecure.split(","),f.transport=f.transport.split(","),a.trunk=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.view",{url:"/view/:id",templateUrl:"app/trunk/view/view.html",controller:"TrunkViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.trunks.view.settings",{url:"/settings",templateUrl:"app/trunk/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TrunkWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.initWizard=function(){a.forms={},a.item={context:"from-voip-provider"}},a.next=function(d){d?b.post("/api/trunks/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_TRUNK"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")}):c.wizard().next()},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/trunks/",a.item).success(function(){d.path("/trunks/list")}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.trunks.wizard",{url:"/wizard",templateUrl:"app/trunk/wizard/wizard.html",controller:"TrunkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UserListCtrl",["$scope","$http","xAlert","$rootScope","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={usersByPage:{name:"10",value:10}},a.usersByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.users={checked:[]},a.check=function(b,c){c?a.users.checked=angular.copy(_.pluck(a.displayedUsers,"id")):a.users.checked=[]},a.getUsers=function(b){return _.map(a.displayedUsers,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/users/"+a).success(function(){c.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){a.errors.forEach(function(b){c.show(a.message+": "+b.message,"danger")})})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/users",{params:{id:a.users.checked}}).success(function(){c.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){a.errors.forEach(function(b){c.show(a.message+": "+b.message,"danger")})})}),a.initList=function(b){f.unsyncUpdates("user"),b.url="/api/users/",h.getPage(b).then(function(c){a.displayedUsers=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.usersByPage,a.displayedUsers.length),d.updateTableConfig(a.conf.usersByPage,a.displayedUsers.length)}),f.socket.on("user:save",function(){a.initList(b)}),f.socket.on("user:remove",function(c){a.users.checked=_.without(a.users.checked,c.id),a.initList(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.list",{url:"/list",templateUrl:"app/user/list/list.html",controller:"UserListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users",{url:"/users",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("UserViewCtrl",["$scope","$http","$stateParams","$translate","FileUploader","$cookieStore","Auth","xAlert",function(a,b,c,d,e,f,g,h){a.Auth=g,a.updatePassword=function(){var e,f;g.isAdmin()?(e="/api/users/password/"+c.id+"/reset",f={newPassword:a.user.newPwd}):(e="/api/users/password/",f={oldPassword:a.user.currentPwd,newPassword:a.user.newPwd}),b.put(e,f).success(function(a){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})};var i=a.uploader=new e({url:"api/users/"+c.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});i.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),i.onSuccessItem=function(b,c,e,f){a.user.userpic=c.userpic,a.user.id===g.getCurrentUser().id&&(g.getCurrentUser().userpic=c.userpic),h.show(d.instant("MESSAGE_WELL_DONE"),"success")},i.onErrorItem=function(a,b,c,e){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},i.onCompleteAll=function(){i.clearQueue()},a.initView=function(){b.get("/api/users/"+c.id).success(function(b){a.user=b,a.user.transport=a.user.transport?a.user.transport.split(","):[],a.user.allow=a.user.allow?a.user.allow.split(";"):[]}).error(function(a){a.errors.forEach(function(b){h.show(a.message+": "+b.message,"danger")})})},a.updateItem=function(){var e=angular.copy(a.user),f=angular.copy(a.user);delete e.password,delete e.md5secret,e.transport=e.transport.join(","),e.allow=e.allow.join(";"),b.put("/api/users/"+c.id,e).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(b){a.user=f,b.errors.forEach(function(a){h.show(b.message+": "+a.message,"danger")})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.view",{url:"/view/:id",templateUrl:"app/user/view/view.html",controller:"UserViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.users.view.account",{url:"/account",templateUrl:"app/user/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("UserWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert","$translate",function(a,b,c,d,e,f){a.forms={info:void 0,voice:void 0},a.item={role:"user",host:"dynamic",context:"from-sip"},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/users/",a.item).success(function(){e.show(f.instant("MESSAGE_WELL_DONE"),"success"),c.path("/users/list")}).error(function(a){console.log(a),e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.users.wizard",{
+url:"/wizard",templateUrl:"app/user/wizard/wizard.html",controller:"UserWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VariableListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VariableListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={variablesByPage:{name:"10",value:10}},a.variablesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.Variables={checked:[]},a.check=function(b,c){c?a.Variables.checked=angular.copy(_.pluck(a.displayedVariables,"id")):a.Variables.checked=[]},a.getVariables=function(b){return _.map(a.displayedVariables,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("variable"),b.url="/api/variables",h.getPage(b).then(function(c){a.displayedVariables=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.variablesByPage,a.displayedVariables.length),d.updateTableConfig(a.conf.variablesByPage,a.displayedVariables.length)}),c.socket.on("variable:save",function(){a.initList(b)}),c.socket.on("variable:remove",function(c){a.Variables.checked=_.without(a.Variables.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/variables/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/variables",{params:{id:a.Variables.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/variable/list/create.modal.html",controller:"VariableListCreateModalCtrl"});a.result.then(function(a){b.post("/api/variables",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables.list",{url:"/list",templateUrl:"app/variable/list/list.html",controller:"VariableListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables",{url:"/variables",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VariableViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getVariable=function(){b.get("/api/variables/"+e.id).success(function(b){a.variable=b}).error(function(a){console.error(a),f.path("/variables/list")})},a.updateVariable=function(){var f=angular.copy(a.variable);b.put("/api/variables/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.variable=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.variables.view",{url:"/view/:id",templateUrl:"app/variable/view/view.html",controller:"VariableViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.variables.view.settings",{url:"/settings",templateUrl:"app/variable/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts",{url:"/contexts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceContextListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={contextsByPage:{name:"10",value:10}},a.contextsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.voiceContexts={checked:[]},a.check=function(b,c){c?a.voiceContexts.checked=angular.copy(_.pluck(a.displayedVoiceContexts,"id")):a.voiceContexts.checked=[]},a.getVoiceContexts=function(b){return _.map(a.displayedVoiceContexts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_context"),b.url="/api/voice/contexts",h.getPage(b).then(function(c){a.displayedVoiceContexts=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.contextsByPage,a.displayedVoiceContexts.length),d.updateTableConfig(a.conf.contextsByPage,a.displayedVoiceContexts.length)}),c.socket.on("voice_context:save",function(){a.initList(b)}),c.socket.on("voice_context:remove",function(c){a.voiceContexts.checked=_.without(a.voiceContexts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/contexts/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/contexts",{params:{id:a.voiceContexts.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.list",{url:"/list",templateUrl:"app/voice/context/list/list.html",controller:"VoiceContextListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceContextViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getContext=function(){b.get("/api/voice/contexts/"+e.id).success(function(b){a.context=b}).error(function(a){console.error(a),f.path("/voice/contexts/list")})},a.updateVoiceContext=function(){var f=angular.copy(a.context);b.put("/api/voice/contexts/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.context=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.view",{url:"/view/:id",templateUrl:"app/voice/context/view/view.html",controller:"VoiceContextViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.contexts.view.settings",{url:"/settings",templateUrl:"app/voice/context/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("VoiceContextWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","$translate",function(a,b,c,d,e,f){a.forms={context:void 0},a.item={},a.next=function(){b.post("/api/voice/contexts/validate/",a.item).success(function(a){console.log(a),a.length?e.show(f.instant("MESSAGE_EXIST_CONTEXT"),"danger"):c.wizard().next()}).error(function(a){e.show(f.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/contexts/",a.item).success(function(){d.path("/voice/contexts/list")}).error(function(a){e.show(f.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.contexts.wizard",{url:"/wizard",templateUrl:"app/voice/context/wizard/wizard.html",controller:"VoiceContextWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceMohListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={mohsByPage:{name:"10",value:10},labels:["name","directory","sort","description"]},a.mohsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.mohs={checked:[]},a.check=function(b,c){c?a.mohs.checked=angular.copy(_.pluck(a.displayedMohs,"id")):a.mohs.checked=[]},a.getMohs=function(b){return _.map(a.displayedMohs,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("voice_musiconhold"),b.url="/api/voice/musiconholds",h.getPage(b).then(function(c){a.displayedMohs=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.mohsByPage,a.displayedMohs.length),d.updateTableConfig(a.conf.mohsByPage,a.displayedMohs.length)}),f.socket.on("voice_musiconhold:save",function(){a.initList(b)}),f.socket.on("voice_musiconhold:remove",function(c){a.mohs.checked=_.without(a.mohs.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/musiconholds/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/musiconholds",{params:{id:a.mohs.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.list",{url:"/list",templateUrl:"app/voice/moh/list/list.html",controller:"VoiceMohListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs",{url:"/mohs",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceMohViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","Modal","$sce","$location",function(a,b,c,d,e,f,g,h,i){a.$translate=d,a.audioSources={},a.sortOptions=[{value:"random",name:"APPLICATION_RANDOM"},{value:"alpha",name:"APPLICATION_ALPHABETICAL"}],a.getMoh=function(){b.get("/api/voice/musiconholds/"+e.id).success(function(b){delete b.stamp,a.moh=b}).error(function(a){console.error(a),i.path("/voice/mohs/list")})},a.updateVoiceMoh=function(){console.log("update");var f=angular.copy(a.moh);b.put("/api/voice/musiconholds/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.voiceMoh=f})},a.addMohs=function(){b.post("/api/voice/musiconholds/"+e.id+"/files",a.item).success(function(){i.path("voice/mohs/view/"+e.id+"/audios")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getAudioFiles=function(){b.get("/api/voice/musiconholds/"+e.id+"/files").success(function(b){a.audioFiles=b.files,a.mohPath=b.path,a.audioFiles.forEach(function(a){j(a)})}).error(function(a){console.error(a)})},a.getSecureSrc=function(a){return h.trustAsResourceUrl(a)};var j=function(c){b.get("/api/voice/musiconholds/stream",{params:{path:encodeURI(a.mohPath+"/"+c)}}).success(function(b){a.audioSources[c]="data:audio/ogg;base64,"+b}).error(function(a){console.error(a)})};a.getSounds=function(){a.item={sounds:[]},b.get("/api/uploads").success(function(b){a.soundList=b}).error(function(a){console.error(a)})},a.deleteItem=g.confirm["delete"](function(f){b["delete"]("/api/voice/musiconholds/"+e.id+"/files",{params:{filename:f}}).success(function(){_.remove(a.audioFiles,function(a){return a===f}),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.show(a.message,"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.view",{url:"/view/:id",templateUrl:"app/voice/moh/view/view.html",controller:"VoiceMohViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.mohs.view.settings",{url:"/settings",templateUrl:"app/voice/moh/view/view.settings.html"}).state("main.voice.mohs.view.audios",{url:"/audios",templateUrl:"app/voice/moh/view/view.audios.html",cache:!1}).state("main.voice.mohs.view.add",{url:"/add",templateUrl:"app/voice/moh/view/view.addFiles.html",cache:!1})}]),angular.module("xCallyShuttleApp").controller("VoiceMohWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.$translate=g,a.initWizard=function(){a.forms={},a.item={sort:"alpha"}},a.next=function(){b.post("/api/voice/musiconholds/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_MOH"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/musiconholds/",a.item).success(function(a){d.path("/voice/mohs/view/"+a.id+"/audios")}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.mohs.wizard",{url:"/wizard",templateUrl:"app/voice/moh/wizard/wizard.html",controller:"VoiceMohWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCtrl",["$scope","$http","socket","$translate","$rootScope","Modal","xAlert","stResource",function(a,b,c,d,e,f,g,h){a.conf={voiceQueuesByPage:{name:"10",value:10},labels:["name","description","strategy","context"]},a.voiceQueuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.queues={checked:[]},a.check=function(b,c){c?a.queues.checked=angular.copy(_.pluck(a.displayedQueues,"name")):a.queues.checked=[]},a.getQueues=function(b){return _.map(a.displayedQueues,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_queue"),b.url="/api/voice/queues",h.getPage(b).then(function(c){a.displayedQueues=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.voiceQueuesByPage,a.displayedQueues.length),e.updateTableConfig(a.conf.voiceQueuesByPage,a.displayedQueues.length)}),c.socket.on("voice_queue:save",function(){a.initList(b)}),c.socket.on("voice_queue:remove",function(c){console.log("remove"),a.queues.checked=_.without(a.queues.checked,c.name),a.initList(b)})},a.deleteItem=f.confirm["delete"](function(a){b["delete"]("/api/voice/queues/"+a).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(a.message,"danger")})}),a.deleteItems=f.confirm["delete"](function(){b["delete"]("/api/voice/queues",{params:{name:a.queues.checked}}).success(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){g.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.list",{url:"/list",templateUrl:"app/voice/queue/list/list.html",controller:"VoiceQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location",function(a,b,c,d,e,f,g){a.binaryChoices=[{name:"Yes",value:1},{name:"No",value:0}],a.monitorFormats=[{name:"wav",value:"wav"},{name:"gsm",value:"gsm"},{name:"Inactive",value:""}],a.queueAnnounces=[{display_name:"Default",value:null},{display_name:"Disabled",value:""}];var h=function(){return{select:function(c){b.post("/api/voice/queues/"+a.queue.name+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})},deselect:function(c){b.put("/api/voice/queues/"+a.queue.name+"/agents",{agents:c}).success(function(){a.getTeams()}).error(function(a){console.error(a)})}}};a.getQueue=function(){b.get("/api/voice/queues/"+e.id).success(function(b){b.joinempty=""===b.joinempty?[]:b.joinempty.split(","),b.leavewhenempty=""===b.leavewhenempty?[]:b.leavewhenempty.split(","),b.periodic_announce=""===b.periodic_announce?[]:b.periodic_announce.split(","),a.queue=b}).error(function(a){g.path("/voice/queues/list")})},a.updateVoiceQueue=function(){var f=angular.copy(a.queue);f.joinempty=f.joinempty.join(","),f.leavewhenempty=f.leavewhenempty.join(","),f.periodic_announce=f.periodic_announce.join(","),f.context||(f.context=null),b.put("/api/voice/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),f.joinempty=f.joinempty.split(","),f.leavewhenempty=f.leavewhenempty.split(","),f.periodic_announce=f.periodic_announce.split(","),a.queue=f})},a.getTeams=function(){b.get("/api/teams").success(function(c){a.teams=c.rows,b({url:"/api/voice/user_has_queues",method:"GET",params:{queue:a.queue.name}}).success(function(b){ComponentsDropdowns.bindQueue(a.teams,_.pluck(b,"UserId"),h)})}).error(function(a){console.error(a)})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getMohs=function(){b.get("/api/voice/musiconholds").success(function(b){a.voiceMohs=b.rows,f.syncUpdates("voice_musiconhold",a.voiceMohs)}).error(function(a){c.show(a.message,"danger")})},a.getSounds=function(){b.get("/api/uploads").success(function(b){a.queueAnnounces=a.queueAnnounces.concat(b),a.periodicAnnounces=angular.copy(b),b.unshift({display_name:"None",converted_path:null,value:""}),a.sounds=b,f.syncUpdates("upload",a.sounds)}).error(function(a){console.error(a)})},a.returnAnnouncePath=function(a){return console.log("func"),a.converted_path?a.converted_path+"/"+a.save_name:null===a.value?null:a.value}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.view",{url:"/view/:id",templateUrl:"app/voice/queue/view/view.html",controller:"VoiceQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.queues.view.settings",{url:"/settings",templateUrl:"app/voice/queue/view/view.settings.html"}).state("main.voice.queues.view.agents",{url:"/agents",templateUrl:"app/voice/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={queue:void 0},a.item={},a.next=function(){b.post("/api/voice/queues/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_QUEUE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/queues/",a.item).success(function(){d.path("/voice/queues/list")}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.queues.wizard",{url:"/wizard",templateUrl:"app/voice/queue/wizard/wizard.html",controller:"VoiceQueueWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentCtrl",["$scope","$http","$log","$uibModal","$translate","socket","xAlert",function(a,b,c,d,e,f,g){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){f.unsyncUpdates("user_has_voice_queue")}),a.groups=[],a.pauses=["pausa1","pausa2","pausa3"],a.pause=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/agent/pause.modal.html",controller:"VoiceRealtimeViewAgentPauseModalCtrl",resolve:{items:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.add=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/agent/queue.modal.add.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl",resolve:{pauses:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){console.log(a),b.post("/api/voice/user_has_queues",a).then(function(){a.login?b.post("/api/ami",a).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.remove=function(a,f){var h=d.open({animation:!0,size:a,templateUrl:"app/voice/realtime/view/agent/queue.modal.remove.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl",resolve:{pauses:function(){return null},data:function(){return f}}});h.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.initAgents=function(){b.get("/api/voice/user_has_queues").success(function(b){a.agents=b,a.groups=_.map(_.groupBy(a.agents,"membername"),function(a,b){return{membername:b,queues:a}}),f.socket.on("user_has_voice_queue:save",function(b){var c=_.find(a.groups,{membername:b.membername}),d=a.groups.indexOf(c);if(c){var e=_.find(c.queues,{queue:b.queue});e?_.merge(e,b):a.groups[d].queues.push(b)}else{var f={membername:b.membername,queues:[b]};a.groups.unshift(f)}}),f.socket.on("user_has_voice_queue:remove",function(b){var c=_.find(a.groups,{membername:b.membername});_.remove(c.queues,{queue:b.queue}),c.queues.length||_.remove(a.groups,{membername:b.membername})}),f.socket.on("report_agent:save",function(b){var c=_.find(a.groups,{membername:b.membername}),d=a.groups.indexOf(c);if(c){var e=_.find(c.queues,{queue:b.queue});e?_.merge(e,b):a.groups[d].queues.push(b)}else{var f={membername:b.membername,queues:[b]};a.groups.unshift(f)}})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentPauseModalCtrl",["$scope","$uibModalInstance","items","data",function(a,b,c,d){a.items=c,a.data=d,a.selected={item:a.items[0],queue:_.isArray(d)?a.data[0].queue:a.data.queue,membername:_.isArray(d)?a.data[0].membername:a.data.membername,"interface":_.isArray(d)?a.data[0]["interface"]:a.data["interface"]},a.ok=function(c){var e={action:"QueuePause","interface":a.selected["interface"],paused:c,reason:a.selected.item};_.isArray(d)||(e.queue=a.selected.queue),b.close(e)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","pauses","data",function(a,b,c,d,e){a.initAdd=function(){a.data=e,a.pauses=d,a.selected={membername:a.data[0].membername,"interface":a.data[0]["interface"],penalty:0,paused:!1,reason:a.pauses[0],UserId:a.data[0].UserId},c.get("/api/voice/queues",{params:{page:0,per_page:100}}).success(function(b){a.queues=_.reject(b.rows,function(b){return _.find(a.data,{queue:b.name})?!0:!1}),a.selected.queue=a.queues[0]?a.queues[0].name:null,console.log(a.queues)}).error(function(a){console.error(a)})},a.initRemove=function(){a.data=e,_.isArray(e)?a.selected={membername:a.data[0].membername,"interface":a.data[0]["interface"],logout:!1,UserId:a.data[0].UserId}:a.selected={membername:a.data.membername,"interface":a.data["interface"],queue:a.data.queue,logout:!1,UserId:a.data.UserId}},a.okAdd=function(){console.log(a.selected);var c={action:"QueueAdd",logged:a.data[0].logged,loggedAt:a.data[0].loggedAt,queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],penalty:a.selected.penalty,paused:a.selected.paused,UserId:a.selected.UserId};c.paused&&(c.reason=a.selected.reason),b.close(c)},a.okRemove=function(){var c;_.isArray(a.data)?(c=[],a.data.forEach(function(b){c.push({action:"QueueRemove",queue:b.queue,"interface":b["interface"],logout:a.selected.logout,UserId:b.UserId})})):c={action:"QueueRemove",queue:a.selected.queue,logout:a.selected.logout,"interface":a.selected["interface"],UserId:a.selected.UserId},b.close(c)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentReportCtrl",["$scope","$http","socket",function(a,b,c){a.$on("$destroy",function(){c.unsyncUpdates("report_agent")}),a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.initReport=function(){a.agents=[],b.get("/api/report/agents").success(function(b){a.agents=b,c.syncUpdates("report_agent",a.agents)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").filter("VoiceRealtimeViewAgentReportFilter",function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueReportCtrl",["$scope","$http","socket",function(a,b,c){a.$on("$destroy",function(){c.unsyncUpdates("report_queue")}),a.conf={queuesByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.queuesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.initReport=function(){a.queues=[],b.get("/api/report/queues").success(function(b){console.log(b),a.queues=b,c.syncUpdates("report_queue",a.queues)}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").filter("VoiceRealtimeViewQueueReportFilter",function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueuePauseModalCtrl",["$scope","$uibModalInstance","items","data",function(a,b,c,d){a.items=c,a.data=d,console.log(d),a.selected={item:a.items[0],queue:_.isArray(d)?a.data[0].queue:a.data.queue,membername:_.isArray(d)?a.data[0].membername:a.data.membername,"interface":_.isArray(d)?a.data[0]["interface"]:a.data["interface"]},a.ok=function(c,e){var f;_.isArray(d)?(f=[],d.forEach(function(b){f.push({action:"QueuePause",queue:b.queue,membername:b.membername,"interface":b["interface"],paused:c,reason:a.selected.item})})):f={action:"QueuePause",queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],paused:c,reason:a.selected.item},b.close(f)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCtrl",["$scope","$http","$log","$uibModal","$translate","socket","xAlert",function(a,b,c,d,e,f,g){a.conf={agentsByPage:{name:"10",value:10},labels:["fullname","name","email"]},a.agentsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.$on("$destroy",function(){f.unsyncUpdates("user_has_voice_queue")}),a.groups=[],a.pauses=["pausa1","pausa2","pausa3"],a.pause=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/queue/pause.modal.html",controller:"VoiceRealtimeViewQueuePauseModalCtrl",resolve:{items:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(a){console.log(a),g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.log(a),g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.add=function(f,h){var i=d.open({animation:!0,size:f,templateUrl:"app/voice/realtime/view/queue/queue.modal.add.html",controller:"VoiceRealtimeViewQueueQueueModalCtrl",resolve:{pauses:function(){return a.pauses},data:function(){return h}}});i.result.then(function(a){console.log("action",a),b.post("/api/voice/user_has_queues",a).then(function(){a.login?b.post("/api/ami",a).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.message,"danger")}),console.log(a)},function(){c.info("Modal dismissed at: "+new Date)})},a.remove=function(a,f){var h=d.open({animation:!0,size:a,templateUrl:"app/voice/realtime/view/queue/queue.modal.remove.html",controller:"VoiceRealtimeViewQueueQueueModalCtrl",resolve:{pauses:function(){return null},data:function(){return f}}});h.result.then(function(a){_.isArray(a)?a.forEach(function(a){b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})}):b.post("/api/ami",a).then(function(){a.logout?b.put("/api/voice/queues/"+a.queue+"/agents",{agents:[a.UserId]}).then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")}):g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.show(a.data.message,"danger")})},function(){c.info("Modal dismissed at: "+new Date)})},a.initQueues=function(){b.get("/api/voice/user_has_queues").success(function(b){a.queues=b,a.groups=_.map(_.groupBy(a.queues,"queue"),function(a,b){return{queue:b,agents:a}}),console.log("ok"),f.socket.on("user_has_voice_queue:save",function(b){console.log("item",b);var c=_.find(a.groups,{queue:b.queue}),d=a.groups.indexOf(c);if(c){var e=_.find(c.agents,{membername:b.membername});e?_.merge(e,b):a.groups[d].agents.push(b)}else{var f={queue:b.queue,agents:[b]};a.groups.unshift(f)}}),f.socket.on("user_has_voice_queue:remove",function(b){var c=_.find(a.groups,{queue:b.queue});_.remove(c.agents,{membername:b.membername
+}),c.agents.length||_.remove(a.groups,{queue:b.queue})}),f.socket.on("report_agent:save",function(b){var c=_.find(a.groups,{queue:b.queue}),d=a.groups.indexOf(c);if(c){var e=_.find(c.agents,{membername:b.membername});e?_.merge(e,b):a.groups[d].agents.push(b)}else{var f={queue:b.queue,agents:[b]};a.groups.unshift(f)}})}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueQueueModalCtrl",["$scope","$uibModalInstance","$http","pauses","data",function(a,b,c,d,e){a.initAdd=function(){a.data=e,a.pauses=d,a.selected={penalty:0,paused:!1,reason:a.pauses[0]},a.$watch("selected.agent",function(b){b&&(a.selected.membername=b.name,a.selected["interface"]="SIP/"+b.name,a.selected.UserId=b.id)}),c.get("/api/agents",{params:{page:0,per_page:500}}).success(function(b){a.agents=_.reject(b.rows,function(b){return _.find(a.data,{membername:b.name})?!0:!1}),a.selected.queue=a.data[0]?a.data[0].queue:null}).error(function(a){console.error(a)})},a.initRemove=function(){a.data=e,console.log(e),_.isArray(e)?a.selected={queue:a.data[0].queue,logout:!1}:a.selected={membername:a.data.membername,"interface":a.data["interface"],queue:a.data.queue,logout:!1,UserId:a.data.UserId}},a.okAdd=function(){var c={action:"QueueAdd",queue:a.selected.queue,membername:a.selected.membername,"interface":a.selected["interface"],penalty:a.selected.penalty,paused:a.selected.paused,UserId:a.selected.UserId};c.paused&&(c.reason=a.selected.reason),b.close(c)},a.okRemove=function(){var c;_.isArray(a.data)?(c=[],a.data.forEach(function(b){c.push({action:"QueueRemove",queue:b.queue,"interface":b["interface"],logout:a.selected.logout,UserId:b.UserId})})):c={action:"QueueRemove",queue:a.selected.queue,logout:a.selected.logout,"interface":a.selected["interface"],UserId:a.selected.UserId},b.close(c)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"View1",link:"main.voice.realtime.view.agents"},{name:"View2",link:"main.voice.realtime.view.areports"}],a.queues=[{name:"View1",link:"main.voice.realtime.view.queues"},{name:"View2",link:"main.voice.realtime.view.qreports"}]}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.realtime.view",{url:"/view",templateUrl:"app/voice/realtime/view/view.html",controller:"VoiceRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.realtime.view.queues",{url:"/queues",controller:"VoiceRealtimeViewQueueCtrl",templateUrl:"app/voice/realtime/view/queue/queue.html"}).state("main.voice.realtime.view.qreports",{url:"/qreport/:search",controller:"VoiceRealtimeViewQueueReportCtrl",templateUrl:"app/voice/realtime/view/qreport/report.html"}).state("main.voice.realtime.view.agents",{url:"/agents",controller:"VoiceRealtimeViewAgentCtrl",templateUrl:"app/voice/realtime/view/agent/agent.html"}).state("main.voice.realtime.view.areports",{url:"/areport",controller:"VoiceRealtimeViewAgentReportCtrl",templateUrl:"app/voice/realtime/view/areport/report.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound",{url:"/inbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/inbound",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.routesByPage,a.displayedRoutes.length),e.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"inbound"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"inbound"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.list",{url:"/list",templateUrl:"app/voice/route/inbound/list/list.html",controller:"VoiceRouteInboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundViewCtrl",["$scope","$http","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=c,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={settings:void 0,interval:void 0},a.application={VoiceExtensionId:d.id,type:"inbound"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var e,f;switch(d.appId||(a.application={VoiceExtensionId:d.id,type:"inbound",interval:a.application.interval}),c){case"Queue":e="api/voice/queues",f="/api/uploads";break;case"Playback":e="/api/uploads";break;case"AGI":e="/api/square/projects";break;case"Goto":e="/api/voice/contexts";break;default:e=null,f=null}e&&b.get(e).success(function(b){a.items="Playback"!==c?b.rows:b}),f&&b.get(f).success(function(b){a.items2=b})}},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+d.id+"/applications").success(function(b){a.routeApplications=b,e.unsyncUpdates("voice_extension"),e.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),e.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===d.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+d.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(b){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0,axis:"y"},a.getRoute=function(){b.get("/api/voice/extensions/"+d.id).success(function(b){a.route=b,e.socket.on("voice_extension:update",function(b){b.id==d.id&&(a.route=b)})}).error(function(a){f.path("/voice/routes/inbound/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+d.appId).success(function(b){var c=_.filter(a.$application.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),"Queue"===b.app&&(a.application.app_options=b.app_options?b.app_options.split(","):[]),a.interval.intType=b.IntervalId?"list":"*,*,*,*"===b.interval?"always":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){f.path("/voice/routes/inbound/view/"+d.id+"/applications")})},a.updateRoute=function(){var e=angular.copy(a.route);b.put("/api/voice/extensions/"+d.id,e).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){i.show(c.instant(b.message),"danger"),a.route=e})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){f.path("/voice/routes/inbound/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.updateItem=function(){switch(a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+d.appId,a.application).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),f.path("/voice/routes/inbound/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.deleteItem=h.confirm["delete"](function(d){b["delete"]("/api/voice/extensions/"+d).success(function(){a.getRouteApplications(),i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(c.instant(a.message),"danger")})}),a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.view",{url:"/view/:id",templateUrl:"app/voice/route/inbound/view/view.html",controller:"VoiceRouteInboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.inbound.view.settings",{url:"/settings",templateUrl:"app/voice/route/inbound/view/view.settings.html"}).state("main.voice.routes.inbound.view.applications",{url:"/applications",templateUrl:"app/voice/route/inbound/view/view.applications.html",cache:!1}).state("main.voice.routes.inbound.view.application",{url:"/application",templateUrl:"app/voice/route/inbound/view/view.application.html",authenticate:!0}).state("main.voice.routes.inbound.view.applications.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/inbound/view/view.applicationSettings.html",authenticate:!0,controller:"VoiceRouteInboundViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"inbound",appdata:"Inbound Call",context:"from-voip-provider"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/inbound/view/"+a.id+"/applications")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.inbound.wizard",{url:"/wizard",templateUrl:"app/voice/route/inbound/wizard/wizard.html",controller:"VoiceRouteInboundWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/internal",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,e.updateTableConfig(a.routesByPage,a.displayedRoutes.length),e.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"internal"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"internal"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(d.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.list",{url:"/list",templateUrl:"app/voice/route/internal/list/list.html",controller:"VoiceRouteInternalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalViewCtrl",["$scope","$http","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=c,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={settings:void 0,interval:void 0},a.application={VoiceExtensionId:d.id,type:"internal"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var e,f;switch(d.appId||(a.application={VoiceExtensionId:d.id,type:"internal",interval:a.application.interval}),c){case"Queue":e="api/voice/queues",f="/api/uploads";break;case"Playback":e="/api/uploads";break;case"AGI":e="/api/square/projects";break;case"Goto":e="/api/voice/contexts";break;default:e=null,f=null}e&&b.get(e).success(function(b){a.items="Playback"!==c?b.rows:b}),f&&b.get(f).success(function(b){a.items2=b})}},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+d.id+"/applications").success(function(b){a.routeApplications=b,e.unsyncUpdates("voice_extension"),e.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),e.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===d.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+d.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(b){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0,axis:"y"},a.getRoute=function(){b.get("/api/voice/extensions/"+d.id).success(function(b){a.route=b,e.socket.on("voice_extension:update",function(b){b.id==d.id&&(a.route=b)})}).error(function(a){console.error(a),f.path("/voice/routes/internal/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+d.appId).success(function(b){var c=_.filter(a.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),"Queue"===b.app&&(a.application.app_options=b.app_options?b.app_options.split(","):[]),a.interval.intType=b.IntervalId?"list":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){f.path("/voice/routes/internal/view/"+d.id+"/applications")})},a.updateRoute=function(){var e=angular.copy(a.route);b.put("/api/voice/extensions/"+d.id,e).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){i.show(c.instant(b.message),"danger"),a.route=e})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){i.show(c.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){f.path("/voice/routes/internal/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.updateItem=function(){switch(a.application.app_options&&"Queue"===a.application.app&&(a.application.app_options=a.application.app_options.join(",")),a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+d.appId,a.application).success(function(){i.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),f.path("/voice/routes/internal/view/"+d.id+"/applications")}).error(function(a){i.show(c.instant(a.message),"danger")})},a.deleteItem=h.confirm["delete"](function(d){b["delete"]("/api/voice/extensions/"+d).success(function(b){a.getRouteApplications(),i.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){i.show(c.instant(a.message),"danger")})}),a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.view",{url:"/view/:id",templateUrl:"app/voice/route/internal/view/view.html",controller:"VoiceRouteInternalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.internal.view.settings",{url:"/settings",templateUrl:"app/voice/route/internal/view/view.settings.html"}).state("main.voice.routes.internal.view.applications",{url:"/applications",templateUrl:"app/voice/route/internal/view/view.applications.html",cache:!1}).state("main.voice.routes.internal.view.application",{url:"/application",templateUrl:"app/voice/route/internal/view/view.application.html",authenticate:!0}).state("main.voice.routes.internal.view.applications.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/internal/view/view.applicationSettings.html",authenticate:!0,controller:"VoiceRouteInternalViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"internal",appdata:"Iternal Call",context:"from-sip"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/internal/view/"+a.id+"/applications")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.internal.wizard",{url:"/wizard",templateUrl:"app/voice/route/internal/wizard/wizard.html",controller:"VoiceRouteInternalWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={routesByPage:{name:"10",value:10}},a.routesByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.routes={checked:[]},a.check=function(b){b?a.routes.checked=angular.copy(_.pluck(a.displayedRoutes,"id")):a.routes.checked=[]},a.getRoutes=function(b){return _.map(a.displayedRoutes,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){c.unsyncUpdates("voice_extension"),b.url="/api/voice/extensions/route/outbound",h.getPage(b).then(function(c){a.displayedRoutes=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.routesByPage,a.displayedRoutes.length),d.updateTableConfig(a.conf.routesByPage,a.displayedRoutes.length)}),c.socket.on("voice_extension:save",function(c){"outbound"===c.type&&a.initList(b)}),c.socket.on("voice_extension:remove",function(c){"outbound"===c.type&&(a.routes.checked=_.without(a.routes.checked,c.id),a.initList(b))})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/extensions/"+a).success(function(){f(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/extensions/",{params:{id:a.routes.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(e.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.list",{url:"/list",templateUrl:"app/voice/route/outbound/list/list.html",controller:"VoiceRouteOutboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound",{url:"/outbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","application","interval",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.$application=j.application,a.$interval=k.interval,a.initApplication=function(){a.forms={info:void 0,interval:void 0},a.application={VoiceExtensionId:e.id,type:"outbound"},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""},a.applications=[{name:"Dial",value:"Dial"},{name:"Custom",value:"custom"}]},a.joinInterval=function(a){console.log(a);var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toLowerCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toLowerCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from.toLowerCase(),a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to.toLowerCase())):e="*",b+","+c+","+d+","+e},a.$watch("main.app",function(c){if(c){var d,f;switch(e.appId||(a.application={VoiceExtensionId:e.id,type:"outbound",interval:a.application.interval}),c){case"Dial":d="api/trunks",f="/api/voice/contexts";break;default:d=null,f=null}d&&b.get(d).success(function(b){a.items="Dial"===c?b.rows:b}),f&&b.get(f).success(function(b){a.items2="Dial"===c?b.rows:b})}},!0),a.$watch("application.TrunkId",function(b){b&&(a.application.trunk=_.result(_.find(a.items,{id:b}),"name"))},!0),a.getIntervals=function(){b.get("/api/intervals").success(function(b){a.Intervals=b.rows,f.syncUpdates("interval",a.Intervals)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.getRouteApplications=function(){b.get("/api/voice/extensions/"+e.id+"/applications").success(function(b){a.routeApplications=b,f.unsyncUpdates("voice_extension"),f.socket.on("voice_extension:remove",function(b){b.where.appGroup&&_.remove(a.routeApplications,function(a){return b.where.appGroup==a.appGroup})}),f.socket.on("voice_extension:save",function(b){if(b.VoiceExtensionId===e.id&&b.isApp){var c=_.find(a.routeApplications,{id:b.id});c||a.routeApplications.push(b)}})})},a.sortableOptions={stop:function(){b.post("api/voice/extensions/"+e.id+"/applications",{applications:_.pluck(a.routeApplications,"appGroup")}).success(function(){a.getRouteApplications()}).error(function(a){console.error(a)})},"ui-floating":!0,axis:"y"},a.getRoute=function(){b.get("/api/voice/extensions/"+e.id).success(function(b){a.route=b,f.socket.on("voice_extension:update",function(b){b.id==e.id&&(a.route=b)})}).error(function(a){g.path("/voice/routes/outbound/list")})},a.getApplication=function(){b.get("/api/voice/extensions/applications/"+e.appId).success(function(b){var c=_.filter(a.applications,function(a){return a.value===b.app});if(c.length>0&&!b.customApp?a.main.app=b.app:a.main.app="custom",a.application=b,a.interval.intType=b.IntervalId?"list":"custom",a.interval.IntervalId=b.IntervalId,!b.IntervalId){var d,e=b.interval?b.interval.split(","):["*","*","*","*"];e.forEach(function(b,c){switch(c){case 0:"*"!==b?(d=b.split("-"),a.interval.t_from=moment(d[0],"HH:mm"),a.interval.t_to=moment(d[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==b?(d=b.split("-"),a.interval.wd_from=_.capitalize(d[0]),a.interval.wd_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==b?(d=b.split("-"),a.interval.md_from=d[0],a.interval.md_to=d[1]?d[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==b?(d=b.split("-"),a.interval.m_from=_.capitalize(d[0]),a.interval.m_to=d[1]?_.capitalize(d[1]):"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}).error(function(a){console.error(a),g.path("/voice/routes/outbound/view/"+e.id+"/routes")})},a.updateRoute=function(){var f=angular.copy(a.route);b.put("/api/voice/extensions/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.route=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){
+a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(d.instant(a.message),"danger")})},a.createItem=function(){switch(a.application.app=a.main.app,a.application.exten=a.route.exten,a.application.context=a.route.context,a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.post("/api/voice/extensions/",a.application).success(function(){g.path("/voice/routes/outbound/view/"+e.id+"/routes")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.updateItem=function(){switch(a.interval.intType){case"list":a.application.IntervalId=a.interval.IntervalId,a.application.interval=_.result(_.find(a.Intervals,{id:a.interval.IntervalId}),"name");break;case"custom":a.application.IntervalId=null,a.application.interval=a.joinInterval(a.interval);break;case"always":a.application.IntervalId=null,a.application.interval="*,*,*,*"}b.put("/api/voice/extensions/applications/"+e.appId,a.application).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),g.path("/voice/routes/outbound/view/"+e.id+"/routes")}).error(function(a){c.show(d.instant(a.message),"danger")})},a.deleteItem=i.confirm["delete"](function(e){b["delete"]("/api/voice/extensions/"+e).success(function(b){a.getRouteApplications(),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.show(d.instant(a.message),"danger")})}),a.goNext=function(){h.wizard().next()},a.previous=function(){h.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){f.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.view",{url:"/view/:id",templateUrl:"app/voice/route/outbound/view/view.html",controller:"VoiceRouteOutboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.routes.outbound.view.settings",{url:"/settings",templateUrl:"app/voice/route/outbound/view/view.settings.html"}).state("main.voice.routes.outbound.view.routes",{url:"/routes",templateUrl:"app/voice/route/outbound/view/view.routes.html",cache:!1}).state("main.voice.routes.outbound.view.route",{url:"/route",templateUrl:"app/voice/route/outbound/view/view.route.html",authenticate:!0}).state("main.voice.routes.outbound.view.routes.settings",{url:"/settings/:appId",templateUrl:"app/voice/route/outbound/view/view.routeSettings.html",authenticate:!0,controller:"VoiceRouteOutboundViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.forms={route:void 0},a.item={type:"outbound",appdata:"Outbound Call",context:"from-sip"},a.next=function(){b.post("/api/voice/extensions/validate/",a.item).success(function(a){console.log(a),a.length?e.show(g.instant("MESSAGE_EXIST_ROUTE"),"danger"):c.wizard().next()}).error(function(a){e.show(g.instant(a.message),"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("/api/voice/extensions/",a.item).success(function(a){d.path("/voice/routes/outbound/view/"+a.id+"/routes")}).error(function(a){e.show(g.instant(a.message),"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(g.instant(a.message),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes.outbound.wizard",{url:"/wizard",templateUrl:"app/voice/route/outbound/wizard/wizard.html",controller:"VoiceRouteOutboundWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.routes",{url:"/routes",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice",{url:"/voice",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailListCtrl",["$scope","$http","$translate","$rootScope","xAlert","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={voicemailsByPage:{name:"10",value:10},labels:["mailbox","fullname","email"]},a.voicemailsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.voicemails={checked:[]},a.check=function(b,c){c?a.voicemails.checked=angular.copy(_.pluck(a.displayedVoicemails,"uniqueid")):a.voicemails.checked=[]},a.getVoicemails=function(b){return _.map(a.displayedVoicemails,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("voice_voicemail"),b.url="/api/voice/voicemails",h.getPage(b).then(function(c){a.displayedVoicemails=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.voicemailsByPage,a.displayedVoicemails.length),d.updateTableConfig(a.conf.voicemailsByPage,a.displayedVoicemails.length)}),f.socket.on("voice_voicemail:save",function(){a.initList(b)}),f.socket.on("voice_voicemail:remove",function(c){a.voicemails.checked=_.without(a.voicemails.checked,c.uniqueid),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/voice/voicemails/"+a).success(function(){e.show(c.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){e.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/voice/voicemails",{params:{uniqueid:a.voicemails.checked}}).success(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){e.show(c.instant(a.message),"danger")})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.list",{url:"/list",templateUrl:"app/voice/voicemail/list/list.html",controller:"VoiceVoicemailListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$sce","Modal","$location",function(a,b,c,d,e,f,g,h,i){a.getVoicemail=function(){b.get("/api/voice/voicemails/"+e.uniqueid).success(function(b){delete b.password,delete b.stamp,a.voicemail=b}).error(function(a){console.error(a),i.path("/voice/voicemails/list")})},a.updateVoiceVoicemail=function(){var f=angular.copy(a.voicemail);b.put("/api/voice/voicemails/"+e.uniqueid,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.voicemail=f})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){c.show(a.message,"danger")})},a.getMessages=function(){b.get("/api/voice/voicemails/"+e.uniqueid+"/messages/").success(function(b){a.voicemailMessages=b,f.syncUpdates("voice_voicemail_messages",a.voicemailMessages)}).error(function(a){c.show(a.message,"danger")})},a.encodeRecording=function(a){return g.trustAsResourceUrl("data:audio/ogg;base64,"+j(a.data))},a.returnMessageDate=function(a){return a.split("T")[0]},a.returnDuration=function(a){return 1e3*a},a.deleteItem=h.confirm["delete"](function(a){b["delete"]("/api/voice/voicemails/messages/"+a+"/delete").success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){console.log(a),c.show(a.message,"danger")})});var j=function(a){for(var b=new Uint8Array(a),c=b.byteLength,d="",e=0;c>e;e++)d+=String.fromCharCode(b[e]);return window.btoa(d)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.view",{url:"/view/:uniqueid",templateUrl:"app/voice/voicemail/view/view.html",controller:"VoiceVoicemailViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.voice.voicemails.view.settings",{url:"/settings",templateUrl:"app/voice/voicemail/view/view.settings.html"}).state("main.voice.voicemails.view.messages",{url:"/messages",templateUrl:"app/voice/voicemail/view/view.messages.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails",{url:"/voicemails",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailWizardCtrl",["$scope","$http","WizardHandler","$location","xAlert","socket","$translate",function(a,b,c,d,e,f,g){a.initWizard=function(){a.forms={},a.item={}},a.next=function(){b.post("/api/voice/voicemails/validate/",a.item).success(function(a){a.length?e.show(g.instant("MESSAGE_EXIST_MAILBOX"),"danger"):c.wizard().next()}).error(function(a){e.show(a.message,"danger")})},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){a.item.customer_id=a.item.mailbox,b.post("/api/voice/voicemails/",a.item).success(function(){d.path("/voice/voicemails/list")}).error(function(a){e.show(a.message,"danger")})},a.getContexts=function(){b.get("/api/voice/contexts").success(function(b){a.voiceContexts=b.rows,f.syncUpdates("voice_context",a.voiceContexts)}).error(function(a){e.show(a.message,"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.voice.voicemails.wizard",{url:"/wizard",templateUrl:"app/voice/voicemail/wizard/wizard.html",controller:"VoiceVoicemailWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCtrl",["$scope","$http","socket","$rootScope","$translate","xAlert","Modal","stResource","$uibModal","$log",function(a,b,c,d,e,f,g,h,i,j){a.conf={dashboardsByPage:{name:"10",value:10}},a.dashboardsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.dashboards={checked:[]},a.check=function(b,c){c?a.dashboards.checked=angular.copy(_.pluck(a.displayedDashboards,"id")):a.dashboards.checked=[]},a.getDashboards=function(b){return _.map(a.displayedDashboards,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){b.url="/api/dashboards",h.getPage(b).then(function(c){a.displayedDashboards=c.rows,b.pagination.numberOfPages=c.total_pages,d.updateTableConfig(a.dashboardsByPage,a.displayedDashboards.length),d.updateTableConfig(a.conf.dashboardsByPage,a.displayedDashboards.length)}),c.socket.on("dashboard:save",function(){a.initList(b)}),c.socket.on("dashboard:remove",function(c){a.dashboards.checked=_.without(a.dashboards.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/dashboards/"+a).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/dashboards",{params:{id:a.dashboards.checked}}).success(function(){f.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){f.show(a.message,"danger")})}),a.create=function(){var a=i.open({animation:!0,templateUrl:"app/yourdashboard/list/create.modal.html",controller:"YourdashboardListCreateModalCtrl"});a.result.then(function(a){b.post("/api/dashboards",a).then(function(a){f.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.show(a.data.message,"danger")})},function(){j.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.list",{url:"/list",templateUrl:"app/yourdashboard/list/list.html",controller:"YourdashboardListCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardShowCtrl",["$scope","localStorageService","$http","xAlert","$translate","Auth","$stateParams","$location",function(a,b,c,d,e,f,g,h){a.Auth=f,a.dashboard={name:"dashboard",structure:"4-8",enableconfirmdelete:!0,editable:f.isAdmin()?!0:!1,maximizable:!0,collapsible:!0},a.getDashboard=function(){c.get("/api/dashboards/"+g.id).success(function(b){b.model=JSON.parse(b.model),a.dashboard=_.merge(a.dashboard,b)}).error(function(a){h.path("/yourdashboards/list")})};var i=function(b,f,h){var i=angular.copy(a.dashboard);i.name=a.dashboard.model.title,i.model=JSON.stringify(i.model),c.put("/api/dashboards/"+g.id,i).success(function(){d.show(e.instant("MESSAGE_DASHBOARD_SAVED")+"!","success")}).error(function(b){d.show(b.message,"danger"),i.model=JSON.parse(i.model),i.name="dashboard",a.dashboard=i})};a.$on("adfDashboardChanged",i),a.$on("destroy",function(){console.log("main dashboard")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.show",{url:"/show/:id",templateUrl:"app/yourdashboard/show/show.html",controller:"YourdashboardShowCtrl"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getDashboard=function(){b.get("/api/dashboards/"+e.id).success(function(b){delete b.model,a.dashboard=b}).error(function(a){f.path("/yourdashboards/list")})},a.updateDashboard=function(){var f=angular.copy(a.dashboard);b.put("/api/dashboards/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.show(d.instant(b.message),"danger"),a.dashboard=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards.view",{url:"/view/:id",templateUrl:"app/yourdashboard/view/view.html",controller:"YourdashboardViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.yourdashboards.view.settings",{url:"/settings",templateUrl:"app/yourdashboard/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.yourdashboards",{url:"/yourdashboards",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.pluck(a.displayedZdAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedZdAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("zendesk_account"),b.url="/api/zendesk/accounts",h.getPage(b).then(function(d){a.displayedZdAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedZdAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedZdAccounts.length)}),f.socket.on("zendesk_account:save",function(){a.initList(b)}),f.socket.on("zendesk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/zendesk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/zendesk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.show(e.instant(a.message),"danger")})}),a.checkAccount=function(a){b.get("/api/zendesk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.list",{url:"/list",templateUrl:"app/zendesk/list/list.html",controller:"ZendeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){g.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){h.unsyncUpdates("zendesk_configuration"),h.unsyncUpdates("zendesk_field")}),a.initView=function(){b.get("/api/zendesk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){i.show(a.message,"danger")})},a.updateItem=function(){b.put("/api/zendesk/accounts/"+c.id,a.account).success(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/zendesk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,h.socket.on("zendesk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.deleteConfiguration=j.confirm["delete"](function(a){b["delete"]("api/zendesk/configurations/"+a).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/zendesk/configurations",a.configuration).success(function(a){e.path("zendesk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){i.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/zendesk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=f("zendesk")(b)}).error(function(a){i.show(a.message,"danger")})},a.getConfiguration=function(){b.get("/api/zendesk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,h.socket.on("zendesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){i.show(a.message,"danger")})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){i.show(a.message,"danger")})},a.removeItem=function(a){b["delete"]("api/zendesk/fields/"+a.id).success(function(){i.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/zendesk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){i.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/zendesk/fields/"+a.id,a).success(function(){}).error(function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){b.content="",a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.system_field_options?c.system_field_options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view",{url:"/view/:id",templateUrl:"app/zendesk/view/view.html",controller:"ZendeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.zendesk.view.account",{url:"/account",templateUrl:"app/zendesk/view/view.account.html"}).state("main.zendesk.view.configurations",{url:"/configurations",templateUrl:"app/zendesk/view/view.configurations.html"}).state("main.zendesk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/zendesk/view/view.configurationSettings.html",controller:"ZendeskViewCtrl"}).state("main.zendesk.view.configuration",{url:"/configuration",templateUrl:"app/zendesk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("ZendeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.authType="password"},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){b.post("api/zendesk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/zendesk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.wizard",{url:"/wizard",templateUrl:"app/zendesk/wizard/wizard.html",controller:"ZendeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk",{url:"/zendesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").service("application",function(){var a={applications:[{name:"Queue",value:"Queue"},{name:"Playback",value:"Playback"},{name:"Dial",value:"Dial"},{name:"Cally-Square IVR",value:"AGI"},{name:"GoTo",value:"Goto"},{name:"Hangup",value:"Hangup"},{name:"Set",value:"Set"},{name:"Custom",value:"custom"},{name:"VoiceMail",value:"Voicemail"}],queueOptions:[{value:"C",name:"APPLICATION_QUEUE_OPTION_C"},{value:"c",name:"APPLICATION_QUEUE_OPTION_c"},{value:"d",name:"APPLICATION_QUEUE_OPTION_d"},{value:"F",name:"APPLICATION_QUEUE_OPTION_F"},{value:"h",name:"APPLICATION_QUEUE_OPTION_h"},{value:"H",name:"APPLICATION_QUEUE_OPTION_H"},{value:"n",name:"APPLICATION_QUEUE_OPTION_n"},{value:"i",name:"APPLICATION_QUEUE_OPTION_i"},{value:"I",name:"APPLICATION_QUEUE_OPTION_I"},{value:"r",name:"APPLICATION_QUEUE_OPTION_r"},{value:"R",name:"APPLICATION_QUEUE_OPTION_R"},{value:"t",name:"APPLICATION_QUEUE_OPTION_t"},{value:"T",name:"APPLICATION_QUEUE_OPTION_T"},{value:"w",name:"APPLICATION_QUEUE_OPTION_w"},{value:"W",name:"APPLICATION_QUEUE_OPTION_W"},{value:"k",name:"APPLICATION_QUEUE_OPTION_k"},{value:"K",name:"APPLICATION_QUEUE_OPTION_K"},{value:"x",name:"APPLICATION_QUEUE_OPTION_x"},{value:"X",name:"APPLICATION_QUEUE_OPTION_X"}],audioOptions:[{value:"skip",name:"APPLICATION_PLAYBACK_OPTION_SKIP"},{value:"noanswer",name:"APPLICATION_PLAYBACK_OPTION_NOANSWER"},{value:"j",name:"APPLICATION_PLAYBACK_OPTION_J"},{value:"say",name:"APPLICATION_PLAYBACK_OPTION_SAY"}],hangupCauses:[{value:"",name:"--"},{value:"1",name:"APPLICATION_HANGUP_CAUSE_1"},{value:"16",name:"APPLICATION_HANGUP_CAUSE_16"},{value:"17",name:"APPLICATION_HANGUP_CAUSE_17"},{value:"18",name:"APPLICATION_HANGUP_CAUSE_18"},{value:"21",name:"APPLICATION_HANGUP_CAUSE_21"},{value:"22",name:"APPLICATION_HANGUP_CAUSE_22"},{value:"27",name:"APPLICATION_HANGUP_CAUSE_27"},{value:"38",name:"APPLICATION_HANGUP_CAUSE_38"},{value:"41",name:"APPLICATION_HANGUP_CAUSE_41"}],intTypes:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"custom",name:"APPLICATION_CUSTOM"},{value:"list",name:"APPLICATION_FROM_LIST"}]};return{application:a}}),angular.module("xCallyShuttleApp").factory("Auth",["$location","$rootScope","$http","User","$cookieStore","$q",function(a,b,c,d,e,f){var g={};return e.get("token")&&(g=d.me()),{login:function(a,h){var i=h||angular.noop,j=f.defer();return c.post("/auth/local",{name:a.name,password:a.password,remember:a.remember}).success(function(a){return e.put("token",a.token),e.put("userId",a.userId),g=d.me({},function(){b.$broadcast("login")}),j.resolve(a),i()}).error(function(a){return this.logout(),j.reject(a),i(a)}.bind(this)),j.promise},loginWithToken:function(a,b,c){e.put("token",a),e.put("userId",b),e.put("name",c),g=d.me()},logout:function(){c.put("/api/users/"+g.id,{online:!1}).success(function(){e.remove("token"),e.remove("userId"),g={},b.$broadcast("logout")}).error(function(a){return a})},createUser:function(a,b){var c=b||angular.noop;return d.save(a,function(b){return e.put("token",b.token),g=d.me(),c(a)},function(a){return this.logout(),c(a)}.bind(this)).$promise},changePassword:function(a,b,c){var e=c||angular.noop;return d.changePassword({id:g.id},{oldPassword:a,newPassword:b},function(a){return e(null,a)},function(a){return e(a)}).$promise},getCurrentUser:function(){return g},isLoggedIn:function(){return g.hasOwnProperty("role")},isLoggedInAsync:function(a){g.hasOwnProperty("$promise")?g.$promise.then(function(){a(!0)})["catch"](function(){a(!1)}):a(g.hasOwnProperty("role")?!0:!1)},isAdmin:function(){return"admin"===g.role},getRole:function(){return g.role},getToken:function(){return e.get("token")},getUserId:function(){return console.log(e.get("userId")),e.get("userId")},getName:function(){return e.get("name")}}}]),angular.module("xCallyShuttleApp").factory("User",["$resource",function(a){return a("/api/users/:id/:controller",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},me:{method:"GET",params:{id:"me"}}})}]),angular.module("xCallyShuttleApp").service("automations",function(){var a={voice:{conditions:[],actions:[]},mail:{conditions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select",operators:"equals"},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",propertyField:"number",operators:"noequals"}],actions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select"}]},chat:{conditions:[],actions:[]},fax:{conditions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select",operators:"equals"},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",propertyField:"number",operators:"noequals"}],actions:[{name:"APPLICATION_STATUS",value:"status",propertyField:"select"}]}},b=["voice","mail","chat","fax"],c={equals:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"}],all:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"},{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}],noequals:[{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}]},d={voice:{},mail:{status:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_SOLVED",value:"SOLVED"}]},chat:{},fax:{status:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_SOLVED",value:"SOLVED"}]}};return{automations:a,properties:d,channels:b,operators:c}}),angular.module("xCallyShuttleApp").service("desk_com",function(){var a=[{id:"priority",label:"Priority",custom:!1,data:{choices:[1,2,3,4,5,6,7,8,9,10]}},{id:"status",label:"Status",custom:!1,data:{choices:["new","open","pending","resolved","closed"]}},{id:"type",label:"Type",custom:!1,data:{choices:["chat","twitter","email","qna","facebook","phone"]}}];return{fields:a}}),angular.module("xCallyShuttleApp").controller("FooterController",["$scope","$http",function(a,b){a.$on("$includeContentLoaded",function(){Layout.initFooter()}),a.initFooter=function(){b.get("/api/settings/info").success(function(b){a.info=b}).error(function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("HeaderController",["$scope","$rootScope","$location","$state","$http","$notification","Auth","xAlert","socket","ngAudio","settings","toastr","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.toggleQuickSidebar=function(){k.layout.pageQuickSidebarOpened=!k.layout.pageQuickSidebarOpened,k.layout.pageQuickSidebarOpened||m.remove("chatRoomId")},a.initHeader=function(){var c=j.load("api/xchatty/assets?resource=notification/xc_blubb.mp3"),d={};"agent"===g.getCurrentUser().role&&(i.socket.on("report_mail:save",function(a){c.play();var b=f("MAIL CHANNEL",{icon:"assets/images/media/channels/mail64.png",body:"NEW Incoming Mail Message!",delay:1e3*a.timeslot});b.$on("click",function(){e.put("/api/report/mails/"+a.id,{connect:!0}).success(function(){b.close(),h.show("Mail properly assigned","success")}).error(function(a){h.show(a.message,"danger")})})}),i.socket.on("report_chat:save",function(a){d[a.uniqueid]&&(d[a.uniqueid].close(),delete d[a.uniqueid]),c.play(),d[a.uniqueid]=f("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Chat Visitor!",delay:1e3*a.timeslot}),d[a.uniqueid].$on("click",function(){e.put("/api/report/chats/"+a.id,{connect:!0}).success(function(){d[a.uniqueid].close(),h.show("Chat properly assigned","success"),b.$broadcast("chatMessageEvent",{type:"external",chatRoomId:a.chatroomid})}).error(function(a){"SequelizeUniqueConstraintError"===a.name?h.show("Chat has been already assigned!","danger"):h.show(a.message,"danger")})})}),i.socket.on("chat_message:save",function(a){var d=m.get("chatRoomId");if(!d||d!==a.ChatRoomId){c.play();var e=f(a.User.fullname,{icon:"assets/images/media/channels/chat64.png",body:a.body.length>35?a.body.substring(0,35)+"...":a.body,delay:1e4});e.$on("click",function(){b.$broadcast("chatMessageEvent",{chatRoomId:a.ChatRoomId})})}}),i.socket.on("user_has_chat_room:save",function(a){c.play();var d=f("Chat Group ",{
+icon:"assets/images/media/channels/chat64.png",body:"New Chat Group",delay:1e4});d.$on("click",function(){b.$broadcast("chatGroupEvent",a)})})),e({url:"/api/fax/user_has_queues",method:"GET",params:{UserId:g.getCurrentUser().id}}).success(function(b){a.faxQueues=_.pluck(b,"FaxQueueId"),a.faxQueues.forEach(function(a){i.socket.on("FAX:QUEUE:"+a,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})})}),i.socket.on("FAX:AGENT:"+g.getCurrentUser().id,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){b(g.getCurrentUser().id),l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})})}).error(function(a){console.error(a)}),i.socket.on("user_has_fax_queue:save",function(b){b=_.map(b,function(a){return a.UserId=parseInt(a.UserId,10),a}),b=_.find(b,{UserId:g.getCurrentUser().id}),b&&-1===_.indexOf(a.faxQueues,b.FaxQueueId)&&(a.faxQueues.push(b.FaxQueueId),i.socket.on("FAX:QUEUE:"+b.FaxQueueId,function(a,b){var c=f("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*a.timeout});c.$on("click",function(){e.put("/api/fax/rooms/"+a.roomId,{UserId:g.getCurrentUser().id}).success(function(){c.close(),b(g.getCurrentUser().id),l.success("Fax properly assigned","Success",{closeButton:!0,timeOut:5e3})}).error(function(){b(g.getCurrentUser().id),l.warning("Fax already assigned","Warning",{closeButton:!0,timeOut:5e3})})})}))}),i.socket.on("user_has_fax_queue:remove",function(b){_.indexOf(b.where.UserId,g.getCurrentUser().id.toString())>=0&&_.indexOf(a.faxQueues,b.where.FaxQueueId)>=0&&(a.faxQueues=_.remove(a.faxQueues,b.where.FaxQueueId),i.socket.removeAllListeners("FAX:QUEUE:"+b.where.FaxQueueId))})},a.logout=function(){e.get("/auth/local/logout").success(function(){g.logout(),c.path("/login")}).error(function(a){console.error(a)})},a.isActive=function(a){return a===c.path()}}]),angular.module("xCallyShuttleApp").service("interval",function(){var a={months:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"jan",name:"APPLICATION_JANUARY"},{value:"feb",name:"APPLICATION_FEBRUARY"},{value:"mar",name:"APPLICATION_MARCH"},{value:"apr",name:"APPLICATION_APRIL"},{value:"may",name:"APPLICATION_MAY"},{value:"jun",name:"APPLICATION_JUNE"},{value:"jul",name:"APPLICATION_JULY"},{value:"aug",name:"APPLICATION_AUGUST"},{value:"sep",name:"APPLICATION_SEPTEMBER"},{value:"oct",name:"APPLICATION_OCTOBER"},{value:"nov",name:"APPLICATION_NOVEMBER"},{value:"dec",name:"APPLICATION_DECEMBER"}],daysOfWeek:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"mon",name:"APPLICATION_MONDAY"},{value:"tue",name:"APPLICATION_TUESDAY"},{value:"wed",name:"APPLICATION_WEDNESDAY"},{value:"thu",name:"APPLICATION_THURSDAY"},{value:"fri",name:"APPLICATION_FRIDAY"},{value:"sat",name:"APPLICATION_SATURDAY"},{value:"sun",name:"APPLICATION_SUNDAY"}],daysOfMonth:["always",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]};return{interval:a}}),angular.module("xCallyShuttleApp").factory("Modal",["$rootScope","$uibModal",function(a,b){function c(c,d){console.log("openModal",d);var e=a.$new();return c=c||{},d=d||"modal-default",angular.extend(e,c),b.open({templateUrl:"components/modal/delete.html",windowClass:d,scope:e})}return{confirm:{"delete":function(a){return a=a||angular.noop,function(){console.log(Array.prototype.slice.call(arguments));var b,d=Array.prototype.slice.call(arguments),e=d.shift();b=c({modal:{dismissable:!0,title:"Confirm Delete",html:"<p>Are you sure you want to delete"+(e?"<strong> "+e+"</strong>":" selected items")+"?</p>",buttons:[{classes:"btn red",text:"Delete",click:function(a){b.close(a)}},{classes:"btn default",text:"Cancel",click:function(a){b.dismiss(a)}}]}},"over-topbar center"),b.result.then(function(b){a.apply(b,d)})}}}}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarControllerAddModal",["$scope","$uibModalInstance","Agent","items",function(a,b,c,d){a.items=d,a.agents=c.get(function(b){a.agents=b,a.items.forEach(function(b){_.remove(a.agents.rows,{id:b.id})})}),a.selected={items:[]},a.modal={title:"APPLICATION_AGENTS_SELECTION"},a.ok=function(){b.close(_.union(_.pluck(a.selected.items,"id"),_.pluck(a.items,"id")))},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarControllerCloseModal",["$scope","$uibModalInstance",function(a,b){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_CHAT"},a.ok=function(){b.close()},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("QuickSidebarController",["$scope","$rootScope","$window","$http","$uibModal","$log","$timeout","$interval","Auth","Agent","User","ChatRoom","ChatMessage","socket","settings","localStorageService","xAlert","$translate","QuickSidebarFactory",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a.emojiMessage={},a.options=s.options,a.message={body:"",user:""};var t=a.currentUser=i.getCurrentUser();a.$on("$includeContentLoaded",function(){p.get("chatRoomId")&&l.get({id:p.get("chatRoomId")},u,v),p.get("currentTab")&&(a.currentTab=p.get("currentTab"))}),a.agents=j.get({page:0,per_page:1e3},function(){n.syncUpdates("agent",a.agents.rows)}),a.users=k.get({page:0,per_page:1e3},function(){n.syncUpdates("user",a.users.rows)}),a.currentTab=0,a.messagesTab=!1,a.chatRooms=l.me(function(b){a.chatRooms=b},function(a){console.error(a)}),n.socket.on("report_chat:assignment",function(a){a.agentid&&l.get({id:a.chatroomid},u,v)}),n.socket.on("chat_room:save",function(b){if(a.chatRoom&&a.chatRoom.id===b.id){_.merge(a.chatRoom,b);var c=_.find(a.chatRooms,{id:b.id});c&&_.merge(c,b)}}),n.socket.on("chat_message:save",function(b){a.chatRoom&&a.chatRoom.id===b.ChatRoomId&&(a.chatRoom.ChatMessages.push(b),angular.element("page-quick-sidebar-chat-user-messages").mCustomScrollbar("scrollTo","last"))}),n.socket.on("user_has_chat_room:save",function(b){var c=_.findIndex(a.chatRooms,{id:b.id});c>=0?a.chatRooms[c]=b:a.chatRooms.push(b)}),b.$on("chatMessageEvent",function(a,b){l.get({id:b.chatRoomId},u,v)}),b.$on("chatGroupEvent",function(b,c){a.currentTab=3,a.messagesTab=!0,o.layout.pageQuickSidebarOpened=!0,a.chatRoom=c}),a.goToTab=function(b){a.currentTab=b,a.messagesTab=!1,a.chatRoom=null,p.set("currentTab",a.currentTab),p.set("messagesTab",a.messagesTab),p.remove("chatRoomId")},a.goToMessage=function(a,b){a?l.users({users:[t.id,a]},u,v):l.get({id:b},u,v)},a.sendMessage=function(){a.message.body.trim().length&&m.save({ChatRoomId:a.chatRoom.id,body:a.message.body},function(){a.message.body=""},function(a){console.error(a)})},a.goBack=function(){a.messagesTab=!1,a.chatRoom=null,p.set("messagesTab",a.messagesTab),p.remove("chatRoomId")},a.closeChatRoom=function(a,b){var c=e.open({animation:!0,size:b,templateUrl:"components/quickSidebar/modal/close.html",controller:"QuickSidebarControllerCloseModal"});c.result.then(function(){l.update({id:a,status:"close"}).$promise.then(function(){q.show(r.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){q.show(a.data.message,"danger")})},function(){f.info("Modal dismissed at: "+new Date)})},a.addAgent=function(b,c){var g=e.open({animation:!0,size:c,templateUrl:"components/quickSidebar/modal/add.html",controller:"QuickSidebarControllerAddModal",resolve:{items:function(){return _.map(a.chatRoom.Users?a.chatRoom.Users:[],function(a){return{id:a.id,fullname:a.fullname}})}}});g.result.then(function(a){d.put("/api/chat/rooms/"+b+"/users",{users:a}).then(function(a){q.show(r.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){q.show(a.data.message,"danger")})},function(){f.info("Modal dismissed at: "+new Date)})};var u=function(b){switch(a.messagesTab=!0,o.layout.pageQuickSidebarOpened=!0,p.set("chatRoomId",b.id),p.set("messagesTab",a.messagesTab),a.chatRoom=b,b.type){case"internal":a.currentTab=0;break;case"external":a.currentTab=2,_.find(a.chatRooms,{id:b.id})||a.chatRooms.push(b)}b.Users.length>2&&(a.currentTab=3),g(function(){angular.element("page-quick-sidebar-chat-user-messages").mCustomScrollbar("scrollTo","last")},1500)},v=function(a){console.error(a)},w=function(){var b=angular.element(c),d=function(){return{h:b.height(),w:b.width()}};a.$watch(d,function(b){a.style={height:b.h-46-46-46+"px"},a.style2={height:b.h-46-46-46-180+"px"}},!0),b.bind("resize",function(){a.$apply()})};w(),a.$on("$destroy",function(){n.unsyncUpdates("agent"),n.unsyncUpdates("user")})}]),angular.module("xCallyShuttleApp").directive("resizeQuickSidebar",["$window",function(a){return function(b){var c=angular.element(a);b.getWindowDimensions=function(){return{h:c.height(),w:c.width()}},b.$watch(b.getWindowDimensions,function(a){b.style={height:a.h-46-46-46+"px"}},!0),c.bind("resize",function(){b.$apply()})}}]),angular.module("xCallyShuttleApp").factory("QuickSidebarFactory",function(){return{options:{link:!0,linkTarget:"_blank",pdf:{embed:!1},image:{embed:!0},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!1,video:{embed:!1,width:null,height:null,ytTheme:"dark",details:!1,ytAuthKey:"_nkO9h1A7HlVyiUICO17oA"}}}}),angular.module("xCallyShuttleApp").filter("QuickSidebarFilterUsersGreaterThan",function(){return function(a,b){var c=[];return a.forEach(function(a){var d=0;a.ChatVisitor&&d++,d+=a.Users.length,d>b&&c.push(a)}),c}}).filter("QuickSidebarFilterUsersLowerThan",function(){return function(a,b){var c=[];return a.forEach(function(a){a.Users.length<b&&c.push(a)}),c}}),angular.module("xCallyShuttleApp").controller("SidebarController",["$scope","$rootScope","$resource","$location","Auth","$http","xAlert","$stateParams","socket",function(a,b,c,d,e,f,g,h,i){a.Auth=e,a.$stateParams=h,a.$on("$includeContentLoaded",function(){Metronic.init(),Layout.initSidebar()}),a.isAssociated=function(a){if(e.isAdmin())return!0;if(e.getCurrentUser().Modules)for(var b=0;b<e.getCurrentUser().Modules.length;b++)if(e.getCurrentUser().Modules[b].name===a)return!0;return!1},a.getSidebarDashboards=function(){f.get("/api/dashboards").then(function(b){a.dashboards=b.data.rows,i.syncUpdates("dashboard",a.dashboards)})["catch"](function(a){g.show("Error loading your dashboards","danger")})},a.getSidebarIntegrations=function(){f.get("/api/integrations").success(function(b){a.integrations=b,i.syncUpdates("integration",a.integrations)}).error(function(a){g.show(a.message,"danger")})},a.isActive=function(a){return a===d.path()},a.$on("destroy",function(){i.unsyncUpdates("dashboard"),i.unsyncUpdates("integration")})}]),angular.module("xCallyShuttleApp").factory("socket",["$rootScope","$window","socketFactory","Auth",function(a,b,c,d){var e=d.getCurrentUser(),f=io("",{query:"token="+d.getToken()+"&userId="+(e.id||d.getUserId())+"&name="+(e.name||d.getName())+"&role="+(e.role||"agent")+"&source=browser",path:"/socket.io-client"}),g=c({ioSocket:f});return a.$on("logout",function(){g&&(g.disconnect(!0),b.location.reload())}),{socket:g,syncUpdates:function(a,b,c){c=c||angular.noop,g.on(a+":save",function(a){var d=_.find(b,{id:a.id}),e=b.indexOf(d),f="created";d?(_.merge(b[e],a),f="updated"):b.unshift(a),c(f,a,b)}),g.on(a+":remove",function(a){var d="deleted";_.remove(b,{id:a.id}),c(d,a,b)})},unsyncUpdates:function(a){g.removeAllListeners(a+":save"),g.removeAllListeners(a+":remove")},syncUpdatesByAttributes:function(a,b,c,d){d=d||angular.noop,g.on(a+":save",function(a){var e=!0;if(_.forIn(b,function(b,c){return a[c]&&a[c]===b?!0:e=!1}),e){var f=_.find(c,{id:a.id}),g=c.indexOf(f),h="created";f?(_.merge(c[g],a),h="updated"):c.unshift(a),d(h,a,c)}}),g.on(a+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},syncMailMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncMailMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")},syncFaxMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncFaxMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")}}}]),angular.module("xCallyShuttleApp").service("triggers",function(){var a={voice:{conditions:[{name:"APPLICATION_QUEUE",value:"queue",propertyField:"select",operators:"equals"},{name:"APPLICATION_CALL_STATUS",value:"lastevent",propertyField:"select",operators:"equals"}],actions:[{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"},{name:"APPLICATION_INTEGRATIONS",value:"integration",propertyField:"select",subField:{propertyField:"select",value:"account",api:{url:void 0,parseUrl:"/api/%s/accounts",query:void 0},subField:{propertyField:"select",value:"configuration",api:{url:void 0,parseUrl:"/api/%s/configurations",query:{field:"AccountId"}}}}}]},mail:{conditions:[{name:"APPLICATION_FROM",value:"from",propertyField:"input",operators:"equals"},{name:"APPLICATION_CC",value:"cc",propertyField:"input",operators:"equals"},{name:"APPLICATION_SUBJECT",value:"subject",propertyField:"input",operators:"equals"}],actions:[{name:"APPLICATION_TEMPLATE",value:"template",propertyField:"select",subField:{propertyField:"select",value:"smtp"}},{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"}]},chat:{conditions:[],actions:[]},fax:{conditions:[],actions:[]}},b={equals:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"}],all:[{value:"=",name:"APPLICATION_EQUALS_TO"},{value:"<>",name:"APPLICATION_NOT_EQUALS_TO"},{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}],noequals:[{value:">=",name:"APPLICATION_GTE_TO"},{value:"<=",name:"APPLICATION_LTE_TO"},{value:">",name:"APPLICATION_GREATER_THAN"},{value:"<",name:"APPLICATION_LESS_THAN"}]},c={voice:{lastevent:[{name:"APPLICATION_LASTEVENT_RINGING",value:"called"},{name:"APPLICATION_LASTEVENT_UP",value:"connect"},{name:"APPLICATION_LASTEVENT_COMPLETE",value:"complete"},{name:"APPLICATION_LASTEVENT_REJECTED",value:"rejected"},{name:"APPLICATION_LASTEVENT_ABANDONED",value:"abandoned"}]},mail:{},chat:{},fax:{}},d=["voice","mail","chat","fax"];return{triggers:a,properties:c,operators:b,channels:d}}),function(a,b){angular.module("adf.widget.counter",["adf.provider"]).value("apiServiceUrlCounter","/api/widgets/counter").config(["dashboardProvider",function(a){a.widget("counter",{title:"Counter",description:"Counter for db results",templateUrl:"{widgetsPath}/counter/src/view.html",controller:"apiwidgetCounterViewCtrl",edit:{templateUrl:"{widgetsPath}/counter/src/edit.html",controller:"apiwidgetCounterEditCtrl"}})}]).service("apiServiceCounter",["$q","$http","apiServiceUrlCounter",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiwidgetCounterEditCtrl",["$scope",function(a){a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.colors=[{name:"Blue",value:"blue-madison"},{name:"Red",value:"red-intense"},{name:"Green",value:"green-haze"},{name:"Purple",value:"purple-plum"},{name:"Orange",value:"yellow-casablanca"},{name:"Yellow",value:"yellow-crusta"}],a.config.icons=[{name:"Talk bubbles",value:"fa-comments"},{name:"Bar Chart",value:"fa-bar-chart"},{name:"Shopping Cart",value:"fa-shopping-cart"},{name:"Globe",value:"fa-globe"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE"}]).controller("apiwidgetCounterViewCtrl",["$scope","$interval","apiServiceCounter",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE",a.counterApiCall=function(){a.config.condition&&a.config.report&&c.get(a.config).then(function(b){a.count=parseInt(b[0].count)})},a.counterApiCall();var d=b(function(){a.counterApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.counter").run(["$templateCache",function(a){a.put("{widgetsPath}/counter/src/edit.html","<form role=form><div class=form-group><label class=control-label>{{'APPLICATION_REPORT' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_REPORT' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"report.value as report in config.reportTables | filter: $select.search\"><div ng-bind-html=\"report.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_CONDITION' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder=\"{{'APPLICATION_CONDITION' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_REFRESH_TIMEOUT' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder=\"{{'APPLICATION_REFRESH_TIMEOUT' | translate}}\" min=1></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_COLOR' | translate}}</label><ui-select data-ng-model=config.color name=color theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_COLOR' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"color.value as color in config.colors | filter: $select.search\"><div ng-bind-html=\"color.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_ICON' | translate}}</label><ui-select data-ng-model=config.icon name=icon theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_ICON' | translate }}\">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat=\"icon.value as icon in config.icons | filter: $select.search\"><div ng-bind-html=\"icon.name | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_DETAILS' | translate}}</label> <input type=text class=form-control id=details ng-model=config.details maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_DETAILS' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK' | translate}}</label> <input type=text class=form-control id=link ng-model=config.link placeholder=http://yourlink></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}</label> <input type=text class=form-control id=linkText ng-model=config.linkText maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}\"></div></form>"),a.put("{widgetsPath}/counter/src/view.html",'<div class=dashboard-stat ng-class=config.color ng-if="count || count === 0"><div class=visual><i class=fa ng-class=config.icon></i></div><div class=details><div class=number>{{count}}</div><div class=desc>{{config.details}}</div></div><a class=more href={{config.link}}>{{config.linkText}} <i class="m-icon-swapright m-icon-white"></i></a></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if="!count && count != 0"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.pie-chart",["adf.provider"]).value("apiServiceUrlPieChart","/api/widgets/piechart").config(["dashboardProvider",function(a){a.widget("pie-chart",{title:"Pie-Chart",description:"Display a pie-chart starting from DB values",templateUrl:"{widgetsPath}/pie-chart/src/view.html",controller:"apiWidgetPieChartViewCtrl",edit:{templateUrl:"{widgetsPath}/pie-chart/src/edit.html",controller:"apiWidgetPieChartEditCtrl"}})}]).service("apiServicePieChart",["$q","$http","apiServiceUrlPieChart",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetPieChartEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetPieChartViewCtrl",["$scope","$interval","apiServicePieChart",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.pieChartApiCall=function(){a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){if(b&&1===b.length){a.labels=[],a.data=[];for(var c in b[0])a.labels.push(c),a.data.push(b[0][c])}else a.labels=[],a.data=[]})},a.pieChartApiCall();var d=b(function(){a.pieChartApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.pie-chart").run(["$templateCache",function(a){a.put("{widgetsPath}/pie-chart/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_FIELDS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div></form>'),a.put("{widgetsPath}/pie-chart/src/view.html",'<div ng-if=labels.length ng-style=config.style><canvas id=doughnut class="chart chart-doughnut" chart-data=data chart-labels=labels legend=true></canvas></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_METRIC_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.table",["adf.provider"]).value("apiServiceUrlTable","/api/widgets/table").config(["dashboardProvider",function(a){a.widget("table",{title:"Table",description:"Show tabbed results from db",templateUrl:"{widgetsPath}/table/src/view.html",controller:"apiWidgetTableViewCtrl",edit:{templateUrl:"{widgetsPath}/table/src/edit.html",controller:"apiWidgetTableEditCtrl"}})}]).service("apiServiceTable",["$q","$http","apiServiceUrlTable",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetTableEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetTableViewCtrl",["$scope","$interval","apiServiceTable",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.style={"max-height":a.config.height+"px",overflow:"scroll"},a.tableApiCall=function(){a.config.condition&&a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){a.results=b})},a.tableApiCall();var d=b(function(){a.tableApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.table").run(["$templateCache",function(a){a.put("{widgetsPath}/table/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_METRICS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div><div class=form-group><label for=condition>{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}</label> <input type=number class=form-control id=height ng-model=config.height placeholder="{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}" min=350></div></form>'),a.put("{widgetsPath}/table/src/view.html",'<div ng-if=results ng-style=config.style><table st-table=results class="table table-striped table-bordered table-hover"><div class=table-responsive><thead><tr><th colspan={{config.fields.length}}><div class=row><div class=col-md-6></div><div class=col-md-6><div class="input-group input-medium pull-right"><input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class=form-control type=search> <span class=input-group-addon><i class="fa fa-search"></i></span></div></div></div></th></tr><tr><th ng-repeat="field in config.fields">{{field.alias}}</th></tr></thead><tbody><tr data-ng-repeat="result in results" class=animate-repeat><td ng-repeat="field in config.fields">{{result[field.alias]}}</td></tr><tr data-ng-hide=results.length><td colspan={{config.fields.length}} style=text-align:center;><i>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</i></td></tr></tbody><tfoot><tr><td colspan={{config.fields.length}} class=text-center><div st-pagination class=pagination st-items-by-page=10 st-displayed-pages=3></div></td></tr></tfoot></div></table></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_FIELD_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(){angular.module("pdf",[]).directive("ngPdf",["$window",function(a){return{restrict:"E",templateUrl:function(a,b){
+return b.templateUrl?b.templateUrl:"partials/viewer.html"},link:function(b,c,d){var e=d.pdfUrl,f=null,g=d.page?d.page:1,h=d.scale>0?d.scale:1,i=c.find("canvas"),j=i[0],k=j.getContext("2d"),l=angular.element(a);l.on("scroll",function(){b.$apply(function(){b.scroll=l[0].scrollY})}),PDFJS.disableWorker=!0,b.pageNum=g,b.renderPage=function(a){f.getPage(a).then(function(a){var e,f,g,i={};"page-fit"!==d.scale||h?e=a.getViewport(h):(e=a.getViewport(1),f=c[0].clientWidth/e.width,g=c[0].clientHeight/e.height,h=Math.min(f,g)),j.height=e.height,j.width=e.width,i={canvasContext:k,viewport:e},a.render(i).promise.then(function(){"function"==typeof b.onPageRender&&b.onPageRender()})})},b.goPrevious=function(){b.pageToDisplay<=1||(b.pageNum=parseInt(b.pageNum)-1)},b.goNext=function(){b.pageToDisplay>=f.numPages||(b.pageNum=parseInt(b.pageNum)+1)},b.zoomIn=function(){return h=parseFloat(h)+.2,b.renderPage(b.pageToDisplay),h},b.zoomOut=function(){return h=parseFloat(h)-.2,b.renderPage(b.pageToDisplay),h},b.changePage=function(){b.renderPage(b.pageToDisplay)},b.rotate=function(){"rotate0"===j.getAttribute("class")?j.setAttribute("class","rotate90"):"rotate90"===j.getAttribute("class")?j.setAttribute("class","rotate180"):"rotate180"===j.getAttribute("class")?j.setAttribute("class","rotate270"):j.setAttribute("class","rotate0")},PDFJS.getDocument(e,null,null,b.onProgress).then(function(a){"function"==typeof b.onLoad&&b.onLoad(),f=a,b.renderPage(b.pageToDisplay),b.$apply(function(){b.pageCount=a.numPages})},function(a){a&&"function"==typeof b.onError&&b.onError(a)}),b.$watch("pageNum",function(a){b.pageToDisplay=parseInt(a),null!==f&&b.renderPage(b.pageToDisplay)})}}}])}();var Metronic=function(){var a,b=!1,c=!1,d=!1,e=!1,f=[],g="assets/",h="img/",i="plugins/",j="css/",k={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},l=function(){"rtl"===$("body").css("direction")&&(b=!0),c=!!navigator.userAgent.match(/MSIE 8.0/),d=!!navigator.userAgent.match(/MSIE 9.0/),e=!!navigator.userAgent.match(/MSIE 10.0/),e&&$("html").addClass("ie10"),(e||d||c)&&$("html").addClass("ie")},m=function(){for(var a=0;a<f.length;a++){var b=f[a];b.call()}},n=function(){var a;if(c){var b;$(window).resize(function(){b!=document.documentElement.clientHeight&&(a&&clearTimeout(a),a=setTimeout(function(){m()},50),b=document.documentElement.clientHeight)})}else $(window).resize(function(){a&&clearTimeout(a),a=setTimeout(function(){m()},50)})},o=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(a){a.preventDefault();var b=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),b.find(".portlet-title .fullscreen").tooltip("destroy"),b.find(".portlet-title > .tools > .reload").tooltip("destroy"),b.find(".portlet-title > .tools > .remove").tooltip("destroy"),b.find(".portlet-title > .tools > .config").tooltip("destroy"),b.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),b.remove()}),$("body").on("click",".portlet > .portlet-title .fullscreen",function(a){a.preventDefault();var b=$(this).closest(".portlet");if(b.hasClass("portlet-fullscreen"))$(this).removeClass("on"),b.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height","auto");else{var c=Metronic.getViewPort().height-b.children(".portlet-title").outerHeight()-parseInt(b.children(".portlet-body").css("padding-top"))-parseInt(b.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),b.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height",c)}}),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(a){a.preventDefault();var b=$(this).closest(".portlet").children(".portlet-body"),c=$(this).attr("data-url"),d=$(this).attr("data-error-display");c?(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:c,dataType:"html",success:function(a){Metronic.unblockUI(b),b.html(a)},error:function(a,c,e){Metronic.unblockUI(b);var f="Error on reloading the content. Please check your connection and try again.";"toastr"==d&&toastr?toastr.error(f):"notific8"==d&&$.notific8?($.notific8("zindex",11500),$.notific8(f,{theme:"ruby",life:3e3})):alert(f)}})):(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),window.setTimeout(function(){Metronic.unblockUI(b)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(a){a.preventDefault()})},p=function(){if($().uniform){var a=$("input[type=checkbox]:not(.toggle, .make-switch, .icheck), input[type=radio]:not(.toggle, .star, .make-switch, .icheck)");a.size()>0&&a.each(function(){0===$(this).parents(".checker").size()&&$(this).show()})}},q=function(){$().iCheck&&$(".icheck").each(function(){var a=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",b=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";a.indexOf("_line")>-1||b.indexOf("_line")>-1?$(this).iCheck({checkboxClass:a,radioClass:b,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:a,radioClass:b})})},r=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},s=function(){$().confirmation&&$("[data-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn-xs btn-success",btnCancelClass:"btn-xs btn-danger"})},t=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",function(a){Metronic.scrollTo($(a.target))})},u=function(){if(location.hash){var a=location.hash.substr(1);$('a[href="#'+a+'"]').parents(".tab-pane:hidden").each(function(){var a=$(this).attr("id");$('a[href="#'+a+'"]').click()}),$('a[href="#'+a+'"]').click()}},v=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&$("html").hasClass("modal-open")===!1?$("html").addClass("modal-open"):$(".modal:visible").size()<=1&&$("html").removeClass("modal-open")}),$("body").on("show.bs.modal",".modal",function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")}),$("body").on("hide.bs.modal",".modal",function(){$("body").removeClass("modal-open-noscroll")}),$("body").on("hidden.bs.modal",".modal:not(.modal-cached)",function(){$(this).removeData("bs.modal")})},w=function(){$(".tooltips").tooltip(),$(".portlet > .portlet-title .fullscreen").tooltip({container:"body",title:"Fullscreen"}),$(".portlet > .portlet-title > .tools > .reload").tooltip({container:"body",title:"Reload"}),$(".portlet > .portlet-title > .tools > .remove").tooltip({container:"body",title:"Remove"}),$(".portlet > .portlet-title > .tools > .config").tooltip({container:"body",title:"Settings"}),$(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({container:"body",title:"Collapse/Expand"})},x=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(a){a.stopPropagation()})},y=function(){$("body").on("click",'[data-close="alert"]',function(a){$(this).parent(".alert").hide(),$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-close="note"]',function(a){$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-remove="note"]',function(a){$(this).closest(".note").remove(),a.preventDefault()})},z=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})},A=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(b){a&&a.popover("hide")})},B=function(){Metronic.initSlimScroll(".scroller")},C=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},D=function(){(c||d)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var a=$(this);""===a.val()&&""!==a.attr("placeholder")&&a.addClass("placeholder").val(a.attr("placeholder")),a.focus(function(){a.val()==a.attr("placeholder")&&a.val("")}),a.blur(function(){(""===a.val()||a.val()==a.attr("placeholder"))&&a.val(a.attr("placeholder"))})})},E=function(){$().select2&&$(".select2me").select2({placeholder:"Select"})};return{init:function(){l(),n(),p(),q(),r(),B(),C(),E(),o(),y(),x(),u(),w(),A(),t(),v(),s(),D()},initAjax:function(){p(),q(),r(),z(),B(),E(),C(),x(),w(),A(),t(),s()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(b){a=b},addResizeHandler:function(a){f.push(a)},runResizeHandlers:function(){m()},scrollTo:function(a,b){var c=a&&a.size()>0?a.offset().top:0;a&&($("body").hasClass("page-header-fixed")&&(c-=$(".page-header").height()),c+=b?b:-1*a.height()),$("html,body").animate({scrollTop:c},"slow")},initSlimScroll:function(a){$(a).each(function(){if(!$(this).attr("data-initialized")){var a;a=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:b?"left":"right",height:a,alwaysVisible:"1"==$(this).attr("data-always-visible")?!0:!1,railVisible:"1"==$(this).attr("data-rail-visible")?!0:!1,disableFadeOut:!0}),$(this).attr("data-initialized","1")}})},destroySlimScroll:function(a){$(a).each(function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var a={};$(this).attr("data-handle-color")&&(a["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(a["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(a["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(a["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(a["data-rail-visible"]=$(this).attr("data-rail-visible")),$(this).slimScroll({wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",destroy:!0});var b=$(this);$.each(a,function(a,c){b.attr(a,c)})}})},scrollTop:function(){Metronic.scrollTo()},blockUI:function(a){a=$.extend(!0,{},a);var b="";if(b=a.animate?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':a.iconOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""></div>':a.textOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><span> '+(a.message?a.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""><span> '+(a.message?a.message:"LOADING...")+"</span></div>",a.target){var c=$(a.target);c.height()<=$(window).height()&&(a.cenrerY=!0),c.block({message:b,baseZ:a.zIndex?a.zIndex:1e3,centerY:void 0!==a.cenrerY?a.cenrerY:!1,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:b,baseZ:a.zIndex?a.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(a){a?$(a).unblock({onUnblock:function(){$(a).css("position",""),$(a).css("zoom","")}}):$.unblockUI()},startPageLoading:function(a){a&&a.animate?($(".page-spinner-bar").remove(),$("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')):($(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif"/> <span>'+(a&&a.message?a.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(a){a=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},a);var b=Metronic.getUniqueID("Metronic_alert"),c='<div id="'+b+'" class="Metronic-alerts alert alert-'+a.type+' fade in">'+(a.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!==a.icon?'<i class="fa-lg fa fa-'+a.icon+'"></i> ':"")+a.message+"</div>";return a.reset&&$(".Metronic-alerts").remove(),a.container?"append"==a.place?$(a.container).append(c):$(a.container).prepend(c):$("body").hasClass("page-container-bg-solid")?$(".page-title").after(c):$(".page-bar").size()>0?$(".page-bar").after(c):$(".page-breadcrumb").after(c),a.focus&&Metronic.scrollTo($("#"+b)),a.closeInSeconds>0&&setTimeout(function(){$("#"+b).remove()},1e3*a.closeInSeconds),b},initUniform:function(a){a?$(a).each(function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):p()},updateUniform:function(a){$.uniform.update(a)},initFancybox:function(){C()},getActualVal:function(a){return a=$(a),a.val()===a.attr("placeholder")?"":a.val()},getURLParameter:function(a){var b,c,d=window.location.search.substring(1),e=d.split("&");for(b=0;b<e.length;b++)if(c=e[b].split("="),c[0]==a)return unescape(c[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},getViewPort:function(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}},getUniqueID:function(a){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return c},isIE9:function(){return d},isRTL:function(){return b},isAngularJsApp:function(){return"undefined"==typeof angular?!1:!0},getAssetsPath:function(){return g},setAssetsPath:function(a){g=a},setGlobalImgPath:function(a){h=a},getGlobalImgPath:function(){return g+h},setGlobalPluginsPath:function(a){i=a},getGlobalPluginsPath:function(){return g+i},getGlobalCssPath:function(){return g+j},getBrandColor:function(a){return k[a]?k[a]:""},getResponsiveBreakpoint:function(a){var b={xs:480,sm:768,md:900,lg:1200};return b[a]?b[a]:0}}}(),Layout=function(){var a="img/",b="css/",c=Metronic.getResponsiveBreakpoint("md"),d=function(){var a,b=$(".page-content"),d=$(".page-sidebar"),e=$("body");if(e.hasClass("page-footer-fixed")===!0&&e.hasClass("page-sidebar-fixed")===!1){var f=Metronic.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();b.height()<f&&b.attr("style","min-height:"+f+"px")}else{if(e.hasClass("page-sidebar-fixed"))a=g(),e.hasClass("page-footer-fixed")===!1&&(a-=$(".page-footer").outerHeight());else{var h=$(".page-header").outerHeight(),i=$(".page-footer").outerHeight();a=Metronic.getViewPort().width<c?Metronic.getViewPort().height-h-i:d.height()+20,a+h+i<=Metronic.getViewPort().height&&(a=Metronic.getViewPort().height-h-i)}b.attr("style","min-height:"+a+"px")}},e=function(a,b){var d=location.hash.toLowerCase(),e=$(".page-sidebar-menu");if("click"===a||"set"===a?b=$(b):"match"===a&&e.find("li > a").each(function(){var a=$(this).attr("href").toLowerCase();return a.length>1&&d.substr(1,a.length-1)==a.substr(1)?void(b=$(this)):void 0}),b&&0!=b.size()&&"javascript:;"!==b.attr("href").toLowerCase()&&"#"!==b.attr("href").toLowerCase()){parseInt(e.data("slide-speed")),e.data("keep-expanded");e.find("li.active").removeClass("active"),e.find("li > a > .selected").remove(),e.hasClass("page-sidebar-menu-hover-submenu")===!1?e.find("li.open").each(function(){0===$(this).children(".sub-menu").size()&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))}):e.find("li.open").removeClass("open"),b.parents("li").each(function(){$(this).addClass("active"),$(this).find("> a > span.arrow").addClass("open"),1===$(this).parent("ul.page-sidebar-menu").size()&&$(this).find("> a").append('<span class="selected"></span>'),1===$(this).children("ul.sub-menu").size()&&$(this).addClass("open")}),"click"===a&&Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},f=function(){jQuery(".page-sidebar").on("click","li > a",function(a){var b=$(this).next().hasClass("sub-menu");if(!(Metronic.getViewPort().width>=c&&1===$(this).parents(".page-sidebar-menu-hover-submenu").size())){if(b===!1)return void(Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click());if(!$(this).next().hasClass("sub-menu always-open")){var e=$(this).parent().parent(),f=$(this),g=$(".page-sidebar-menu"),h=jQuery(this).next(),i=g.data("auto-scroll"),j=parseInt(g.data("slide-speed")),k=g.data("keep-expanded");k!==!0&&(e.children("li.open").children("a").children(".arrow").removeClass("open"),e.children("li.open").children(".sub-menu:not(.always-open)").slideUp(j),e.children("li.open").removeClass("open"));var l=-200;h.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),h.slideUp(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})):b&&(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),h.slideDown(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})),a.preventDefault()}}}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=jQuery(".page-sidebar ul"),e=($(".page-content"),$(".page-content .page-content-body"));d.children("li.active").removeClass("active"),d.children("arrow.open").removeClass("open"),$(this).parents("li").each(function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")}),$(this).parents("li").addClass("active"),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),Metronic.startPageLoading();var f=$(this);$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){0===f.parents("li.open").size()&&$(".page-sidebar-menu > li.open > a").click(),Metronic.stopPageLoading(),e.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){Metronic.stopPageLoading(),e.html("<h4>Could not load the requested content.</h4>")}})}),jQuery(".page-content").on("click",".ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=($(".page-content"),$(".page-content .page-content-body"));Metronic.startPageLoading(),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){Metronic.stopPageLoading(),d.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){d.html("<h4>Could not load the requested content.</h4>"),Metronic.stopPageLoading()}})}),i(),$(".page-sidebar").on("click",".sidebar-search .remove",function(a){a.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(a){return 13==a.which?($(".sidebar-search").submit(),!1):void 0}),0!==$(".sidebar-search").size()&&($(".sidebar-search .input-group").on("click",function(a){a.stopPropagation()}),$("body").on("click",function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")}))},g=function(){var a=Metronic.getViewPort().height-$(".page-header").outerHeight();return $("body").hasClass("page-footer-fixed")&&(a-=$(".page-footer").outerHeight()),a},h=function(){var a=$(".page-sidebar-menu");return Metronic.destroySlimScroll(a),0===$(".page-sidebar-fixed").size()?void d():void(Metronic.getViewPort().width>=c&&(a.attr("data-height",g()),Metronic.initSlimScroll(a),d()))},i=function(){var a=$("body");a.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")}).on("mouseleave",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")})},j=function(){var a=$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&Metronic.getViewPort().width>=c?($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")):$.cookie&&$.cookie("sidebar_closed","0"),$("body").on("click",".sidebar-toggler",function(b){var c=$(".page-sidebar"),d=$(".page-sidebar-menu");$(".sidebar-search",c).removeClass("open"),a.hasClass("page-sidebar-closed")?(a.removeClass("page-sidebar-closed"),d.removeClass("page-sidebar-menu-closed"),$.cookie&&$.cookie("sidebar_closed","0")):(a.addClass("page-sidebar-closed"),d.addClass("page-sidebar-menu-closed"),a.hasClass("page-sidebar-fixed")&&d.trigger("mouseleave"),$.cookie&&$.cookie("sidebar_closed","1")),$(window).trigger("resize")})},k=function(){$(".page-header").on("click",'.hor-menu a[data-toggle="tab"]',function(a){a.preventDefault();var b=$(".hor-menu .nav"),c=b.find("li.current");$("li.active",c).removeClass("active"),$(".selected",c).remove();var d=$(this).parents("li").last();d.addClass("current"),d.find("a:first").append('<span class="selected"></span>')}),$(".page-header").on("click",".search-form",function(a){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",function(a){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")})}),$(".page-header").on("keypress",".hor-menu .search-form .form-control",function(a){return 13==a.which?($(this).closest(".search-form").submit(),!1):void 0}),$(".page-header").on("mousedown",".search-form.open .submit",function(a){a.preventDefault(),a.stopPropagation(),$(this).closest(".search-form").submit()}),$('[data-hover="megamenu-dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")}),$(document).on("click",".mega-menu-dropdown .dropdown-menu",function(a){a.stopPropagation()})},l=function(){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(){d()})},m=function(){var a=300,b=500;navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",function(c){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}):$(window).scroll(function(){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}),$(".scroll-to-top").click(function(a){return a.preventDefault(),$("html, body").animate({scrollTop:0},b),!1})},n=function(){var a,b=$(".full-height-content");if(a=Metronic.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),b.hasClass("portlet")){var d=b.find(".portlet-body");if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(d.find(".full-height-content-body"));a=a-b.find(".portlet-title").outerHeight(!0)-parseInt(b.find(".portlet-body").css("padding-top"))-parseInt(b.find(".portlet-body").css("padding-bottom"))-2,b.hasClass("full-height-content-scrollable")?(a-=35,d.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(d.find(".full-height-content-body"))):d.css("min-height",a)}else{if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(b.find(".full-height-content-body"));b.hasClass("full-height-content-scrollable")?(a-=35,b.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(b.find(".full-height-content-body"))):b.css("min-height",a)}};return{initHeader:function(){k()},setSidebarMenuActiveLink:function(a,b){e(a,b)},initSidebar:function(){h(),f(),j(),Metronic.isAngularJsApp()&&e("match"),Metronic.addResizeHandler(h)},initContent:function(){n(),l(),Metronic.addResizeHandler(d),Metronic.addResizeHandler(n)},initFooter:function(){m()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){d()},initFixedSidebarHoverEffect:function(){i()},initFixedSidebar:function(){h()},getLayoutImgPath:function(){return Metronic.getAssetsPath()+a},getLayoutCssPath:function(){return Metronic.getAssetsPath()+b}}}();angular.module("xCallyShuttleApp").run(["$templateCache",function(a){a.put("app/agent/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-people font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="agents.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AGENT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/agents/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAgents([\'name\', \'fullname\', \'email\'])" csv-header="[\'Username\', \'Fullname\', \'Email\']" field-separator=";" filename="agents.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedAgents" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="agent in displayedAgents" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="agents.checked" checklist-value="agent.id"></td>\n <td>{{agent.fullname}}</td>\n <td>{{agent.name}}</td>\n <td><a data-ng-href="mailto:{{agent.email}}">{{agent.email}}</a></td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/agents/view/{{agent.id}}/account">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(agent.fullname,agent.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedAgents.length">\n <td colspan="5" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/agent/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="agent.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="agent.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="agent.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.internal" required disabled/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}" id="tab_1_3">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.reNewPwd" nx-equal="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/agent/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{agent.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.agents.view.account\')}">\n <a data-ng-href="/agents/view/{{agent.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/agent/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" required ng-remote-validate="/api/agents/validate/name"/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required ng-remote-validate="/api/agents/validate/email"/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_EMAIL\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled" ng-remote-validate="/api/agents/validate/internal"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START ACCOUNTCODE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNTCODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="accountcode" placeholder="{{\'APPLICATION_ACCOUNTCODE\' | translate}}" class="form-control" data-ng-model="item.accountcode" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END ACCOUNTCODE -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START HOST -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END HOST -->\n\n <!-- START NAT -->\n <!-- <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n <ui-select multiple ng-model="item.nat" name="nat" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n {{nat}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n </span>\n </div> -->\n\n <!-- END NAT -->\n\n <!-- START TYPE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TYPE -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/analytic/metric/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="table.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.metric.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/metric/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calculator"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Metrics.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_METRIC\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMetrics([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="metrics.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMetrics" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.metricsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="metricByPage in metricsByPage | filter: $select.search">\n <div ng-bind-html="metricByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(metric, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="metric in displayedMetrics" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="metric.defaultEntry" type="checkbox" checklist-model="Metrics.checked" checklist-value="metric.id"></td>\n <td>{{metric.name}}</td>\n <td>{{metric.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/analytics/metrics/view/{{metric.id}}/settings" data-ng-class="{\'disabled\': metric.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(metric.name,metric.id)" data-ng-class="{\'disabled\': metric.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMetrics.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_METRICS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.metricsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMetric()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n <i data-ng-show="metric" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="metric">\n <a href="#">{{metric.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/metric.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{metric.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.analytics.metrics.view.settings\')}">\n <a data-ng-href="/analytics/metrics/view/{{metric.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_METRIC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMetric()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="metric.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="metric.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="table.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="metric.metric" required/></textarea>\n <span data-ng-show="(forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/analytic/report/list/copy.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_COPY_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COPY_TO\' | translate }} </span>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;"></div>\n </div>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-disabled="!customTree.get_selected(true).pop().id" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),
+a.put("app/analytic/report/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.report" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_PATH\' | translate}}" class="form-control" data-ng-model="path" disabled/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrees()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <div class="col-fixed">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FOLDERS\' | translate }} </span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small">\n <div class="input-icon right">\n <i class="icon-magnifier"></i>\n <input type="text" data-ng-model="searchField" data-ng-change="searchTrees()" class="form-control input-circle" placeholder="search...">\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="defaultTreeConfig" ng-model="defaultTreeData" should-apply="ac()" tree="defaultTreeInstance" tree-events="ready:initDefaultScopeTree;select_node:selectDefaultNode;"></div>\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;select_node:selectCustomNode;rename_node:updateCustomTree;delete_node:updateCustomTree;move_node:updateCustomTree;create_node:updateCustomTree;"></div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="row tree-row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}<span data-ng-if="selectedNode"> - {{selectedNode}}</span></span>\n </div>\n <div data-ng-if="!defaultTreeActive" class="actions">\n <div class="btn-group" data-ng-show="Reports.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <span class="btn default btn-file">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_JSON\' | translate}}</span>\n <input type="file" on-read-file="import($fileContent)"/>\n </span>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_REPORT\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table data-ng-if="defaultTreeReady && customTreeReady" st-table="displayedReports" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive" data-ng-init="firstSelect()">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.reportsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="reportByPage in reportsByPage | filter: $select.search">\n <div ng-bind-html="reportByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input data-ng-checked="Reports.checked.length" data-ng-hide="defaultTreeActive" type="checkbox" ng-change="check(report, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="report in displayedReports" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="defaultTreeActive" type="checkbox" checklist-model="Reports.checked" checklist-value="report.id"></td>\n <td>{{report.name}}</td>\n <td>{{report.description}}</td>\n <td>\n <a data-ng-if="!defaultTreeActive" class="btn default btn-xs blue-stripe" data-ng-href="/analytics/reports/view/{{report.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a data-ng-if="!defaultTreeActive" class="btn default btn-xs red-stripe" data-ng-click="deleteItem(report.name,report.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="copy(report.id)">\n {{ \'APPLICATION_COPY\' | translate }}\n </a>\n <a class="btn default btn-xs purple-stripe" data-ng-click="export(report.id)">\n {{ \'APPLICATION_EXPORT\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedReports.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_REPORTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.reportsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getReport()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n <i data-ng-show="report" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="report">\n <a href="#">{{report.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/report.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{report.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.analytics.reports.view.settings\')}">\n <a data-ng-href="/analytics/reports/view/{{report.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_REPORT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li>\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li class="active">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_BUILD\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_PREVIEW\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="report.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="report.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TABLE INPUT -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_2">\n <form name="forms.report" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="report.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="table.table as table in tables | filter: $select.search">\n <div ng-bind-html="table.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n </span>\n <span data-ng-show="(forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE INPUT-->\n <div data-ng-if="report.table" class="mbottom20 pbottom20">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_FIELDS\' | translate}} </span>\n </div>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_FIELD\' | translate }} / {{ \'APPLICATION_METRIC\' | translate }}</th>\n <th>{{ \'APPLICATION_ALIAS\' | translate }}</th>\n <th>{{ \'APPLICATION_FUNCTION\' | translate }}</th>\n <th>{{ \'APPLICATION_GROUP_BY\' | translate }}</th>\n <th>{{ \'APPLICATION_ORDER_BY\' | translate }}</th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="report.Fields">\n <tr data-ng-repeat="field in report.Fields">\n <td>\n <!-- START FIELD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.field}">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.field" dynamic-name="randomName()" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}"><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n <ui-select-choices repeat="tableField.value as tableField in tableFields | filter: $select.search">\n <div ng-bind-html="tableField.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.report.$submitted && !field.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIELD-->\n </td>\n <td>\n <!-- START ALIAS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.alias}">\n <!-- <label class="control-label">{{\'APPLICATION_ALIAS\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <input type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_ALIAS\' | translate}}" class="form-control" data-ng-model="field.alias" required/>\n <span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ALIAS -->\n </td>\n <td>\n <!-- START FUNCTION -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.function" name="function" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_FUNCTION\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="function.value as function in functions | filter: $select.search">\n <div ng-bind-html="function.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END FUNCTION-->\n </td>\n <td>\n <!-- START GROUP_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.groupBy" name="groupBy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_GROUP_BY\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="groupBy.value as groupBy in groupByField | filter: $select.search">\n {{$translate.instant(groupBy.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END GROUP_BY-->\n </td>\n <td>\n <!-- START ORDER_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.orderBy" name="orderBy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_ORDER_BY\' | translate}}" allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="orderBy in [\'ASC\',\'DESC\'] | filter: $select.search">\n <div ng-bind-html="orderBy | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TABLE INPUT-->\n </td>\n <td class="report-field-remove">\n <button class="btn red" type="button" data-ng-click="removeField($index)"><i class="fa fa-times"></i></button>\n </td>\n <td class="report-field-handle">\n <!-- <img data-ng-src="assets/images/move.png" class="img-responsive"> -->\n </td>\n </tr>\n <tr data-ng-hide="report.Fields.length" class="unsortable">\n <td colspan="7" style="text-align:center;">\n <i>{{ \'MESSAGE_ADD_A_FIELD\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}\n </button>\n <!-- END TABLE -->\n </div>\n <div data-ng-if="report.Fields.length" class="mbottom20 pbottom20">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONDITIONS\' | translate}} </span>\n </div>\n </div>\n <div class="alert alert-info">\n <strong>Output</strong><br>\n <span ng-bind-html="output"></span>\n </div>\n\n <report-builder group="report.conditions.group" fields="report.Fields" forms="forms" firstCall=\'true\'></report-builder>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- <pre>\n {{report | json}}\n </pre> -->\n\n </div>\n <div class="tab-pane" id="tab_1_3">\n <div data-ng-if="showPreview" ui-grid="gridOptions" ui-grid-move-columns class="grid"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/analytic/report/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_NEW_REPORT\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_REPORT\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && createItem()" novalidate>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/automation/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Automations.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/automations/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAutomations([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="automations.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedAutomations" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.AutomationsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="AutomationByPage in AutomationsByPage | filter: $select.search">\n <div ng-bind-html="AutomationByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <!-- <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th> -->\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(Automation, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="channel">{{ \'APPLICATION_CHANNEL\' | translate }}</th>\n <th>{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="Automation in displayedAutomations">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Automations.checked" checklist-value="Automation.id"></td>\n <td>{{Automation.name}}</td>\n <td>{{Automation.description}}</td>\n <td>{{Automation.channel | capitalize}}</td>\n <td>\n <input\n data-ng-change="updateItem(Automation.id, Automation.status)",\n bs-switch\n ng-model="Automation.status"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ onText }}"\n switch-off-text="{{ offText }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/automations/view/{{Automation.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(Automation.name, Automation.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedAutomations.length">\n <td colspan="6" class="text-center">\n <i>No available automations</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="channel" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CHANNEL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.AutomationsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/automation/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="automation"></i>\n </li>\n <li data-ng-show="automation">\n <a href="#">{{ automation.description || automation.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ automation.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ automation.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.automations.view.settings\')}">\n <a href="/automations/view/{{automation.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/automation/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateAutomation()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$automations.operators" properties="properties[automation.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[automation.channel]"></query-builder>\n </div>\n </div>\n\n <input class="btn green-haze" type="button" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-click="updateAutomation()"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/automation/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <!-- <pre>\n {{item | json}}\n </pre>\n <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" data-ng-submit="submit()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.name.$touched && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.name.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(conditionsData.query.length && actionsData.query.length)">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" >\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $automations.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$automations.operators" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/preview/preview.html",'<style>\n .xc_footer\n {\n text-align: center;\n padding-bottom: 5px;\n }\n\n .xc_powered\n {\n color: grey;\n font: 10px/16px "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;\n padding-bottom: 5px;\n }\n\n .xc_chat_container\n {\n //width:379px;\n //position:fixed;\n //bottom:0;\n //right:50px;\n z-index:9999;\n background-color:transparent;\n }\n\n .xc_chat_container *\n {\n font-family:Arial,Helvetica,sans-serif;\n font-size:13px;\n margin:0;\n padding:0;\n }\n\n .xc_chat_container p\n {\n margin:5px 0;\n }\n\n .xc_signup_wrapper\n {\n max-height:375px;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n list-style:none;\n overflow:auto;\n margin:0;\n padding:20px 10px;\n }\n\n .xc_conversation_container a\n {\n color:#036;\n }\n\n .xc_conversation_container a.xc_btn_style\n {\n color:#fff;\n }\n\n div.xc_chat_head\n {\n color:#fff;\n background:{{chatWebsite.color}};\n //border-radius: 20px 20px 0px 0px !important;\n height:52px;\n line-height:55px;\n cursor:pointer;\n }\n\n div.xc_chat_head.rounded\n {\n border-radius: 20px 20px 0px 0px !important;\n }\n\n div.xc_chat_head.squared\n {\n //border-radius: 20px 20px 0px 0px !important;\n }\n\n .xc_chat_head-title\n {\n margin:5px 0 0 15px;\n color: #fff;\n }\n\n .xc_header_icon\n {\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n width:21px;\n height:16px;\n float:right;\n margin:20px 20px 0 0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n display:block;\n height:16px;\n width:15px;\n text-align:center;\n font-size:9px;\n color:#555;\n position:relative;\n top:-20px;\n left:4px;\n margin:0;\n padding:0;\n }\n\n .xc_sub-head-spacer\n {\n padding:1px;\n }\n\n .xc_conversation\n {\n display:none;\n margin:0 12px 0 11px;\n }\n\n .xc_chat_toggle_container\n {\n /*background:mediumslateblue center -52px;*/\n background: white;\n border-style: solid;\n border-width: 1px;\n border-color: {{chatWebsite.color}};\n //display:none;\n }\n\n .xc_signup_wrapper,.xc_notifications_wrapper,.xc_enquiry_wrapper\n {\n //display:none;\n display:block;\n overflow:auto;\n line-height:1;\n padding:25px;\n }\n\n .xc_exit_chat_container\n {\n text-align:right;\n width:95%;\n margin:0 auto;\n padding:5px 1px 0 0;\n }\n\n .xc_exit_chat_container span,.xc_exit_chat_container a\n {\n font-size:80%;\n color:#666;\n text-decoration:none;\n }\n\n .xc_exit_chat_container a:hover\n {\n color:#333;\n }\n\n a.xc_btn_exit_chat_confirm:hover\n {\n color:red;\n }\n\n a.xc_btn_exit_chat_cancel:hover\n {\n color:#0c0;\n }\n\n form.xc_form_reply\n {\n position:relative;\n }\n\n .xc_form_reply\n {\n /*background-color:#e3e3e3;*/\n text-align:center;\n /*border-top:1px solid #d3d3d3;*/\n }\n\n .xc_input_message\n {\n height:100px;\n margin:10px auto 5px;\n }\n\n .xc_input_enquiry_message\n {\n height:100px;\n }\n\n .xc_form_signup,.xc_form_enquiry\n {\n text-align:center;\n }\n\n .xc_chat_container textarea,.xc_chat_container input[type=text]\n {\n width:95%;\n min-width:95%;\n max-width:95%;\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n box-sizing:border-box;\n background-color:#fff;\n border:1px solid #ccc;\n -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -webkit-transition:border linear .2s, box-shadow linear .2s;\n -moz-transition:border linear .2s, box-shadow linear .2s;\n -o-transition:border linear .2s, box-shadow linear .2s;\n transition:border linear .2s, box-shadow linear .2s;\n display:inline-block;\n font-size:14px;\n line-height:20px;\n color:#555;\n -webkit-border-radius:4px;\n -moz-border-radius:4px;\n border-radius:4px;\n vertical-align:middle;\n margin:3px 0;\n padding:4px 6px;\n resize: none;\n }\n\n .xc_chat_container textarea:focus,.xc_chat_container input[type=text]:focus\n {\n outline: {{chatWebsite.color_focus}} auto 5px;\n }\n\n .xc_chat_container input[type=text]\n {\n height: 30px;\n }\n\n .xc_message_sending textarea, .xc_enquiry_sending textarea\n {\n background: #fff url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/loading.gif) 98% 5px no-repeat;\n }\n\n .xc_chatrow\n {\n display:block;\n border-top:1px dashed #e3e3e3;\n margin:5px 0;\n clear: both;\n }\n\n .xc_chatrow p\n {\n color:#444;\n word-wrap:break-word;\n }\n\n .xc_time\n {\n float:right;\n font-size:80%;\n color:#ccc;\n padding-left:12px;\n margin:3px;\n }\n\n .xc_submission_pending\n {\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_clock.png) left center no-repeat;\n }\n\n .xc_submission_confirmed\n {\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_tick.png) left center no-repeat;\n }\n\n .xc_fullname\n {\n font-weight:700;\n }\n\n .xc_fullname:after\n {\n content:":";\n }\n\n .xc_avatar\n {\n float: left;\n margin: 0 5px 5px 0;\n display: inline-block;\n width: 40px;\n height: 40px;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n\n .xc_smilie\n {\n background-repeat:no-repeat;\n display:inline-block;\n width:18px;\n height:18px;\n text-indent:-9999px;\n white-space:nowrap;\n }\n\n .xc_btn_load_more\n {\n width:100%!important;\n }\n\n .xc_notifications_wrapper\n {\n text-shadow:0 1px 0 rgba(255,255,255,0.5);\n }\n\n .xc_notification_success\n {\n color:#468847;\n }\n\n .xc_notification_error\n {\n color:#b94a48;\n }\n\n .xc_errorlist\n {\n margin:0 0 0 25px;\n padding:0;\n }\n\n i.xc_btn_notifications_close\n {\n float:right;\n font-weight:700;\n font-size:20px;\n color:#ccc;\n cursor:pointer;\n margin:-15px 0 0;\n padding:0;\n }\n\n .xc_btn_style\n {\n width:95%;\n text-align:center;\n line-height:1.2;\n font-size:90%;\n -moz-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n -webkit-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n background:0;\n background-color:{{chatWebsite.color_button}};\n -moz-border-radius:4px;\n -webkit-border-radius:4px;\n border-radius:4px;\n border:1px solid {{chatWebsite.color_button}};\n display:inline-block;\n color:#fff;\n font-weight:700;\n text-decoration:none;\n text-shadow:1px 1px 0 #000c17;\n margin:0 auto 5px;\n padding:2px 0;\n }\n\n .xc_btn_style:hover\n {\n background:0;\n background-color:{{chatWebsite.color_button}};\n color: #fff;\n text-decoration: none;\n }\n\n .xc_btn_style:active\n {\n position:relative;\n top:1px;\n }\n\n .xc_composing_container\n {\n display: none;\n width: 95%;\n margin: 0 auto;\n background: transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_pencil.png) 6px center no-repeat;\n padding-left: 19px;\n font-style: italic;\n }\n\n @media only screen and (max-height: 620px) {\n .xc_conversation_container\n {\n max-height:300px!important;\n }\n }\n\n @media only screen and (max-height: 545px) {\n .xc_conversation_container\n {\n max-height:200px!important;\n }\n }\n\n @media only screen and (max-height: 445px) {\n .xc_conversation_container\n {\n max-height:150px!important;\n }\n }\n\n @media only screen and (max-width: 480px) {\n .xc_chat_container\n {\n width:95%!important;\n right:auto!important;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n box-shadow:0 0 5px rgba(0,0,0,.5);\n -webkit-box-shadow:0 0 5px rgba(0,0,0,.5);\n -moz-box-shadow:0 0 5px rgba(0,0,0,.5);\n }\n\n div.xc_chat_head\n {\n background-color:#036;\n background-image:none;\n line-height:25px;\n height:auto;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n padding:10px;\n }\n\n .xc_chat_toggle_container\n {\n background-color:#fff;\n background-image:none;\n border-color:#036;\n border-style:solid;\n border-width:0 1px;\n }\n\n .xc_header_icon\n {\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n margin:0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n top:-5px;\n left:5px;\n }\n\n .xc_notification_success\n {\n background-color:#dff0d8;\n border:1px solid #d6e9c6;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n border-color:#036;\n }\n\n .xc_notification_error\n {\n background-color:#f2dede;\n border:1px solid #eed3d7;\n }\n\n .xc_sub-head-spacer\n {\n display:none;\n padding:0;\n }\n\n .xc_chat_head-title,.xc_conversation\n {\n margin:0;\n }\n }\n</style>\n<div class="xc_chat_container">\n <div class="xc_chat_head {{chatWebsite.header_shape}}">\n <i class="xc_header_icon">\n <span class="xc_notification_badge">\n <span class="xc_notification_badge_number"></span>\n </span>\n </i>\n <span class="xc_chat_head-title">{{statePreview.state == \'online\' ? chatWebsite.header_online : chatWebsite.header_offline}}</span>\n </div>\n <div class="xc_chat_toggle_container">\n <div class="xc_sub-head-spacer"></div>\n <div class="xc_notifications_wrapper">\n <!--<i class="xc_btn_notifications_close">×</i>-->\n <ul class="xc_errorlist"></ul>\n </div>\n <div class="xc_enquiry_wrapper" data-ng-show=\'statePreview.state == "offline"\'>\n <form class="xc_form_enquiry" accept-charset="UTF-8">\n <p ng-bind-html=\'chatWebsite.offline_message\'></p>\n <input maxlength="45" type="text" name="data[Enquiry][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_enquiry_fullname" />\n <input maxlength="85" type="text" name="data[Enquiry][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_enquiry_email" />\n <textarea maxlength="1500" placeholder="{{chatWebsite.enquiry_message_placeholder}}" name="data[Enquiry][message]" class="xc_input_enquiry_message"></textarea>\n <a href="#" class="xc_btn_enquiry xc_btn_style">{{chatWebsite.enquiry_button}}</a></form>\n </div>\n <div class="xc_signup_wrapper" data-ng-show=\'statePreview.state == "online"\'>\n <form class="xc_form_signup" accept-charset="UTF-8">\n <p ng-bind-html=\'chatWebsite.online_message\'></p>\n <input maxlength="45" type="text" name="data[Discussion][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_fullname" />\n <input maxlength="85" type="text" name="data[Discussion][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_email" />\n <input type="hidden" class="xc_input_visitor_time" name="data[Discussion][visitor_time]" /><a href="#" class="xc_btn_signup xc_btn_style">{{chatWebsite.start_chat_button}}</a></form>\n </div>\n <!-- <div class="xc_conversation">\n <div class="xc_conversation_container">\n <p class="xc_message_intro" data-id="-10">{FirstMessageText}</p>\n </div>\n <div class="xc_composing_container"></div>\n <form class="xc_form_reply" accept-charset="UTF-8">\n <div class="xc_exit_chat_container"><a href="#" class="xc_btn_exit_chat">{ExitChatButtonText}</a>\n <div class="xc_exit_chat_confirmation_wrapper" style="display: none;"><span>{ExitChatQuestionText} </span><a href="#" class="xc_btn_exit_chat_confirm">{ExitChatButtonConfirmText}</a><span> | </span><a href="#" class="xc_btn_exit_chat_cancel">{ExitChatButtonCancelText}</a></div>\n </div>\n <textarea maxlength="750" placeholder="{MessagePlaceholderText}" name="data[Message][message]" class="xc_input_message"></textarea><a href="#" class="xc_btn_send xc_btn_style">{MessageSendButtonText}</a></form>\n </div> -->\n <div class="xc_footer">\n <div class="xc_powered"><a>Powered by Xenialab | Trademark xCALLY</a></div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="chatQueues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <!-- <li>\n <a href="#" data-ng-click="open()">\n <i class="icon-user"></i> {{ \'APPLICATION_QUICK\' | translate }} </a>\n </li> -->\n <li>\n <a href="/chat/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-users"></i> {{ \'APPLICATION_BULK\' | translate }} </a>\n </li> -->\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getChatQueues([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Username\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="chat_queues.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.chatQueuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="chatQueueByPage in chatQueuesByPage | filter: $select.search">\n <div ng-bind-html="chatQueueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="timeout">{{ \'APPLICATION_AGENT_TIMEOUT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatQueue in displayedChatQueues" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="chatQueues.checked" checklist-value="chatQueue.id"></td>\n <td>{{chatQueue.name}}</td>\n <td>{{chatQueue.description}}</td>\n <td>{{chatQueue.strategy | uppercase}}</td>\n <td>{{chatQueue.timeout}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/queues/view/{{chatQueue.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(chatQueue.name,chatQueue.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedChatQueues.length">\n <td colspan="6" style="text-align:center;">\n <i>No chat queues available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatQueuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" style="width: 50%; margin: 0 auto;">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body text-center">\n <div class="form-group last">\n <div class="col-md-9" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.chat.queues.view.settings\')}">\n <a data-ng-href="/chat/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.queues.view.agents\')}">\n <a data-ng-href="/chat/queues/view/{{queue.id}}/agents">\n <i class="icon-users"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/chat/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChatQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}} {{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/queue/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.general" data-ng-submit="forms.general.$valid && createItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CREATE\' | translate}}"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/chat/realtime/view/agent/queue/queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-tree-view class="grid"></div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/agent/timeline/timeline.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" class="grid"></div>\n <!-- START TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/session/session.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initChats()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedChats" st-safe-src="sessions" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="12">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.sessionsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="sessionByPage in sessionsByPage | filter: $select.search">\n <div ng-bind-html="sessionByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid" reverse class="input-small">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue" class="input-medium">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername" class="input-medium">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="visitorname" class="input-medium">{{ \'APPLICATION_VISITOR\' | translate }}</th>\n <th st-sort="websitename" class="input-small">{{ \'APPLICATION_WEB_SITE\' | translate }}</th>\n <th st-sort="sessioncalledAt" st-sort-default="reverse">{{ \'APPLICATION_JOIN_AT\' | translate }}</th>\n <th st-sort="sessionconnectAt">{{ \'APPLICATION_LEAVE_AT\' | translate }}</th>\n <th st-sort="sessionringnoanswerAt">{{ \'APPLICATION_UNMANAGED_AT\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="session in displayedChats">\n <td>\n <span>\n <i data-ng-class="{\'icon-user font-yellow\': session.mailjoinAt && !session.mailleaveAt,\n \'icon-user-following font-green\': session.fullname,\n \'icon-user-unfollow font-red\': session.mailunmanagedAt}"></i>\n </span>\n </td>\n <td>{{session.uniqueid}}</td>\n <td>{{session.chatqueuename}}</td>\n <td>{{session.fullname}}</td>\n <td>{{session.visitorname + \' [\' + session.visitoremail + \']\'}}</td>\n <td>{{session.websitename}}</td>\n <td>\n <time is="relative-time" datetime="{{session.chatjoinAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.chatleaveAt}}" data-ng-show="session.chatleaveAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.chatunmanagedAt}}" data-ng-show="session.chatunmanagedAt">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedChats.length">\n <td colspan="11" style="text-align:center;">\n <i>No sessions available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" data-ng-model="filters.uniqueid" placeholder="{{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="visitorname" placeholder="{{ \'APPLICATION_VISITOR\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="websitename" placeholder="{{ \'APPLICATION_WEB_SITE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="7"></td>\n </tr>\n <tr>\n <td colspan="12" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.sessionsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/chat/realtime/list">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <!-- <a class="navbar-brand" ui-sref="home">Brand</a> -->\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'">\n <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_AGENTS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'agents\'></tree>\n </li>\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_SESSIONS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'sessions\'></tree>\n </li>\n </ul>\n <!-- <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_QUEUES\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'queues\'></tree>\n </li>\n </ul> -->\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.conversation.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONVERSATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatRooms" filename="rooms.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatRooms" st-safe-src="chatRooms" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatRoomsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatRooms.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search"/>\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="type">{{ \'APPLICATION_TYPE\' | translate }}</th>\n <th st-sort="users">{{ \'APPLICATION_USERS\' | translate }}</th>\n <th st-sort="visitor">{{ \'APPLICATION_VISITOR\' | translate }}</th>\n <th st-sort="status">{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatRoom in displayedChatRooms" data-ng-click="$location.path(\'/chat/statistics/conversation/\' + chatRoom.id)">\n <td style="text-align: center;">{{chatRoom.type | uppercase}}</td>\n <td style="text-align: center;">{{getUsersFullname(chatRoom.Users)}}</td>\n <td style="text-align: center;">{{chatRoom.ChatVisitor.email}}</td>\n <td style="text-align: center;">\n <span class="label label-sm label-success" data-ng-class="{\'label-success\': chatRoom.status == \'close\', \'label-warning\': chatRoom.status == \'open\'}">\n {{chatRoom.status | capitalize}}\n </span>\n </td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatRoom.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatRoomsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.conversation.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initRoomView()">\n <div class="col-md-6">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRANSCRIPT\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="chatRoom.ChatMessages" filename="chatMessages.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="scroller" style="height: 352px;" data-always-visible="1" data-rail-visible1="1">\n <ul class="chats">\n <li data-ng-class="{\'out\': chatMessage.visitorId, \'in\': chatMessage.userId}" data-ng-repeat="chatMessage in chatRoom.ChatMessages | orderBy:\'-createdAt\'">\n <img class="avatar" data-ng-src="api/users/{{chatMessage.userId ? chatMessage.userId : \'avatar\'}}/avatar"/>\n <div class="message">\n <span class="arrow">\n </span>\n <a href="#" class="name">\n {{chatMessage.fullname}} </a>\n <span class="datetime">\n <time is="relative-time" datetime="{{chatMessage.createdAt}}">\n April 1, 2014\n </time>\n </span>\n <span class="body">\n {{chatMessage.body}}\n </span>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatRoom.ChatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatRoom.ChatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatRoom.ChatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatRoom.ChatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatRoom.ChatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-repeat="user in chatRoom.Users">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-earphones-alt font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }}:</a> </span>\n <span class="caption-helper">{{user.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.fullname}}\n </div>\n </div>\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_USERNAME\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.name}}\n </div>\n </div>\n <div class="row static-info">\n <div class="col-md-4 name">\n {{\'APPLICATION_ROLE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{user.role | uppercase}}\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.enquiry.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ENQUIRIES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatEnquiries" filename="enquiries.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatEnquiries" st-safe-src="chatEnquiries" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatEnquiriesByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatEnquiries.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search"/>\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="type">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="users">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatEnquiry in displayedChatEnquiries" data-ng-click="$location.path(\'/chat/statistics/enquiry/\' + chatEnquiry.id)">\n <td style="text-align: center;">{{chatEnquiry.username}}</td>\n <td style="text-align: center;">{{chatEnquiry.email}}</td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatEnquiry.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatEnquiriesByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.enquiry.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initEnquiryView()">\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEXT\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="chatEnquiry" filename="chatEnquery.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN PAGE CONTENT-->\n <div class="note note-warning">\n <h4 class="block">{{chatEnquiry.ChatVisitor.fullname}} -\n <time is="relative-time" datetime="{{chatEnquiry.createdAt}}">\n April 1, 2014\n </time>\n </h4>\n <p>\n {{chatEnquiry.text}}\n </p>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatEnquiry.ChatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatEnquiry.ChatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatEnquiry.ChatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatEnquiry.ChatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatEnquiry.ChatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/chat/statistic/statistic.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initList()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eyeglass"></i>\n <a href="/chat/statistics">{{ \'APPLICATION_STATISTICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/statistics.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <!-- <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatWebsite.name}}\n </div>\n <div class="profile-usertitle-job">\n {{chatWebsite.address}}\n </div>\n </div> -->\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR BUTTONS -->\n <!-- <div class="profile-userbuttons">\n <button type="button" class="btn btn-circle green-haze btn-sm">Follow</button>\n <button type="button" class="btn btn-circle btn-danger btn-sm">Message</button>\n </div> -->\n <!-- END SIDEBAR BUTTONS -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.summary\')}">\n <a ng-href="/chat/statistics/summary">\n <i class="icon-list"></i>\n {{ \'APPLICATION_SUMMARY\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.enquiry\') || $state.is(\'main.chat.statistics.enquiries\')}">\n <a ng-href="/chat/statistics/enquiries">\n <i class="icon-question"></i>\n {{ \'APPLICATION_ENQUIRIES\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.conversation\') || $state.is(\'main.chat.statistics.conversations\')}">\n <a ng-href="/chat/statistics/conversations">\n <i class="icon-notebook"></i>\n {{ \'APPLICATION_CONVERSATIONS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.chat.statistics.visitor\') || $state.is(\'main.chat.statistics.visitors\')}">\n <a ng-href="/chat/statistics/visitors">\n <i class="icon-users"></i>\n {{ \'APPLICATION_VISITORS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.summary.html",'<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-show="online">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCATIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <map center="0, 0" zoom="2">\n <marker data-ng-show="chatVisitor.latitude && chatVisitor.longitude" data-ng-repeat="chatVisitor in chatVisitors" position="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" title="{{chatVisitor.fullname}}"></marker>\n </map>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONVERSATIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_OPENED\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (chatRooms | filter:{ status:\'open\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_CLOSED\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (chatRooms | filter:{ status:\'close\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatRooms | filter:{ status:\'open\' }).length, (chatRooms | filter:{ status:\'close\' }).length]" labels="[$translate.instant(\'APPLICATION_OPENED\'), $translate.instant(\'APPLICATION_CLOSED\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_PENDING\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'pending\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_SERVED\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'served\' }:true).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_UNSERVED\' | translate }} </span>\n <span class="sale-num">\n {{ (chatVisitors | filter:{ status:\'unserved\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatVisitors | filter:{ status:\'pending\' }).length, (chatVisitors | filter:{ status:\'served\' }:true).length, (chatVisitors | filter:{ status:\'unserved\' }).length]" labels="[$translate.instant(\'APPLICATION_PENDING\'), $translate.instant(\'APPLICATION_SERVED\'), $translate.instant(\'APPLICATION_UNSERVED\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ENQUIRIES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_READ\' | translate }}<i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{(chatEnquiries | filter:{ read:true }).length}} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_UNREAD\' | translate }}<i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{(chatEnquiries | filter:{ read:false }).length}} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[(chatEnquiries | filter:{ read:true }).length, (chatEnquiries | filter:{ read:false }).length]" labels="[$translate.instant(\'APPLICATION_READ\'), $translate.instant(\'APPLICATION_UNREAD\')]" legend="true" ng-show="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n'),a.put("app/chat/statistic/statistic.visitor.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedChatVisitors" filename="visitors.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatVisitors" st-safe-src="chatVisitors" class="table table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="9">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="conf.chatVisitorsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{chatVisitors.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remote_address">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th st-sort="referer">{{ \'APPLICATION_ORIGIN\' | translate }}</th>\n <th st-sort="device">{{ \'APPLICATION_DEVICE\' | translate }}</th>\n <th st-sort="browser">{{ \'APPLICATION_BROWSER\' | translate }}</th>\n <th st-sort="visitor_language">{{ \'APPLICATION_LANGUAGES\' | translate }}</th>\n <th st-sort="status">{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th st-sort="createdAt">{{ \'APPLICATION_TIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatVisitor in displayedChatVisitors" data-ng-click="$location.path(\'/chat/statistics/visitor/\' + chatVisitor.id)">\n <td>{{chatVisitor.fullname}}</td>\n <td>{{chatVisitor.email}}</td>\n <td>{{chatVisitor.remote_address}}</td>\n <td>{{chatVisitor.referer}}</td>\n <td class="centered-td">{{chatVisitor.device ? chatVisitor.device : \'--\'}}</td>\n <td class="centered-td">\n <img data-ng-show="chatVisitor.browser.includes(\'Chrome\')" data-ng-src="assets/images/browsers/chrome/chrome_16x16.png" data-title="{{chatVisitor.browser}}" bs-tooltip>\n <img data-ng-show="chatVisitor.browser.includes(\'Safari\')" data-ng-src="assets/images/browsers/safari/safari_16x16.png">\n <img data-ng-show="chatVisitor.browser.includes(\'Firefox\')" data-ng-src="assets/images/browsers/firefox/firefox_16x16.png">\n <img data-ng-show="chatVisitor.browser.includes(\'Explorer\')" data-ng-src="assets/images/browsers/internet-explorer/internet-explorer_16x16.png">\n </td>\n <td class="centered-td">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'IT\') || chatVisitor.visitor_language.includes(\'it\')" data-ng-src="assets/images/flags/it.png">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'US\') || chatVisitor.visitor_language.includes(\'us\')" data-ng-src="assets/images/flags/us.png">\n <img data-ng-show="chatVisitor.visitor_language.includes(\'EN\') || chatVisitor.visitor_language.includes(\'en\')" data-ng-src="assets/images/flags/en_EN.png">\n </td>\n <td class="centered-td">\n <span class="label label-sm label-success" data-ng-class="{\'label-warning\': chatVisitor.status == \'pending\', \'label-danger\': chatVisitor.status == \'unserved\'}">\n {{ $translate.instant(\'APPLICATION_\' + $filter(\'uppercase\')(chatVisitor.status)) }}\n </span>\n </td>\n <td style="text-align: center;">\n <time is="relative-time" datetime="{{chatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatVisitorsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/statistic/statistic.visitor.view.html",'<!-- BEGIN PAGE CONTENT-->\n<div data-ng-init="initVisitorView()">\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pin font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCATION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN PAGE CONTENT-->\n <map center="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" zoom="8">\n <marker position="{{chatVisitor.latitude}}, {{chatVisitor.longitude}}" title="{{chatVisitor.fullname}}"></marker>\n </map>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="col-md-6">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITOR\' | translate }}:</a> </span>\n <span class="caption-helper">{{chatVisitor.fullname}}</span>\n </div>\n <div class="actions">\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row static-info" data-ng-show="chatVisitor.longitude && chatVisitor.latitude">\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.fullname">\n <div class="col-md-4 name">\n {{\'APPLICATION_FULLNAME\' | translate}}\n </div>\n <div class="col-md-8 value">\n {{chatVisitor.fullname}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.email">\n <div class="col-md-4 name">\n {{\'APPLICATION_EMAIL\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.email}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.remote_address">\n <div class="col-md-4 name">\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.remote_address}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.referer">\n <div class="col-md-4 name">\n {{\'APPLICATION_REFERER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.referer}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.browser">\n <div class="col-md-4 name">\n {{\'APPLICATION_BROWSER\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.browser}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.engine">\n <div class="col-md-4 name">\n {{\'APPLICATION_ENGINE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.engine}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.os">\n <div class="col-md-4 name">\n {{\'APPLICATION_OS\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.os}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.device">\n <div class="col-md-4 name">\n {{\'APPLICATION_DEVICE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.device}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.country">\n <div class="col-md-4 name">\n {{\'APPLICATION_COUNTRY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.country}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.region">\n <div class="col-md-4 name">\n {{\'APPLICATION_REGION\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.region}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.city">\n <div class="col-md-4 name">\n {{\'APPLICATION_CITY\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.city}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.latitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LATITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.latitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.longitude">\n <div class="col-md-4 name">\n {{\'APPLICATION_LONGITUDE\' | translate}}\n </div>\n <div class="col-md-4 value">\n {{chatVisitor.longitude}}\n </div>\n </div>\n <div class="row static-info" data-ng-show="chatVisitor.createdAt">\n <div class="col-md-4 name">\n {{\'APPLICATION_ARRIVAL_TIME\' | translate}}\n </div>\n <div class="col-md-4 value">\n <time is="relative-time" datetime="{{chatVisitor.createdAt}}">\n April 1, 2014\n </time>\n </div>\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/timeline/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-list"></i>\n <a href="/mail/timeline/list"> Timeline</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initList()">\n <div class="col-md-12">\n <h3 class="page-title">\n Timeline\n </h3>\n <!-- END PAGE HEADER-->\n <!-- BEGIN PAGE CONTENT-->\n <div class="timeline">\n <!-- TIMELINE ITEM -->\n <div class="timeline-item" data-ng-repeat="event in events | orderBy:\'-id\'" ng-animate=" \'animate\' ">\n <div class="timeline-badge">\n <div class="timeline-icon">\n <i class="icon-envelope font-green-haze"></i>\n </div>\n </div>\n <div class="timeline-body">\n <div class="timeline-body-arrow"></div>\n <div class="timeline-body-head">\n <div class="timeline-body-head-caption">\n <span class="timeline-body-alerttitle" data-ng-class="{\'font-red\': event.name == \'INCOMING\', \'font-blue\': event.name == \'ATTEMPT\', \'font-green\': event.name == \'TAKEN\'}">{{event.name | uppercase}}</span>\n <span class="timeline-body-time font-grey-cascade">at {{event.createdAt | date:\'yyyy-MM-dd HH:mm:ss\'}}</span>\n </div>\n <div class="timeline-body-head-actions">\n <div class="btn-group">\n <a class="btn btn-circle btn-sm dropdown-toggle btn-success" href="/mail/inbox/room/{{event.MailRoomId}}">Go To Mail</a>\n </div>\n </div>\n </div>\n <div class="timeline-body-content">\n <span class="font-grey-cascade" data-ng-show="event.User">\n {{event.MailRoom.subject ? event.MailRoom.subject + \' - \' : \'\'}}<a href="/agents/view/{{event.UserId}}/account">{{event.User.fullname}}</a>\n </span>\n </div>\n </div>\n </div>\n <!-- END TIMELINE ITEM -->\n </div>\n <!-- END PAGE CONTENT-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="chatWebsites.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_WEB_SITE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <!-- <li>\n <a href="#" data-ng-click="open()">\n <i class="icon-user"></i> {{ \'APPLICATION_QUICK\' | translate }} </a>\n </li> -->\n <li>\n <a href="/chat/websites/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-users"></i> {{ \'APPLICATION_BULK\' | translate }} </a>\n </li> -->\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getChatWebsites([\'name\', \'address\', \'description\', \'remote\'])" csv-header="[\'Name\', \'Address\', \'Description\', \'Remote\']" field-separator=";" filename="chat_websites.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedChatWebsites" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.chatWebsitesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="chatWebsiteByPage in chatWebsitesByPage | filter: $select.search">\n <div ng-bind-html="chatWebsiteByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="address">{{ \'APPLICATION_WEB_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="chatWebsite in displayedChatWebsites" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="chatWebsites.checked" checklist-value="chatWebsite.id"></td>\n <td>{{chatWebsite.name}}</td>\n <td>{{chatWebsite.description}}</td>\n <td><a ng-href="{{chatWebsite.address}}">{{chatWebsite.address}}</a></td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(chatWebsite.name,chatWebsite.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedChatWebsites.length">\n <td colspan="5" style="text-align:center;">\n <i>{{\'MESSAGE_NO_AVAILABLE_WEBSITES\' | translate}}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="address" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_WEB_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.chatWebsitesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/chat/websites/view/{{chatWebsite.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th class="input-small" align="center">{{\'APPLICATION_APPLICATION\' | translate}}</th>\n <th class="input-small" align="center">{{\'APPLICATION_TIMEOUT\' | translate}} [s]</th>\n <th align="center">{{ \'APPLICATION_INTERVAL\' | translate }}</th>\n <th class="input-small">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="chatApplications">\n <tr data-ng-repeat="application in chatApplications">\n <td align="center">\n {{application.User ? \'agent\' : \'queue\' | uppercase}} [{{application.User ? application.User.fullname : application.ChatQueue.name}}]\n </td>\n <td align="center">{{application.timeout}}</td>\n <td align="center">{{application.Interval ? application.Interval.name : application.interval}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/chat/websites/view/{{chatWebsite.id}}/actions/view/{{application.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(application.app, application.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="chatApplications.length">\n <td colspan="5" style="text-align:center;">\n <i>No applications available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/chat/website/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select class="input-medium" data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group inpu" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/chat/website/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <!-- <button class="btn green-haze" type="button" wz-previous><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button> -->\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/view/snippet/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SNIPPET\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_EMBEDDING\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_APPEARANCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FORMS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_LABELS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_5" data-toggle="tab">{{\'APPLICATION_SETTINGS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_6" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-8">\n <div class="tab-content">\n <!-- EMBEDDING TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <h3>{{\'APPLICATION_EMBED_SNIPPET\' | translate}}</h3>\n <p>\n {{\'MESSAGE_EMBED_SNIPPET\' | translate}}\n </p>\n <div class="form-body">\n <div class="form-group">\n <div class="col-md-12">\n <textarea name="snippet" rows="13" style="resize:none;cursor:text;" class="form-control" readonly data-ng-model="snippetCode"></textarea>\n </div>\n </div>\n </div>\n </div>\n <!-- END EMBEDDING TAB -->\n\n <!-- APPEARANCE TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.formAppearance" data-ng-submit="forms.formAppearance.$valid && updateItem()" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{chatWebsite.color}}" class="form-control" data-ng-model="chatWebsite.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{chatWebsite.color_focus}}" class="form-control" data-ng-model="chatWebsite.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{chatWebsite.color_button}}" class="form-control" data-ng-model="chatWebsite.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.animation" name="animationToggle" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="animationToggle in [true, false] | filter: $select.search">\n <div ng-bind-html="animationToggle ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END APPEARANCE TAB -->\n\n <!-- FORMS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.formFunctionality" data-ng-submit="forms.formFunctionality.$valid && updateItem()" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n <ui-select data-ng-model="chatWebsite.download_transcript" name="downloadTranscript" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n <div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END FORMS TAB -->\n\n <!-- STRINGS TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.formLabel" data-ng-submit="forms.formLabel.$valid && updateItem()" novalidate>\n\n <h4 class="block" data-ng-show="statePreview.state == \'online\'">{{\'APPLICATION_ONLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'offline\'">{{\'APPLICATION_OFFLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STRINGS TAB -->\n\n <!-- SETTINGS TAB -->\n <div class="tab-pane" id="tab_1_5">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chatWebsite.name" required/>\n <span data-ng-show="(forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSettings.name.$invalid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.remote" required/>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.description.$touched || forms.formSetting.$submitted) && forms.formSetting.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chatWebsite.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END SETTINGS TAB -->\n\n <!-- OFFLINE TAB -->\n <div class="tab-pane" id="tab_1_6">\n <form name="forms.formOffline" data-ng-submit="forms.formOffline.$valid && updateItem()" novalidate>\n\n <!-- START ENQUIRY FORWARDING -->\n <div class="form-group">\n <div class="row">\n <label class="col-md-4">\n {{\'APPLICATION_ENQUIRY_FORWARDING\' | translate}}\n </label>\n <label class="col-md-8">\n <input type="checkbox" ng-model="chatWebsite.enquiry_forwarding">\n </label>\n </div>\n <div class="row">\n <span class="help-block col-md-12">\n {{\'MESSAGE_REMEMBER_SMTP_SERVICE_ACCOUNT\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ENQUIRY FORWARDING -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formSetting.forwardingAddress.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="forwardingAddress" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_forwarding_address" required/>\n <span data-ng-show="(forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formOffline.forwardingAddress.$invalid && forms.formOffline.forwardingAddress.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chatWebsite.OfflineTemplateId" name="OfflineTemplateId" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailTemplate.id as mailTemplate in mailTemplates | filter: $select.search">\n <div ng-bind-html="mailTemplate.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid && forms.formOffline.OfflineTemplateId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END OFFLINE TAB -->\n </div>\n </div>\n <div class="col-md-4">\n <!-- START STATE -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label> -->\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="statePreview.state" name="statePreview" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="statePreview in [\'online\',\'offline\'] | filter: $select.search">\n <div ng-bind-html="statePreview | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STATE -->\n <preview></preview>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/chat/website/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{chatWebsite.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/website.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatWebsite.name}}\n </div>\n <div class="profile-usertitle-job">\n {{chatWebsite.address}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.includes(\'main.chat.websites.view.snippet\')}">\n <a ng-href="/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SNIPPET\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.chat.websites.view.actions\')}">\n <a ng-href="/chat/websites/view/{{chatWebsite.id}}/actions/list">\n <i class="icon-directions"></i>\n {{ \'APPLICATION_ACTIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/chat/website/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_WEB_SITE_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$touched && !forms.formSettings.name.$valid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.form.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_WEB_SITE_APPEARANCE\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formAppearance" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{item.color}}" class="form-control" data-ng-model="item.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{item.color_focus}}" class="form-control" data-ng-model="item.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{item.color_button}}" class="form-control" data-ng-model="item.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="item.animation" required/> -->\n <ui-select data-ng-model="item.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <ui-select data-ng-model="item.animation" name="animationToggle" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n <div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_LABELS\' | translate}}" canexit="exitValidation(forms.formLabel.$valid)">\n <form name="forms.formLabel" novalidate>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="item.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_USERNAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="item.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="item.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="item.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_FORMS\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formFunctionality" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n <ui-select data-ng-model="item.download_transcript" name="downloadTranscript" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n <div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_COMPANY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.company" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.name.$touched || forms.company.$submitted) && forms.company.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.cmopany.name.$touched || forms.company.$submitted) && forms.company.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.company.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/company/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-briefcase font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COMPANIES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Companies.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_COMPANY\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getCompanies([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="companies.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedCompanies" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.companiesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="companyByPage in companiesByPage | filter: $select.search">\n <div ng-bind-html="companyByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(company, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="company in displayedCompanies" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Companies.checked" checklist-value="company.id"></td>\n <td>{{company.name}}</td>\n <td>{{company.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/contactmanager/companies/view/{{company.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(company.name,company.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedCompanies.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.companiesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCompany()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n <i data-ng-show="company" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="company">\n <a href="#">{{company.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/company.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{company.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.companies.view.settings\')}">\n <a data-ng-href="/contactmanager/companies/view/{{company.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_COMPANY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </div>\n <div class="tab-pane" id="tab_1_3">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sStreet.$touched || forms.general.$submitted) && forms.general.sStreet.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n <span data-ng-show="(forms.general.sStreet.$touched || forms.general.$submitted) && forms.general.sStreet.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sPostalCode.$touched || forms.general.$submitted) && forms.general.sPostalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n <span data-ng-show="(forms.general.sPostalCode.$touched || forms.general.$submitted) && forms.general.sPostalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sCity.$touched || forms.general.$submitted) && forms.general.sCity.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n <span data-ng-show="(forms.general.sCity.$touched || forms.general.$submitted) && forms.general.sCity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sCountry.$touched || forms.general.$submitted) && forms.general.sCountry.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n <span data-ng-show="(forms.general.sCountry.$touched || forms.general.$submitted) && forms.general.sCountry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/contactmanager/contact/list/import.modal.html",'<div class="modal-header" data-ng-init="getCustomFields();">\n <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.csv" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.fullname.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}</label>\n <ui-select data-ng-model="item.fullname" theme="bootstrap" name="fullname" data-ng-disabled="disabled" required>\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FULLNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.fullname.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.street.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <ui-select data-ng-model="item.street" theme="bootstrap" name="street" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.street.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.postalCode.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <ui-select data-ng-model="item.postalCode" theme="bootstrap" name="postalCode" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.postalCode.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.city.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <ui-select data-ng-model="item.city" theme="bootstrap" name="city" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.city.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n\n <!-- START PHONES -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.Phones.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_PHONES\' | translate}}</label>\n <ui-select multiple data-ng-model="item.Phones" theme="bootstrap" name="Phones" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONES\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.Phones.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONES -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.country.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <ui-select data-ng-model="item.country" theme="bootstrap" name="country" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.country.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.dateOfBirth.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <ui-select data-ng-model="item.dateOfBirth" theme="bootstrap" name="dateOfBirth" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.dateOfBirth.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.tags.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap" name="tags" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.tags.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.description.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <ui-select data-ng-model="item.description" theme="bootstrap" name="description" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.description.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START EMAILS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.Emails.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_EMAILS\' | translate}}</label>\n <ui-select multiple data-ng-model="item.Emails" theme="bootstrap" name="Emails" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_EMAILS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.Emails.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAILS -->\n\n </div>\n </div>\n\n <!-- START CUSTOMFIELDS -->\n <div data-ng-repeat="customField in customFields">\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv[customField.name].$invalid && forms.csv.$submitted}">\n <label class="control-label">{{customField.name}}</label>\n <ui-select data-ng-if="!joinPrompt" data-ng-model="item.customFields[customField.id]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.name}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv[customField.name].$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END CUSTOMFIELDS -->\n\n <div>\n <p>{{\'APPLICATION_IMPORT_SUCCEEDED\' | translate}}: {{import.succeeded}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.success + \'%\' }"></div>\n </div>\n </div>\n <div>\n <p>{{\'APPLICATION_IMPORT_FAILED\' | translate}}: {{import.failed}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n </div>\n </div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="forms.csv.$invalid || !forms.csv.fullname || submitted">{{ \'APPLICATION_SUBMIT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="close()" data-ng-if="!importing">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="stop()" data-ng-if="importing">{{ \'APPLICATION_STOP\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/contact/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="/contactmanager/contacts/list">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTACTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="contacts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle" data-ng-click="newContact();">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n </button>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader"/>\n </span>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getContacts([\'mailbox\', \'fullname\', \'email\'])" csv-header="[\'name\', \'surname\', \'description\']" field-separator=";" filename="contacts.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedContacts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.contactsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="contactByPage in contactsByPage | filter: $select.search">\n <div ng-bind-html="contactByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(contact, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="contact in displayedContacts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="contacts.checked" checklist-value="contact.id"></td>\n <td>{{contact.fullname}} {{}}</td>\n <td>{{contact.description}}</td>\n <td>\n <button class="btn default btn-xs blue-stripe" data-ng-click="openContactTab(contact)">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </button>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(contact.fullname,contact.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedContacts.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CONTACTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FULLNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.contactsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.customField" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types| filter: $select.search">\n {{$translate.instant(type.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid && forms.customField.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <div ng-slide-down="item.type == \'select\'" lazy-render duration="1">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.customField.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/customfield/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="CustomFields.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getCs([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="customFields.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedCustomFields" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.customFieldsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="customFieldByPage in customFieldsByPage | filter: $select.search">\n <div ng-bind-html="customFieldByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(customField, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="type">{{ \'APPLICATION_TYPE\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="customField in displayedCustomFields" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="customFields.checked" checklist-value="customField.id"></td>\n <td>{{customField.name}}</td>\n <td>{{customField.type}}</td>\n <td>{{customField.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/contactmanager/customfields/view/{{customField.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(customField.name,customField.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedCustomFields.length">\n <td colspan="5" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CUSTOM_FIELDS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_TYPE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.customFieldsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n <i data-ng-show="customField" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="customField">\n <a href="#">{{customField.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/customfield.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{customField.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.customfields.view.settings\')}">\n <a data-ng-href="/contactmanager/customfields/view/{{customField.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="customField.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/dashboard/dashboard.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/dashboard/voice">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <!-- <a class="navbar-brand" ui-sref="home">Brand</a> -->\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'">\n <ul class="nav navbar-nav">\n <!-- <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_VOICE\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'voice\'></tree>\n </li>\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_MAIL\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'mail\'></tree>\n </li> -->\n <li data-ng-class="{active: $state.is(\'main.dashboard.voice\')}">\n <a href="/dashboard/voice">\n <b class=\'icon-earphones-alt\'></b>\n {{ \'APPLICATION_VOICE\' | translate }}\n </a>\n <!-- <tree tree=\'voice\'></tree> -->\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.mail\')}">\n <a href="/dashboard/mail">\n <b class=\'icon-envelope\'></b>\n {{ \'APPLICATION_MAIL\' | translate }}\n </a>\n <!-- <tree tree=\'mail\'></tree> -->\n </li>\n </ul>\n <!-- <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_QUEUES\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'queues\'></tree>\n </li>\n </ul> -->\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/dashboard/mail/mail.html",'<div class="col-md-12">\nThis is the mail view.\n</div>\n'),a.put("app/dashboard/voice/voice.html",'<div class="row" ng-init=\'getQueueStats()\'>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="fa fa-comments"></i>\n </div>\n <div class="details">\n <div class="number">\n {{queueStats.abandonedCalls}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_ABANDONED\' | translate}}\n </div>\n </div>\n <a class="more" href="/voice/realtime/view/queues">\n {{\'APPLICATION_VIEW_MORE\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-bar-chart-o"></i>\n </div>\n <div class="details">\n <div class="number">\n {{queueStats.completedCalls}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_COMPLETED\' | translate}}\n </div>\n </div>\n <a class="more" href="/voice/realtime/view/queues">\n {{\'APPLICATION_VIEW_MORE\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="fa fa-shopping-cart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{queueStats.waitCalls}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_WAIT\' | translate}}\n </div>\n </div>\n <a class="more" href="/voice/realtime/view/queues">\n {{\'APPLICATION_VIEW_MORE\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="fa fa-globe"></i>\n </div>\n <div class="details">\n <div class="number">\n {{queueStats.activeCalls}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_ACTIVE\' | translate}}\n </div>\n </div>\n <a class="more" href="/voice/realtime/view/queues">\n {{\'APPLICATION_VIEW_MORE\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n </div>\n </div>\n</div>\n'),a.put("app/desk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DESK_COM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/desk/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'authType\',\'consumerKey\',\'consumerSecret\',\'token\',\'tokenSecret\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Authentication Type\', \'Consumer Key\', \'Consumer Secret\', \'Token\', \'Token Secret\', \'Password\']" field-separator=";" filename="desk_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedDeskAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedDeskAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedDeskAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'basic\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONSUMER KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="account.consumerKey" required/>\n <span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER KEY -->\n\n <!-- START CONSUMER SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="account.consumerSecret" required/>\n <span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER SECRET -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START TOKEN SECRET-->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="account.tokenSecret" required/>\n <span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN SECRET-->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/interval/view/view.subintervals.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SUBINTERVALS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/intervals/view/{{interval.id}}/subinterval" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SUBINTERVAL\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n <th>{{ \'APPLICATION_TIME\' | translate }}</th>\n <th width="20%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="subIntervals">\n <tr data-ng-repeat="subinterval in subIntervals">\n <td>{{subinterval.name}}</td>\n <td>{{subinterval.interval}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/intervals/view/{{interval.id}}/subintervals/settings/{{subinterval.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(subinterval.name+\' interval\',subinterval.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="subIntervals.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_SUBINTERVALS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/interval/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-clock"></i>\n <a href="/intervals/list">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/intervals/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getContexts()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-clock font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTERVAL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.interval.$valid)">\n <form name="forms.interval" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.name.$touched || forms.interval.$submitted) && forms.interval.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.interval.name.$touched || forms.interval.$submitted) && forms.interval.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/login/login.html",'<!-- BEGIN LOGO -->\n<div class="logo">\n <a href="index.html">\n <img src="assets/images/logo-big.png" alt=""/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN LOGIN -->\n<div class="content">\n <!-- BEGIN LOGIN FORM -->\n <form class="login-form" name="loginForm" data-ng-show="!flagLogin1" data-ng-submit="login(loginForm)" novalidate>\n <h3 class="form-title">Sign In</h3>\n <div class="alert alert-danger" data-ng-class="{\'display-hide\': !loginSubmitted || !errorLogin}">\n <button class="close" data-close="alert"></button>\n <span>{{ errorLog ? errorLog : \'Enter any username and password.\'}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginSubmitted && loginForm.name.$invalid}">\n <label class="control-label">Username</label>\n <div class="input-icon">\n <i class="fa fa-user"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="Username" name="name" ng-model="userLogin.name" required/>\n </div>\n <span data-ng-show="loginSubmitted && loginForm.name.$invalid" class="help-block">Username is required.</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginSubmitted && loginForm.password.$invalid}">\n <label class="control-label">Password</label>\n <div class="input-icon">\n <i class="fa fa-lock"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" name="password" ng-model="userLogin.password" required/>\n </div>\n <span data-ng-show="loginSubmitted && loginForm.password.$invalid" class="help-block">Password is required.</span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">Login</button>\n <label class="rememberme check">\n <input type="checkbox"> Remember me\n </label>\n <!-- <label class="rememberme check">\n <input type="checkbox" name="remember" value="1"/>Remember </label> -->\n <!-- <a href="javascript:;" id="forget-password" class="forget-password">Forgot Password?</a> -->\n </div>\n <div class="login-options">\n <h4>Follow Us on</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n </li>\n </ul>\n </div>\n </form>\n</div>\n<div class="copyright">\n 2016 © xCALLY MOTION.\n</div>\n<!-- END LOGIN -->\n'),a.put("app/mail/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="#">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mailAccounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/mail/accounts/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMailAccounts([\'name\', \'description\', {MailServerIn:\'username\'}])" csv-header="[\'Name\', \'Description\', \'Email Address\']" field-separator=";" filename="mail_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMailAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.mailAccountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailAccountByPage in mailAccountsByPage | filter: $select.search">\n <div ng-bind-html="mailAccountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(mailAccount, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th>IMAP</th>\n <th>SMTP</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="mailAccount in displayedMailAccounts">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mailAccounts.checked" checklist-value="mailAccount.id"></td>\n <td>{{mailAccount.name}}</td>\n <td>{{mailAccount.description}}</td>\n <td><a ng-href="mailto:{{mailAccount.MailServerIn.username}}">{{mailAccount.MailServerIn.username}}</a></td>\n <td data-ng-switch="mailAccount.MailServerIn.state">\n <span class="label label-sm label-success" ng-switch-when="CONNECTED">\n {{ mailAccount.MailServerIn.state}}\n </span>\n <span class="label label-sm label-warning" ng-switch-when="DISCONNECTED">\n {{ mailAccount.MailServerIn.state}}\n </span>\n <span class="label label-sm label-danger" ng-switch-when="ERROR">\n {{ mailAccount.MailServerIn.state}}\n </span>\n <span class="label label-sm label-default" ng-switch-default>\n {{ mailAccount.MailServerIn.state}}\n </span>\n </td>\n <td data-ng-switch="mailAccount.MailServerOut.state">\n <span class="label label-sm label-success" ng-switch-when="CONNECTED">\n {{ mailAccount.MailServerOut.state}}\n </span>\n <span class="label label-sm label-warning" ng-switch-when="DISCONNECTED">\n {{ mailAccount.MailServerOut.state}}\n </span>\n <span class="label label-sm label-danger" ng-switch-when="ERROR">\n {{ mailAccount.MailServerOut.state}}\n </span>\n <span class="label label-sm label-default" ng-switch-default>\n {{ mailAccount.MailServerOut.state}}\n </span>\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/mail/accounts/view/{{mailAccount.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(mailAccount.name, mailAccount.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailAccounts.length">\n <td colspan="7" class="text-center">\n <i>{{ \'MESSAGE_NO_AVAILABLE_ACCOUNTS\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="4"/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.mailAccountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/mail/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th class="input-small" align="center">{{\'APPLICATION_APPLICATION\' | translate}}</th>\n <th class="input-small" align="center">{{\'APPLICATION_TIMEOUT\' | translate}} [s]</th>\n <th align="center">{{ \'APPLICATION_INTERVAL\' | translate }}</th>\n <th class="input-small">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="mailApplications">\n <tr data-ng-repeat="application in mailApplications">\n <td align="center">\n {{application.User ? \'agent\' : \'queue\' | uppercase}} [{{application.User ? application.User.fullname : application.MailQueue.name}}]\n </td>\n <td align="center">{{application.timeout}}</td>\n <td align="center">{{application.Interval ? application.Interval.name : application.interval}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/mail/accounts/view/{{account.id}}/actions/view/{{application.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(application.app, application.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="mailApplications.length">\n <td colspan="5" style="text-align:center;">\n <i>No applications available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/mail/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="0" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <!-- <button class="btn green-haze" type="button" wz-previous><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button> -->\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/mail/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.description || account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.description || account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.email}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.mail.accounts.view.settings\')}">\n <a href="/mail/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.mail.accounts.view.actions\')}">\n <a href="/mail/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/mail/account/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">IMAP</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">SMTP</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formInfo" data-ng-submit="forms.formInfo.$valid && updateItemMailAccount()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formInfo.name.$touched || forms.formInfo.$submitted) && forms.formInfo.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.formInfo.name.$touched || forms.formInfo.$submitted) && forms.formInfo.name.$invalid && forms.formInfo.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- IMAP TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.formIn" data-ng-submit="forms.formIn.$valid && updateItemMailServerIn()" novalidate>\n <!-- START PROTOCOL -->\n <!-- <div class="form-group">\n <label class="control-label">IMAP/POP3</label>\n <button type="button" name="protocol" class="btn btn-default form-control" data-ng-model="account.MailServerIn.protocol" bs-checkbox>{{account.MailServerIn.protocol ? \'IMAP\' : \'POP3\'}}</button>\n </div> -->\n <!-- END PROTOCOL -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.host" required/>\n <span data-ng-show="(forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid && forms.formIn.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.username" required/>\n <span data-ng-show="(forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid && forms.formIn.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.password" required/>\n <span data-ng-show="(forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid && forms.formIn.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.port" required/>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="account.MailServerIn.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div ng-bind-html="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START DELETE -->\n <div class="form-group row">\n <label class="col-md-3">\n {{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}\n </label>\n <label class="col-md-9">\n <input type="checkbox" ng-model="account.MailServerIn.delete">\n </label>\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="account.MailServerIn.ssl">\n </label>\n </div>\n <!-- END SSL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END IMAP TAB -->\n\n <!-- SMTP TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.formOut" data-ng-submit="forms.formOut.$valid && updateItemMailServerOut()" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.host" required/>\n <span data-ng-show="(forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid && forms.formOut.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.username" required/>\n <span data-ng-show="(forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid && forms.formOut.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.password" required/>\n <span data-ng-show="(forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid && forms.formOut.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.port.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.port" required/>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="account.MailServerOut.ssl">\n </label>\n </div>\n <!-- END SSL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n </form>\n </div>\n <!-- END SMTP TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/mail/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="info.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="info.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="IMAP" canexit="formValidation(forms.in.$valid)">\n <form name="forms.in" novalidate>\n <!-- START PROTOCOL -->\n <!-- <div class="form-group">\n <label class="control-label">IMAP/POP3</label>\n <button type="button" name="protocol" class="btn btn-default form-control" data-ng-model="in.protocol" bs-checkbox>{{in.protocol ? \'IMAP\' : \'POP3\'}}</button>\n </div> -->\n <!-- END PROTOCOL -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="in.host" required/>\n <span data-ng-show="(forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid && forms.in.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="in.username" name="username" required/>\n <span data-ng-show="(forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid && forms.in.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="in.password" required/>\n <span data-ng-show="(forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid && forms.in.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="in.port" required/>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="in.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="in.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div data-ng-bind="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <!-- <input type="text" name="filter" placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}" class="form-control" data-ng-model="in.filter"/> -->\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START DELETE -->\n <div class="form-group row">\n <label class="col-md-3">\n {{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="in.delete">\n </label>\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="in.ssl">\n </label>\n </div>\n <!-- END SSL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n <wz-step title="SMTP" canexit="formValidation(forms.out.$valid)">\n <form name="forms.out" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="out.host" required/>\n <span data-ng-show="(forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid && forms.out.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="out.username" required/>\n <span data-ng-show="(forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid && forms.out.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="out.password" required/>\n <span data-ng-show="(forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid && forms.out.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.port.$touched || forms.out.$submitted) && forms.out.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="out.port" required/>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="out.ssl">\n </label>\n </div>\n <!-- END DELETE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/automation/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mailAutomations.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/mail/automations/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMailAutomations([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="mail_automations.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMailAutomations" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.mailAutomationsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailAutomationByPage in mailAutomationsByPage | filter: $select.search">\n <div ng-bind-html="mailAutomationByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <!-- <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th> -->\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(mailAutomation, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="mailAutomation in displayedMailAutomations">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mailAutomations.checked" checklist-value="mailAutomation.id"></td>\n <td>{{mailAutomation.name}}</td>\n <td>{{mailAutomation.description}}</td>\n <td>\n <input\n data-ng-change="updateItem(mailAutomation.id, mailAutomation.status)",\n bs-switch\n ng-model="mailAutomation.status"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ onText }}"\n switch-off-text="{{ offText }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/mail/automations/view/{{mailAutomation.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(mailAutomation.name, mailAutomation.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailAutomations.length">\n <td colspan="6" class="text-center">\n <i>No available automations</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.mailAutomationsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/mail/automation/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/mail/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="automation"></i>\n </li>\n <li data-ng-show="automation">\n <a href="#">{{ automation.description || automation.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ automation.name }}\n </div>\n <div class="profile-usertitle-job">\n {{automation.description}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.mail.automations.view.settings\')}">\n <a href="/mail/automations/view/{{automation.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/automation/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">OR {{\'APPLICATION_CONDITIONS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">AND {{\'APPLICATION_CONDITIONS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateAutomation()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- IMAP TAB -->\n <div class="tab-pane" id="tab_1_2">\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewCondition(\'or\')">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-people"></i>\n <span class="caption-subject">Meet <strong>all</strong> of the following conditions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="condition in automation.BusinessConditions | filter: {type: \'or\'}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group">\n <ui-select data-ng-model="condition.condition" theme="bootstrap" on-select="updateCondition(condition.id, \'condition\', $item.key)" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="condition.key as condition in automations.conditions | filter: $select.search">\n <div data-ng-bind="condition.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3">\n <div class="form-group">\n <ui-select data-ng-model="condition.operator" theme="bootstrap" on-select="updateCondition(condition.id, \'operator\', $item.key)" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="operator.key as operator in getOperatorsByCondition(condition.condition) | filter: $select.search">\n <div data-ng-bind="operator.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-switch="condition.condition">\n <div class="form-group" data-ng-switch-when="status">\n <ui-select data-ng-model="condition.attribute" theme="bootstrap" on-select="updateCondition(condition.id, \'attribute\', $item.key)" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in getAttributesByCondition(condition.condition) | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="form-group" data-ng-switch-when="createdAt">\n <input class="form-control" type="text" name="attributeOr{{$index}}" value="" data-ng-model="condition.attribute" ng-blur="updateCondition(condition.id, \'attribute\', condition.attribute)" data-ng-class="{\'has-error\': forms.and.attributeAnd{{$index}}.$invalid}" required>\n </div>\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeCondition(condition.id)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automation.BusinessConditions.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add condition</i>\n </div>\n </div>\n </div>\n <!-- END IMAP TAB -->\n\n <div class="tab-pane" id="tab_1_3">\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewCondition(\'and\')">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-people"></i>\n <span class="caption-subject">Meet <strong>all</strong> of the following conditions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="condition in automation.BusinessConditions | filter: {type: \'and\'}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group">\n <ui-select data-ng-model="condition.condition" name="conditionAnd{{$index}}" theme="bootstrap" on-select="updateCondition(condition.id, \'condition\', $item.key)" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="condition.key as condition in automations.conditions | filter: $select.search">\n <div data-ng-bind="condition.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3">\n <div class="form-group">\n <ui-select data-ng-model="condition.operator" name="operatorAnd{{$index}}" theme="bootstrap" on-select="updateCondition(condition.id, \'operator\', $item.key)" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="operator.key as operator in getOperatorsByCondition(condition.condition) | filter: $select.search">\n <div data-ng-bind="operator.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-switch="condition.condition">\n <div class="form-group" data-ng-switch-when="status">\n <ui-select data-ng-model="condition.attribute" name="attributeAnd{{$index}}" theme="bootstrap" on-select="updateCondition(condition.id, \'attribute\', $item.key)" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in getAttributesByCondition(condition.condition) | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="form-group" data-ng-switch-when="createdAt">\n <input class="form-control" type="text" name="attributeOr{{$index}}" value="" data-ng-model="condition.attribute" data-ng-blur="updateCondition(condition.id, \'attribute\', condition.attribute)" data-ng-class="{\'has-error\': forms.and.attributeAnd{{$index}}.$invalid}" required>\n <span data-ng-show="forms.and.attributeAnd{{$index}}.$invalid && forms.and.attributeAnd{{$index}}.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeCondition(condition.id)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automation.BusinessConditions.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add condition</i>\n </div>\n </div>\n </div>\n\n <!-- SMTP TAB -->\n <div class="tab-pane" id="tab_1_4">\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewAction()">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-people"></i>\n <span class="caption-subject">Meet <strong>all</strong> of the following conditions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="action in automation.BusinessActions">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group">\n <ui-select data-ng-model="action.condition" theme="bootstrap" on-select="updateAction(action.id, \'condition\', $item.key)" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="action.key as action in automations.actions | filter: $select.search">\n <div data-ng-bind="action.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-switch="action.condition">\n <div class="form-group" data-ng-switch-when="status">\n <ui-select data-ng-model="action.attribute" theme="bootstrap" on-select="updateAction(action.id, \'attribute\', $item.key)" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in getAttributesByCondition(action.condition) | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="form-group" data-ng-switch-when="createdAt">\n <input class="form-control" type="text" data-ng-model="action.attribute" data-ng-blur="updateAction(action.id, \'attribute\', action.attribute)" data-ng-class="{\'has-error\': forms.and.attributeAnd{{$index}}.$invalid}" required>\n </div>\n </div>\n <div class="col-md-4">\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeAction(action.id)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automation.BusinessActions.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add condition</i>\n </div>\n </div>\n\n </div>\n <!-- END SMTP TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/mail/automation/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/mail/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_NEW_AUTOMATION\' | translate}}" canexit="formValidation(forms.automation.$valid)">\n <form name="forms.automation" novalidate>\n <div class="row">\n <div class="col-md-12">\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.name.$invalid && forms.automation.$submitted}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input class="form-control" type="text" name="name" value="" data-ng-model="automations.name" required>\n <span data-ng-show="forms.automation.name.$invalid && forms.automation.name.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.description.$invalid && forms.automation.$submitted}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input class="form-control" type="text" name="description" value="" data-ng-model="automations.description">\n <span data-ng-show="forms.automation.description.$invalid && forms.automation.description.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewChoice(\'or\')">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-user"></i>\n <span class="caption-subject">Meet <strong>any</strong> of the following conditions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="automation in automations.or">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.conditionOr{{$index}}.$invalid && forms.automation.$submitted && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.or[$index].condition" name="conditionOr{{$index}}" theme="bootstrap" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="condition in automations.or[$index].conditions | filter: $select.search">\n <div data-ng-bind="condition.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.conditionOr{{$index}}.$invalid && forms.automation.conditionOr{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-3">\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.operatorOr{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.or[$index].operator" name="operatorOr{{$index}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="operator.key as operator in automations.or[$index].condition.operators | filter: $select.search">\n <div data-ng-bind="operator.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.operatorOr{{$index}}.$invalid && forms.automation.operatorOr{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-4" data-ng-switch="automations.or[$index].condition.input">\n <div class="form-group" data-ng-switch-when="ui-select" data-ng-class="{\'has-error\': forms.automation.attributeOr{{$index}}.$invalid && forms.automation.attributeOr{{$index}}.$error.required && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.or[$index].attribute" name="attributeOr{{$index}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in automations.or[$index].condition.attributes | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.attributeOr{{$index}}.$invalid && forms.automation.attributeOr{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-switch-when="number">\n <input class="form-control" type="text" min="0" name="attributeOr{{$index}}" value="" data-ng-model="automations.or[$index].attribute" required>\n <span data-ng-show="forms.automation.attributeOr{{$index}}.$invalid && forms.automation.attributeOr{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeChoice(\'or\', $index)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automations.or.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add condition</i>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewChoice(\'and\')">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-people"></i>\n <span class="caption-subject">Meet <strong>all</strong> of the following conditions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="automation in automations.and">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.conditionAnd{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.and[$index].condition" name="conditionAnd{{$index}}" theme="bootstrap" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="condition in automations.and[$index].conditions | filter: $select.search">\n <div data-ng-bind="condition.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.conditionAnd{{$index}}.$invalid && forms.automation.conditionAnd{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-3">\n <div class="form-group" data-ng-class="{\'has-error\': forms.automation.operatorAnd{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.and[$index].operator" name="operatorAnd{{$index}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="operator.key as operator in automations.and[$index].condition.operators | filter: $select.search">\n <div data-ng-bind="operator.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.operatorAnd{{$index}}.$invalid && forms.automation.operatorAnd{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-4" data-ng-switch="automations.and[$index].condition.input">\n <div class="form-group" data-ng-switch-when="ui-select" data-ng-class="{\'has-error\': forms.automation.attributeAnd{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.and[$index].attribute" name="attributeAnd{{$index}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in automations.and[$index].condition.attributes | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.automation.attributeAnd{{$index}}.$invalid && forms.automation.attributeAnd{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-switch-when="number">\n <input class="form-control" type="text" min="0" name="attributeAnd{{$index}}" value="" data-ng-model="automations.and[$index].attribute" data-ng-class="{\'has-error\': forms.automation.attributeAnd{{$index}}.$invalid}" required>\n <span data-ng-show="forms.automation.attributeAnd{{$index}}.$invalid && forms.automation.attributeAnd{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeChoice(\'and\', $index)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automations.and.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add condition</i>\n </div>\n </div>\n\n <div class="row">\n <div class="col-md-12">\n <a href="#" data-ng-click="addNewChoice(\'actions\')">\n <i class="icon-plus"></i>\n </a>\n <i class="icon-magic-wand"></i>\n <span class="caption-subject">Perform these actions:</a> </span>\n </div>\n </div>\n <div class="row" data-ng-repeat="automation in automations.actions">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-12">\n <hr>\n </div>\n </div>\n <div class="row">\n <div class="col-md-4">\n <div class="form-group" data-ng-class="{\'has-error\': forms.actions.conditionAction{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.actions[$index].condition" name="conditionAction{{$index}}" theme="bootstrap" required>\n <ui-select-match placeholder="-- Click to select condition. --">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="action in automations.actions[$index].actions | filter: $select.search">\n <div data-ng-bind="action.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.actions.conditionAction{{$index}}.$invalid && forms.actions.conditionAction{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-3" data-ng-switch="automations.actions[$index].condition.input">\n <div class="form-group" data-ng-switch-when="ui-select" data-ng-class="{\'has-error\': forms.actions.attributeAction{{$index}}.$invalid && forms.automation.$submitted}">\n <ui-select data-ng-model="automations.actions[$index].attribute" name="attributeAction{{$index}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="attribute.key as attribute in automations.actions[$index].condition.attributes | filter: $select.search">\n <div data-ng-bind="attribute.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.actions.attributeAction{{$index}}.$invalid && forms.actions.attributeAction{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-switch-when="number" data-ng-class="{\'has-error\': forms.actions.attributeAction{{$index}}.$invalid}">\n <input class="form-control" type="text" min="0" name="attributeAction{{$index}}" value="" data-ng-model="automations.actions[$index].attribute" required>\n <span data-ng-show="forms.actions.attributeAction{{$index}}.$invalid && forms.actions.attributeAction{{$index}}.$error.required && forms.automation.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="col-md-4">\n </div>\n <div class="col-md-1">\n <a href="#" data-ng-click="removeChoice(\'actions\', $index)">\n <i class="icon-close"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="row" data-ng-hide="automations.actions.length">\n <div class="col-md-12 text-center">\n <hr>\n <i>Add action</i>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </div>\n </div>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/mail/inbox/compose/compose.html",'<form class="inbox-compose form-horizontal" id="fileupload" enctype="multipart/form-data" data-ng-init="getMessage()">\n <pre>\n {{mailAccounts | json}}\n </pre>\n <div class="inbox-compose-btn">\n <button data-ng-click="sendMailMessage()" class="btn blue"><i class="fa fa-check"></i>{{\'APPLICATION_SEND\' | translate}}</button>\n <button class="btn inbox-discard-btn" data-ng-click="discard()">{{\'APPLICATION_DISCARD\' | translate}}</button>\n <button class="btn" data-ng-click="saveMessageAsDraft()">{{\'APPLICATION_SAVE_AS_DRAFT\' | translate}}</button>\n <span class="message-info"><i>{{form.message}}</i></span>\n </div>\n <div class="inbox-form-group">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}: </label>\n <div class="controls">\n <ui-select data-ng-model="form.body.from" theme="bootstrap">\n <ui-select-match placeholder="Select an account">{{$select.selected.name}} <{{$select.selected.address}}></ui-select-match>\n <ui-select-choices repeat="account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n <small ng-bind-html="account.address | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="inbox-form-group mail-to">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}: </label>\n <div class="controls controls-to">\n <input type="text" class="form-control" name="to" data-ng-model="form.body.to.address">\n <span class="inbox-cc-bcc">\n <span class="inbox-cc" data-ng-show="!flagCC" data-ng-click="switchFlagCC()">\n Cc </span>\n <span class="inbox-bcc" data-ng-show="!flagBCC" data-ng-click="switchFlagBCC()">\n {{\'APPLICATION_BCC\' | translate}} </span>\n </span>\n </div>\n </div>\n <div class="inbox-form-group input-cc" data-ng-class="{\'display-hide\': !flagCC}">\n <a href="javascript:;" class="close" data-ng-click="switchFlagCC()">\n </a>\n <label class="control-label">Cc:</label>\n <div class="controls controls-cc">\n <input type="text" name="cc" class="form-control" data-ng-model="form.body.cc.address">\n </div>\n </div>\n <div class="inbox-form-group input-bcc" data-ng-class="{\'display-hide\': !flagBCC}">\n <a href="javascript:;" class="close" data-ng-click="switchFlagBCC()">\n </a>\n <label class="control-label">{{\'APPLICATION_BCC\' | translate}}:</label>\n <div class="controls controls-bcc">\n <input type="text" name="bcc" class="form-control" data-ng-model="form.body.bcc.address">\n </div>\n </div>\n <div class="inbox-form-group">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}: </label>\n <div class="controls">\n <input type="text" class="form-control" name="subject" data-ng-model="form.subject">\n </div>\n </div>\n <div class="inbox-form-group">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="form.html"></div>\n </div>\n <div class="inbox-compose-btn">\n <button data-ng-click="sendMailMessage()" class="btn blue"><i class="fa fa-check"></i>{{\'APPLICATION_SEND\' | translate}}</button>\n <button class="btn" data-ng-click="discard()">{{\'APPLICATION_DISCARD\' | translate}}</button>\n <button class="btn" data-ng-click="saveMessageAsDraft()">{{\'APPLICATION_DRAFT\' | translate}}</button>\n </div>\n</form>\n'),a.put("app/mail/inbox/inbox.html",'<!-- BEGIN PAGE CONTENT-->\n<!-- <div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAILS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="/mail/inbox/incoming">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div> -->\n<!-- END PAGE CONTENT-->\n<div class="row inbox">\n <div class="col-md-12" ui-view>\n </div>\n</div>\n'),a.put("app/mail/inbox/incoming/incoming.html",'<div class="row inbox">\n <div class="col-md-12">\n <div class="inbox-header">\n <h1 class="pull-left">Inbox</h1>\n <form class="form-inline pull-right" action="#">\n <!-- <div class="input-group input-medium">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search">\n <span class="input-group-btn">\n <button type="submit" class="btn green"><i class="fa fa-search"></i></button>\n </span>\n </div> -->\n </form>\n </div>\n <div class="inbox-content">\n <table class="table table-striped table-advance table-hover" st-table="displayedMailRooms" st-pipe="initList">\n <thead>\n <tr>\n <th colspan="9">\n <input type="checkbox" ng-change="check(null, checked)" checklist-model checklist-value="id">\n <div class="btn-group">\n <a data-ng-href="/mail/inbox/compose" class="btn btn-sm blue">\n <i class="icon-plus"></i> {{\'APPLICATION_NEW_MESSAGE\' | translate}}\n </a>\n </div>\n <div class="btn-group" data-ng-show="mailRooms.checked.length">\n <a href="#" class="btn btn-sm red" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{\'APPLICATION_DELETE\' | translate}}\n </a>\n </div>\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </th>\n <!-- <th class="pagination-control" colspan="7"> -->\n <!-- <span class="pagination-info">\n 1-30 of 789 </span>\n <a class="btn btn-sm blue">\n <i class="fa fa-angle-left"></i>\n </a>\n <a class="btn btn-sm blue">\n <i class="fa fa-angle-right"></i>\n </a> -->\n <!-- </th> -->\n </tr>\n </thead>\n <tbody>\n <tr data-messageid="1" data-ng-repeat="mailRoom in displayedMailRooms" class="animate-repeat">\n <td class="inbox-small-cells">\n <input type="checkbox" checklist-model="mailRooms.checked" checklist-value="mailRoom.id">\n </td>\n <td class="inbox-small-cells" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n #{{mailRoom.id}}\n </td>\n <td class="view-message hidden-xs" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.subject}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.from}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.MailAccount.description ? mailRoom.MailAccount.description : mailRoom.MailAccount.name || \'APPLICATION_UNKNOWN\' | translate | uppercase}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n <span class="badge badge-success badge-roundless" data-ng-show="mailRoom.User.fullname"> {{mailRoom.User.fullname}} </span>\n <span class="badge badge-default badge-roundless" data-ng-hide="mailRoom.User.fullname"> UNASSIGNED </span>\n </td>\n <td class="view-message" data-ng-switch="mailRoom.status" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n <span class="badge badge-default" data-ng-class="{\n \'badge-danger\': mailRoom.status == \'NEW\',\n \'badge-warning\': mailRoom.status == \'OPEN\',\n \'badge-info\': mailRoom.status == \'PENDING\',\n \'badge-success\': mailRoom.status == \'CLOSED\'}"> {{mailRoom.status | uppercase}} </span>\n </td>\n <td class="view-message inbox-small-cells">\n <i data-ng-show="mailRoom.attachment" class="fa fa-paperclip"></i>\n </td>\n <td class="view-message pull-right">\n <time is="relative-time" datetime="{{mailRoom.updatedAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailRooms.length">\n <td colspan="9" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AVAILABLE_CONVERSATIONS\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.mailRoomsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n</div>\n'),a.put("app/mail/inbox/room/room.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content" data-ng-init="initRoomView()">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption" data-ng-show="mailRoom">\n <i class="icon-bar-chart font-green-sharp hide"></i>\n <span class="badge badge-default" data-ng-class="{\'badge-error\': mailRoom.status == \'NEW\',\n \'badge-warning\': mailRoom.status == \'OPEN\',\n \'badge-success\': mailRoom.status == \'CLOSED\'}"> {{mailRoom.status | uppercase}} </span> -\n <span class="caption-subject font-green-sharp bold uppercase">{{mailRoom.subject}}</span>\n </div>\n <div class="actions" data-ng-show="mailRoom">\n <div class="btn-group" data-ng-show="Auth.isAdmin()">\n <a class="btn grey-salsa btn-circle btn-sm" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n {{ \'APPLICATION_ASSIGN\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li data-ng-repeat="agent in agents">\n <a href="#" data-ng-click="assignAgent(agent.id)">\n {{agent.fullname}} <span class="badge badge-default"> {{agent.fullname | uppercase | limitTo : 1}} </span>\n </a>\n </li>\n </ul>\n </div>\n <div class="btn-group">\n <a class="btn green-haze btn-circle btn-sm" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" data-ng-click="updateStatus(\'CLOSED\')">\n {{ \'APPLICATION_STORE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="mailRoom" data-ng-class="{\'col-md-7 col-sm-7\': mailRoom}">\n <div class="scroller" id="mailMessages" style="height: 725px; overflow-y: scroll; width: auto;" data-always-visible="1" data-rail-visible1="1" data-initialized="1">\n <ul class="chats">\n <li data-ng-class="{\'in\': mailMessage.status == \'RECEIVED\', \'out\': mailMessage.status == \'SENT\' || mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\'}" data-ng-repeat="mailMessage in mailRoom.MailMessages | orderBy:\'createdAt\'">\n <img class="avatar" alt="" data-ng-src="api/users/avatar/{{getCurrentUser().userpic && mailMessage.status === \'SENT\' ? getCurrentUser().userpic : \'unknown_avatar\'}}">\n <div class="message ">\n <!-- <span class="arrow"></span> -->\n <span class="bold">From: </span>\n <span>{{mailMessage.from}}</span>\n <br>\n <span class="bold">To: </span>\n <span>{{mailMessage.to}} </span>\n <br>\n <span data-ng-if="mailMessage.cc" class="bold">Cc: </span>\n <span data-ng-if="mailMessage.cc">{{mailMessage.cc}} </span>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right">\n <a data-ng-click="(mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\') && retry(mailMessage.id)" href="#" class="btn default btn-xs" data-ng-class="{\'green-stripe\': mailMessage.status == \'SENT\' || mailMessage.status == \'RECEIVED\', \'blue-stripe\': mailMessage.status == \'SENDING\', \'red-stripe\': mailMessage.status == \'FAILED\'}"> {{mailMessage.status | uppercase}}\n <i data-ng-class="{\'fa fa-check\': mailMessage.status == \'SENT\' || mailMessage.status == \'RECEIVED\', \'fa fa-warning\': mailMessage.status == \'SENDING\', \'fa fa-times\': mailMessage.status == \'FAILED\'}"></i>\n </a>\n </span>\n <i class="fa fa-calendar"></i><time is="relative-time" datetime="{{mailMessage.updatedAt}}">April 1, 2014</time>\n </span>\n <hr>\n <span class="body text-left" data-ng-bind-html="mailMessage.html || mailMessage.text" style="white-space: pre-wrap;"></span>\n <!-- <br> -->\n <hr data-ng-if="mailMessage.MailAttachments.length">\n <div data-ng-repeat="mailAttachment in mailMessage.MailAttachments">\n <strong>{{mailAttachment.fileName}}</strong>\n <span>\n {{mailAttachment.length}}B </span>\n <a target="_self" download="{{mailAttachment.fileName}}" href="api/mail/attachments/{{mailAttachment.id}}">\n {{ \'APPLICATION_DOWNLOAD\' | translate }}\n </a>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="{\'col-md-5 col-sm-5\': mailRoom, \'col-md-12 col-sm-12\': !mailRoom}">\n <form name="forms.compose" data-ng-submit="forms.compose.$valid && sendMail()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="{address: mailAccount.MailServerOut.username, name: mailAccount.name, id: mailAccount.id} as mailAccount in mailAccounts | filter: $select.search">\n <div data-ng-bind-html="mailAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="mailAccount.MailServerOut.username | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- MAIL TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <ui-select tagging tagging-label multiple data-ng-model="form.sto" theme="bootstrap" name="to">\n <ui-select-match placeholder="To...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="to in form.to | filter:$select.search">\n {{to}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n <!-- START CC -->\n <div class="form-group">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Cc:</label>\n </div>\n <div class="col-md-11">\n <ui-select tagging tagging-label="" multiple data-ng-model="form.scc" theme="bootstrap" name="cc" ng-disabled="disabled">\n <ui-select-match placeholder="Cc...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="cc in form.cc">\n {{cc}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END CC -->\n\n <!-- START SUBJECT -->\n <div data-ng-hide="mailRoom" class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Subject:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="Subject..." rows="8" data-ng-model="form.subject">\n <span data-ng-show="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.text.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="form.html" name="html"></div>\n <!-- <textarea class="form-control todo-taskbody-taskdesc" rows="8" data-ng-model="form.text" name="text" style="resize: none;"></textarea> -->\n <span data-ng-show="forms.compose.text.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <!-- START ATTACH -->\n <div class="form-group">\n <div class="col-md-6">\n <input type="file" nv-file-select uploader="uploader" name="file">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class="col-md-6">\n <div class="form-actions right todo-form-actions">\n <button class="btn btn-circle btn-sm green-haze">{{ \'APPLICATION_SEND\' | translate }}</button>\n <input type="button" name="cancel" value="{{ \'APPLICATION_CANCEL\' | translate }}" class="btn btn-circle btn-sm btn-default" data-ng-click="cancel()">\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n'),a.put("app/mail/inbox/room/room.retry.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" class="modal-title">{{modal.title | translate}}</h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text">{{modal.text | translate}}</p>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" class="btn">{{button.text | translate}}</button>\n</div>\n'),a.put("app/mail/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/square/projects">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mailQueues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/mail/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMailQueues([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Name\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="mail_queues.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMailQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.queuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queueByPage in queuesByPage | filter: $select.search">\n <div ng-bind-html="queueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="timeout">{{ \'APPLICATION_AGENT_TIMEOUT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="queue in displayedMailQueues">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mailQueues.checked" checklist-value="queue.id"></td>\n <td>{{queue.name}}</td>\n <td>{{queue.description}}</td>\n <td>{{queue.strategy | uppercase}}</td>\n <td>{{queue.timeout}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/mail/queues/view/{{queue.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(queue.name, queue.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailQueues.length">\n <td colspan="6" class="text-center">\n <i>No available queues</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="67" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.queuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div style="width: 50%; margin: 0 auto;">\n <div class="col-md-9" id="multi-select-team" data-ng-show="teams.length"></div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/mail/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.mail.queues.view.settings\')}">\n <a data-ng-href="/mail/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.mail.queues.view.agents\')}">\n <a data-ng-href="/mail/queues/view/{{queue.id}}/agents">\n <i class="icon-users"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMailQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Agent Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/mail/inbox/compose/compose.html",'<form class="inbox-compose form-horizontal" id="fileupload" enctype="multipart/form-data" data-ng-init="getMessage()">\n <pre>\n {{mailAccounts | json}}\n </pre>\n <div class="inbox-compose-btn">\n <button data-ng-click="sendMailMessage()" class="btn blue"><i class="fa fa-check"></i>{{\'APPLICATION_SEND\' | translate}}</button>\n <button class="btn inbox-discard-btn" data-ng-click="discard()">{{\'APPLICATION_DISCARD\' | translate}}</button>\n <button class="btn" data-ng-click="saveMessageAsDraft()">{{\'APPLICATION_SAVE_AS_DRAFT\' | translate}}</button>\n <span class="message-info"><i>{{form.message}}</i></span>\n </div>\n <div class="inbox-form-group">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}: </label>\n <div class="controls">\n <ui-select data-ng-model="form.body.from" theme="bootstrap">\n <ui-select-match placeholder="Select an account">{{$select.selected.name}} <{{$select.selected.address}}></ui-select-match>\n <ui-select-choices repeat="account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n <small ng-bind-html="account.address | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="inbox-form-group mail-to">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}: </label>\n <div class="controls controls-to">\n <input type="text" class="form-control" name="to" data-ng-model="form.body.to.address">\n <span class="inbox-cc-bcc">\n <span class="inbox-cc" data-ng-show="!flagCC" data-ng-click="switchFlagCC()">\n Cc </span>\n <span class="inbox-bcc" data-ng-show="!flagBCC" data-ng-click="switchFlagBCC()">\n {{\'APPLICATION_BCC\' | translate}} </span>\n </span>\n </div>\n </div>\n <div class="inbox-form-group input-cc" data-ng-class="{\'display-hide\': !flagCC}">\n <a href="javascript:;" class="close" data-ng-click="switchFlagCC()">\n </a>\n <label class="control-label">Cc:</label>\n <div class="controls controls-cc">\n <input type="text" name="cc" class="form-control" data-ng-model="form.body.cc.address">\n </div>\n </div>\n <div class="inbox-form-group input-bcc" data-ng-class="{\'display-hide\': !flagBCC}">\n <a href="javascript:;" class="close" data-ng-click="switchFlagBCC()">\n </a>\n <label class="control-label">{{\'APPLICATION_BCC\' | translate}}:</label>\n <div class="controls controls-bcc">\n <input type="text" name="bcc" class="form-control" data-ng-model="form.body.bcc.address">\n </div>\n </div>\n <div class="inbox-form-group">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}: </label>\n <div class="controls">\n <input type="text" class="form-control" name="subject" data-ng-model="form.subject">\n </div>\n </div>\n <div class="inbox-form-group">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="form.html"></div>\n </div>\n <div class="inbox-compose-btn">\n <button data-ng-click="sendMailMessage()" class="btn blue"><i class="fa fa-check"></i>{{\'APPLICATION_SEND\' | translate}}</button>\n <button class="btn" data-ng-click="discard()">{{\'APPLICATION_DISCARD\' | translate}}</button>\n <button class="btn" data-ng-click="saveMessageAsDraft()">{{\'APPLICATION_DRAFT\' | translate}}</button>\n </div>\n</form>\n'),a.put("app/mail/inbox/incoming/incoming.html",'<div class="row inbox">\n <div class="col-md-12">\n <div class="inbox-header">\n <h1 class="pull-left">Inbox</h1>\n <form class="form-inline pull-right" action="#">\n <!-- <div class="input-group input-medium">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search">\n <span class="input-group-btn">\n <button type="submit" class="btn green"><i class="fa fa-search"></i></button>\n </span>\n </div> -->\n </form>\n </div>\n <div class="inbox-content">\n <table class="table table-striped table-advance table-hover" st-table="displayedMailRooms" st-pipe="initList">\n <thead>\n <tr>\n <th colspan="9">\n <input type="checkbox" ng-change="check(null, checked)" checklist-model checklist-value="id">\n <div class="btn-group">\n <a data-ng-href="/mail/inbox/compose" class="btn btn-sm blue">\n <i class="icon-plus"></i> {{\'APPLICATION_NEW_MESSAGE\' | translate}}\n </a>\n </div>\n <div class="btn-group" data-ng-show="mailRooms.checked.length">\n <a href="#" class="btn btn-sm red" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{\'APPLICATION_DELETE\' | translate}}\n </a>\n </div>\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </th>\n <!-- <th class="pagination-control" colspan="7"> -->\n <!-- <span class="pagination-info">\n 1-30 of 789 </span>\n <a class="btn btn-sm blue">\n <i class="fa fa-angle-left"></i>\n </a>\n <a class="btn btn-sm blue">\n <i class="fa fa-angle-right"></i>\n </a> -->\n <!-- </th> -->\n </tr>\n </thead>\n <tbody>\n <tr data-messageid="1" data-ng-repeat="mailRoom in displayedMailRooms" class="animate-repeat">\n <td class="inbox-small-cells">\n <input type="checkbox" checklist-model="mailRooms.checked" checklist-value="mailRoom.id">\n </td>\n <td class="inbox-small-cells" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n #{{mailRoom.id}}\n </td>\n <td class="view-message hidden-xs" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.subject}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.from}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n {{mailRoom.MailAccount.description ? mailRoom.MailAccount.description : mailRoom.MailAccount.name || \'APPLICATION_UNKNOWN\' | translate | uppercase}}\n </td>\n <td class="view-message" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n <span class="badge badge-success badge-roundless" data-ng-show="mailRoom.User.fullname"> {{mailRoom.User.fullname}} </span>\n <span class="badge badge-default badge-roundless" data-ng-hide="mailRoom.User.fullname"> UNASSIGNED </span>\n </td>\n <td class="view-message" data-ng-switch="mailRoom.status" data-ng-click="go(\'/mail/inbox/room/\' + mailRoom.id, mailRoom.id, \'OPEN\')">\n <span class="badge badge-default" data-ng-class="{\n \'badge-danger\': mailRoom.status == \'NEW\',\n \'badge-warning\': mailRoom.status == \'OPEN\',\n \'badge-info\': mailRoom.status == \'PENDING\',\n \'badge-success\': mailRoom.status == \'CLOSED\'}"> {{mailRoom.status | uppercase}} </span>\n </td>\n <td class="view-message inbox-small-cells">\n <i data-ng-show="mailRoom.attachment" class="fa fa-paperclip"></i>\n </td>\n <td class="view-message pull-right">\n <time is="relative-time" datetime="{{mailRoom.updatedAt}}">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailRooms.length">\n <td colspan="9" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AVAILABLE_CONVERSATIONS\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="9" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.mailRoomsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n</div>\n'),a.put("app/mail/inbox/room/room.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content" data-ng-init="initRoomView()">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption" data-ng-show="mailRoom">\n <i class="icon-bar-chart font-green-sharp hide"></i>\n <span class="badge badge-default" data-ng-class="{\'badge-error\': mailRoom.status == \'NEW\',\n \'badge-warning\': mailRoom.status == \'OPEN\',\n \'badge-success\': mailRoom.status == \'CLOSED\'}"> {{mailRoom.status | uppercase}} </span> -\n <span class="caption-subject font-green-sharp bold uppercase">{{mailRoom.subject}}</span>\n </div>\n <div class="actions" data-ng-show="mailRoom">\n <div class="btn-group" data-ng-show="Auth.isAdmin()">\n <a class="btn grey-salsa btn-circle btn-sm" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n {{ \'APPLICATION_ASSIGN\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li data-ng-repeat="agent in agents">\n <a href="#" data-ng-click="assignAgent(agent.id)">\n {{agent.fullname}} <span class="badge badge-default"> {{agent.fullname | uppercase | limitTo : 1}} </span>\n </a>\n </li>\n </ul>\n </div>\n <div class="btn-group">\n <a class="btn green-haze btn-circle btn-sm" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" data-ng-click="updateStatus(\'CLOSED\')">\n {{ \'APPLICATION_STORE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="mailRoom" data-ng-class="{\'col-md-7 col-sm-7\': mailRoom}">\n <div class="scroller" id="mailMessages" style="height: 725px; overflow-y: scroll; width: auto;" data-always-visible="1" data-rail-visible1="1" data-initialized="1">\n <ul class="chats">\n <li data-ng-class="{\'in\': mailMessage.status == \'RECEIVED\', \'out\': mailMessage.status == \'SENT\' || mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\'}" data-ng-repeat="mailMessage in mailRoom.MailMessages | orderBy:\'createdAt\'">\n <img class="avatar" alt="" data-ng-src="api/users/avatar/{{getCurrentUser().userpic && mailMessage.status === \'SENT\' ? getCurrentUser().userpic : \'unknown_avatar\'}}">\n <div class="message ">\n <!-- <span class="arrow"></span> -->\n <span class="bold">From: </span>\n <span>{{mailMessage.from}}</span>\n <br>\n <span class="bold">To: </span>\n <span>{{mailMessage.to}} </span>\n <br>\n <span data-ng-if="mailMessage.cc" class="bold">Cc: </span>\n <span data-ng-if="mailMessage.cc">{{mailMessage.cc}} </span>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right">\n <a data-ng-click="(mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\') && retry(mailMessage.id)" href="#" class="btn default btn-xs" data-ng-class="{\'green-stripe\': mailMessage.status == \'SENT\' || mailMessage.status == \'RECEIVED\', \'blue-stripe\': mailMessage.status == \'SENDING\', \'red-stripe\': mailMessage.status == \'FAILED\'}"> {{mailMessage.status | uppercase}}\n <i data-ng-class="{\'fa fa-check\': mailMessage.status == \'SENT\' || mailMessage.status == \'RECEIVED\', \'fa fa-warning\': mailMessage.status == \'SENDING\', \'fa fa-times\': mailMessage.status == \'FAILED\'}"></i>\n </a>\n </span>\n <i class="fa fa-calendar"></i><time is="relative-time" datetime="{{mailMessage.updatedAt}}">April 1, 2014</time>\n </span>\n <hr>\n <span class="body text-left" data-ng-bind-html="mailMessage.html || mailMessage.text" style="white-space: pre-wrap;"></span>\n <!-- <br> -->\n <hr data-ng-if="mailMessage.MailAttachments.length">\n <div data-ng-repeat="mailAttachment in mailMessage.MailAttachments">\n <strong>{{mailAttachment.fileName}}</strong>\n <span>\n {{mailAttachment.length}}B </span>\n <a target="_self" download="{{mailAttachment.fileName}}" href="api/mail/attachments/{{mailAttachment.id}}">\n {{ \'APPLICATION_DOWNLOAD\' | translate }}\n </a>\n </div>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="{\'col-md-5 col-sm-5\': mailRoom, \'col-md-12 col-sm-12\': !mailRoom}">\n <form name="forms.compose" data-ng-submit="forms.compose.$valid && sendMail()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="{address: mailAccount.MailServerOut.username, name: mailAccount.name, id: mailAccount.id} as mailAccount in mailAccounts | filter: $select.search">\n <div data-ng-bind-html="mailAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="mailAccount.MailServerOut.username | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- MAIL TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <ui-select tagging tagging-label multiple data-ng-model="form.sto" theme="bootstrap" name="to">\n <ui-select-match placeholder="To...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="to in form.to | filter:$select.search">\n {{to}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n <!-- START CC -->\n <div class="form-group">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Cc:</label>\n </div>\n <div class="col-md-11">\n <ui-select tagging tagging-label="" multiple data-ng-model="form.scc" theme="bootstrap" name="cc" ng-disabled="disabled">\n <ui-select-match placeholder="Cc...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="cc in form.cc">\n {{cc}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END CC -->\n\n <!-- START SUBJECT -->\n <div data-ng-hide="mailRoom" class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Subject:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="Subject..." rows="8" data-ng-model="form.subject">\n <span data-ng-show="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.text.$invalid && forms.compose.$submitted}">\n <div class="col-md-12">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="form.html" name="html"></div>\n <!-- <textarea class="form-control todo-taskbody-taskdesc" rows="8" data-ng-model="form.text" name="text" style="resize: none;"></textarea> -->\n <span data-ng-show="forms.compose.text.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <!-- START ATTACH -->\n <div class="form-group">\n <div class="col-md-6">\n <input type="file" nv-file-select uploader="uploader" name="file">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class="col-md-6">\n <div class="form-actions right todo-form-actions">\n <button class="btn btn-circle btn-sm green-haze">{{ \'APPLICATION_SEND\' | translate }}</button>\n <input type="button" name="cancel" value="{{ \'APPLICATION_CANCEL\' | translate }}" class="btn btn-circle btn-sm btn-default" data-ng-click="cancel()">\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n'),a.put("app/mail/inbox/room/room.retry.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" class="modal-title">{{modal.title | translate}}</h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text">{{modal.text | translate}}</p>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" class="btn">{{button.text | translate}}</button>\n</div>\n'),a.put("app/mail/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/square/projects">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mailQueues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/mail/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMailQueues([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Name\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="mail_queues.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMailQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.queuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queueByPage in queuesByPage | filter: $select.search">\n <div ng-bind-html="queueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="timeout">{{ \'APPLICATION_AGENT_TIMEOUT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="queue in displayedMailQueues">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mailQueues.checked" checklist-value="queue.id"></td>\n <td>{{queue.name}}</td>\n <td>{{queue.description}}</td>\n <td>{{queue.strategy | uppercase}}</td>\n <td>{{queue.timeout}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/mail/queues/view/{{queue.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(queue.name, queue.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMailQueues.length">\n <td colspan="6" class="text-center">\n <i>No available queues</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="67" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.queuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div style="width: 50%; margin: 0 auto;">\n <div class="col-md-9" id="multi-select-team" data-ng-show="teams.length"></div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/mail/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.mail.queues.view.settings\')}">\n <a data-ng-href="/mail/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.mail.queues.view.agents\')}">\n <a data-ng-href="/mail/queues/view/{{queue.id}}/agents">\n <i class="icon-users"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMailQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Agent Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/mail/queue/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAILS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" data-ng-submit="forms.general.$valid && createItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'rrmemory\',\'beepall\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CREATE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{ \'APPLICATION_CONFIRM\' | translate }}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/mail/realtime/view/agent/agent.queues.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-tree-view class="grid"></div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/realtime/view/agent/agent.timeline.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedAgents" st-safe-src="agents" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="12">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid" reverse class="input-small">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue" class="input-medium">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername" class="input-medium">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="subject" class="input-small">{{ \'APPLICATION_SUBJECT\' | translate }}</th>\n <th st-sort="from" class="input-small">{{ \'APPLICATION_FROM\' | translate }}</th>\n <th st-sort="accountname" class="input-small">{{ \'APPLICATION_TO\' | translate }}</th>\n <th st-sort="agentcalledAt" st-sort-default="reverse">{{ \'APPLICATION_CALLED_AT\' | translate }}</th>\n <th st-sort="agentconnectAt">{{ \'APPLICATION_CONNECTED_AT\' | translate }}</th>\n <th st-sort="agentringnoanswerAt">{{ \'APPLICATION_UNASWER_AT\' | translate }}</th>\n <th st-sort="reason">{{ \'APPLICATION_REASON\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="agent in displayedAgents">\n <td>\n <span>\n <i data-ng-class="{\'icon-user font-yellow\': agent.lastevent === \'called\',\n \'icon-user-following font-green\': agent.lastevent === \'agent\',\n \'icon-user-unfollow font-red\': agent.lastevent === \'timeout\',\n \'icon-user-unfollow font-blue\': agent.lastevent === \'answered_elsewhere\'}"></i>\n </span>\n </td>\n <td>{{agent.uniqueid}}</td>\n <td>{{agent.mailqueuename}}</td>\n <td>{{agent.fullname}}</td>\n <td>{{agent.subject}}</td>\n <td>{{agent.from}}</td>\n <td>{{agent.accountname}}</td>\n <td>\n <time is="relative-time" datetime="{{agent.agentcalledAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{agent.agentconnectedAt}}" data-ng-show="agent.agentconnectedAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{agent.agentringnoanswerAt}}" data-ng-show="agent.agentringnoanswerAt">\n April 1, 2014\n </time>\n </td>\n <td>\n {{agent.reason | uppercase}}\n </td>\n </tr>\n <tr data-ng-hide="displayedAgents.length">\n <td colspan="11" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" data-ng-model="filters.uniqueid" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="from" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_SUBJECT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="from" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FROM\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="accountname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_TO\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="7"></td>\n </tr>\n <tr>\n <td colspan="12" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/realtime/view/session/session.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initMails()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedMails" st-safe-src="sessions" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="12">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.sessionsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="sessionByPage in sessionsByPage | filter: $select.search">\n <div ng-bind-html="sessionByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid" reverse class="input-small">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue" class="input-medium">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername" class="input-medium">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="subject" class="input-small">{{ \'APPLICATION_SUBJECT\' | translate }}</th>\n <th st-sort="from" class="input-small">{{ \'APPLICATION_FROM\' | translate }}</th>\n <th st-sort="accountname" class="input-small">{{ \'APPLICATION_TO\' | translate }}</th>\n <th st-sort="sessioncalledAt" st-sort-default="reverse">{{ \'APPLICATION_JOIN_AT\' | translate }}</th>\n <th st-sort="sessionconnectAt">{{ \'APPLICATION_LEAVE_AT\' | translate }}</th>\n <th st-sort="sessionringnoanswerAt">{{ \'APPLICATION_UNMANAGED_AT\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="session in displayedMails">\n <td>\n <span>\n <i data-ng-class="{\'icon-user font-yellow\': session.mailjoinAt && !session.mailleaveAt,\n \'icon-user-following font-green\': session.fullname,\n \'icon-user-unfollow font-red\': session.mailunmanagedAt}"></i>\n </span>\n </td>\n <td>{{session.uniqueid}}</td>\n <td>{{session.mailqueuename}}</td>\n <td>{{session.fullname}}</td>\n <td>{{session.subject}}</td>\n <td>{{session.from}}</td>\n <td>{{session.accountname}}</td>\n <td>\n <time is="relative-time" datetime="{{session.mailjoinAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.mailleaveAt}}" data-ng-show="session.mailleaveAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{session.mailunmanagedAt}}" data-ng-show="session.mailunmanagedAt">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedMails.length">\n <td colspan="11" style="text-align:center;">\n <i>No sessions available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" data-ng-model="filters.uniqueid" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="from" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_SUBJECT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="from" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FROM\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="accountname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_TO\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="7"></td>\n </tr>\n <tr>\n <td colspan="12" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.sessionsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/mail/realtime/list">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <!-- <a class="navbar-brand" ui-sref="home">Brand</a> -->\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'">\n <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_AGENTS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'agents\'></tree>\n </li>\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_SESSIONS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'sessions\'></tree>\n </li>\n </ul>\n <!-- <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_QUEUES\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'queues\'></tree>\n </li>\n </ul> -->\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/statistics/statistics.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/agent">{{ \'APPLICATION_MAILS\' | translate }}</a>\n </li>\n <li>\n <a href="#">{{agent.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/statistics.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.mail.statistics.summary\')}">\n <a data-ng-href="/mail/statistics/summary">\n <i class="icon-bar-chart"></i>\n {{ \'APPLICATION_SUMMARY\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/mail/statistics/statistics.summary.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONVERSATIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_INBOX\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ directory:\'INBOX\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_SENT\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ directory:\'SENT\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_OUTGOING\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ directory:\'NOT SENT\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_DRAFT\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ directory:\'DRAFT\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_TRASH\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ directory:\'TRASH\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[\n (mailMessages | filter:{ directory:\'INBOX\' }).length,\n (mailMessages | filter:{ directory:\'SENT\' }).length,\n (mailMessages | filter:{ directory:\'NOT SENT\' }).length,\n (mailMessages | filter:{ directory:\'DRAFT\' }).length,\n (mailMessages | filter:{ directory:\'TRASH\' }).length]" labels="[\n $translate.instant(\'APPLICATION_INBOX\'),\n $translate.instant(\'APPLICATION_SENT\'),\n $translate.instant(\'APPLICATION_OUTGOING\'),\n $translate.instant(\'APPLICATION_DRAFT\'),\n $translate.instant(\'APPLICATION_TRASH\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OTHER_INFO\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet sale-summary">\n <div class="portlet-body">\n <ul class="list-unstyled">\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_READ\' | translate }} <i class="fa fa-img-up"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ read:\'true\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_UNREAD\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ read:\'false\' }).length }} </span>\n </li>\n <li>\n <span class="sale-info">\n {{ \'APPLICATION_FAVORITE\' | translate }} <i class="fa fa-img-down"></i>\n </span>\n <span class="sale-num">\n {{ (mailMessages | filter:{ favorite:\'true\' }).length }} </span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <canvas class="chart chart-pie" data="[\n (mailMessages | filter:{ read:\'true\' }).length,\n (mailMessages | filter:{ read:\'false\' }).length]" labels="[\n $translate.instant(\'APPLICATION_READ\'),\n $translate.instant(\'APPLICATION_UNREAD\')]" legend="true"></canvas>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n'),a.put("app/mail/timeline/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-list"></i>\n <a href="/mail/timeline/list"> Timeline</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initList()">\n <div class="col-md-12">\n <h3 class="page-title">\n Timeline\n </h3>\n <!-- END PAGE HEADER-->\n <!-- BEGIN PAGE CONTENT-->\n <div class="timeline">\n <!-- TIMELINE ITEM -->\n <div class="timeline-item" data-ng-repeat="event in events | orderBy:\'-id\'">\n <div class="timeline-badge">\n <div class="timeline-icon">\n <i class="icon-envelope font-green-haze"></i>\n </div>\n </div>\n <div class="timeline-body">\n <div class="timeline-body-arrow"></div>\n <div class="timeline-body-head">\n <div class="timeline-body-head-caption">\n <span class="timeline-body-alerttitle" data-ng-class="{\'font-red\': event.name == \'INCOMING\', \'font-blue\': event.name == \'ATTEMPT\', \'font-green\': event.name == \'TAKEN\'}">{{event.name | uppercase}}</span>\n <span class="timeline-body-time font-grey-cascade">at {{event.createdAt | date:\'yyyy-MM-dd HH:mm:ss\'}}</span>\n </div>\n <div class="timeline-body-head-actions">\n <div class="btn-group">\n <a class="btn btn-circle btn-sm dropdown-toggle btn-success" href="/mail/inbox/room/{{event.MailRoomId}}">Go To Mail</a>\n </div>\n </div>\n </div>\n <div class="timeline-body-content">\n <span class="font-grey-cascade" data-ng-show="event.User">\n {{event.MailRoom.subject ? event.MailRoom.subject + \' - \' : \'\'}}<a href="/agents/view/{{event.UserId}}/account">{{event.User.fullname}}</a>\n </span>\n </div>\n </div>\n </div>\n <!-- END TIMELINE ITEM -->\n </div>\n <!-- END PAGE CONTENT-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/main/chooseContact.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.choose" novalidate>\n <div class="form-group" data-ng-class="{\'has-error\': forms.choose.contactId.$invalid && forms.choose.$submitted}">\n <label class="control-label">{{\'APPLICATION_CONTACT\' | translate}}</label>\n <ui-select data-ng-model="item.contactId" theme="bootstrap" name="contactId" ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_CONTACT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="contact.id as contact in contacts | filter: $select.search">\n <div ng-bind-html="contact.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.choose.CompanyId.$invalid && forms.choose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.tag.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/main.html",'<!-- BEGIN HEADER -->\n<div data-ng-include="\'components/header/header.html\'" data-ng-controller="HeaderController" class="page-header navbar navbar-fixed-top">\n</div>\n<!-- END HEADER -->\n\n<div class="clearfix">\n</div>\n<!-- BEGIN CONTAINER -->\n<div class="page-container" data-ng-init="initMain()">\n\n <!-- BEGIN SIDEBAR -->\n <div data-ng-include="\'components/sidebar/sidebar.html\'" data-ng-controller="SidebarController" class="page-sidebar-wrapper">\n </div>\n <!-- END SIDEBAR -->\n\n <!-- BEGIN CONTENT -->\n <div class="page-content-wrapper">\n <div class="page-content">\n\n <!-- BEGIN PAGE CONTENT -->\n <!-- <toaster-container></toaster-container> -->\n <uib-tabset>\n <uib-tab select="addWorkspace()" active="mainTab.active">\n <uib-tab-heading>\n Motion <i class="icon-rocket"></i>\n </uib-tab-heading>\n <div ui-view class=""></div>\n </uib-tab>\n <uib-tab data-ng-repeat="workspace in workspaces" active="workspace.active" data-ng-switch="workspace.type">\n <uib-tab-heading>\n {{workspace.name}} <i class="icon-close pointer-cursor" data-ng-click="closeTab($index)"></i>\n </uib-tab-heading>\n <div class="" data-ng-switch="workspace.type">\n <new-contact data-ng-switch-when="newContact" workspace="workspace" index="$index" on-submit="createContact(index,item)"></new-contact>\n <contact data-ng-switch-when="contact" workspace="workspace" index="$index" on-submit="updateContact(index,item)"></contact>\n </div>\n </uib-tab>\n <!-- <uib-tab select="addWorkspace()">\n <uib-tab-heading>\n <i class="icon-plus"></i>\n </uib-tab-heading>\n </uib-tab> -->\n </uib-tabset>\n <!-- END PAGE CONTENT -->\n\n </div>\n </div>\n <!-- END CONTENT -->\n\n <!-- BEGIN QUICK SIDEBAR -->\n <a href="javascript:;" class="page-quick-sidebar-toggler"><i class="icon-close"></i></a>\n <div data-ng-include="\'components/quickSidebar/quickSidebar.html\'" data-ng-controller="QuickSidebarController" class="page-quick-sidebar-wrapper">\n </div>\n <!-- END QUICK SIDEBAR -->\n\n</div>\n<!-- END CONTAINER -->\n\n<!-- BEGIN FOOTER -->\n<div data-ng-include="\'components/footer/footer.html\'" data-ng-controller="FooterController" class="page-footer">\n</div>\n<!-- END FOOTER -->\n\n<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->\n<!-- BEGIN CORE PLUGINS -->\n<!--[if lt IE 9]>\n<script src="../../assets/global/plugins/respond.min.js"></script>\n<script src="../../assets/global/plugins/excanvas.min.js"></script>\n<![endif]-->\n\n<!-- END JAVASCRIPTS -->\n'),
a.put("app/main/template.contactTab.html",'<div class="row margin-top-20 contact-tab-container" >\n <!-- <pre>\n {{workspaces}}\n </pre> -->\n <!-- <pre>\n {{contact | json}}\n </pre> -->\n <div class="col-md-12 contact-tab">\n <form name="forms.general" data-ng-submit="submit({index:index,item:contact})" novalidate>\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light pbottom20">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img src="assets/images/media/contact.png" class="img-responsive" alt="">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{contact.fullname}}\n </div>\n <div class="profile-usertitle-job">\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR BUTTONS -->\n <div class="profile-userbuttons">\n <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="!contact.fullname">{{\'APPLICATION_UPDATE\' | translate}}</button>\n <!-- <button type="button" class="btn btn-circle btn-danger btn-sm">Message</button> -->\n </div>\n <!-- END SIDEBAR BUTTONS -->\n <!-- SIDEBAR MENU -->\n <!-- <div class="profile-usermenu">\n <ul class="nav">\n <li class="active">\n <a href="extra_profile.html">\n <i class="icon-home"></i>\n Overview </a>\n </li>\n <li>\n <a href="extra_profile_account.html">\n <i class="icon-settings"></i>\n Account Settings </a>\n </li>\n <li>\n <a href="page_todo.html" target="_blank">\n <i class="icon-check"></i>\n Tasks </a>\n </li>\n <li>\n <a href="extra_profile_help.html">\n <i class="icon-info"></i>\n Help </a>\n </li>\n </ul>\n </div> -->\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n <!-- PORTLET MAIN -->\n <div class="portlet light">\n <!-- STAT -->\n <div class="row list-separated profile-stat">\n <div class="col-md-4 col-sm-4 col-xs-6">\n <div class="uppercase profile-stat-title">\n 37\n </div>\n <div class="uppercase profile-stat-text">\n Projects\n </div>\n </div>\n <div class="col-md-4 col-sm-4 col-xs-6">\n <div class="uppercase profile-stat-title">\n 51\n </div>\n <div class="uppercase profile-stat-text">\n Tasks\n </div>\n </div>\n <div class="col-md-4 col-sm-4 col-xs-6">\n <div class="uppercase profile-stat-title">\n 61\n </div>\n <div class="uppercase profile-stat-text">\n Uploads\n </div>\n </div>\n </div>\n <!-- END STAT -->\n <div>\n <h4 class="profile-desc-title">{{\'APPLICATION_ABOUT\' | translate}} {{contact.fullname}}</h4>\n <span class="profile-desc-text break-overflow">{{contact.description}}</span>\n <div class="margin-top-20 profile-desc-link">\n <i class="fa fa-globe"></i>\n <a href="http://www.keenthemes.com">www.keenthemes.com</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="fa fa-twitter"></i>\n <a href="http://www.twitter.com/keenthemes/">@keenthemes</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="fa fa-facebook"></i>\n <a href="http://www.facebook.com/keenthemes/">keenthemes</a>\n </div>\n </div>\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <div class="row">\n <div class="col-md-6">\n <!-- BEGIN PORTLET -->\n <div class="portlet light ">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="detail.tab=\'main\'">\n <input type="radio" class="toggle">{{\'APPLICATION_MAIN\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'address\'">\n <input type="radio" class="toggle">{{\'APPLICATION_ADDRESS\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'other\'">\n <input type="radio" class="toggle">{{\'APPLICATION_OTHER\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'customFields\'">\n <input type="radio" class="toggle">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</label>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div data-ng-class="{\'hidden\':detail.tab != \'main\'}" class="portlet-body contact-portlet">\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="contact.fullname" required/>\n <span data-ng-show="(forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select tagging tagging-label="" multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n </div>\n <div data-ng-class="{\'hidden\':detail.tab != \'address\'}" class="portlet-body contact-portlet">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n </div>\n <div data-ng-class="{\'hidden\':detail.tab != \'other\'}" class="portlet-body contact-portlet">\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <input name="dateOfBirth" type="date" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control date-picker" data-ng-model="contact.dateOfBirth"/>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea style="resize: vertical;" type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START CREATED_BY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CREATED_BY\' | translate}}</label>\n <input type="text" name="createdBy" placeholder="{{\'APPLICATION_CREATED_BY\' | translate}}" class="form-control" data-ng-model="contact.User.name" disabled/>\n </div>\n <!-- END CREATED_BY -->\n </div>\n <div data-ng-class="{\'hidden\':detail.tab != \'customFields\'}" class="portlet-body contact-portlet">\n <div data-ng-repeat="customField in customFields">\n <div data-ng-if="customField.active || _.find(contact.CustomFields,{id:customField.id})">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.name}}</label>\n <input data-ng-if="!joinPrompt" type="text" name="{{customField.name}}" placeholder="{{customField.name}}" class="form-control" data-ng-model="contact.customFields[customField.id]"/>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.name}}</label>\n <ui-select data-ng-if="!joinPrompt" data-ng-model="contact.customFields[customField.id]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.name}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="col-md-6">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONTACTS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PHONES\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_EMAILS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!--BEGIN TABS-->\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_1">\n <div class="contact-portlet">\n <!-- START PHONES -->\n <div class="padding-bottom mbottom20">\n <div data-ng-if="contact.Phones.length>0">\n <label class="control-label">{{\'APPLICATION_PHONES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="phone in contact.Phones">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="phone.phone" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField(\'Phones\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Phones\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_PHONE\' | translate}}\n </button>\n </div>\n <!-- END PHONES -->\n </div>\n </div>\n <div class="tab-pane" id="tab_1_2">\n <div class="contact-portlet">\n <!-- START EMAILS -->\n <div class="padding-bottom mbottom20">\n <div data-ng-if="contact.Emails.length>0">\n <label class="control-label">{{\'APPLICATION_EMAILS\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="email in contact.Emails">\n <div class="form-group">\n <div class="input-group">\n <input type="email" class="form-control" ng-model="email.email" required>\n <span class="input-group-btn">\n <button class="btn btn-danger" type="button" data-ng-click="removeField(\'Emails\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Emails\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_EMAIL\' | translate}}\n </button>\n </div>\n <!-- END EMAILS -->\n </div>\n </div>\n </div>\n <!--END TABS-->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_LOG\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_2_1" data-toggle="tab">{{ \'APPLICATION_JOURNAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_2_2" data-toggle="tab">{{ \'APPLICATION_HISTORY\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!--BEGIN TABS-->\n <div class="tab-content">\n <div class="tab-pane active" id="tab_2_1">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.journal.show=\'Phones\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_PHONES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.journal.show=\'Emails\';log.journal.detail=\'general\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_EMAILS\' | translate}}</label>\n </div> |\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.journal.type=\'Inbounds\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_INBOUND\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.journal.type=\'Outbounds\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_OUTBOUND\' | translate}}</label>\n </div> |\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.journal.show==\'Phones\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.journal.detail=\'general\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_GENERAL\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.journal.detail=\'QueueCalls\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_QUEUES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.journal.detail=\'ReportAgents\';getRows(\'journal\');">\n <input type="radio" class="toggle">{{\'APPLICATION_AGENTS\' | translate}}</label>\n </div>\n </div>\n <table st-table="journal" class="table table-striped">\n <thead>\n <tr>\n <th data-ng-repeat="column in columns[log.journal.show][log.journal.detail].header">{{column | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="row in rows[\'journal\']">\n <td data-ng-repeat="col in columns[log.journal.show][log.journal.detail].indexes">{{col == \'createdAt\' ? moment(row[col]).format(\'DD/MM/YYYY HH:mm:ss\') : row[col]}}</td>\n </tr>\n <tr data-ng-hide="rows[\'journal\'].length">\n <td colspan="{{columns[log.journal.show][log.journal.detail].header.length}}" class="text-center">\n {{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="{{columns[log.journal.show][log.journal.detail].header.length}}" class="text-center">\n <div st-pagination="" st-items-by-page="itemsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </table>\n\n </div>\n </div>\n <div class="tab-pane" id="tab_2_2">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.history.show=\'Phones\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_PHONES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.history.show=\'Emails\';log.history.detail=\'general\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_EMAILS\' | translate}}</label>\n </div> |\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.history.type=\'HistoryInbounds\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_INBOUND\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.history.type=\'HistoryOutbounds\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_OUTBOUND\' | translate}}</label>\n </div> |\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.history.show==\'Phones\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="log.history.detail=\'general\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_GENERAL\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.history.detail=\'HistoryQueueCalls\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_QUEUES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="log.history.detail=\'HistoryReportAgents\';getRows(\'history\');">\n <input type="radio" class="toggle">{{\'APPLICATION_AGENTS\' | translate}}</label>\n </div>\n </div>\n <table st-table="history" class="table table-striped">\n <thead>\n <tr>\n <th data-ng-repeat="column in columns[log.history.show][log.history.detail].header">{{column | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="row in rows[\'history\']">\n <td data-ng-repeat="col in columns[log.history.show][log.history.detail].indexes">{{col == \'createdAt\' ? moment(row[col]).format(\'DD/MM/YYYY HH:mm:ss\') : row[col]}}</td>\n </tr>\n <tr data-ng-hide="rows[\'history\'].length">\n <td colspan="{{columns[log.history.show][log.history.detail].header.length}}" class="text-center">\n {{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="{{columns[log.history.show][log.history.detail].header.length}}" class="text-center">\n <div st-pagination="" st-items-by-page="itemsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </table>\n\n </div>\n </div>\n </div>\n <!--END TABS-->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="col-md-6">\n <!-- BEGIN PORTLET -->\n <div class="portlet light tasks-widget">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">Tasks</span>\n <span class="caption-helper">16 pending</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-small input-inline">\n <div class="input-icon right">\n <i class="icon-magnifier"></i>\n <input type="text" class="form-control form-control-solid" placeholder="search...">\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="task-content">\n <div class="contact-portlet">\n <!-- START TASK LIST -->\n <ul class="task-list">\n <li>\n <div class="task-checkbox">\n <input type="hidden" value="1" name="test"/>\n <input type="checkbox" class="liChild" value="2" name="test"/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Present 2013 Year IPO Statistics at Board Meeting </span>\n <span class="label label-sm label-success">Company</span>\n <span class="task-bell">\n <i class="fa fa-bell-o"></i>\n </span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Hold An Interview for Marketing Manager Position </span>\n <span class="label label-sm label-danger">Marketing</span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n AirAsia Intranet System Project Internal Meeting </span>\n <span class="label label-sm label-success">AirAsia</span>\n <span class="task-bell">\n <i class="fa fa-bell-o"></i>\n </span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Technical Management Meeting </span>\n <span class="label label-sm label-warning">Company</span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Kick-off Company CRM Mobile App Development </span>\n <span class="label label-sm label-info">Internal Products</span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Prepare Commercial Offer For SmartVision Website Rewamp </span>\n <span class="label label-sm label-danger">SmartVision</span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Sign-Off The Comercial Agreement With AutoSmart </span>\n <span class="label label-sm label-default">AutoSmart</span>\n <span class="task-bell">\n <i class="fa fa-bell-o"></i>\n </span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li>\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n Company Staff Meeting </span>\n <span class="label label-sm label-success">Cruise</span>\n <span class="task-bell">\n <i class="fa fa-bell-o"></i>\n </span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n <li class="last-line">\n <div class="task-checkbox">\n <input type="checkbox" class="liChild" value=""/>\n </div>\n <div class="task-title">\n <span class="task-title-sp">\n KeenThemes Investment Discussion </span>\n <span class="label label-sm label-warning">KeenThemes </span>\n </div>\n <div class="task-config">\n <div class="task-config-btn btn-group">\n <a class="btn btn-xs default" href="#" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-cog"></i><i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#">\n <i class="fa fa-check"></i> Complete </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-pencil"></i> Edit </a>\n </li>\n <li>\n <a href="#">\n <i class="fa fa-trash-o"></i> Cancel </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n </ul>\n <!-- END START TASK LIST -->\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </form>\n </div>\n</div>\n'),
-a.put("app/main/template.newContactTab.html",'<div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_CONTACT\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{forms.general | json}}\n </pre> -->\n <!-- <pre>\n {{item | json}}\n </pre>\n <pre>\n {{index}}\n </pre> -->\n <form name="forms.general" data-ng-submit="submit({index: index,item: item})" novalidate>\n <!-- <pre>\n {{checkboxes | json}}\n </pre>\n <pre>\n {{item | json}}\n </pre> -->\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAILS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" data-ng-disabled="checkboxes.fullname ? !checkboxes.fullname : true" required/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.fullname">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <ui-select data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="checkboxes.CompanyId ? !checkboxes.CompanyId : true">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.CompanyId">\n </span>\n </div> -->\n <ui-select data-ng-if="!joinPrompt" data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="item.street" data-ng-disabled="checkboxes.street ? !checkboxes.street : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.street">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="item.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="item.postalCode" data-ng-disabled="checkboxes.postalCode ? !checkboxes.postalCode : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.postalCode">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="item.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="item.city" data-ng-disabled="checkboxes.city ? !checkboxes.city : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.city">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="item.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-6">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="item.country" data-ng-disabled="checkboxes.country ? !checkboxes.country : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.country">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="item.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="item.dateOfBirth" data-ng-disabled="checkboxes.dateOfBirth ? !checkboxes.dateOfBirth : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.dateOfBirth">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="item.dateOfBirth"/>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <ui-select tagging tagging-label="" multiple=\'true\' data-ng-model="item.tags" theme="bootstrap" name="tags" data-ng-readonly="checkboxes.tags ? !checkboxes.tags : true">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.tags">\n </span>\n </div> -->\n <ui-select data-ng-if="!joinPrompt" tagging tagging-label="" multiple=\'true\' data-ng-model="item.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <textarea style="resize: vertical;" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" data-ng-disabled="checkboxes.description ? !checkboxes.description : true"></textarea>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.description">\n </span>\n </div> -->\n <textarea data-ng-if="!joinPrompt" style="resize: vertical;" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div data-ng-repeat="customField in customFields">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.name}}</label>\n <input data-ng-if="!joinPrompt" type="text" name="{{customField.name}}" placeholder="{{customField.name}}" class="form-control" data-ng-model="item.customFields[customField.id]"/>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.name}}</label>\n <ui-select data-ng-if="!joinPrompt" data-ng-model="item.customFields[customField.id]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.name}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n <div class="row">\n <div class="col-md-6">\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PHONES\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START PHONES -->\n <div class="">\n <div data-ng-if="item.Phones.length>0">\n <!-- <label class="control-label">{{\'APPLICATION_PHONES\' | translate}}</label> -->\n </div>\n <div class="padding-bottom" ng-repeat="phone in item.Phones">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="phone.phone" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField(\'Phones\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Phones\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_PHONE\' | translate}}\n </button>\n </div>\n <!-- END PHONES -->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="col-md-6">\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_EMAILS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START EMAILS -->\n <div class="">\n <div data-ng-if="item.Emails.length>0">\n <!-- <label class="control-label">{{\'APPLICATION_EMAILS\' | translate}}</label> -->\n </div>\n <div class="padding-bottom" ng-repeat="email in item.Emails">\n <div class="form-group">\n <div class="input-group">\n <input type="email" class="form-control" ng-model="email.email" required>\n <span class="input-group-btn">\n <button class="btn btn-danger" type="button" data-ng-click="removeField(\'Emails\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Emails\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_EMAIL\' | translate}}\n </button>\n </div>\n <!-- END EMAILS -->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n</div>\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <!-- <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PHONES\' | translate}}</span> -->\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="mbottom20">\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONFIRM\' | translate}}" data-ng-disabled="!item.fullname"/>\n </div>\n <!-- <div data-ng-if="joinPrompt">\n <p>{{\'APPLICATION_OR\' | translate}}</p>\n <input class="btn green-haze mbottom20" type="button" value="{{\'APPLICATION_JOIN_WITH\' | translate}}" data-ng-disabled="!item.id" data-ng-click="joinContact(index)"/>\n\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.id.$invalid && forms.general.$submitted}">\n <ui-select data-ng-model="item.id" theme="bootstrap" name="id" data-ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_EXISTING_CONTACT\' | translate }}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="contact.id as contact in contacts | filter: $select.search">\n <div ng-bind-html="contact.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.id.$invalid && forms.general.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n\n </div> -->\n </div>\n </div>\n <!-- END PORTLET -->\n\n </form>\n </div>\n</div>\n<pre>\n {{item | json}}\n</pre>\n"),a.put("app/main/template.queryBuilderView.html",'\n <div class="alert alert-warning alert-group">\n <div class="row">\n <ui-select data-ng-model="group.boolean" theme="bootstrap" class="col-md-2" data-ng-if="group.type == \'CONDITION\'">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="bool.name as bool in booleans| filter: $select.search">\n <div ng-bind-html="bool.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <button ng-click="addCondition(group.type)" class="btn btn-success col-md-2 left-margin" ><span class="glyphicon glyphicon-plus-sign" ></span> {{\'APPLICATION_ADD_\'+group.type | translate}}</button>\n <button ng-click="addGroup(group.type)" data-ng-if="group.type == \'CONDITION\' && group.main" class="btn btn-success col-md-2 left-margin" ><span class="glyphicon glyphicon-plus-sign" ></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n <button ng-click="removeGroup()" data-ng-if="group.type == \'CONDITION\' && !group.main" class="btn btn-danger col-md-2 left-margin" ><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n </div>\n <div class="group-conditions">\n <!-- <pre>\n {{group | json}}\n </pre> -->\n <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition" data-ng-init="initChoices(rule,rule.field.subField.api,rule.data,$index,0,\'data2\');initChoices(rule,rule.field.subField.subField.api,rule.data,$index,1,\'data3\',rule.data2);">\n <div ng-switch="rule.hasOwnProperty(\'group\')">\n <div ng-switch-when="true">\n <query-builder group="rule.group" fields="fields" operators="operators" properties="properties"></query-builder>\n </div>\n <div ng-switch-default="ng-switch-default">\n <div class="row">\n\n <ui-select data-ng-model="rule.field" theme="bootstrap" class="col-md-2" data-ng-change="clearData(rule,[\'operator\',\'data\',\'data2\',\'data3\']);">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="field in fields | filter: $select.search">\n <div ng-bind-html="field.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <ui-select data-ng-model="rule.operator" theme="bootstrap" class="col-md-2 left-margin" data-ng-if="group.type == \'CONDITION\' && rule.field">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in operators[rule.field.operators]| filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.field && rule.field.propertyField==\'input\'">\n <input type="text" ng-model="rule.data" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if="rule.field && rule.field.propertyField==\'number\'">\n <input type="number" ng-model="rule.data" class="form-control"/>\n </div>\n <ui-select ng-if="rule.field && rule.field.propertyField==\'select\'" data-ng-model="rule.data" class="col-md-2 left-margin" theme="bootstrap" data-ng-change="clearData(rule,[\'data2\',\'data3\']);getResults(rule.field.subField.api,rule.data,$index,0)">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in properties[rule.field.value]| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'input\'">\n <input type="text" ng-model="rule.data2" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if=" rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'number\'">\n <input type="number" ng-model="rule.data2" class="form-control"/>\n </div>\n <ui-select ng-if="rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'select\'" data-ng-model="rule.data2" class="col-md-2 left-margin" theme="bootstrap" data-ng-change="clearData(rule,[\'data3\']);getResults(rule.field.subField.subField.api,rule.data,$index,1,rule.data2)">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in (rule.field.subField.api ? choices[$index][0] : properties[rule.field.subField.value])| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'input\'">\n <input type="text" ng-model="rule.data3" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'number\'">\n <input type="number" ng-model="rule.data3" class="form-control"/>\n </div>\n <ui-select ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'select\'" data-ng-model="rule.data3" class="col-md-2 left-margin" theme="bootstrap">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in (rule.field.subField.subField.api ? choices[$index][1] : properties[rule.field.subField.subField.value])| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <button ng-click="removeCondition($index)" class="btn btn-danger remove-condition col-md-1 left-margin"><span class="glyphicon glyphicon-minus-sign"></span></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/market/market.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/market">Market Place</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <!-- Our Integration -->\n <div class="headline">\n <h3>Our Integrations</h3>\n </div>\n <div class="row thumbnails" data-ng-repeat="group in groupedIntegration">\n <div class="col-md-3" data-ng-repeat="integration in group">\n <div class="our-integrations">\n <h3> {{integration.name}} <small> {{integration.author}}</small></h3>\n <img data-ng-src="{{integration.logo}}" alt="{{integration.name}}" class="img-responsive"/>\n <div class="integration-info" data-ng-if="!integration.downloading">\n <p>\n {{integration.description}}\n </p>\n <div class="pull-right">\n <a data-ng-disabled="isProgressing" data-ng-if="!integration.active" data-ng-click="installIntegration(integration)" href="#" class="btn btn-xs green-meadow">Install <i class="fa fa-download"></i></a>\n <a data-ng-disabled="isProgressing" data-ng-if="integration.active" data-ng-click="uninstallIntegration(integration)" href="#" class="btn btn-xs red-sunglo">Uninstall <i class="fa fa-trash"></i></a>\n <a href="https://wiki.xcallymotion.com/" class="btn btn-xs grey-cascade" target="_blank">More <i class="fa fa-link"></i></a>\n </div>\n </div>\n <div class="integration-info" data-ng-if="integration.downloading">\n <div>\n <uib-progressbar class="progress-striped active" value="percentage" type="success"><i style="color:black;">{{status}}</i></uib-progressbar>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!--/thumbnails-->\n <!-- //End Meer Our Team -->\n </div>\n</div>\n'),a.put("app/motionbar/motionbar.chat.html",'<div data-ng-include="\'components/quickSidebar/quickSidebar.html\'" data-ng-controller="QuickSidebarController" class="page-quick-sidebar-wrapper" style="margin-top: -92px;"></div>\n'),a.put("app/salesforce/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SALESFORCE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/salesforce/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'password\',\'clientId\',\'clientSecret\',\'securityToken\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Password\', \'Client Id\', \'Client Secret\', \'Security token\']" field-separator=";" filename="salesforce_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedSalesforceAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedSalesforceAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/salesforce/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedSalesforceAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/salesforce/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="account.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="account.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="account.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/salesforce/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/salesforce/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/salesforce.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.salesforce.view.account\')}">\n <a ng-href="/salesforce/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.salesforce.view.configurations\') || $state.is(\'main.salesforce.view.configuration\')}">\n <a ng-href="/salesforce/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/salesforce/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="item.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="item.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="item.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/smtp/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/agents/list">SMTP</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope font-green-sharp"></i>\n <span class="caption-subject">SMTP</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="agents.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group" data-ng-hide="mailServers.length">\n <a class="btn green-jungle" href="/smtp/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SMTP\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="mailServers" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(mailServer, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="host">{{ \'APPLICATION_HOST\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="state">{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="mailServer in mailServers" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="agents.checked" checklist-value="mailServer.id"></td>\n <td>{{mailServer.host}}</td>\n <td>{{mailServer.username}}</td>\n <td data-ng-switch="mailServer.state">\n <span class="label label-sm label-success" ng-switch-when="CONNECTED">\n {{ mailServer.state}}\n </span>\n <span class="label label-sm label-warning" ng-switch-when="DISCONNECTED">\n {{ mailServer.state}}\n </span>\n <span class="label label-sm label-danger" ng-switch-when="ERROR">\n {{ mailServer.state}}\n </span>\n <span class="label label-sm label-default" ng-switch-default>\n {{ mailServer.state}}\n </span>\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/smtp/view/{{mailServer.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(mailServer.username, mailServer.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="mailServers.length">\n <td colspan="5" style="text-align:center;">\n <i>{{\'MESSAGE_NO_AVAILABLE_SMTP_ACCOUNTS\' | translate}}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/smtp/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/smtp/list">SMTP</a>\n <!-- <i class="fa fa-angle-right"></i> -->\n </li>\n <!-- <li>\n <a href="#">{{agent.fullname}}</a>\n </li> -->\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.smtp.view.settings\')}">\n <a data-ng-href="#">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/smtp/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START SMTP TAB -->\n <form name="form" data-ng-submit="form.$valid && updateItem()" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.host.$touched || form.$submitted) && form.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span data-ng-show="(form.host.$touched || form.$submitted) && form.host.$invalid && form.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.username.$touched || form.$submitted) && form.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="(form.username.$touched || form.$submitted) && form.username.$invalid && form.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$invalid && form.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.port.$touched || form.$submitted) && form.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.port" required/>\n <span data-ng-show="(form.form.$touched || form.$submitted) && form.port.$invalid && form.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.form.$touched || form.$submitted) && form.port.$invalid && form.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="item.ssl">\n </label>\n </div>\n <!-- END SSL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n </form>\n <!-- END SMTP TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/smtp/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="/smpt/list">SMTP</a>\n <!-- <i class="fa fa-angle-right"></i> -->\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initItem()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" novalidate data-ng-submit="form.$valid && createItem()">\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.host.$touched || form.$submitted) && form.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span data-ng-show="(form.host.$touched || form.$submitted) && form.host.$invalid && form.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.username.$touched || form.$submitted) && form.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="(form.username.$touched || form.$submitted) && form.username.$invalid && form.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.rpassword.$touched || form.$submitted) && form.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(form.rpassword.$touched || form.$submitted) && form.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.rpassword.$touched || form.$submitted) && form.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.port.$touched || form.$submitted) && form.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.port" required/>\n <span data-ng-show="(out.$touched || form.$submitted) && form.port.$invalid && form.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(out.$touched || form.$submitted) && form.port.$invalid && form.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="item.ssl">\n </label>\n </div>\n <!-- END DELETE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CREATE\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/sound/list/list.html",'<div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone-alt"></i>\n <a href="#">{{ \'APPLICATION_SOUNDS\' | translate }}</a>\n </li>\n </ul>\n <div class="page-toolbar">\n </div>\n</div>\n<!-- END PAGE HEADER-->\n<!-- BEGIN PAGE CONTENT-->\n<!-- Audio Portlets -->\n<div class="headline">\n <h3><i class="icon-music-tone-alt sounds-title-icon"></i> {{ \'APPLICATION_SOUNDS\' | translate }}</h3>\n</div>\n<div class="portlet light bg-inverse">\n <div class="portlet-title collapsible" ng-click="isCollapsed = !isCollapsed">\n <div class="caption">\n <i class="icon-puzzle font-red-flamingo"></i>\n <span class="caption-subject bold font-red-flamingo uppercase">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}} </span>\n </div>\n <div class="tools">\n <a href="" ng-class="{\'collapse\': !isCollapsed, \'expand\' : isCollapsed}">\n </a>\n <a href="" class="fullscreen">\n </a>\n </div>\n </div>\n <div class="portlet-body" ng-slide-down="!isCollapsed">\n <div class="row" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_SELECT_FILES\' | translate}}</span>\n <span class="caption-helper hide"></span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div ng-show="uploader.isHTML5">\n <div class="file-drop-zone margin-bottom-20" nv-file-over="" uploader="uploader" over-class="file-drop-zone-over">\n Base drop zone\n </div>\n </div>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" />\n </span>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_MULTI_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" multiple /><br/>\n </span>\n <p>\n </br>\n {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>wav, mp3, gsm, ogg</b>.\n </p>\n <p>\n {{ \'MESSAGE_MAXIMUM_SOUND_UPLOAD_SIZE\' | translate }} <b>15 Mb</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_UPLOAD_QUEUE\' | translate}}</span>\n <span class="caption-helper">{{\'APPLICATION_QUEUE_LENGTH\' | translate}}: {{ uploader.queue.length }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th width="50%">{{\'APPLICATION_NAME\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_SIZE\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_PROGRESS\' | translate}}</th>\n <th>{{\'APPLICATION_STATUS\' | translate}}</th>\n <th>{{\'APPLICATION_MESSAGE\' | translate}}</th>\n <th>{{\'APPLICATION_ACTIONS\' | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td><strong>{{ item.file.name }}</strong></td>\n <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td ng-show="uploader.isHTML5">\n <div class="progress progress-sm" style="margin-bottom: 0;">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span ng-show="item.isSuccess" class="text-success"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel" class="text-info"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError" class="text-danger"><i class="glyphicon glyphicon-remove"></i></span>\n <span ng-show="item.isUploading" class="text-info"><i class="glyphicon glyphicon-upload"></i></span>\n </td>\n <td class="text-center">\n <span ng-show="item.responseMessage" class="text-danger">{{item.responseMessage}}</span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <p>{{\'APPLICATION_UPLOAD_QUEUE_PROGRESS\' | translate}}:</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE_ALL\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="row thumbnails" data-ng-init="initList()">\n <div class="row" ng-show="sounds.length == 0">\n <div class="col-md-12 page-404">\n <div class="details">\n <h3>{{ \'MESSAGE_NO_SOUNDS\' | translate }}</h3>\n <p>\n <a href="/">\n {{ \'MESSAGE_RETURN_HOME\' | translate }} </a>\n {{ \'MESSAGE_OR_UPLOAD_SOUND_FILE\' | translate }}\n </p>\n </div>\n </div>\n </div>\n <div class="audio-portlet-wrapper animate-repeat" ng-repeat="sound in sounds">\n <div class="audio-portlet">\n <div class="audio-portlet-title"><a href="#" editable-text="sound.display_name" onbeforesave="updateAudio(sound.id,{display_name : $data})">{{ sound.display_name || "Empty" }}</a></div>\n <img src="../assets/images/note_placeholder.png" alt="" class="img-responsive"/>\n <div class="file-info">\n <div class="audio-tag-wrapper">\n <audio controls ng-src="{{getSecureSrc(audioSources[sound.id])}}" preload="none">\n {{ \'MESSAGE_AUDIO_NOT_SUPPORTED\' | translate }}\n </audio>\n </div>\n <p id="description_div">\n <a href="#" editable-text="sound.description" onbeforesave="updateAudio(sound.id,{description : $data})">{{ sound.description || "Empty" }}</a>\n </p>\n <p class="float-right">\n <button class="btn btn-xs green-meadow" tooltip-html-unsafe="<ul class=\'list-unstyled\'><li><b>Format : </b>{{sound.original_format}}</li><li><b>Duration : </b>{{sound.original_duration | date: \'mm:ss\'}}</li><li><b>Channels : </b>{{sound.original_channelCount}}</li><li><b>Bitrate : </b>{{sound.original_bitRate/1024}} kbs</li><li><b>Sample Rate : </b>{{sound.original_sampleRate/1000}} KHz</li></ul>"><i class="icon-list"></i></button>\n <a class="btn btn-xs blue-hoki" href="{{getSecureDownloadSrc(audioSources[sound.id])}}" download="{{sound.name+\'.\'+sound.original_format}}" target="_self" tooltip="Download"><i class="icon-cloud-download"></i></a>\n <button class="btn btn-xs red-sunglo" ng-click="delete(sound.display_name, sound.id)" tooltip="Delete"><i class="icon-close" ></i></button>\n </p>\n </div>\n </div>\n </div>\n</div>\n<!-- End Audio Portlets -->\n'),a.put("app/sound/sound.html","<!-- BEGIN PAGE CONTENT-->\n<div ui-view></div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/square/odbc/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBCS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Odbcs.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ODBC\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/square/odbcs/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getOdbcs([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="square_odbcs.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedOdbcs" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.odbcsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="odbcByPage in odbcsByPage | filter: $select.search">\n <div ng-bind-html="odbcByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(odbc, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="odbc in displayedOdbcs" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="odbc.defaultEntry" type="checkbox" checklist-model="Odbcs.checked" checklist-value="odbc.id"></td>\n <td>{{odbc.name}}</td>\n <td>{{odbc.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/square/odbcs/view/{{odbc.id}}/settings" data-ng-class="{\'disabled\': odbc.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(odbc.name,odbc.id)" data-ng-class="{\'disabled\': odbc.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedOdbcs.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_ODBCS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.odbcsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getOdbc()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i data-ng-show="odbc" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="odbc">\n <a href="#">{{odbc.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/odbc.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{odbc.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.square.odbcs.view.settings\')}">\n <a data-ng-href="/square/odbcs/view/{{odbc.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/square/odbc/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ODBC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateOdbc()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="odbc.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_DSN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="odbc.dsn" required/>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="odbc.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/square/odbc/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/square/odbcs/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBC\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.odbc.$valid)">\n <form name="forms.odbc" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.name.$touched || forms.odbc.$submitted) && forms.odbc.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.odbc.name.$touched || forms.odbc.$submitted) && forms.odbc.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_DSN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="item.dsn" required/>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/square/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Projects.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/square/projects/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getProjects([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="square_projects.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedProjects" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.projectsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="projectByPage in projectsByPage | filter: $select.search">\n <div ng-bind-html="projectByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="project in displayedProjects" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="project.defaultEntry" type="checkbox" checklist-model="Projects.checked" checklist-value="project.id"></td>\n <td>{{project.name}}</td>\n <td>{{project.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/square/projects/view/{{project.id}}" data-ng-class="{\'disabled\': project.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(project.name,project.id)" data-ng-class="{\'disabled\': project.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedProjects.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.projectsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="/square/projects">{{ \'APPLICATION_CALLYSQUARE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/square/projects/view/{{squareProject.id}}">{{squareProject.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n<script>\n\n\n</script>\n'),a.put("app/square/project/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/square/projects/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.project.$valid)">\n <form name="forms.project" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.project.name.$touched || forms.project.$submitted) && forms.project.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.project.name.$touched || forms.project.$submitted) && forms.project.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/sugarcrm/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUGARCRM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/sugarcrm/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Password\']" field-separator=";" filename="sugarcrm_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedSugarcrmAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedSugarcrmAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/sugarcrm/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedSugarcrmAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/main/template.newContactTab.html",'<div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_CONTACT\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{forms.general | json}}\n </pre> -->\n <!-- <pre>\n {{item | json}}\n </pre>\n <pre>\n {{index}}\n </pre> -->\n <form name="forms.general" data-ng-submit="submit({index: index,item: item})" novalidate>\n <!-- <pre>\n {{checkboxes | json}}\n </pre>\n <pre>\n {{item | json}}\n </pre> -->\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAILS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-6">\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" data-ng-disabled="checkboxes.fullname ? !checkboxes.fullname : true" required/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.fullname">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.general.fullname.$touched || forms.general.$submitted) && forms.general.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <ui-select data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="checkboxes.CompanyId ? !checkboxes.CompanyId : true">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.CompanyId">\n </span>\n </div> -->\n <ui-select data-ng-if="!joinPrompt" data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="item.street" data-ng-disabled="checkboxes.street ? !checkboxes.street : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.street">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="item.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="item.postalCode" data-ng-disabled="checkboxes.postalCode ? !checkboxes.postalCode : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.postalCode">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="item.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="item.city" data-ng-disabled="checkboxes.city ? !checkboxes.city : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.city">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="item.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-6">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="item.country" data-ng-disabled="checkboxes.country ? !checkboxes.country : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.country">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="item.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <input type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="item.dateOfBirth" data-ng-disabled="checkboxes.dateOfBirth ? !checkboxes.dateOfBirth : true"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.dateOfBirth">\n </span>\n </div> -->\n <input data-ng-if="!joinPrompt" type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="item.dateOfBirth"/>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <ui-select tagging tagging-label="" multiple=\'true\' data-ng-model="item.tags" theme="bootstrap" name="tags" data-ng-readonly="checkboxes.tags ? !checkboxes.tags : true">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.tags">\n </span>\n </div> -->\n <ui-select data-ng-if="!joinPrompt" tagging tagging-label="" multiple=\'true\' data-ng-model="item.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <!-- <div class="input-group" data-ng-if="joinPrompt">\n <textarea style="resize: vertical;" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" data-ng-disabled="checkboxes.description ? !checkboxes.description : true"></textarea>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="checkboxes.description">\n </span>\n </div> -->\n <textarea data-ng-if="!joinPrompt" style="resize: vertical;" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div data-ng-repeat="customField in customFields">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.name}}</label>\n <input data-ng-if="!joinPrompt" type="text" name="{{customField.name}}" placeholder="{{customField.name}}" class="form-control" data-ng-model="item.customFields[customField.id]"/>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.name}}</label>\n <ui-select data-ng-if="!joinPrompt" data-ng-model="item.customFields[customField.id]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.name}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n <div class="row">\n <div class="col-md-6">\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PHONES\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START PHONES -->\n <div class="">\n <div data-ng-if="item.Phones.length>0">\n <!-- <label class="control-label">{{\'APPLICATION_PHONES\' | translate}}</label> -->\n </div>\n <div class="padding-bottom" ng-repeat="phone in item.Phones">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="phone.phone" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField(\'Phones\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Phones\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_PHONE\' | translate}}\n </button>\n </div>\n <!-- END PHONES -->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="col-md-6">\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_EMAILS\' | translate}}</span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START EMAILS -->\n <div class="">\n <div data-ng-if="item.Emails.length>0">\n <!-- <label class="control-label">{{\'APPLICATION_EMAILS\' | translate}}</label> -->\n </div>\n <div class="padding-bottom" ng-repeat="email in item.Emails">\n <div class="form-group">\n <div class="input-group">\n <input type="email" class="form-control" ng-model="email.email" required>\n <span class="input-group-btn">\n <button class="btn btn-danger" type="button" data-ng-click="removeField(\'Emails\',$index)"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField(\'Emails\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_EMAIL\' | translate}}\n </button>\n </div>\n <!-- END EMAILS -->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n</div>\n <!-- START PORTLET -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <!-- <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PHONES\' | translate}}</span> -->\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small ">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="mbottom20">\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONFIRM\' | translate}}" data-ng-disabled="!item.fullname"/>\n </div>\n <!-- <div data-ng-if="joinPrompt">\n <p>{{\'APPLICATION_OR\' | translate}}</p>\n <input class="btn green-haze mbottom20" type="button" value="{{\'APPLICATION_JOIN_WITH\' | translate}}" data-ng-disabled="!item.id" data-ng-click="joinContact(index)"/>\n\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.id.$invalid && forms.general.$submitted}">\n <ui-select data-ng-model="item.id" theme="bootstrap" name="id" data-ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_EXISTING_CONTACT\' | translate }}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="contact.id as contact in contacts | filter: $select.search">\n <div ng-bind-html="contact.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.id.$invalid && forms.general.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n\n </div> -->\n </div>\n </div>\n <!-- END PORTLET -->\n\n </form>\n </div>\n</div>\n<pre>\n {{item | json}}\n</pre>\n"),a.put("app/main/template.queryBuilderView.html",'\n <div class="alert alert-warning alert-group">\n <div class="row">\n <ui-select data-ng-model="group.boolean" theme="bootstrap" class="col-md-2" data-ng-if="group.type == \'CONDITION\'">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="bool.name as bool in booleans| filter: $select.search">\n <div ng-bind-html="bool.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <button ng-click="addCondition(group.type)" class="btn btn-success col-md-2 left-margin" ><span class="glyphicon glyphicon-plus-sign" ></span> {{\'APPLICATION_ADD_\'+group.type | translate}}</button>\n <button ng-click="addGroup(group.type)" data-ng-if="group.type == \'CONDITION\' && group.main" class="btn btn-success col-md-2 left-margin" ><span class="glyphicon glyphicon-plus-sign" ></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n <button ng-click="removeGroup()" data-ng-if="group.type == \'CONDITION\' && !group.main" class="btn btn-danger col-md-2 left-margin" ><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n </div>\n <div class="group-conditions">\n <!-- <pre>\n {{group | json}}\n </pre> -->\n <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition" data-ng-init="initChoices(rule,rule.field.subField.api,rule.data,$index,0,\'data2\');initChoices(rule,rule.field.subField.subField.api,rule.data,$index,1,\'data3\',rule.data2);">\n <div ng-switch="rule.hasOwnProperty(\'group\')">\n <div ng-switch-when="true">\n <query-builder group="rule.group" fields="fields" operators="operators" properties="properties"></query-builder>\n </div>\n <div ng-switch-default="ng-switch-default">\n <div class="row">\n\n <ui-select data-ng-model="rule.field" theme="bootstrap" class="col-md-2" data-ng-change="clearData(rule,[\'operator\',\'data\',\'data2\',\'data3\']);">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="field in fields | filter: $select.search">\n <div ng-bind-html="field.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <ui-select data-ng-model="rule.operator" theme="bootstrap" class="col-md-2 left-margin" data-ng-if="group.type == \'CONDITION\' && rule.field">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in operators[rule.field.operators]| filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.field && rule.field.propertyField==\'input\'">\n <input type="text" ng-model="rule.data" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if="rule.field && rule.field.propertyField==\'number\'">\n <input type="number" ng-model="rule.data" class="form-control"/>\n </div>\n <ui-select ng-if="rule.field && rule.field.propertyField==\'select\'" data-ng-model="rule.data" class="col-md-2 left-margin" theme="bootstrap" data-ng-change="clearData(rule,[\'data2\',\'data3\']);getResults(rule.field.subField.api,rule.data,$index,0)">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in properties[rule.field.value]| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'input\'">\n <input type="text" ng-model="rule.data2" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if=" rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'number\'">\n <input type="number" ng-model="rule.data2" class="form-control"/>\n </div>\n <ui-select ng-if="rule.data && rule.field && rule.field.subField && rule.field.subField.propertyField==\'select\'" data-ng-model="rule.data2" class="col-md-2 left-margin" theme="bootstrap" data-ng-change="clearData(rule,[\'data3\']);getResults(rule.field.subField.subField.api,rule.data,$index,1,rule.data2)">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in (rule.field.subField.api ? choices[$index][0] : properties[rule.field.subField.value])| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'input\'">\n <input type="text" ng-model="rule.data3" class="form-control"/>\n </div>\n <div class="col-md-2 left-margin" ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'number\'">\n <input type="number" ng-model="rule.data3" class="form-control"/>\n </div>\n <ui-select ng-if="rule.data && rule.data2 && rule.field && rule.field.subField && rule.field.subField.subField && rule.field.subField.subField.propertyField==\'select\'" data-ng-model="rule.data3" class="col-md-2 left-margin" theme="bootstrap">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="property.value as property in (rule.field.subField.subField.api ? choices[$index][1] : properties[rule.field.subField.subField.value])| filter: $select.search">\n <div ng-bind-html="property.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <button ng-click="removeCondition($index)" class="btn btn-danger remove-condition col-md-1 left-margin"><span class="glyphicon glyphicon-minus-sign"></span></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/main/template.reportBuilderView.html",'<div class="alert alert-warning alert-group">\n <div class="form-inline" data-ng-class="{\'has-error\': forms.report.$submitted && !group.rules.length}">\n <select ng-options="o.name as o.name for o in operators" ng-model="group.operator" class="form-control input-sm"></select>\n <button style="margin-left: 5px" type="button" ng-click="addCondition()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_CONDITION\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="addGroup()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="removeGroup()" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n </div>\n <div class="group-conditions">\n <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition">\n <div ng-switch="rule.hasOwnProperty(\'group\')">\n <div ng-switch-when="true">\n <report-builder group="rule.group" fields="fields" forms="forms"></report-builder>\n </div>\n <div ng-switch-default="ng-switch-default">\n <div class="row">\n <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.field}">\n <ui-select data-ng-model="rule.field" theme="bootstrap" dynamic-name="randomName()" required>\n <ui-select-match placeholder="">{{$select.selected.field | translate}}</ui-select-match>\n <ui-select-choices repeat="field.field as field in fields | filter: $select.search">\n <div ng-bind-html="field.field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.report.$submitted && !rule.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <ui-select data-ng-model="rule.condition" theme="bootstrap" class="col-md-1" dynamic-name="randomName()">\n <ui-select-match placeholder="">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="condition.name as condition in conditions | filter: $select.search">\n <div ng-bind-html="condition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="col-md-2 left-margin" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.value}">\n <input type="text" ng-model="rule.value" class="form-control" dynamic-name="randomName()" required/>\n <span data-ng-show="forms.report.$submitted && !rule.value" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <button style="margin-left: 5px" ng-click="removeCondition($index)" class="btn btn-sm btn-danger" type="button"><span class="glyphicon glyphicon-minus-sign"></span></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),
+a.put("app/market/market.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/market">Market Place</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <!-- Our Integration -->\n <div class="headline">\n <h3>Our Integrations</h3>\n </div>\n <div class="row thumbnails" data-ng-repeat="group in groupedIntegration">\n <div class="col-md-3" data-ng-repeat="integration in group">\n <div class="our-integrations">\n <h3> {{integration.name}} <small> {{integration.author}}</small></h3>\n <img data-ng-src="{{integration.logo}}" alt="{{integration.name}}" class="img-responsive"/>\n <div class="integration-info" data-ng-if="!integration.downloading">\n <p>\n {{integration.description}}\n </p>\n <div class="pull-right">\n <a data-ng-disabled="isProgressing" data-ng-if="!integration.active" data-ng-click="installIntegration(integration)" href="#" class="btn btn-xs green-meadow">Install <i class="fa fa-download"></i></a>\n <a data-ng-disabled="isProgressing" data-ng-if="integration.active" data-ng-click="uninstallIntegration(integration)" href="#" class="btn btn-xs red-sunglo">Uninstall <i class="fa fa-trash"></i></a>\n <a href="https://wiki.xcallymotion.com/" class="btn btn-xs grey-cascade" target="_blank">More <i class="fa fa-link"></i></a>\n </div>\n </div>\n <div class="integration-info" data-ng-if="integration.downloading">\n <div>\n <uib-progressbar class="progress-striped active" value="percentage" type="success"><i style="color:black;">{{status}}</i></uib-progressbar>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!--/thumbnails-->\n <!-- //End Meer Our Team -->\n </div>\n</div>\n'),a.put("app/motionbar/motionbar.chat.html",'<div data-ng-include="\'components/quickSidebar/quickSidebar.html\'" data-ng-controller="QuickSidebarController" class="page-quick-sidebar-wrapper" style="margin-top: -92px;"></div>\n'),a.put("app/salesforce/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SALESFORCE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/salesforce/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'password\',\'clientId\',\'clientSecret\',\'securityToken\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Password\', \'Client Id\', \'Client Secret\', \'Security token\']" field-separator=";" filename="salesforce_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedSalesforceAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedSalesforceAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/salesforce/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedSalesforceAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="account.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="account.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="account.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/salesforce/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/salesforce/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/salesforce/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/salesforce.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.salesforce.view.account\')}">\n <a ng-href="/salesforce/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.salesforce.view.configurations\') || $state.is(\'main.salesforce.view.configuration\')}">\n <a ng-href="/salesforce/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/salesforce/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="item.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="item.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="item.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/license/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div\n class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <div class="row">\n <div class="col-md-6">\n <div class="pricing hover-effect">\n <div class="pricing-head" data-ng-switch="license.months">\n <h3 ng-switch-when="1">{{\'APPLICATION_MONTH_TO_MONTH\' | translate}}<span>Official xCALLY Motion License </span></h3>\n <h3 ng-switch-when="12">{{\'APPLICATION_YEARLY\' | translate}}<span>Official xCALLY Motion License </span></h3>\n <h3 ng-switch-when="36">{{\'APPLICATION_PERPETUAL\' | translate}}<span>Official xCALLY Motion License </span></h3>\n <h3 ng-switch-default>{{\'APPLICATION_UNKNOWN\' | translate}}<span>Official xCALLY Motion License </span></h3>\n <h4><i>{{license.expiration | date:\'medium\'}}</i>\n <span>\n Expiration Date </span>\n </h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li class="row">\n <div class="col-md-9">\n <i class="icon-eye"></i> {{\'APPLICATION_USERS\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{license.users ? license.users : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-people"></i> {{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}}):\n </div>\n <div class="col-md-3 text-center">\n {{license.agents ? license.agents : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-phone"></i> {{\'APPLICATION_TELEPHONES\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{license.telephones ? license.telephones : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-bubble"></i> {{\'APPLICATION_CHAT\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.chat ? \'label-success\' : \'label-danger\'">{{license.chat ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-envelope"></i> {{\'APPLICATION_MAIL\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.mail ? \'label-success\' : \'label-danger\'">{{license.mail ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-paper-plane"></i> {{\'APPLICATION_FAX\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.fax ? \'label-success\' : \'label-danger\'">{{license.fax ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n </ul>\n <div class="pricing-footer">\n <p>\n {{license.description}}\n </p>\n <a href="#" class="btn yellow-crusta">\n {{\'APPLICATION_PRICES\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-info font-green-sharp"></i>\n <span class="caption-subject">FORM {{ \'APPLICATION_LICENSE\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" novalidate data-ng-submit="submitRequest()">\n\n <!-- START USERS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.users.$touched || form.$submitted) && form.users.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERS\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-eye"></i>\n <input type="number" name="users" placeholder="{{\'APPLICATION_USERS\' | translate}}" class="form-control" data-ng-model="item.users" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || forms.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERS -->\n\n <!-- START AGENTS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.agents.$touched || form.$submitted) && form.agents.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})</label>\n <div class="input-icon">\n <i class="icon-people"></i>\n <input type="number" name="agents" placeholder="{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})" class="form-control" data-ng-model="item.agents" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || forms.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENTS -->\n\n <!-- START TELEPHONES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.telephones.$touched || form.$submitted) && form.telephones.$invalid}">\n <label class="control-label">{{\'APPLICATION_TELEPHONES\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-phone"></i>\n <input type="number" name="telephones" placeholder="{{\'APPLICATION_TELEPHONES\' | translate}}" class="form-control" data-ng-model="item.telephones" min="0" required>\n </div>\n <span data-ng-show="(form.telephones.$touched || forms.$submitted) && form.telephones.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TELEPHONES -->\n\n <!-- START CHAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.chat.$touched || form.$submitted) && form.chat.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHAT\' | translate}}</label>\n <div class="input-group input-icon">\n <i class="icon-bubble"></i>\n <input type="text" placeholder="{{\'APPLICATION_CHAT\' | translate}}" class="form-control" readonly>\n <span class="input-group-addon">\n <input type="checkbox" name="chat" data-ng-model="item.chat" required>\n </span>\n </div>\n <span data-ng-show="(form.chat.$touched || forms.$submitted) && form.chat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHAT -->\n\n <!-- START MAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.mail.$touched || form.$submitted) && form.mail.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIL\' | translate}}</label>\n <div class="input-group input-icon">\n <i class="icon-envelope"></i>\n <input type="text" placeholder="{{\'APPLICATION_MAIL\' | translate}}" class="form-control" readonly>\n <span class="input-group-addon">\n <input type="checkbox" name="mail" data-ng-model="item.mail" required>\n </span>\n </div>\n <span data-ng-show="(form.mail.$touched || forms.$submitted) && form.mail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIL -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.fax.$touched || form.$submitted) && form.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <div class="input-group input-icon">\n <i class="icon-paper-plane"></i>\n <input type="text" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" readonly>\n <span class="input-group-addon">\n <input type="checkbox" name="fax" data-ng-model="item.fax" required>\n </span>\n </div>\n <span data-ng-show="(form.fax.$touched || forms.$submitted) && form.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_SUBMIT\' | translate}} {{\'APPLICATION_REQUEST\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/smtp/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <!-- START SMTP TAB -->\n <form name="form" data-ng-submit="form.$valid && updateItem()" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.host.$touched || form.$submitted) && form.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span data-ng-show="(form.host.$touched || form.$submitted) && form.host.$invalid && form.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.username.$touched || form.$submitted) && form.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="(form.username.$touched || form.$submitted) && form.username.$invalid && form.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$invalid && form.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.port.$touched || form.$submitted) && form.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.port" required/>\n <span data-ng-show="(form.form.$touched || form.$submitted) && form.port.$invalid && form.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.form.$touched || form.$submitted) && form.port.$invalid && form.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group row">\n <label class="col-md-3">\n SSL\n </label>\n <label class="col-md-9">\n <input type="checkbox" data-ng-model="item.ssl">\n </label>\n </div>\n <!-- END SSL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n </form>\n <!-- END SMTP TAB -->\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/template/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Templates.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEMPLATE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/setting/templates/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTemplates([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Name\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="mail_templates.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTemplates" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.templatesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queueByPage in templatesByPage | filter: $select.search">\n <div ng-bind-html="queueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(template, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="template in displayedTemplates">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Templates.checked" checklist-value="template.id"></td>\n <td>{{template.name}}</td>\n <td>{{template.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/setting/templates/view/{{template.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(template.name, template.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTemplates.length">\n <td colspan="6" class="text-center">\n <i>No available templates</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="67" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.templatesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/template/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initItem()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/mail/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n <i data-ng-show="item" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="item">\n <a href="#">{{item.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.templates.view.settings\')}">\n <a data-ng-href="/mail/templates/view/{{item.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/setting/template/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n\n <form name="form" data-ng-submit="form.$valid && updateItem()" class="form-horizontal" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <hr>\n\n <!-- START SUBJECT -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-4">\n <label class="control-label pull-right">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-8">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil"></i>{{\'APPLICATION_VARIABLES\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <uib-accordion>\n <uib-accordion-group heading="{{group.title | translate}}" data-ng-repeat="group in groups">\n {{group.content | translate}}\n <ol>\n <li data-ng-repeat="variable in group.variables">\n {{variable}}\n </li>\n </ol>\n </uib-accordion-group>\n </uib-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="item.html" name="html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/template/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }} FORM</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && createItem()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil"></i>{{\'APPLICATION_VARIABLES\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <uib-accordion>\n <uib-accordion-group heading="{{group.title | translate}}" data-ng-repeat="group in groups">\n {{group.content | translate}}\n <ol>\n <li data-ng-repeat="variable in group.variables">\n {{variable}}\n </li>\n </ol>\n </uib-accordion-group>\n </uib-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="item.html" name="html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/setting/update/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-cloud-download font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initList()">\n <!-- BEGIN TABLE -->\n <table st-table="displayedUpdates" st-safe-src="updates" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="3">\n <div class="row">\n <div class="col-md-12">\n <ui-select class="input-xsmall" ng-model="conf.updatesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="updateByPage in updatesByPage | filter: $select.search">\n <div ng-bind-html="updateByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="message">{{ \'APPLICATION_MESSAGE\' | translate }}</th>\n <th st-sort="version">{{ \'APPLICATION_VERSION\' | translate }}</th>\n <th>{{ \'APPLICATION_DATE\' | translate }}</th>\n <!-- <th class="small-cells"></th> -->\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="update in displayedUpdates">\n <td>\n {{update.message}}\n </td>\n <td>\n {{update.version}}\n </td>\n <td>\n {{update.date}}\n </td>\n </tr>\n <tr data-ng-hide="displayedUpdates.length">\n <td colspan="9" style="text-align:center;">\n <i>{{\'MESSAGE_NO_AVAILABLE_UPDATES\' | translate}}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="1">\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="message" placeholder="{{ \'APPLICATION_MESSAGE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n <td colspan="9"></td>\n </tr>\n <tr>\n <td colspan="10" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.updatesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/update/list/list.pull.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("app/sound/list/list.html",'<div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone-alt"></i>\n <a href="#">{{ \'APPLICATION_SOUNDS\' | translate }}</a>\n </li>\n </ul>\n <div class="page-toolbar">\n </div>\n</div>\n<!-- END PAGE HEADER-->\n<!-- BEGIN PAGE CONTENT-->\n<!-- Audio Portlets -->\n<div class="headline">\n <h3><i class="icon-music-tone-alt sounds-title-icon"></i> {{ \'APPLICATION_SOUNDS\' | translate }}</h3>\n</div>\n<div class="portlet light bg-inverse">\n <div class="portlet-title collapsible" ng-click="isCollapsed = !isCollapsed">\n <div class="caption">\n <i class="icon-puzzle font-red-flamingo"></i>\n <span class="caption-subject bold font-red-flamingo uppercase">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}} </span>\n </div>\n <div class="tools">\n <a href="" ng-class="{\'collapse\': !isCollapsed, \'expand\' : isCollapsed}">\n </a>\n <a href="" class="fullscreen">\n </a>\n </div>\n </div>\n <div class="portlet-body" ng-slide-down="!isCollapsed">\n <div class="row" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_SELECT_FILES\' | translate}}</span>\n <span class="caption-helper hide"></span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div ng-show="uploader.isHTML5">\n <div class="file-drop-zone margin-bottom-20" nv-file-over="" uploader="uploader" over-class="file-drop-zone-over">\n Base drop zone\n </div>\n </div>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" />\n </span>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_MULTI_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" multiple /><br/>\n </span>\n <p>\n </br>\n {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>wav, mp3, gsm, ogg</b>.\n </p>\n <p>\n {{ \'MESSAGE_MAXIMUM_SOUND_UPLOAD_SIZE\' | translate }} <b>15 Mb</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_UPLOAD_QUEUE\' | translate}}</span>\n <span class="caption-helper">{{\'APPLICATION_QUEUE_LENGTH\' | translate}}: {{ uploader.queue.length }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th width="50%">{{\'APPLICATION_NAME\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_SIZE\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_PROGRESS\' | translate}}</th>\n <th>{{\'APPLICATION_STATUS\' | translate}}</th>\n <th>{{\'APPLICATION_MESSAGE\' | translate}}</th>\n <th>{{\'APPLICATION_ACTIONS\' | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td><strong>{{ item.file.name }}</strong></td>\n <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td ng-show="uploader.isHTML5">\n <div class="progress progress-sm" style="margin-bottom: 0;">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span ng-show="item.isSuccess" class="text-success"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel" class="text-info"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError" class="text-danger"><i class="glyphicon glyphicon-remove"></i></span>\n <span ng-show="item.isUploading" class="text-info"><i class="glyphicon glyphicon-upload"></i></span>\n </td>\n <td class="text-center">\n <span ng-show="item.responseMessage" class="text-danger">{{item.responseMessage}}</span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <p>{{\'APPLICATION_UPLOAD_QUEUE_PROGRESS\' | translate}}:</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE_ALL\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="row thumbnails" data-ng-init="initList()">\n <div class="row" ng-show="sounds.length == 0">\n <div class="col-md-12 page-404">\n <div class="details">\n <h3>{{ \'MESSAGE_NO_SOUNDS\' | translate }}</h3>\n <p>\n <a href="/">\n {{ \'MESSAGE_RETURN_HOME\' | translate }} </a>\n {{ \'MESSAGE_OR_UPLOAD_SOUND_FILE\' | translate }}\n </p>\n </div>\n </div>\n </div>\n <div class="audio-portlet-wrapper animate-repeat" ng-repeat="sound in sounds">\n <div class="audio-portlet">\n <div class="audio-portlet-title"><a href="#" editable-text="sound.display_name" onbeforesave="updateAudio(sound.id,{display_name : $data})">{{ sound.display_name || "Empty" }}</a></div>\n <img src="../assets/images/note_placeholder.png" alt="" class="img-responsive"/>\n <div class="file-info">\n <div class="audio-tag-wrapper">\n <audio controls ng-src="{{getSecureSrc(audioSources[sound.id])}}" preload="none">\n {{ \'MESSAGE_AUDIO_NOT_SUPPORTED\' | translate }}\n </audio>\n </div>\n <p id="description_div">\n <a href="#" editable-text="sound.description" onbeforesave="updateAudio(sound.id,{description : $data})">{{ sound.description || "Empty" }}</a>\n </p>\n <p class="float-right">\n <button class="btn btn-xs green-meadow" tooltip-html-unsafe="<ul class=\'list-unstyled\'><li><b>Format : </b>{{sound.original_format}}</li><li><b>Duration : </b>{{sound.original_duration | date: \'mm:ss\'}}</li><li><b>Channels : </b>{{sound.original_channelCount}}</li><li><b>Bitrate : </b>{{sound.original_bitRate/1024}} kbs</li><li><b>Sample Rate : </b>{{sound.original_sampleRate/1000}} KHz</li></ul>"><i class="icon-list"></i></button>\n <a class="btn btn-xs blue-hoki" href="{{getSecureDownloadSrc(audioSources[sound.id])}}" download="{{sound.name+\'.\'+sound.original_format}}" target="_self" tooltip="Download"><i class="icon-cloud-download"></i></a>\n <button class="btn btn-xs red-sunglo" ng-click="delete(sound.display_name, sound.id)" tooltip="Delete"><i class="icon-close" ></i></button>\n </p>\n </div>\n </div>\n </div>\n</div>\n<!-- End Audio Portlets -->\n'),a.put("app/sound/sound.html","<!-- BEGIN PAGE CONTENT-->\n<div ui-view></div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/square/odbc/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBCS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Odbcs.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ODBC\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/square/odbcs/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getOdbcs([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="square_odbcs.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedOdbcs" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.odbcsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="odbcByPage in odbcsByPage | filter: $select.search">\n <div ng-bind-html="odbcByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(odbc, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="odbc in displayedOdbcs" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="odbc.defaultEntry" type="checkbox" checklist-model="Odbcs.checked" checklist-value="odbc.id"></td>\n <td>{{odbc.name}}</td>\n <td>{{odbc.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/square/odbcs/view/{{odbc.id}}/settings" data-ng-class="{\'disabled\': odbc.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(odbc.name,odbc.id)" data-ng-class="{\'disabled\': odbc.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedOdbcs.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_ODBCS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.odbcsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getOdbc()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i data-ng-show="odbc" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="odbc">\n <a href="#">{{odbc.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/odbc.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{odbc.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.square.odbcs.view.settings\')}">\n <a data-ng-href="/square/odbcs/view/{{odbc.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ODBC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateOdbc()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="odbc.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_DSN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="odbc.dsn" required/>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="odbc.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/square/odbc/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbcs/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/square/odbcs/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBC\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.odbc.$valid)">\n <form name="forms.odbc" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.name.$touched || forms.odbc.$submitted) && forms.odbc.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.odbc.name.$touched || forms.odbc.$submitted) && forms.odbc.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_DSN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="item.dsn" required/>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/square/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Projects.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/square/projects/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getProjects([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="square_projects.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedProjects" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.projectsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="projectByPage in projectsByPage | filter: $select.search">\n <div ng-bind-html="projectByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="project in displayedProjects" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="project.defaultEntry" type="checkbox" checklist-model="Projects.checked" checklist-value="project.id"></td>\n <td>{{project.name}}</td>\n <td>{{project.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/square/projects/view/{{project.id}}" data-ng-class="{\'disabled\': project.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(project.name,project.id)" data-ng-class="{\'disabled\': project.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedProjects.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.projectsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="/square/projects">{{ \'APPLICATION_CALLYSQUARE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/square/projects/view/{{squareProject.id}}">{{squareProject.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n<script>\n\n\n</script>\n'),a.put("app/square/project/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/square/projects/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.project.$valid)">\n <form name="forms.project" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.project.name.$touched || forms.project.$submitted) && forms.project.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.project.name.$touched || forms.project.$submitted) && forms.project.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/sugarcrm/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUGARCRM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/sugarcrm/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Password\']" field-separator=";" filename="sugarcrm_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedSugarcrmAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedSugarcrmAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/sugarcrm/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedSugarcrmAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/sugarcrm/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/sugarcrm/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/sugarcrm/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/sugarcrm.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.sugarcrm.view.account\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.sugarcrm.view.configurations\') || $state.is(\'main.sugarcrm.view.configuration\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/sugarcrm/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tag/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TAG\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.tag" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.tag.name.$touched || forms.tag.$submitted) && forms.tag.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.tag.name.$touched || forms.tag.$submitted) && forms.tag.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.tag.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tag/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="/tags/list">{{ \'APPLICATION_TAGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TAGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Tags.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TAG\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTags([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="tags.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTags" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.tagsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="tagByPage in tagsByPage | filter: $select.search">\n <div ng-bind-html="tagByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(tag, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="tag in displayedTags" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="tag.defaultEntry" type="checkbox" checklist-model="Tags.checked" checklist-value="tag.id"></td>\n <td>{{tag.name}}</td>\n <td>{{tag.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/tags/view/{{tag.id}}/settings" data-ng-class="{\'disabled\': tag.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(tag.name,tag.id)" data-ng-class="{\'disabled\': tag.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTags.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_TAGS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.tagsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tag/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTag()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="/tags/list">{{ \'APPLICATION_TAGS\' | translate }}</a>\n <i data-ng-show="tag" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="tag">\n <a href="#">{{tag.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/tag.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{tag.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tags.view.settings\')}">\n <a data-ng-href="/tags/view/{{tag.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tag/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAG\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTag()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="tag.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="tag.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/team/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="#">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-shield font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEAMS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="teams.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEAM\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <!-- <li>\n <a href="#">\n <i class="icon-user"></i> {{ \'APPLICATION_QUICK\' | translate }} </a>\n </li> -->\n <li>\n <a href="/teams/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-users"></i> {{ \'APPLICATION_BULK\' | translate }} </a>\n </li> -->\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTeams([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="teams.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTeams" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.teamsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="teamByPage in teamsByPage | filter: $select.search">\n <div ng-bind-html="teamByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(agent, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="team in displayedTeams" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="teams.checked" checklist-value="team.id"></td>\n <td>{{team.name}}</td>\n <td>{{team.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/teams/view/{{team.id}}/settings" data-ng-class="{\'disabled\': team.defaultEntry}">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(team.name, team.id)" data-ng-class="{\'disabled\': team.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTeams.length">\n <td colspan="5" style="text-align:center;">\n <i>No teams available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.teamsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/team/view/view.agents.html",'<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <!-- BEGIN PORTLET-->\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-9" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n <!-- END PORTLET-->\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/team/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{team.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/team.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{team.name}}\n </div>\n\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.teams.view.settings\')}">\n <a data-ng-href="/teams/view/{{team.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.teams.view.agents\')}">\n <a data-ng-href="/teams/view/{{team.id}}/agents">\n <i class="icon-users"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/team/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- PERSONAL INFO TAB -->\n <div>\n\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="team.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="team.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n </div>\n </div>\n </div>\n</div>\n'),
-a.put("app/team/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-user-following"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div id="team" class="row" data-ng-init="getAgents()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEAM\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_TEAM_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/template/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Templates.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEMPLATE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/templates/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTemplates([\'name\', \'description\', \'timeout\', \'strategy\'])" csv-header="[\'Name\', \'Description\', \'Timeout\', \'Strategy\']" field-separator=";" filename="mail_templates.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTemplates" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.templatesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queueByPage in templatesByPage | filter: $select.search">\n <div ng-bind-html="queueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(template, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <!-- <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="timeout">{{ \'APPLICATION_AGENT_TIMEOUT\' | translate }}</th> -->\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="template in displayedTemplates">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Templates.checked" checklist-value="template.id"></td>\n <td>{{template.name}}</td>\n <td>{{template.description}}</td>\n <!-- <td>{{template.strategy | uppercase}}</td>\n <td>{{template.timeout}}</td> -->\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/templates/view/{{template.id}}/settings">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(template.name, template.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTemplates.length">\n <td colspan="6" class="text-center">\n <i>No available templates</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <!-- <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/> -->\n <td/>\n </tr>\n <tr>\n <td colspan="67" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.templatesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/template/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initItem()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/mail/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n <i data-ng-show="item" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="item">\n <a href="#">{{item.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.templates.view.settings\')}">\n <a data-ng-href="/mail/templates/view/{{item.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/template/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n\n <form name="form" data-ng-submit="form.$valid && updateItem()" class="form-horizontal" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <hr>\n\n <!-- START SUBJECT -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-4">\n <label class="control-label pull-right">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-8">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil"></i>{{\'APPLICATION_VARIABLES\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <uib-accordion>\n <uib-accordion-group heading="{{group.title | translate}}" data-ng-repeat="group in groups">\n {{group.content | translate}}\n <ol>\n <li data-ng-repeat="variable in group.variables">\n {{variable}}\n </li>\n </ol>\n </uib-accordion-group>\n </uib-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="item.html" name="html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/template/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n \n <li>\n <i class="icon-docs"></i>\n <a href="/mail/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }} FORM</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && createItem()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil"></i>{{\'APPLICATION_VARIABLES\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <uib-accordion>\n <uib-accordion-group heading="{{group.title | translate}}" data-ng-repeat="group in groups">\n {{group.content | translate}}\n <ol>\n <li data-ng-repeat="variable in group.variables">\n {{variable}}\n </li>\n </ol>\n </uib-accordion-group>\n </uib-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="inbox-editor inbox-wysihtml5" text-angular data-ng-model="item.html" name="html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/trigger/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Triggers.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRIGGER\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/triggers/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTriggers([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="triggers.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTriggers" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.TriggersByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="TriggerByPage in TriggersByPage | filter: $select.search">\n <div ng-bind-html="TriggerByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <!-- <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th> -->\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(Trigger, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="channel">{{ \'APPLICATION_CHANNEL\' | translate }}</th>\n <th>{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="Trigger in displayedTriggers">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Triggers.checked" checklist-value="Trigger.id"></td>\n <td>{{Trigger.name}}</td>\n <td>{{Trigger.description}}</td>\n <td>{{Trigger.channel | capitalize}}</td>\n <td>\n <input\n data-ng-change="updateItem(Trigger.id, Trigger.status)",\n bs-switch\n ng-model="Trigger.status"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ onText }}"\n switch-off-text="{{ offText }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/triggers/view/{{Trigger.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(Trigger.name, Trigger.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTriggers.length">\n <td colspan="6" class="text-center">\n <i>No available triggers</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="channel" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CHANNEL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.TriggersByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trigger/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView();getProperties();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="trigger"></i>\n </li>\n <li data-ng-show="trigger">\n <a href="#">{{ trigger.description || trigger.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trigger.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ trigger.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ trigger.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.triggers.view.settings\')}">\n <a href="/triggers/view/{{trigger.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trigger/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrigger()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trigger.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trigger.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- <pre>\n {{conditionsFilter | json}}\n </pre> -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$triggers.operators" properties="properties[trigger.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[trigger.channel]"></query-builder>\n </div>\n </div>\n\n <input class="btn green-haze" type="button" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-click="updateTrigger()"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
-a.put("app/trigger/wizard/wizard.html",'\n<div class="row" data-ng-init="getProperties()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name"/ required>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" >\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $triggers.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$triggers.operators" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNKS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="trunks.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRUNK\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/trunks/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTrunks([\'name\', \'host\', \'context\', \'description\'])" csv-header="[\'Name\', \'Host\', \'Context\', \'Description\']" field-separator=";" filename="trunks.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTrunks" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.trunksByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunkByPage in trunksByPage | filter: $select.search">\n <div ng-bind-html="trunkByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(trunk, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="host">{{ \'APPLICATION_HOST\' | translate }}</th>\n <th st-sort="context">{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="trunk in displayedTrunks" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="trunks.checked" checklist-value="trunk.id"></td>\n <td>{{trunk.name}}</td>\n <td>{{trunk.host}}</td>\n <td>{{trunk.context}}</td>\n <td>{{trunk.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/trunks/view/{{trunk.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(trunk.name,trunk.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTrunks.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="host" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_HOST\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="context" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CONTEXT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.trunksByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrunk()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i data-ng-show="trunk" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="trunk">\n <a href="#">{{trunk.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trunk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{trunk.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.trunks.view.settings\')}">\n <a data-ng-href="/trunks/view/{{trunk.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TRUNK\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrunk()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trunk.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <div class="row">\n <div class="col-md-6">\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="trunk.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_SECRET\' | translate}}</label>\n <input type="password" name="secret" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="trunk.secret">\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="(forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECRET -->\n\n <!-- START CONFIRM SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rsecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_SECRET\' | translate}}</label>\n <input type="password" name="rsecret" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="trunk.rsecret" nx-equal="trunk.secret"/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rsecret.$invalid || forms.general.rsecret.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM SECRET -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START CALLERID -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="trunk.callerid" required/>\n <span data-ng-show="(forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END CALLERID -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'user\',\'peer\',\'friend\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DTMFMODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$invalid}">\n <label class="control-label">{{\'APPLICATION_DTMFMODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.dtmfmode" name="dtmfmode" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in [\'rfc2833\', \'info\', \'shortinfo\', \'inband\',\'auto\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DTMFMODE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DTMFMODE -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT_USER\' | translate}}" class="form-control" data-ng-model="trunk.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START NAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.nat" name="nat" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_NAT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START QUALIFY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUALIFY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.qualify" name="qualify" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_QUALIFY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUALIFY -->\n\n <!-- START ALLOW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALLOW_CODEC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.allow" name="allow" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'g723\',\'gsm\',\'ulaw\',\'alaw\',\'g726\',\'g722\',\'g729\',\'ilbc\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ALLOW_CODEC\' | translate }}\n </span>\n <span data-ng-show="(forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ALLOW -->\n\n <!-- START INSECURE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$invalid}">\n <label class="control-label">{{\'APPLICATION_INSECURE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.insecure" name="insecure" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'port\',\'invite\',\'very\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_INSECURE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INSECURE -->\n\n <!-- START CALLLIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.call-limit.$touched || forms.general.$submitted) && forms.general.call-limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLLIMIT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="call-limit" placeholder="{{\'APPLICATION_CALLLIMIT\' | translate}}" class="form-control" data-ng-model="trunk[\'call-limit\']"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLLIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.call-limit.$touched || forms.general.$submitted) && forms.general.call-limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLLIMIT -->\n\n </div>\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trunk.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START LIMITONPEERS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.limitonpeers.$touched || forms.advanced.$submitted) && forms.advanced.limitonpeers.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIMITONPEERS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.limitonpeers" name="limitonpeers" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_LIMITONPEERS\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.limitonpeers.$touched || forms.advanced.$submitted) && forms.advanced.limitonpeers.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIMITONPEERS -->\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="trunk.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n\n <!-- START DIRECTMEDIA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTMEDIA\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.directmedia" name="directmedia" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'nonat\', \'update\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DIRECTMEDIA\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DIRECTMEDIA -->\n\n <!-- START CALLCOUNTER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLCOUNTER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.callcounter" name="callcounter" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLCOUNTER\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLCOUNTER -->\n\n <!-- START FROMDOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromdomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMDOMAIN\' | translate}}</label>\n <input type="text" name="fromdomain" placeholder="{{\'APPLICATION_FROMDOMAIN\' | translate}}" class="form-control" data-ng-model="trunk.fromdomain" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMDOMAIN\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromdomain.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMDOMAIN -->\n\n <!-- START FROMUSER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMUSER\' | translate}}</label>\n <input type="text" name="fromuser" placeholder="{{\'APPLICATION_FROMUSER\' | translate}}" class="form-control" data-ng-model="trunk.fromuser" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMUSER\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMUSER -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START OUTBOUNDPROXY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.outboundproxy.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}</label>\n <input type="text" name="outboundproxy" placeholder="{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}" class="form-control" data-ng-model="trunk.outboundproxy" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OUTBOUNDPROXY\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.outboundproxy.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTBOUNDPROXY -->\n\n <!-- START USEREQPHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$invalid}">\n <label class="control-label">{{\'APPLICATION_USEREQPHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.usereqphone" name="usereqphone" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_USEREQPHONE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USEREQPHONE -->\n\n <!-- START TRUSTRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUSTRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.trustrpid" name="trustrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRUSTRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUSTRPID -->\n\n <!-- START SENDRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SENDRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.sendrpid" name="sendrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SENDRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDRPID -->\n\n <!-- START ENCRYPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENCRYPTION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.encryption" name="encryption" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ENCRYPTION\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ENCRYPTION -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}</label>\n <input type="number" min="0" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="trunk.port"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_PORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START TRANSPORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRANSPORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.transport" name="transport" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'udp\',\'wss\',\'ws\',\'tcp\',\'tls\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRANSPORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n </div>\n </div>\n <!-- START OTHER FIELDS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_OTHER_FIELDS\' | translate}}</label>\n <textarea type="text" name="otherFields" placeholder="{{\'APPLICATION_OTHER_FIELDS\' | translate}}" class="form-control" data-ng-model="trunk.otherFields"></textarea>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OTHER_FIELDS\' | translate }}\n </span>\n </div>\n <!-- END OTHER FIELDS -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
-a.put("app/trunk/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNK\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ROLE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.role.$touched || forms.general.$submitted) && forms.general.role.$invalid}">\n <label class="control-label">{{\'APPLICATION_USAGE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.role" name="role" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="type.key as type in types | filter: $select.search">\n <div ng-bind-html="type.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ROLE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.role.$touched || forms.general.$submitted) && forms.general.role.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END ROLE -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.secret" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_SECRET\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.secret" required/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT\' | translate}} {{\'APPLICATION_USER\' | translate}}" class="form-control" data-ng-model="item.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.advanced.$valid)">\n <form name="forms.advanced" novalidate>\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="item.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/update/list/checkout/checkout.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("app/update/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-cloud-download"></i>\n <a href="/updates/list">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-cloud-download font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initList()">\n <!-- BEGIN TABLE -->\n <table st-table="displayedUpdates" st-safe-src="updates" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="3">\n <div class="row">\n <div class="col-md-12">\n <ui-select class="input-xsmall" ng-model="conf.updatesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="updateByPage in updatesByPage | filter: $select.search">\n <div ng-bind-html="updateByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="message">{{ \'APPLICATION_MESSAGE\' | translate }}</th>\n <th st-sort="version">{{ \'APPLICATION_VERSION\' | translate }}</th>\n <th>{{ \'APPLICATION_DATE\' | translate }}</th>\n <!-- <th class="small-cells"></th> -->\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="update in displayedUpdates">\n <td>\n {{update.message}}\n </td>\n <td>\n {{update.version}}\n </td>\n <td>\n {{update.date}}\n </td>\n <!-- <td>\n <a class="btn default btn-xs green-stripe" href="#" data-ng-click="checkout(update.hash)">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_CHECKOUT\' | translate }}\n </a>\n </td> -->\n </tr>\n <tr data-ng-hide="displayedUpdates.length">\n <td colspan="9" style="text-align:center;">\n <i>{{\'MESSAGE_NO_AVAILABLE_UPDATES\' | translate}}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="1">\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="message" placeholder="{{ \'APPLICATION_MESSAGE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n <td colspan="9"></td>\n </tr>\n <tr>\n <td colspan="10" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.updatesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/update/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || update.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && update.id === Auth.getCurrentUser().id}">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="update.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="update.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="update.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="update.internal" required disabled/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || update.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && update.id === Auth.getCurrentUser().id}" id="tab_1_3">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="update.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="update.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="update.reNewPwd" nx-equal="update.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/update/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/updates/list">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{update.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{update.userpic ? update.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{update.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{update.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.updates.view.account\')}">\n <a data-ng-href="/updates/view/{{update.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/update/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/updates/list">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/updates/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" required ng-remote-validate="/api/updates/validate/name"/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required ng-remote-validate="/api/updates/validate/email"/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_EMAIL\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled" ng-remote-validate="/api/updates/validate/internal"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START ACCOUNTCODE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNTCODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="accountcode" placeholder="{{\'APPLICATION_ACCOUNTCODE\' | translate}}" class="form-control" data-ng-model="item.accountcode" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.accountcode.$touched || forms.voice.$submitted) && forms.voice.accountcode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END ACCOUNTCODE -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START HOST -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END HOST -->\n\n <!-- START NAT -->\n <!-- <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n <ui-select multiple ng-model="item.nat" name="nat" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n {{nat}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n </span>\n </div> -->\n\n <!-- END NAT -->\n\n <!-- START TYPE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TYPE -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),
-a.put("app/user/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="users.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_USER\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/users/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getUsers([\'name\', \'fullname\', \'email\'])" csv-header="[\'Username\', \'Fullname\', \'Email\']" field-separator=";" filename="users.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table id="table" st-table="displayedUsers" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.usersByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="userByPage in usersByPage | filter: $select.search">\n <div ng-bind-html="userByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(user, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="role">{{ \'APPLICATION_ROLE\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="user in displayedUsers" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="users.checked" checklist-value="user.id"></td>\n <td>{{user.fullname}}</td>\n <td>{{user.name}}</td>\n <td><a ng-href="mailto:{{user.email}}">{{user.email}}</a></td>\n <td>{{user.role}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/users/view/{{user.id}}/account">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(user.fullname, user.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedUsers.length">\n <td colspan="6" style="text-align:center;">\n <i>No users available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="role" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_ROLE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.usersByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/user/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="user.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="user.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="user.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n <span> {{ \'APPLICATION_REMOVE\' | translate }} </span>\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n <span> {{ \'APPLICATION_CONFIRM\' | translate }} </span>\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_3" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.reNewPwd" nx-equal="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- <form action="#">\n <div class="form-group">\n <label class="control-label">Current Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="form-group">\n <label class="control-label">New Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="form-group">\n <label class="control-label">Re-type New Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="margin-top-10">\n <a href="#" class="btn green-haze">Change Password </a>\n <a href="#" class="btn default">Cancel </a>\n </div>\n </form> -->\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/user/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{user.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{user.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{user.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.users.view.account\')}">\n <a data-ng-href="/users/view/{{user.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/user/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/users/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USER\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" required ng-remote-validate="/api/users/validate/name"/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required ng-remote-validate="/api/users/validate/email"/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_EMAIL\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/variable/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_VARIABLE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.variable" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.variable.name.$touched || forms.variable.$submitted) && forms.variable.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.variable.name.$touched || forms.variable.$submitted) && forms.variable.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.variable.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/variable/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VARIABLES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Variables.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VARIABLE\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getVariables([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="variables.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedVariables" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.variablesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variableByPage in variablesByPage | filter: $select.search">\n <div ng-bind-html="variableByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(variable, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="variable in displayedVariables" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="variable.defaultEntry" type="checkbox" checklist-model="Variables.checked" checklist-value="variable.id"></td>\n <td>{{variable.name}}</td>\n <td>{{variable.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/variables/view/{{variable.id}}/settings" data-ng-class="{\'disabled\': variable.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(variable.name,variable.id)" data-ng-class="{\'disabled\': variable.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedVariables.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_VARIABLES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.variablesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("app/variable/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVariable()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="variable">\n <a href="#">{{variable.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/variable.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{variable.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.variables.view.settings\')}">\n <a data-ng-href="/variables/view/{{variable.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/variable/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VARIABLE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVariable()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="variable.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="variable.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/context/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="voiceContexts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTEXT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/contexts/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getVoiceContexts([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="voice_contexts.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedContexts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.contextsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="contextByPage in contextsByPage | filter: $select.search">\n <div ng-bind-html="contextByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(context, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="context in displayedVoiceContexts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="context.defaultEntry" type="checkbox" checklist-model="voiceContexts.checked" checklist-value="context.id"></td>\n <td>{{context.name}}</td>\n <td>{{context.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/contexts/view/{{context.id}}/settings" data-ng-class="{\'disabled\': context.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(context.name,context.id)" data-ng-class="{\'disabled\': context.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedVoiceContexts.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CONTEXTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.contextsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/context/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getContext()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i data-ng-show="context" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="context">\n <a href="#">{{context.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/context.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{context.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.contexts.view.settings\')}">\n <a data-ng-href="/voice/contexts/view/{{context.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/context/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONTEXT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceContext()" novalidate>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="context.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/context/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/voice/contexts/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.context.$valid)">\n <form name="forms.context" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.context.name.$touched || forms.context.$submitted) && forms.context.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.context.name.$touched || forms.context.$submitted) && forms.context.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/moh/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOHS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOHS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mohs.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_MOH_CLASS\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/mohs/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMohs([\'name\', \'directory\', \'sort\', \'description\'])" csv-header="[\'Name\', \'Directory\', \'Sort\', \'Description\']" field-separator=";" filename="musiconholds_classes.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMohs" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.mohsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mohByPage in mohsByPage | filter: $select.search">\n <div ng-bind-html="mohByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(moh, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="directory">{{ \'APPLICATION_PATH\' | translate }}</th>\n <th st-sort="sort">{{ \'APPLICATION_SORT\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="moh in displayedMohs" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mohs.checked" checklist-value="moh.id" data-ng-hide="moh.defaultEntry"></td>\n <td>{{moh.name}}</td>\n <td>{{moh.directory}}</td>\n <td>{{moh.sort | capitalize}}</td>\n <td>{{moh.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-class="{\'disabled\': moh.defaultEntry}" data-ng-href="/voice/mohs/view/{{moh.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-class="{\'disabled\': moh.defaultEntry}" data-ng-click="deleteItem(moh.name,moh.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMohs.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_MOHS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="directory" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_PATH\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="sort" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_SORT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.mohsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/moh/view/view.addFiles.html",'\n<div class="row" data-ng-init="getSounds()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH\' | translate }} {{ \'APPLICATION_ADD_FILES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="soundList.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n </div>\n <form name="forms.general" data-ng-submit="(item.sounds.length > 0) && addMohs()" data-ng-show="soundList.length" novalidate>\n\n <!-- START SOUNDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0}">\n <label class="control-label">{{\'APPLICATION_SOUNDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.sounds" theme="bootstrap" name="sounds" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="sound.id as sound in soundList | filter: $select.search">\n {{sound.display_name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <input type="submit" class="btn green-haze" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/moh/view/view.audios.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getAudioFiles()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AUDIOS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="audioFiles">\n <a class="btn green-jungle " href="/voice/mohs/view/{{moh.id}}/add" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_ADD_FILES\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="audioFiles">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_FOLDER_DOES_NOT_EXIST\' | translate }}\n </p>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover" data-ng-show="audioFiles">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n <th width="30%">{{ \'APPLICATION_PREVIEW\' | translate }}</th>\n <th width="10%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="audioFiles">\n <tr data-ng-repeat="audiofile in audioFiles">\n <td>{{audiofile}}</td>\n <td>\n <audio controls ng-src="{{getSecureSrc(audioSources[audiofile])}}" preload="none">\n Your browser does not support the audio tag.\n </audio></td>\n <td>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(audiofile,audiofile)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="audioFiles.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AUDIOFILES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/voice/moh/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMoh()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOH_CLASS\' | translate }}</a>\n <i data-ng-show="moh" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="moh">\n <a href="#">{{moh.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/moh.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{moh.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.mohs.view.settings\')}">\n <a data-ng-href="/voice/mohs/view/{{moh.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.voice.mohs.view.audios\') || $state.is(\'main.voice.mohs.view.add\')}">\n <a data-ng-href="/voice/mohs/view/{{moh.id}}/audios">\n <i class="icon-list"></i>\n {{ \'APPLICATION_AUDIOS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/moh/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOH_CLASS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceMoh()" novalidate>\n\n <!-- START PATH -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.directory" disabled/>\n </div>\n <!-- END PATH -->\n\n <!-- START SORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="moh.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SORT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" class="form-control" data-ng-model="moh.description"/></textarea>\n <span data-ng-show="forms.general.$submitted && forms.general.description.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
-a.put("app/voice/moh/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard();getContexts();">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOHS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH_CLASS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START SORT -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END SORT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" class="form-control" data-ng-model="item.description"/></textarea>\n <span data-ng-show="forms.general.$submitted && forms.general.description.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/queue/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="queues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getQueues([\'name\', \'description\', \'strategy\', \'context\'])" csv-header="[\'Name\', \'Description\', \'Strategy\', \'Context\']" field-separator=";" filename="queues.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.voiceQueuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="voiceQueueByPage in voiceQueuesByPage | filter: $select.search">\n <div ng-bind-html="voiceQueueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="name"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="context">{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="queue in displayedQueues" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="queues.checked" checklist-value="queue.name"></td>\n <td>{{queue.name}}</td>\n <td>{{queue.description}}</td>\n <td>{{queue.strategy}}</td>\n <td>{{queue.context}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/queues/view/{{queue.name}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(queue.name,queue.name)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedQueues.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="context" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CONTEXT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.voiceQueuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body text-center">\n <div class="form-group last">\n <div class="col-md-9" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.queues.view.settings\')}">\n <a data-ng-href="/voice/queues/view/{{queue.name}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.voice.queues.view.agents\')}">\n <a data-ng-href="/voice/queues/view/{{queue.name}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_QUEUE_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();getMohs();getSounds();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START MOH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOH\' | translate}}</label>\n <ui-select data-ng-model="queue.musiconhold" name="musiconhold" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="musiconhold.name as musiconhold in voiceMohs | filter: $select.search">\n <div ng-bind-html="musiconhold.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_MOH\' | translate }}\n </span>\n <span data-ng-show="(forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOH -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.timeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START MAXLEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXLEN\' | translate}}</label>\n <input type="number" min="0" name="maxlen" placeholder="{{\'APPLICATION_MAXLEN\' | translate}}" class="form-control" data-ng-model="queue.maxlen" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MAXLEN\' | translate }}\n </span>\n <span data-ng-show="(forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAXLEN -->\n\n <!-- START RETRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY\' | translate}}</label>\n <input type="number" min="0" name="retry" placeholder="{{\'APPLICATION_RETRY\' | translate}}" class="form-control" data-ng-model="queue.retry" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RETRY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRY -->\n\n </div>\n <div class="col-md-6">\n <!-- START WRAPUPTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$invalid}">\n <label class="control-label">{{\'APPLICATION_WRAPUPTIME\' | translate}}</label>\n <input type="number" min="0" name="wrapuptime" placeholder="{{\'APPLICATION_WRAPUPTIME\' | translate}}" class="form-control" data-ng-model="queue.wrapuptime" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WRAPUPTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WRAPUPTIME -->\n\n <!-- START WEIGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEIGHT\' | translate}}</label>\n <input type="number" min="0" name="weight" placeholder="{{\'APPLICATION_WEIGHT\' | translate}}" class="form-control" data-ng-model="queue.weight" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WEIGHT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEIGHT -->\n\n <!-- START JOINEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_JOINEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.joinempty" name="joinempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_JOINEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END JOINEMPTY -->\n\n <!-- START LEAVEWHENEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_LEAVEWHENEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.leavewhenempty" name="leavewhenempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_LEAVEWHENEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LEAVEWHENEMPTY -->\n\n <!-- START ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.announce" name="announce" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in sounds | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE -->\n </div>\n </div>\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.announce" data-ng-submit="forms.announce.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-12">\n <!-- START PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="queue.periodic_announce" name="periodic_announce" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in periodicAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE -->\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SETTINGS\' | translate}}</h3></p>\n <!-- START ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="announce_frequency" placeholder="{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_FREQUENCY -->\n\n <!-- START MIN_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="min_announce_frequency" placeholder="{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.min_announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MIN_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN_ANNOUNCE_FREQUENCY -->\n\n <!-- START PERIODIC_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="periodic_announce_frequency" placeholder="{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.periodic_announce_frequency"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE_FREQUENCY -->\n\n <!-- START RANDOM_PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_RANDOM_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select data-ng-model="queue.random_periodic_announce" name="random_periodic_announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RANDOM_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANDOM_PERIODIC_ANNOUNCE -->\n\n <!-- START ANNOUNCE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_holdtime" name="announce_holdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'once\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_HOLDTIME -->\n\n <!-- START ANNOUNCE_POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_position" name="announce_position" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'limit\',\'more\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION -->\n\n <!-- START ANNOUNCE_POSITION_LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}</label>\n <input type="number" min="0" name="announce_position_limit" placeholder="{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}" class="form-control" data-ng-model="queue.announce_position_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION_LIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION_LIMIT -->\n\n <!-- START REPORTHOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_REPORTHOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.reportholdtime" name="reportholdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORTHOLDTIME -->\n\n </div>\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SOUNDS\' | translate}}</h3></p>\n <!-- START QUEUE_REPORTHOLD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_REPORTHOLD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_reporthold" name="queue_reporthold" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLD\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_REPORTHOLD -->\n\n <!-- START QUEUE_YOUARENEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_YOUARENEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_youarenext" name="queue_youarenext" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_YOUARENEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_YOUARENEXT -->\n\n <!-- START QUEUE_THEREARE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THEREARE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_thereare" name="queue_thereare" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THEREARE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THEREARE -->\n\n <!-- START QUEUE_CALLSWAITING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_CALLSWAITING\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_callswaiting" name="queue_callswaiting" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_CALLSWAITING\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_CALLSWAITING -->\n\n <!-- START QUEUE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_HOLDTIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_holdtime" name="queue_holdtime" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_HOLDTIME -->\n\n <!-- START QUEUE_MINUTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_minutes" name="queue_minutes" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTES\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTES -->\n\n <!-- START QUEUE_MINUTE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_minute" name="queue_minute" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTE -->\n\n <!-- START QUEUE_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_SECONDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_seconds" name="queue_seconds" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_SECONDS\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_SECONDS -->\n\n <!-- START QUEUE_THANKYOU -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THANKYOU\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_thankyou" name="QUEUE_THANKYOU" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THANKYOU\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THANKYOU -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateVoiceQueue()" novalidate>\n\n <div class="row">\n <div class="col-md-6">\n\n <!-- START AUTOPAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTOPAUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.autopause" name="autopause" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'all\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_AUTOPAUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUTOPAUSE -->\n\n <!-- START RINGINUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$invalid}">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.ringinuse" name="ringinuse" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RINGINUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START MEMBER_DELAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_MEMBER_DELAY\' | translate}}</label>\n <input type="number" min="0" name="memberdelay" placeholder="{{\'APPLICATION_MEMBER_DELAY\' | translate}}" class="form-control" data-ng-model="queue.memberdelay" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MEMBER_DELAY\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MEMBER_DELAY -->\n </div>\n <div class="col-md-6">\n\n <!-- START TIMEOUTRESTART -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUTRESTART\' | translate}}</label>\n <ui-select data-ng-model="queue.timeoutrestart" name="timeoutrestart" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUTRESTART\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUTRESTART -->\n\n <!-- START MONITOR_FORMAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$invalid}">\n <label class="control-label">{{\'APPLICATION_MONITOR_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.monitor_format" name="monitor_format" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="monFormat.value as monFormat in monitorFormats | filter: $select.search">\n <div ng-bind-html="monFormat.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MONITOR_FORMAT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONITOR_FORMAT -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.context.$touched || forms.advanced.$submitted) && forms.advanced.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}</label>\n <ui-select data-ng-model="queue.context" name="context" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.context.$touched || forms.advanced.$submitted) && forms.advanced.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/team/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-user-following"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div id="team" class="row" data-ng-init="getAgents()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEAM\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_TEAM_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trigger/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Triggers.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRIGGER\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/triggers/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTriggers([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="triggers.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTriggers" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.TriggersByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="TriggerByPage in TriggersByPage | filter: $select.search">\n <div ng-bind-html="TriggerByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <!-- <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th> -->\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(Trigger, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="channel">{{ \'APPLICATION_CHANNEL\' | translate }}</th>\n <th>{{ \'APPLICATION_STATUS\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="Trigger in displayedTriggers">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="Triggers.checked" checklist-value="Trigger.id"></td>\n <td>{{Trigger.name}}</td>\n <td>{{Trigger.description}}</td>\n <td>{{Trigger.channel | capitalize}}</td>\n <td>\n <input\n data-ng-change="updateItem(Trigger.id, Trigger.status)",\n bs-switch\n ng-model="Trigger.status"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ onText }}"\n switch-off-text="{{ offText }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/triggers/view/{{Trigger.id}}/settings">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(Trigger.name, Trigger.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTriggers.length">\n <td colspan="6" class="text-center">\n <i>No available triggers</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="channel" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CHANNEL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.TriggersByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trigger/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView();getProperties();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="trigger"></i>\n </li>\n <li data-ng-show="trigger">\n <a href="#">{{ trigger.description || trigger.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trigger.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ trigger.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ trigger.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.triggers.view.settings\')}">\n <a href="/triggers/view/{{trigger.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trigger/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!-- <pre>\n {{conditionsData.query | json}}\n </pre>\n <pre>\n {{actionsData.query | json}}\n </pre> -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrigger()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trigger.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trigger.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- <pre>\n {{conditionsFilter | json}}\n </pre> -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$triggers.operators" properties="properties[trigger.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[trigger.channel]"></query-builder>\n </div>\n </div>\n\n <input class="btn green-haze" type="button" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-click="updateTrigger()"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/trigger/wizard/wizard.html",'\n<div class="row" data-ng-init="getProperties()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name"/ required>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" >\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $triggers.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONDITIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="conditionsFilter.group" fields="fields.conditions" operators="$triggers.operators" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <query-builder group="actionsFilter.group" fields="fields.actions" properties="properties[item.channel]"></query-builder>\n </div>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNKS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="trunks.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRUNK\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/trunks/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getTrunks([\'name\', \'host\', \'context\', \'description\'])" csv-header="[\'Name\', \'Host\', \'Context\', \'Description\']" field-separator=";" filename="trunks.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedTrunks" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.trunksByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunkByPage in trunksByPage | filter: $select.search">\n <div ng-bind-html="trunkByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(trunk, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="host">{{ \'APPLICATION_HOST\' | translate }}</th>\n <th st-sort="context">{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="trunk in displayedTrunks" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="trunks.checked" checklist-value="trunk.id"></td>\n <td>{{trunk.name}}</td>\n <td>{{trunk.host}}</td>\n <td>{{trunk.context}}</td>\n <td>{{trunk.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/trunks/view/{{trunk.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(trunk.name,trunk.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedTrunks.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="host" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_HOST\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="context" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CONTEXT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.trunksByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrunk()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i data-ng-show="trunk" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="trunk">\n <a href="#">{{trunk.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trunk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{trunk.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.trunks.view.settings\')}">\n <a data-ng-href="/trunks/view/{{trunk.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/trunk/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TRUNK\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrunk()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trunk.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <div class="row">\n <div class="col-md-6">\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="trunk.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_SECRET\' | translate}}</label>\n <input type="password" name="secret" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="trunk.secret">\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="(forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECRET -->\n\n <!-- START CONFIRM SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rsecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_SECRET\' | translate}}</label>\n <input type="password" name="rsecret" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="trunk.rsecret" nx-equal="trunk.secret"/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rsecret.$invalid || forms.general.rsecret.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM SECRET -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START CALLERID -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="trunk.callerid" required/>\n <span data-ng-show="(forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END CALLERID -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'user\',\'peer\',\'friend\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DTMFMODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$invalid}">\n <label class="control-label">{{\'APPLICATION_DTMFMODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.dtmfmode" name="dtmfmode" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in [\'rfc2833\', \'info\', \'shortinfo\', \'inband\',\'auto\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DTMFMODE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DTMFMODE -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT_USER\' | translate}}" class="form-control" data-ng-model="trunk.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START NAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.nat" name="nat" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_NAT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START QUALIFY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUALIFY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.qualify" name="qualify" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_QUALIFY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUALIFY -->\n\n <!-- START ALLOW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALLOW_CODEC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.allow" name="allow" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'g723\',\'gsm\',\'ulaw\',\'alaw\',\'g726\',\'g722\',\'g729\',\'ilbc\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ALLOW_CODEC\' | translate }}\n </span>\n <span data-ng-show="(forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ALLOW -->\n\n <!-- START INSECURE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$invalid}">\n <label class="control-label">{{\'APPLICATION_INSECURE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.insecure" name="insecure" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'port\',\'invite\',\'very\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_INSECURE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INSECURE -->\n\n <!-- START CALLLIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.call-limit.$touched || forms.general.$submitted) && forms.general.call-limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLLIMIT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="call-limit" placeholder="{{\'APPLICATION_CALLLIMIT\' | translate}}" class="form-control" data-ng-model="trunk[\'call-limit\']"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLLIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.call-limit.$touched || forms.general.$submitted) && forms.general.call-limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLLIMIT -->\n\n </div>\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trunk.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START LIMITONPEERS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.limitonpeers.$touched || forms.advanced.$submitted) && forms.advanced.limitonpeers.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIMITONPEERS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.limitonpeers" name="limitonpeers" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_LIMITONPEERS\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.limitonpeers.$touched || forms.advanced.$submitted) && forms.advanced.limitonpeers.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIMITONPEERS -->\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="trunk.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n\n <!-- START DIRECTMEDIA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTMEDIA\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.directmedia" name="directmedia" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'nonat\', \'update\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DIRECTMEDIA\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DIRECTMEDIA -->\n\n <!-- START CALLCOUNTER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLCOUNTER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.callcounter" name="callcounter" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLCOUNTER\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLCOUNTER -->\n\n <!-- START FROMDOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromdomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMDOMAIN\' | translate}}</label>\n <input type="text" name="fromdomain" placeholder="{{\'APPLICATION_FROMDOMAIN\' | translate}}" class="form-control" data-ng-model="trunk.fromdomain" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMDOMAIN\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromdomain.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMDOMAIN -->\n\n <!-- START FROMUSER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMUSER\' | translate}}</label>\n <input type="text" name="fromuser" placeholder="{{\'APPLICATION_FROMUSER\' | translate}}" class="form-control" data-ng-model="trunk.fromuser" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMUSER\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMUSER -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START OUTBOUNDPROXY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.outboundproxy.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}</label>\n <input type="text" name="outboundproxy" placeholder="{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}" class="form-control" data-ng-model="trunk.outboundproxy" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OUTBOUNDPROXY\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.outboundproxy.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTBOUNDPROXY -->\n\n <!-- START USEREQPHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$invalid}">\n <label class="control-label">{{\'APPLICATION_USEREQPHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.usereqphone" name="usereqphone" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_USEREQPHONE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USEREQPHONE -->\n\n <!-- START TRUSTRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUSTRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.trustrpid" name="trustrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRUSTRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUSTRPID -->\n\n <!-- START SENDRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SENDRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.sendrpid" name="sendrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SENDRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDRPID -->\n\n <!-- START ENCRYPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENCRYPTION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.encryption" name="encryption" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ENCRYPTION\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ENCRYPTION -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}</label>\n <input type="number" min="0" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="trunk.port"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_PORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START TRANSPORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRANSPORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.transport" name="transport" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'udp\',\'wss\',\'ws\',\'tcp\',\'tls\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRANSPORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n </div>\n </div>\n <!-- START OTHER FIELDS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_OTHER_FIELDS\' | translate}}</label>\n <textarea type="text" name="otherFields" placeholder="{{\'APPLICATION_OTHER_FIELDS\' | translate}}" class="form-control" data-ng-model="trunk.otherFields"></textarea>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OTHER_FIELDS\' | translate }}\n </span>\n </div>\n <!-- END OTHER FIELDS -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
+a.put("app/trunk/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNK\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ROLE -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.role.$touched || forms.general.$submitted) && forms.general.role.$invalid}">\n <label class="control-label">{{\'APPLICATION_USAGE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.role" name="role" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="type.key as type in types | filter: $select.search">\n <div ng-bind-html="type.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ROLE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.role.$touched || forms.general.$submitted) && forms.general.role.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END ROLE -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.secret" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_SECRET\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.secret" required/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT\' | translate}} {{\'APPLICATION_USER\' | translate}}" class="form-control" data-ng-model="item.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.advanced.$valid)">\n <form name="forms.advanced" novalidate>\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="item.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/user/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="users.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_USER\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/users/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getUsers([\'name\', \'fullname\', \'email\'])" csv-header="[\'Username\', \'Fullname\', \'Email\']" field-separator=";" filename="users.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table id="table" st-table="displayedUsers" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.usersByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="userByPage in usersByPage | filter: $select.search">\n <div ng-bind-html="userByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(user, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_USERNAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="role">{{ \'APPLICATION_ROLE\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="user in displayedUsers" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="users.checked" checklist-value="user.id"></td>\n <td>{{user.fullname}}</td>\n <td>{{user.name}}</td>\n <td><a ng-href="mailto:{{user.email}}">{{user.email}}</a></td>\n <td>{{user.role}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/users/view/{{user.id}}/account">\n {{ \'APPLICATION_PROFILE\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(user.fullname, user.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedUsers.length">\n <td colspan="6" style="text-align:center;">\n <i>No users available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_USERNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="role" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_ROLE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.usersByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/user/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="user.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="user.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="user.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n <span> {{ \'APPLICATION_REMOVE\' | translate }} </span>\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n <span> {{ \'APPLICATION_CONFIRM\' | translate }} </span>\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_3" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.reNewPwd" nx-equal="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- <form action="#">\n <div class="form-group">\n <label class="control-label">Current Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="form-group">\n <label class="control-label">New Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="form-group">\n <label class="control-label">Re-type New Password</label>\n <input type="password" class="form-control"/>\n </div>\n <div class="margin-top-10">\n <a href="#" class="btn green-haze">Change Password </a>\n <a href="#" class="btn default">Cancel </a>\n </div>\n </form> -->\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/user/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{user.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{user.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{user.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.users.view.account\')}">\n <a data-ng-href="/users/view/{{user.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/user/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/users/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USER\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" required ng-remote-validate="/api/users/validate/name"/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required ng-remote-validate="/api/users/validate/email"/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_EMAIL\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),
+a.put("app/variable/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_VARIABLE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.variable" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.variable.name.$touched || forms.variable.$submitted) && forms.variable.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.variable.name.$touched || forms.variable.$submitted) && forms.variable.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.variable.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/variable/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VARIABLES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="Variables.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VARIABLE\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getVariables([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="variables.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedVariables" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.variablesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variableByPage in variablesByPage | filter: $select.search">\n <div ng-bind-html="variableByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(variable, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="variable in displayedVariables" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="variable.defaultEntry" type="checkbox" checklist-model="Variables.checked" checklist-value="variable.id"></td>\n <td>{{variable.name}}</td>\n <td>{{variable.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/variables/view/{{variable.id}}/settings" data-ng-class="{\'disabled\': variable.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(variable.name,variable.id)" data-ng-class="{\'disabled\': variable.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedVariables.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_VARIABLES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.variablesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/variable/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVariable()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="variable">\n <a href="#">{{variable.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/variable.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{variable.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.variables.view.settings\')}">\n <a data-ng-href="/variables/view/{{variable.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/variable/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VARIABLE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVariable()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="variable.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="variable.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/context/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="voiceContexts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTEXT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/contexts/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getVoiceContexts([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="voice_contexts.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedContexts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.contextsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="contextByPage in contextsByPage | filter: $select.search">\n <div ng-bind-html="contextByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(context, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="context in displayedVoiceContexts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="context.defaultEntry" type="checkbox" checklist-model="voiceContexts.checked" checklist-value="context.id"></td>\n <td>{{context.name}}</td>\n <td>{{context.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/contexts/view/{{context.id}}/settings" data-ng-class="{\'disabled\': context.defaultEntry}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(context.name,context.id)" data-ng-class="{\'disabled\': context.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedVoiceContexts.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CONTEXTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.contextsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/context/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getContext()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i data-ng-show="context" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="context">\n <a href="#">{{context.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/context.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{context.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.contexts.view.settings\')}">\n <a data-ng-href="/voice/contexts/view/{{context.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/context/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONTEXT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceContext()" novalidate>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="context.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/context/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/voice/contexts/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.context.$valid)">\n <form name="forms.context" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.context.name.$touched || forms.context.$submitted) && forms.context.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.context.name.$touched || forms.context.$submitted) && forms.context.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/moh/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOHS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOHS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="mohs.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_MOH_CLASS\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/mohs/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getMohs([\'name\', \'directory\', \'sort\', \'description\'])" csv-header="[\'Name\', \'Directory\', \'Sort\', \'Description\']" field-separator=";" filename="musiconholds_classes.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedMohs" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.mohsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mohByPage in mohsByPage | filter: $select.search">\n <div ng-bind-html="mohByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(moh, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="directory">{{ \'APPLICATION_PATH\' | translate }}</th>\n <th st-sort="sort">{{ \'APPLICATION_SORT\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="moh in displayedMohs" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="mohs.checked" checklist-value="moh.id" data-ng-hide="moh.defaultEntry"></td>\n <td>{{moh.name}}</td>\n <td>{{moh.directory}}</td>\n <td>{{moh.sort | capitalize}}</td>\n <td>{{moh.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-class="{\'disabled\': moh.defaultEntry}" data-ng-href="/voice/mohs/view/{{moh.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-class="{\'disabled\': moh.defaultEntry}" data-ng-click="deleteItem(moh.name,moh.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedMohs.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_MOHS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="directory" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_PATH\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="sort" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_SORT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.mohsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/moh/view/view.addFiles.html",'\n<div class="row" data-ng-init="getSounds()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH\' | translate }} {{ \'APPLICATION_ADD_FILES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="soundList.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n </div>\n <form name="forms.general" data-ng-submit="(item.sounds.length > 0) && addMohs()" data-ng-show="soundList.length" novalidate>\n\n <!-- START SOUNDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0}">\n <label class="control-label">{{\'APPLICATION_SOUNDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.sounds" theme="bootstrap" name="sounds" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="sound.id as sound in soundList | filter: $select.search">\n {{sound.display_name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <input type="submit" class="btn green-haze" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
+a.put("app/voice/moh/view/view.audios.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getAudioFiles()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AUDIOS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="audioFiles">\n <a class="btn green-jungle " href="/voice/mohs/view/{{moh.id}}/add" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_ADD_FILES\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="audioFiles">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_FOLDER_DOES_NOT_EXIST\' | translate }}\n </p>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover" data-ng-show="audioFiles">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n <th width="30%">{{ \'APPLICATION_PREVIEW\' | translate }}</th>\n <th width="10%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="audioFiles">\n <tr data-ng-repeat="audiofile in audioFiles">\n <td>{{audiofile}}</td>\n <td>\n <audio controls ng-src="{{getSecureSrc(audioSources[audiofile])}}" preload="none">\n Your browser does not support the audio tag.\n </audio></td>\n <td>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(audiofile,audiofile)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="audioFiles.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AUDIOFILES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/voice/moh/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMoh()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOH_CLASS\' | translate }}</a>\n <i data-ng-show="moh" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="moh">\n <a href="#">{{moh.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/moh.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{moh.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.mohs.view.settings\')}">\n <a data-ng-href="/voice/mohs/view/{{moh.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.voice.mohs.view.audios\') || $state.is(\'main.voice.mohs.view.add\')}">\n <a data-ng-href="/voice/mohs/view/{{moh.id}}/audios">\n <i class="icon-list"></i>\n {{ \'APPLICATION_AUDIOS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/moh/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOH_CLASS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceMoh()" novalidate>\n\n <!-- START PATH -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.directory" disabled/>\n </div>\n <!-- END PATH -->\n\n <!-- START SORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="moh.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SORT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" class="form-control" data-ng-model="moh.description"/></textarea>\n <span data-ng-show="forms.general.$submitted && forms.general.description.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/moh/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard();getContexts();">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/voice/mohs/list">{{ \'APPLICATION_MOHS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH_CLASS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START SORT -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END SORT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" class="form-control" data-ng-model="item.description"/></textarea>\n <span data-ng-show="forms.general.$submitted && forms.general.description.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/queue/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="queues.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/queues/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getQueues([\'name\', \'description\', \'strategy\', \'context\'])" csv-header="[\'Name\', \'Description\', \'Strategy\', \'Context\']" field-separator=";" filename="queues.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedQueues" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.voiceQueuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="voiceQueueByPage in voiceQueuesByPage | filter: $select.search">\n <div ng-bind-html="voiceQueueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(queue, checked)" checklist-model checklist-value="name"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th st-sort="strategy">{{ \'APPLICATION_STRATEGY\' | translate }}</th>\n <th st-sort="context">{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="queue in displayedQueues" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="queues.checked" checklist-value="queue.name"></td>\n <td>{{queue.name}}</td>\n <td>{{queue.description}}</td>\n <td>{{queue.strategy}}</td>\n <td>{{queue.context}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/queues/view/{{queue.name}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(queue.name,queue.name)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedQueues.length">\n <td colspan="6" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="strategy" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_STRATEGY\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="context" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CONTEXT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.voiceQueuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body text-center">\n <div class="form-group last">\n <div class="col-md-9" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.queues.view.settings\')}">\n <a data-ng-href="/voice/queues/view/{{queue.name}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.voice.queues.view.agents\')}">\n <a data-ng-href="/voice/queues/view/{{queue.name}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_QUEUE_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();getMohs();getSounds();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START MOH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOH\' | translate}}</label>\n <ui-select data-ng-model="queue.musiconhold" name="musiconhold" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="musiconhold.name as musiconhold in voiceMohs | filter: $select.search">\n <div ng-bind-html="musiconhold.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_MOH\' | translate }}\n </span>\n <span data-ng-show="(forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOH -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.timeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START MAXLEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXLEN\' | translate}}</label>\n <input type="number" min="0" name="maxlen" placeholder="{{\'APPLICATION_MAXLEN\' | translate}}" class="form-control" data-ng-model="queue.maxlen" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MAXLEN\' | translate }}\n </span>\n <span data-ng-show="(forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAXLEN -->\n\n <!-- START RETRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY\' | translate}}</label>\n <input type="number" min="0" name="retry" placeholder="{{\'APPLICATION_RETRY\' | translate}}" class="form-control" data-ng-model="queue.retry" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RETRY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRY -->\n\n </div>\n <div class="col-md-6">\n <!-- START WRAPUPTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$invalid}">\n <label class="control-label">{{\'APPLICATION_WRAPUPTIME\' | translate}}</label>\n <input type="number" min="0" name="wrapuptime" placeholder="{{\'APPLICATION_WRAPUPTIME\' | translate}}" class="form-control" data-ng-model="queue.wrapuptime" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WRAPUPTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WRAPUPTIME -->\n\n <!-- START WEIGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEIGHT\' | translate}}</label>\n <input type="number" min="0" name="weight" placeholder="{{\'APPLICATION_WEIGHT\' | translate}}" class="form-control" data-ng-model="queue.weight" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WEIGHT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEIGHT -->\n\n <!-- START JOINEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_JOINEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.joinempty" name="joinempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_JOINEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END JOINEMPTY -->\n\n <!-- START LEAVEWHENEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_LEAVEWHENEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.leavewhenempty" name="leavewhenempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_LEAVEWHENEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LEAVEWHENEMPTY -->\n\n <!-- START ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.announce" name="announce" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in sounds | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE -->\n </div>\n </div>\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.announce" data-ng-submit="forms.announce.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-12">\n <!-- START PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="queue.periodic_announce" name="periodic_announce" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in periodicAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE -->\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SETTINGS\' | translate}}</h3></p>\n <!-- START ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="announce_frequency" placeholder="{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_FREQUENCY -->\n\n <!-- START MIN_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="min_announce_frequency" placeholder="{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.min_announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MIN_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN_ANNOUNCE_FREQUENCY -->\n\n <!-- START PERIODIC_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="periodic_announce_frequency" placeholder="{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.periodic_announce_frequency"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE_FREQUENCY -->\n\n <!-- START RANDOM_PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_RANDOM_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select data-ng-model="queue.random_periodic_announce" name="random_periodic_announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RANDOM_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANDOM_PERIODIC_ANNOUNCE -->\n\n <!-- START ANNOUNCE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_holdtime" name="announce_holdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'once\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_HOLDTIME -->\n\n <!-- START ANNOUNCE_POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_position" name="announce_position" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'limit\',\'more\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION -->\n\n <!-- START ANNOUNCE_POSITION_LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}</label>\n <input type="number" min="0" name="announce_position_limit" placeholder="{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}" class="form-control" data-ng-model="queue.announce_position_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION_LIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION_LIMIT -->\n\n <!-- START REPORTHOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_REPORTHOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.reportholdtime" name="reportholdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORTHOLDTIME -->\n\n </div>\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SOUNDS\' | translate}}</h3></p>\n <!-- START QUEUE_REPORTHOLD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_REPORTHOLD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_reporthold" name="queue_reporthold" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLD\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_REPORTHOLD -->\n\n <!-- START QUEUE_YOUARENEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_YOUARENEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_youarenext" name="queue_youarenext" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_YOUARENEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_YOUARENEXT -->\n\n <!-- START QUEUE_THEREARE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THEREARE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_thereare" name="queue_thereare" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THEREARE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THEREARE -->\n\n <!-- START QUEUE_CALLSWAITING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_CALLSWAITING\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_callswaiting" name="queue_callswaiting" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_CALLSWAITING\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_CALLSWAITING -->\n\n <!-- START QUEUE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_HOLDTIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_holdtime" name="queue_holdtime" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_HOLDTIME -->\n\n <!-- START QUEUE_MINUTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_minutes" name="queue_minutes" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTES\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTES -->\n\n <!-- START QUEUE_MINUTE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_minute" name="queue_minute" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTE -->\n\n <!-- START QUEUE_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_SECONDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_seconds" name="queue_seconds" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_SECONDS\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_SECONDS -->\n\n <!-- START QUEUE_THANKYOU -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THANKYOU\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.queue_thankyou" name="QUEUE_THANKYOU" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="returnAnnouncePath(announce) as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THANKYOU\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THANKYOU -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateVoiceQueue()" novalidate>\n\n <div class="row">\n <div class="col-md-6">\n\n <!-- START AUTOPAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTOPAUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.autopause" name="autopause" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'all\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_AUTOPAUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUTOPAUSE -->\n\n <!-- START RINGINUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$invalid}">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.ringinuse" name="ringinuse" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RINGINUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START MEMBER_DELAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_MEMBER_DELAY\' | translate}}</label>\n <input type="number" min="0" name="memberdelay" placeholder="{{\'APPLICATION_MEMBER_DELAY\' | translate}}" class="form-control" data-ng-model="queue.memberdelay" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MEMBER_DELAY\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MEMBER_DELAY -->\n </div>\n <div class="col-md-6">\n\n <!-- START TIMEOUTRESTART -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUTRESTART\' | translate}}</label>\n <ui-select data-ng-model="queue.timeoutrestart" name="timeoutrestart" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUTRESTART\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUTRESTART -->\n\n <!-- START MONITOR_FORMAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$invalid}">\n <label class="control-label">{{\'APPLICATION_MONITOR_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.monitor_format" name="monitor_format" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="monFormat.value as monFormat in monitorFormats | filter: $select.search">\n <div ng-bind-html="monFormat.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MONITOR_FORMAT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONITOR_FORMAT -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.context.$touched || forms.advanced.$submitted) && forms.advanced.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}</label>\n <ui-select data-ng-model="queue.context" name="context" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.context.$touched || forms.advanced.$submitted) && forms.advanced.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),
a.put("app/voice/queue/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-layers"></i>\n <a href="/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/voice/queues/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-layers font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.queue.$valid)">\n <form name="forms.queue" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.queue.name.$touched || forms.queue.$submitted) && forms.queue.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.queue.name.$touched || forms.queue.$submitted) && forms.queue.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.queue.strategy.$touched || forms.queue.$submitted) && forms.queue.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(forms.queue.strategy.$touched || forms.queue.$submitted) && forms.queue.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <div ng-show="selected">Selection from a modal: {{ selected }}</div>\n <!-- BEGIN TABLE -->\n <table st-table="displayedGroups" st-safe-src="groups" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="10">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <!-- <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div> -->\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="memebername" colspan="3">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="queue">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_LOGIN\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_PAUSE\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_INCOMING_CALL\' | translate }}</th>\n <th>{{ \'APPLICATION_SERVED\' | translate }}</th>\n <th colspan="2"></th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat-start="group in displayedGroups">\n <td rowspan="{{group.queues.length}}" align="center" style="vertical-align:middle">{{group.membername}}</td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <span data-ng-class="{\'icon-like font-green\': queue.lastevent != \'called\' && queue.lastevent != \'connect\' ,\'icon-bell font-yellow\': queue.lastevent == \'called\', \'icon-call-in font-red\': queue.lastevent == \'connect\'}"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <span class="icon-cup" data-ng-class="queue.paused ? \'font-red\' : \'font-green\'"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n {{queue.queue}}\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{queue.loggedAt}}" data-ng-show="queue.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!queue.logged"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{queue.pausedAt}}" data-ng-show="queue.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{queue.paused ? \'(\' + queue.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{queue.lastcall}}" data-ng-show="queue.lastcall">\n April 1, 2014\n </time>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n {{queue.callstaken}}\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$first" align="center">\n <span data-ng-show="queue.logged" class="icon-cup pull-left" style="cursor:pointer;" ng-click="pause(null, queue)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" ng-click="remove(null, queue)"> </span>\n </td>\n <td rowspan="{{group.queues.length}}" align="center" style="vertical-align:middle">\n <span data-ng-show="group.queues.length > 1" class="icon-cup pull-left" style="cursor:pointer;" ng-click="pause(null, group.queues)"> </span>\n <span class="icon-plus font-green" style="cursor:pointer;" ng-click="add(null, group.queues)"> </span>\n <span data-ng-show="group.queues.length > 1" class="icon-close font-red pull-right" style="cursor:pointer;" ng-click="remove(null, group.queues)"></span>\n </td>\n </tr>\n <tr data-ng-repeat="queue in group.queues" data-ng-if="$middle">\n <td data-ng-repeat="queue in group.queues" data-ng-if="$middle" align="center">\n <span data-ng-class="{\'icon-like font-green\': queue.lastevent != \'called\' && queue.lastevent != \'connect\' ,\'icon-bell font-yellow\': queue.lastevent == \'called\', \'icon-call-in font-red\': queue.lastevent == \'connect\'}"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$middle" align="center">\n <span class="icon-cup" data-ng-class="queue.paused ? \'font-red\' : \'font-green\'"></span>\n </td>\n <td align="center">\n {{queue.queue}}\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{queue.loggedAt}}" data-ng-show="queue.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!queue.logged"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$middle" align="center">\n <time is="relative-time" datetime="{{queue.pausedAt}}" data-ng-show="queue.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{queue.paused ? \'(\' + queue.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{queue.lastcall}}" data-ng-show="queue.lastcall">\n April 1, 2014\n </time>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$middle" align="center">\n {{queue.callstaken}}\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$middle" align="center">\n <span data-ng-show="queue.logged" class="icon-cup pull-left" style="cursor:pointer;" ng-click="pause(null, queue)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" ng-click="remove(null, queue)"> </span>\n </td>\n </tr>\n <tr data-ng-repeat="queue in group.queues" data-ng-if="group.queues.length > 1 && $last" data-ng-repeat-end>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$last" align="center">\n <span data-ng-class="{\'icon-like font-green\': queue.lastevent != \'called\' && queue.lastevent != \'connect\' ,\'icon-bell font-yellow\': queue.lastevent == \'called\', \'icon-call-in font-red\': queue.lastevent == \'connect\'}"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$last" align="center">\n <span class="icon-cup" data-ng-class="queue.paused ? \'font-red\': \'font-green\'"></span>\n </td>\n <td align="center">\n {{queue.queue}}\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{queue.loggedAt}}" data-ng-show="queue.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!queue.logged"></span>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$last" align="center">\n <time is="relative-time" datetime="{{queue.pausedAt}}" data-ng-show="queue.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{queue.paused ? \'(\' + queue.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{queue.lastcall}}" data-ng-show="queue.lastcall">\n April 1, 2014\n </time>\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$last" align="center">\n {{queue.callstaken}}\n </td>\n <td data-ng-repeat="queue in group.queues" data-ng-if="$last" align="center">\n <span data-ng-show="queue.logged" class="icon-cup pull-left" style="cursor:pointer;" ng-click="pause(null, queue)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" ng-click="remove(null, queue)"> </span>\n </td>\n </tr>\n <tr data-ng-hide="displayedGroups.length">\n <td colspan="9" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="1">\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n <td colspan="9"></td>\n </tr>\n <tr>\n <td colspan="10" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/realtime/view/agent/pause.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_PAUSE_SELECTION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item" data-ng-hide="data.length">\n {{ \'APPLICATION_QUEUE\' | translate }}: <b class="pull-right">{{ selected.queue }}</b>\n </li>\n <li class="list-group-item">\n {{ \'APPLICATION_AGENT\' | translate }}: <b class="pull-right">{{ selected.membername }}</b>\n </li>\n <li class="list-group-item">\n <div class="btn-group">\n <ui-select ng-model="selected.item" theme="bootstrap" ng-disabled="disabled" class="btn input-xlarge pull-left">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in items | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <button class="btn btn-success pull-right" type="button" ng-click="ok(true)" style="margin-top: 7px;">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n </div>\n </li>\n </ul>\n </div>\n <button data-ng-show="(data | isArray) ? (data | where: {paused: true}).length : data.paused " class="btn btn-danger btn-block" type="button" ng-click="ok(false, data.queue)">Exit</button>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/agent/queue.modal.add.html",'<div class="modal-header" data-ng-init="initAdd()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_SELECTION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info" data-ng-show="selected.queue">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_AGENT\' | translate}}" class="form-control" data-ng-model="selected.membername" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="queues.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.queue" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}:</label>\n <div class="col-md-10">\n <input type="number" min="0" max="10" placeholder="{{\'APPLICATION_PENALTY\' | translate}}" class="form-control" data-ng-model="selected.penalty"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PAUSE\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.paused" btn-checkbox> {{ selected.paused ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="selected.paused">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_REASON\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.reason" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_REASON\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="pause in pauses | filter: $select.search">\n <div ng-bind-html="pause | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGIN\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.login" btn-checkbox> {{ selected.login ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n </ul>\n <!-- End List group -->\n </div>\n <div class="note note-warning" data-ng-hide="selected.queue">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="okAdd()" data-ng-show="selected.queue">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/agent/queue.modal.remove.html",'<div class="modal-header" data-ng-init="initRemove()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_REMOVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item" data-ng-hide="data.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_AGENT\' | translate}}" class="form-control" data-ng-model="selected.membername" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="data.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_QUEUE\' | translate}}" class="form-control" data-ng-model="selected.queue" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGOUT\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.logout" btn-checkbox> {{ selected.logout ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n <span class="help-block">{{ \'MESSAGE_PERMANENT_REMOVAL_FROM_QUEUE\' | translate }}. </span>\n </div>\n </div>\n </li>\n </ul>\n </div>\n <button class="btn btn-danger btn-block" type="button" ng-click="okRemove()">{{ \'APPLICATION_REMOVE\' | translate }}</button>\n</div>\n<div class="modal-footer">\n <!-- <button class="btn btn-success" type="button" ng-click="okRemove()">{{ \'APPLICATION_CONFIRM\' | translate }}</button> -->\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/areport/report.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initReport()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedAgents" st-safe-src="agents" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="11">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="calleridname">{{ \'APPLICATION_CALLER\' | translate }}</th>\n <th st-sort="agentcalledAt">{{ \'APPLICATION_CALLED_AT\' | translate }}</th>\n <th st-sort="agentconnectAt">{{ \'APPLICATION_CONNECTED_AT\' | translate }}</th>\n <th st-sort="agentcompleteAt">{{ \'APPLICATION_COMPLETED_AT\' | translate }}</th>\n <th st-sort="reason">{{ \'APPLICATION_REASON\' | translate }}</th>\n <th st-sort="holdtime">{{ \'APPLICATION_HOLDTIME\' | translate }}</th>\n <th st-sort="talktime">{{ \'APPLICATION_TALKTIME\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="agent in displayedAgents">\n <td><span data-ng-class="{\'icon-call-in font-yellow\': agent.lastevent === \'called\',\n \'icon-phone font-blue\': agent.lastevent === \'connect\',\n \'icon-call-end font-green\': agent.lastevent === \'complete\',\n \'icon-call-end font-red\': agent.lastevent === \'answered_elsewhere\'}"></span>\n </td>\n <td>{{agent.uniqueid}}</td>\n <td>{{agent.queue}}</td>\n <td>{{agent.destcalleridname ? agent.destcalleridname + \' [\' + agent.membername + \']\' : agent.membername }}</td>\n <td>{{agent.calleridname ? agent.calleridname + \' [\' + agent.calleridnum + \']\' : agent.calleridnum }}</td>\n <td>\n <time is="relative-time" datetime="{{agent.agentcalledAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{agent.agentconnectAt}}" data-ng-show="agent.agentconnectAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{agent.agentcompleteAt}}" data-ng-show="agent.agentcompleteAt">\n April 1, 2014\n </time>\n </td>\n <td>\n {{agent.reason | uppercase}}\n </td>\n <td>{{agent.holdtime || 0 | VoiceRealtimeViewAgentReportFilter | date:\'HH:mm:ss\'}}</td>\n <td>{{agent.talktime || 0 | VoiceRealtimeViewAgentReportFilter | date:\'HH:mm:ss\'}}</td>\n </tr>\n <tr data-ng-hide="displayedAgents.length">\n <td colspan="11" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" data-ng-model="filters.uniqueid" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="membername" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="calleridnum" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CALLER\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="7"></td>\n </tr>\n <tr>\n <td colspan="11" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/realtime/view/qreport/report.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initReport()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <table st-table="displayedQueues" st-safe-src="queues" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="10">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.queuesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queueByPage in queuesByPage | filter: $select.search">\n <div ng-bind-html="queueByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search"/>\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th></th>\n <th st-sort="uniqueid">{{ \'APPLICATION_UNIQUEID\' | translate }}</th>\n <th st-sort="queue">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="membername">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th st-sort="calleridname">{{ \'APPLICATION_CALLER\' | translate }}</th>\n <th st-sort="queuecallerjoinAt">{{ \'APPLICATION_CALLED_AT\' | translate }}</th>\n <th st-sort="queuecallerleaveAt">{{ \'APPLICATION_CONNECTED_AT\' | translate }}</th>\n <th st-sort="queuecallerabandonAt">{{ \'APPLICATION_ABANDONED_AT\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="queue in displayedQueues">\n <td><span data-ng-class="{\'icon-call-in font-yellow\': queue.queuecallerjoinAt && !queue.queuecallerleaveAt,\n \'icon-phone font-blue\': queue.queuecallerjoinAt && queue.queuecallerleaveAt,\n \'icon-call-end font-red\': queue.queuecallerjoinAt && queue.queuecallerleaveAt && queue.queuecallerabandonAt}"></span>\n </td>\n <td>{{queue.uniqueid}}</td>\n <td>{{queue.queue}}</td>\n <td>{{queue.connectedlinename ? queue.connectedlinename + \' [\' + queue.connectedlinenum + \']\' : queue.connectedlinenum }}</td>\n <td>{{queue.calleridname ? queue.calleridname + \' [\' + queue.calleridnum + \']\' : queue.calleridnum }}</td>\n <td>\n <time is="relative-time" datetime="{{queue.queuecallerjoinAt}}">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{queue.queuecallerleaveAt}}" data-ng-show="queue.queuecallerleaveAt">\n April 1, 2014\n </time>\n </td>\n <td>\n <time is="relative-time" datetime="{{queue.queuecallerabandonAt}}" data-ng-show="queue.queuecallerabandonAt">\n April 1, 2014\n </time>\n </td>\n </tr>\n <tr data-ng-hide="displayedQueues.length">\n <td colspan="10" style="text-align:center;">\n <i>No queues available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="uniqueid" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_UNIQUEID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="connectedlinename" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_AGENT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="calleridnum" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CALLER\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td colspan="6"></td>\n </tr>\n <tr>\n <td colspan="10" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.queuesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/voice/realtime/view/queue/pause.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_PAUSE_SELECTION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n {{ \'APPLICATION_QUEUE\' | translate }}: <b class="pull-right">{{ selected.queue }}</b>\n </li>\n <li class="list-group-item" data-ng-hide="data.length">\n {{ \'APPLICATION_AGENT\' | translate }}: <b class="pull-right">{{ selected.membername }}</b>\n </li>\n <li class="list-group-item">\n <div class="btn-group">\n <ui-select ng-model="selected.item" theme="bootstrap" ng-disabled="disabled" class="btn input-xlarge pull-left">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in items | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <button class="btn btn-success pull-right" type="button" ng-click="ok(true)" style="margin-top: 7px;">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n </div>\n </li>\n </ul>\n </div>\n <button data-ng-show="(data | isArray) ? (data | where: {paused: true}).length : data.paused " class="btn btn-danger btn-block" type="button" ng-click="ok(false, data.queue)">Exit</button>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/queue/queue.add.modal.html",'<div class="modal-header" data-ng-init="initAdd()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_SELECTION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_AGENT\' | translate}}" class="form-control" data-ng-model="selected.membername" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="queues.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.queue" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}:</label>\n <div class="col-md-10">\n <input type="number" min="0" max="10" placeholder="{{\'APPLICATION_PENALTY\' | translate}}" class="form-control" data-ng-model="selected.penalty"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PAUSE\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.paused" ui-btn-checkbox> {{ selected.paused ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="selected.paused">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_REASON\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.reason" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_REASON\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="pause in pauses | filter: $select.search">\n <div ng-bind-html="pause | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGIN\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.login" ui-btn-checkbox> {{ selected.login ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n </ul>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="okAdd()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/queue/queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initQueues()">\n <div class="col-md-12">\n <div ng-show="selected">Selection from a modal: {{ selected }}</div>\n <!-- BEGIN TABLE -->\n <table st-table="displayedGroups" st-safe-src="groups" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="10">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.agentsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="agentByPage in agentsByPage | filter: $select.search">\n <div ng-bind-html="agentByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <!-- <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div> -->\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="memebername" colspan="3">{{ \'APPLICATION_QUEUE\' | translate }}</th>\n <th st-sort="agent">{{ \'APPLICATION_AGENT\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_LOGIN\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_PAUSE\' | translate }}</th>\n <th>{{ \'APPLICATION_LAST_INCOMING_CALL\' | translate }}</th>\n <th>{{ \'APPLICATION_SERVED\' | translate }}</th>\n <th colspan="2"></th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat-start="group in displayedGroups">\n <td rowspan="{{group.agents.length}}" align="center" style="vertical-align:middle">{{group.queue}}</td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <span data-ng-class="{\'icon-like font-green\': agent.lastevent != \'called\' && agent.lastevent != \'connect\' ,\'icon-bell font-yellow\': agent.lastevent == \'called\', \'icon-call-in font-red\': agent.lastevent == \'connect\'}"></span>\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <span class="icon-cup" data-ng-class="agent.paused ? \'font-red\' : \'font-green\'"></span>\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n {{agent.membername}}\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{agent.loggedAt}}" data-ng-show="agent.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!agent.logged"></span>\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{agent.pausedAt}}" data-ng-show="agent.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{agent.paused ? \'(\' + agent.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <time is="relative-time" datetime="{{agent.lastcall}}" data-ng-show="agent.lastcall">\n April 1, 2014\n </time>\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n {{agent.callstaken}}\n </td>\n <td data-ng-repeat="agent in group.agents" data-ng-if="$first" align="center">\n <span data-ng-show="agent.logged" class="icon-cup pull-left" style="cursor:pointer;" data-ng-click="pause(null, agent)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" data-ng-click="remove(null, agent)"> </span>\n </td>\n <td rowspan="{{group.agents.length}}" align="center" style="vertical-align:middle">\n <span data-ng-show="group.agents.length > 1" class="icon-cup pull-left" style="cursor:pointer;" data-ng-click="pause(null, group.agents)"> </span>\n <span class="icon-plus font-green" style="cursor:pointer;" data-ng-click="add(null, group.agents)"> </span>\n <span data-ng-show="group.agents.length > 1" class="icon-close font-red pull-right" style="cursor:pointer;" data-ng-click="remove(null, group.agents)"></span>\n </td>\n </tr>\n <tr data-ng-repeat="agent in group.agents" data-ng-if="$middle">\n <td align="center">\n <span data-ng-class="{\'icon-like font-green\': agent.lastevent != \'called\' && agent.lastevent != \'connect\' ,\'icon-bell font-yellow\': agent.lastevent == \'called\', \'icon-call-in font-red\': agent.lastevent == \'connect\'}"></span>\n </td>\n <td align="center">\n <span class="icon-cup" data-ng-class="agent.paused ? \'font-red\' : \'font-green\'"></span>\n </td>\n <td align="center">\n {{agent.membername}}\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.loggedAt}}" data-ng-show="agent.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!agent.logged"></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.pausedAt}}" data-ng-show="agent.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{agent.paused ? \'(\' + agent.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.lastcall}}" data-ng-show="agent.lastcall">\n April 1, 2014\n </time>\n </td>\n <td align="center">\n {{agent.callstaken}}\n </td>\n <td align="center">\n <span data-ng-show="agent.logged" class="icon-cup pull-left" style="cursor:pointer;" data-ng-click="pause(null, agent)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" data-ng-click="remove(null, agent)"> </span>\n </td>\n </tr>\n <tr data-ng-repeat="agent in group.agents" data-ng-if="group.agents.length > 1 && $last" data-ng-repeat-end>\n <td align="center">\n <span data-ng-class="{\'icon-like font-green\': agent.lastevent != \'called\' && agent.lastevent != \'connect\' ,\'icon-bell font-yellow\': agent.lastevent == \'called\', \'icon-call-in font-red\': agent.lastevent == \'connect\'}"></span>\n </td>\n <td align="center">\n <span class="icon-cup" data-ng-class="agent.paused ? \'font-red\': \'font-green\'"></span>\n </td>\n <td align="center">\n {{agent.membername}}\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.loggedAt}}" data-ng-show="agent.logged">\n April 1, 2014\n </time>\n <span class="badge badge-empty badge-danger" data-ng-show="!agent.logged"></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.pausedAt}}" data-ng-show="agent.pausedAt">\n April 1, 2014\n </time>\n <span> <strong>{{agent.paused ? \'(\' + agent.reason + \')\' : \'\'}}</strong></span>\n </td>\n <td align="center">\n <time is="relative-time" datetime="{{agent.lastcall}}" data-ng-show="agent.lastcall">\n April 1, 2014\n </time>\n </td>\n <td align="center">\n {{agent.callstaken}}\n </td>\n <td align="center">\n <span data-ng-show="agent.logged" class="icon-cup pull-left" style="cursor:pointer;" data-ng-click="pause(null, agent)"> </span>\n <span class="icon-close font-red pull-right" style="cursor:pointer;" data-ng-click="remove(null, agent)"> </span>\n </td>\n </tr>\n <tr data-ng-hide="displayedGroups.length">\n <td colspan="9" style="text-align:center;">\n <i>No agents available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="1">\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="queue" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_QUEUE\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n <td colspan="9"></td>\n </tr>\n <tr>\n <td colspan="10" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.agentsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/realtime/view/queue/queue.modal.add.html",'<div class="modal-header" data-ng-init="initAdd()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_SELECTION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info" data-ng-show="selected.queue">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_QUEUE\' | translate}}" class="form-control" data-ng-model="selected.queue" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="agents.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.agent" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_AGENT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="{name: agent.name, id: agent.id} as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}:</label>\n <div class="col-md-10">\n <input type="number" min="0" max="10" placeholder="{{\'APPLICATION_PENALTY\' | translate}}" class="form-control" data-ng-model="selected.penalty"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PAUSE\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.paused" btn-checkbox> {{ selected.paused ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-show="selected.paused">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_REASON\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select ng-model="selected.reason" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_REASON\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="pause in pauses | filter: $select.search">\n <div ng-bind-html="pause | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGIN\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.login" btn-checkbox> {{ selected.login ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n </div>\n </div>\n </li>\n </ul>\n <!-- End List group -->\n </div>\n <div class="note note-warning" data-ng-hide="selected.queue">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="okAdd()" data-ng-show="selected.queue">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/queue/queue.modal.remove.html",'<div class="modal-header" data-ng-init="initRemove()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_REMOVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n <div class="form-group row" data-ng-hide="data.length">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_AGENT\' | translate}}" class="form-control" data-ng-model="selected.membername" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_QUEUE\' | translate}}" class="form-control" data-ng-model="selected.queue" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGOUT\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.logout" btn-checkbox> {{ selected.logout ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n <span class="help-block">{{ \'MESSAGE_PERMANENT_REMOVAL_FROM_QUEUE\' | translate }}. </span>\n </div>\n </div>\n </li>\n </ul>\n </div>\n <button class="btn btn-danger btn-block" type="button" ng-click="okRemove()">{{ \'APPLICATION_REMOVE\' | translate }}</button>\n</div>\n<div class="modal-footer">\n <!-- <button class="btn btn-success" type="button" ng-click="okRemove()">{{ \'APPLICATION_CONFIRM\' | translate }}</button> -->\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/queue/queue.remove.modal.html",'<div class="modal-header" data-ng-init="initRemove()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUE_REMOVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="panel panel-info">\n <!-- Default panel contents -->\n <div class="panel-heading">\n <h3 class="panel-title"><span class="icon-doc"></span> Summary</h3>\n </div>\n <!-- List group -->\n <ul class="list-group">\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_AGENT\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_AGENT\' | translate}}" class="form-control" data-ng-model="selected.membername" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item" data-ng-hide="data.length">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <input type="text" placeholder="{{\'APPLICATION_QUEUE\' | translate}}" class="form-control" data-ng-model="selected.queue" ng-disabled="true"/>\n </div>\n </div>\n </li>\n <li class="list-group-item">\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_LOGOUT\' | translate}}:</label>\n <div class="col-md-10">\n <button type="button" class="btn btn-default form-control" data-ng-model="selected.logout" btn-checkbox> {{ selected.logout ? \'APPLICATION_YES\' : \'APPLICATION_NO\' | translate }} </button>\n <span class="help-block">{{ \'MESSAGE_PERMANENT_REMOVAL_FROM_QUEUE\' | translate }}. </span>\n </div>\n </div>\n </li>\n </ul>\n </div>\n <button class="btn btn-danger btn-block" type="button" ng-click="okRemove()">{{ \'APPLICATION_REMOVE\' | translate }}</button>\n</div>\n<div class="modal-footer">\n <!-- <button class="btn btn-success" type="button" ng-click="okRemove()">{{ \'APPLICATION_CONFIRM\' | translate }}</button> -->\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/voice/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/voice/realtime/list">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <!-- <a class="navbar-brand" ui-sref="home">Brand</a> -->\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'">\n <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_AGENTS\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'agents\'></tree>\n </li>\n </ul>\n <ul class="nav navbar-nav">\n <li dropdown>\n <a href="#" dropdown-toggle>\n {{ \'APPLICATION_QUEUES\' | translate }}\n <b class=\'caret\'></b>\n </a>\n <tree tree=\'queues\'></tree>\n </li>\n </ul>\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/route/inbound/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-in"></i>\n <a href="/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="routes.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/routes/inbound/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getRoutes([\'context\', \'exten\', \'app\', \'appdata\', \'description\'])" csv-header="[\'Context\', \'Exten\', \'App\', \'Appdata\', \'Description\']" field-separator=";" filename="routes_inbound.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedRoutes" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.routesByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="routeByPage in routesByPage | filter: $select.search">\n <div ng-bind-html="routeByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(checked)" checklist-model checklist-value="id"></th>\n <th st-sort="exten">{{ \'APPLICATION_DID\' | translate }}</th>\n <th st-sort="context">{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="route in displayedRoutes" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="routes.checked" checklist-value="route.id"></td>\n <td>{{route.exten}}</td>\n <td>{{route.context}}</td>\n <td>{{route.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/routes/inbound/view/{{route.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(route.exten,route.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedRoutes.length">\n <td colspan="5" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_ROUTES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="exten" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DID\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="context" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_CONTEXT\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.routesByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/voice/route/inbound/view/view.application.html",'\n<div class="row" data-ng-init="initApplication(); getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_APPLICATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <div class="profile-usertitle-name">\n {{(main.app | capitalize) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in $application.applications| filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div id="Queue" class="app-settings" ng-slide-down="main.app == \'Queue\'" lazy-render duration="1">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.queue" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <ui-select multiple data-ng-model="application.app_options" theme="bootstrap" name="app_options">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($item.name)}}</ui-select-match>\n <ui-select-choices repeat="queueOpt.value as queueOpt in $application.queueOptions | filter: $select.search">\n {{$translate.instant(queueOpt.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.url">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}</label>\n <ui-select data-ng-model="application.audiofile" name="audiofile" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="audio.converted_path+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="number" name="timeout" placeholder="" class="form-control" data-ng-model="application.timeout">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n <div id="Playback" class="app-settings" ng-slide-down="main.app == \'Playback\'" lazy-render duration="1">\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.audiofile" name="audiofile" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="audio.converted_path+\'/\'+audio.save_name as audio in items | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <ui-select data-ng-model="application.app_options" theme="bootstrap" name="app_options">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="audioOpt.value as audioOpt in $application.audioOptions | filter: $select.search">\n {{$translate.instant(audioOpt.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app == \'Dial\'" lazy-render duration="1">\n <!-- START INTERFACE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="application.interface" required>\n <span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERFACE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="number" name="timeout" placeholder="" class="form-control" data-ng-model="application.timeout">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.app_options">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.url">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="AGI" class="app-settings" ng-slide-down="main.app == \'AGI\'" lazy-render duration="1">\n <!-- START PROJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.project" name="project" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.name as project in items | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n\n <!-- START URL -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <div class="input-group">\n <input type="text" name="url" placeholder="agi://127.0.0.1/square" class="form-control" data-ng-model="application.url" data-ng-disabled="!application.urlEnabled" data-ng-required="application.urlEnabled" rpattern="/^agi:\\/\\/(?:[0-9]{1,3}\\.){3}[0-9]{1,3}\\/square$/">\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="application.urlEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div> -->\n <!-- END URL -->\n\n </div>\n <div id="Goto" class="app-settings" ng-slide-down="main.app == \'Goto\'" lazy-render duration="1">\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.alt_context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="" class="form-control" data-ng-model="application.alt_extension" required>\n <span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="priority" placeholder="" class="form-control" data-ng-model="application.alt_priority" required>\n <span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n </div>\n <div id="Hangup" class="app-settings" ng-slide-down="main.app == \'Hangup\'" lazy-render duration="1">\n <!-- START HANGUPCAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n <label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.causecode" theme="bootstrap" name="hangupCause" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n {{$translate.instant(hangupCause.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HANGUPCAUSE -->\n </div>\n <div id="Set" class="app-settings" ng-slide-down="main.app == \'Set\'" lazy-render duration="1">\n <!-- START VARIABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" required>\n <span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARIABLE -->\n\n <!-- START VARVALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" required>\n <span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARVALUE -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.customApp" required>\n <span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata">\n <span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <div id="Voicemail" class="app-settings" ng-slide-down="main.app == \'Voicemail\'" lazy-render duration="1">\n <!-- START VOICEMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="voicemail" placeholder="{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}" class="form-control" data-ng-model="application.mailbox" required>\n <span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VOICEMAIL -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{$translate.instant(intType.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{$translate.instant(weekDay.name)}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{$translate.instant(weekDay.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{$translate.instant(month.name)}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{$translate.instant(month.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{$translate.instant(interval.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/voice/route/outbound/view/view.routeSettings.html",'\n<div class="row" data-ng-init="initApplication();getApplication();getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="updateItem()">\n <div class="profile-usertitle-name">\n {{(main.app | capitalize) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <div id="Dial" class="app-settings" ng-slide-down="main.app == \'Dial\'" lazy-render duration="1">\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.TrunkId" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.id as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.context.$touched || forms.info.$submitted) && forms.info.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items2 | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.info.context.$touched || forms.info.$submitted) && forms.info.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n <input type="text" name="callerID" placeholder="{{ \'APPLICATION_CALLERID\' | translate }}" class="form-control" data-ng-model="application.callerID">\n <span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START CUTDIGITS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CUTDIGITS\' | translate}}</label>\n <input type="number" class="form-control" name="cutdigits" data-ng-model="application.cutdigits">\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n </div>\n <!-- END CUTDIGITS -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.customApp" required>\n <span data-ng-show="(forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid && forms.info.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata">\n <span data-ng-show="(forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid && forms.info.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{$translate.instant(intType.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{$translate.instant(weekDay.name)}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{$translate.instant(weekDay.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{$translate.instant(month.name)}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{$translate.instant(month.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{$translate.instant(interval.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/route/outbound/view/view.routes.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getRouteApplications()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/voice/routes/outbound/view/{{route.id}}/route" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_APPLICATION\' | translate }}</th>\n <th>{{ \'APPLICATION_CONTEXT\' | translate }}</th>\n <th>{{ \'APPLICATION_ARGUMENTS\' | translate }}</th>\n <th>{{ \'APPLICATION_TIME\' | translate }}</th>\n <th></th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="routeApplications">\n <tr data-ng-repeat="application in routeApplications | orderBy:\'priority\'">\n <td>{{application.app}}</td>\n <td>{{application.context}}</td>\n <td>{{application.appdata}}</td>\n <td>{{application.interval}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/routes/outbound/view/{{route.id}}/routes/settings/{{application.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(\'Route\',application.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="routeApplications.length">\n <td colspan="5" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_ROUTES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/voice/route/outbound/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_OUTBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PATTERN\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/route/outbound/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-out"></i>\n <a href="/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getContexts()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-call-out font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.route.$valid)">\n <form name="forms.route" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.route.exten.$touched || forms.route.$submitted) && forms.route.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PATTERN\' | translate}}" class="form-control" data-ng-model="item.exten" required/>\n <span data-ng-show="(forms.route.exten.$touched || forms.route.$submitted) && forms.route.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/voice/voicemail/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="voicemails.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VOICEMAIL\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/voice/voicemails/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getVoicemails([\'mailbox\', \'fullname\', \'email\'])" csv-header="[\'Mailbox\', \'Fullname\', \'Email\']" field-separator=";" filename="voicemails.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedVoicemails" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="5">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.voicemailsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="voicemailByPage in voicemailsByPage | filter: $select.search">\n <div ng-bind-html="voicemailByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(voicemail, checked)" checklist-model checklist-value="uniqueid"></th>\n <th st-sort="mailbox">{{ \'APPLICATION_MAILBOX\' | translate }}</th>\n <th st-sort="fullname">{{ \'APPLICATION_FULLNAME\' | translate }}</th>\n <th st-sort="email">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="voicemail in displayedVoicemails" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="voicemails.checked" checklist-value="voicemail.uniqueid"></td>\n <td>{{voicemail.mailbox}}</td>\n <td>{{voicemail.fullname}}</td>\n <td>{{voicemail.email}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/voice/voicemails/view/{{voicemail.uniqueid}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(voicemail.mailbox,voicemail.uniqueid)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedVoicemails.length">\n <td colspan="5" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="mailbox" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_MAILBOX\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="fullname" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FULLNAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="5" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.voicemailsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/voice/voicemail/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVoicemail()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i data-ng-show="voicemail" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="voicemail">\n <a href="#">{{voicemail.mailbox}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/voicemail.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{voicemail.mailbox}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.voice.voicemails.view.settings\')}">\n <a data-ng-href="/voice/voicemails/view/{{voicemail.uniqueid}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.voice.voicemails.view.messages\')}">\n <a data-ng-href="/voice/voicemails/view/{{voicemail.uniqueid}}/messages">\n <i class="icon-speech"></i>\n {{ \'APPLICATION_MESSAGES\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/voice/voicemail/view/view.messages.html",'<div class="row" data-ng-init="getMessages()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_MESSAGES\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_CALLERID\' | translate }}</th>\n <th>{{ \'APPLICATION_DATE\' | translate }}</th>\n <th>{{ \'APPLICATION_DURATION\' | translate }}</th>\n <th>{{ \'APPLICATION_RECORDING\' | translate }}</th>\n <th width="20%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="voicemailMessages">\n <tr data-ng-repeat="message in voicemailMessages">\n <td>{{message.callerid}}</td>\n <td>{{returnMessageDate(message.stamp)}}</td>\n <td>{{returnDuration(message.duration) | date: \'mm:ss\'}}</td>\n <td>\n <audio controls ng-src="{{encodeRecording(message.recording)}}" preload="none">\n Your browser does not support the audio tag.\n </audio>\n </td>\n <td>\n <a class="btn default btn-xs green-stripe" href="/api/voice/voicemails/messages/{{message.id}}/download" target="_self">\n {{ \'APPLICATION_DOWNLOAD\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(\'message\',message.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="voicemailMessages.length">\n <td colspan="5" style="text-align:center;">\n <i>No messages available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/voicemail/view/view.settings.html",'<div class="row" data-ng-init="getContexts()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VOICEMAIL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <!-- <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li> -->\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceVoicemail()" novalidate>\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="voicemail.mailbox" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.password" />\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}</label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.rpassword" nx-equal="voicemail.password"/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid || forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="voicemail.fullname" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="voicemail.email" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="voicemail.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <!-- <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="updateVoiceVoicemail()" novalidate>\n\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div> -->\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/voice/voicemail/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard();getContexts();">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAIL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.mailbox" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid || forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/yourdashboard/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.dashboard" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.dashboard.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/yourdashboard/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-screen-desktop"></i>\n <a href="/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="dashboards.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_DASHBOARD\' | translate }}\n </button>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getDashboards([\'name\', \'description\'])" csv-header="[\'Name\', \'Description\']" field-separator=";" filename="dashboards.csv">\n <i class="icon-cloud-download"></i></a>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedDashboards" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="4">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.dashboardsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="dashboardByPage in dashboardsByPage | filter: $select.search">\n <div ng-bind-html="dashboardByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(dashboard, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="description">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="dashboard in displayedDashboards" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input data-ng-hide="dashboard.defaultEntry" type="checkbox" checklist-model="dashboards.checked" checklist-value="dashboard.id"></td>\n <td>{{dashboard.name}}</td>\n <td>{{dashboard.description}}</td>\n <td>\n <a class="btn default btn-xs green-stripe" data-ng-href="/yourdashboards/show/{{dashboard.id}}">\n {{ \'APPLICATION_VIEW\' | translate}}\n </a>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/yourdashboards/view/{{dashboard.id}}/settings">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(dashboard.name,dashboard.id)" data-ng-class="{\'disabled\': dashboard.defaultEntry}">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedDashboards.length">\n <td colspan="4" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_DASHBOARDS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="description" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_DESCRIPTION\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n </tr>\n <tr>\n <td colspan="4" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="conf.dashboardsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/yourdashboard/show/show.html",'<div class="col-md-12" ng-init="getDashboard()">\n <adf-dashboard\n name="{{dashboard.name}}"\n collapsible="{{dashboard.collapsible}}"\n maximizable="{{dashboard.maximizable}}"\n enableconfirmdelete="{{dashboard.enableconfirmdelete}}"\n structure="{{dashboard.structure}}"\n editable="{{dashboard.editable}}"\n adf-model="dashboard.model"/>\n</div>\n'),a.put("app/yourdashboard/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getDashboard()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-screen-desktop"></i>\n <a href="/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n <i data-ng-show="dashboard" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="dashboard">\n <a href="#">{{dashboard.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/dashboard.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{dashboard.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.yourdashboards.view.settings\')}">\n <a data-ng-href="/yourdashboards/view/{{dashboard.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/yourdashboard/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DASHBOARD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateDashboard()" novalidate>\n\n <!-- START VISIBLE TO ADMIN -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_ADMIN\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.admin"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO ADMIN -->\n\n <!-- START VISIBLE TO USER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_USER\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.user"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO USER -->\n\n <!-- START VISIBLE TO AGENT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_AGENT\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.agent"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO AGENT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="dashboard.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ZENDESK\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="/zendesk/wizard">\n <i class="icon-user-following"></i> {{ \'APPLICATION_WIZARD\' | translate }} </a>\n </li>\n </ul>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'authType\',\'token\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Authentication Type\', \'Token\', \'Password\']" field-separator=";" filename="zendesk_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedZdAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedZdAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/zendesk/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK_CONNECTION\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedZdAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
a.put("app/zendesk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/zendesk/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/zendesk/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/zendesk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.zendesk.view.account\')}">\n <a ng-href="/zendesk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.zendesk.view.configurations\') || $state.is(\'main.zendesk.view.configuration\')}">\n <a ng-href="/zendesk/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/zendesk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/zendesk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),
-a.put("components/footer/footer.html",'<!-- BEGIN FOOTER -->\n<div class="page-footer" data-ng-init="initFooter()">\n <div class="page-footer-inner">\n {{info.name}} v. {{info.version}} | 2015-2016 © Powered by Xenialab\n </div>\n <div class="scroll-to-top">\n <i class="icon-arrow-up"></i>\n </div>\n</div>\n<!-- END FOOTER -->\n'),a.put("components/header/header.html",'<!-- BEGIN HEADER INNER -->\n<div class="page-header-inner" data-ng-init="initHeader()">\n <!-- BEGIN LOGO -->\n <div class="page-logo">\n <a href="/">\n <img src="assets/images/logo.png" alt="logo" class="logo-default"/>\n </a>\n <div class="menu-toggler sidebar-toggler">\n <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->\n </div>\n </div>\n <!-- END LOGO -->\n <!-- BEGIN HEADER SEARCH BOX -->\n <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->\n <form class="search-form hide" action="extra_search.html" method="GET">\n <div class="input-group">\n <input type="text" class="form-control" placeholder="Search..." name="query">\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>\n </span>\n </div>\n </form>\n <!-- END HEADER SEARCH BOX -->\n <!-- BEGIN RESPONSIVE MENU TOGGLER -->\n <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">\n </a>\n <!-- END RESPONSIVE MENU TOGGLER -->\n <!-- BEGIN TOP NAVIGATION MENU -->\n <div class="top-menu">\n <ul class="nav navbar-nav pull-right">\n <!-- BEGIN LANGUAGE BAR -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-language">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <img ng-src="assets/images/flags/{{ language }}.png">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a href="#" ng-click="changeLanguage(\'it\')">\n <img alt="" src="assets/images/flags/it.png"> Italian </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'en_EN\')">\n <img alt="" src="assets/images/flags/en_EN.png"> English </a>\n </li>\n </ul>\n </li>\n <!-- END LANGUAGE BAR -->\n <!-- BEGIN USER LOGIN DROPDOWN -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <img class="img-circle" data-ng-src="api/users/avatar/{{getCurrentUser().userpic || \'unknown_avatar\'}}" alt="...">\n <span class="username username-hide-on-mobile">\n {{ getCurrentUser().fullname }} </span>\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a ng-href=" {{isAdmin() ? \'/users/view/\'+getCurrentUser().id+\'/account\' : \'/agents/view/\'+getCurrentUser().id+\'/account\'}}">\n <i class="icon-key"></i>Change password</a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-calendar"></i> My Calendar </a>\n </li> -->\n <!-- <li>\n <a href="#">\n <i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger">\n 3 </span>\n </a>\n </li> -->\n <!-- <li>\n <a href="#/todo">\n <i class="icon-rocket"></i> My Tasks <span class="badge badge-success">\n 7 </span>\n </a>\n </li> -->\n <!-- <li class="divider">\n </li> -->\n <!-- <li>\n <a href="#">\n <i class="icon-lock"></i> Lock Screen </a>\n </li> -->\n <li data-ng-click="logout()">\n <a href="#">\n <i class="icon-logout"></i> Log Out </a>\n </li>\n </ul>\n </li>\n <!-- END USER LOGIN DROPDOWN -->\n <!-- BEGIN QUICK SIDEBAR TOGGLER -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-quick-sidebar-toggler" data-ng-click="toggleQuickSidebar()">\n <a href="#" class="dropdown-toggle">\n <i class="icon-logout"></i>\n </a>\n </li>\n <!-- END QUICK SIDEBAR TOGGLER -->\n </ul>\n </div>\n <!-- END TOP NAVIGATION MENU -->\n</div>\n<!-- END HEADER INNER -->\n'),a.put("components/modal/delete.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("components/quickSidebar/modal/add.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n\n<div class="modal-body">\n <div class="portlet box blue">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-people"></i>{{\'APPLICATION_SELECTED_AGENTS\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <ul>\n <li data-ng-repeat="item in items">\n {{item.fullname}}\n </li>\n\n <li data-ng-repeat="item in selected.items">\n {{item.fullname}}\n </li>\n </ul>\n </div>\n </div>\n\n <ui-select multiple name="items" ng-model="selected.items" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SELECTED_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="{id: agent.id, fullname: agent.fullname} as agent in agents.rows | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n</div>\n\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="selected.items.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("components/quickSidebar/modal/close.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text | translate"></p>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("components/quickSidebar/quickSidebar.html",'<div class="page-quick-sidebar">\n <div class="nav-justified">\n <ul class="nav nav-tabs nav-justified">\n <li data-ng-class="{active:currentTab==0}" data-ng-click="goToTab(0)">\n <a href="#">\n <i class="icon-people"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==1}" data-ng-click="goToTab(1)">\n <a href="#">\n <i class="icon-eye"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==2}" data-ng-click="goToTab(2)">\n <a href="#">\n <i class="icon-globe"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==3}" data-ng-click="goToTab(3)">\n <a href="#">\n <i class="icon-bubbles"></i>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==0 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list" >\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_AGENT\' | translate}}..." ng-model="searchAgent">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="agent in agents.rows | orderBy:\'-online\' | filter:searchAgent as resultsAgent" data-ng-if="agent.id !== currentUser.id">\n <img class="media-object" data-ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" alt="{{agent.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(agent.id)">\n <h4 class="media-heading"><span class="item-status">{{agent.fullname | characters:15 :true}} {{agent.internal}}</h4>\n <div class="media-heading-small">\n <span class="badge badge-empty" data-ng-class="agent.online ? \'badge-success\' : \'badge-danger\'"></span></span> {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{agent.updatedAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="agents.rows.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_AGENTS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="resultsAgent.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_AGENTS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==1 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." ng-model="searchUser">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="user in users.rows | orderBy:\'-online\' | filter:searchUser as resultsUser" data-ng-if="user.id !== currentUser.id">\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(user.id)">\n <h4 class="media-heading">{{user.fullname | characters:15 :true}} {{user.internal}}</h4>\n <div class="media-heading-small">\n <span class="badge badge-empty" data-ng-class="user.online ? \'badge-success\' : \'badge-danger\'"></span> {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{user.updatedAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="users.rows.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_USERS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="resultsUser.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_USERS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==2 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." data-ng-model="searchChatRoomsExternals">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="chatRoom in chatRooms | QuickSidebarFilterUsersLowerThan:2 | filter:{type:\'external\'} | filter:searchChatRoomsExternals as resultsChatRoomsExternals">\n <div class="media-status">\n <i class="icon icon-close" data-ng-show="chatRoom.status === \'close\'"></i>\n </div>\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(null, chatRoom.id)">\n <h4 class="media-heading">{{chatRoom.ChatVisitor.fullname}}</h4>\n <div class="media-heading-small">\n {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{chatRoom.createdAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" data-ng-if="resultsChatRoomsExternals.length === 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_CHATS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==3 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." data-ng-model="searchChatRoomsGroups">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="chatRoom in chatRooms | QuickSidebarFilterUsersGreaterThan:2 | filter:searchChatRoomsGroups as resultsChatRoomsGroups">\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(null, chatRoom.id)">\n <h4 class="media-heading">{{chatRoom.ChatVisitor.fullname}}</h4>\n <div class="media-heading-small">\n {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{chatRoom.updatedAt}}">April 1, 2014</time>\n </div>\n <div class="media-heading-small">\n <div data-ng-repeat="user in chatRoom.Users | map: \'fullname\'" class="inline">\n {{ $last ? user : user + \', \'}}\n </div>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" data-ng-if="resultsChatRoomsGroups.length === 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_CHATS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat page-quick-sidebar-content-item-shown" ng-class="{active:messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list" >\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_MESSAGE\' | translate}}..." ng-model="searchMessage">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n </div>\n <div class="page-quick-sidebar-item">\n <div class="page-quick-sidebar-chat-user" data-wrapper-class="page-quick-sidebar-list">\n <div class="page-quick-sidebar-nav">\n <a href="#" class="page-quick-sidebar-back-to-list" data-ng-click="goBack()"><i class="icon-arrow-left"></i>Back</a>\n </div>\n <div id="page-quick-sidebar-chat-user-messages" class="page-quick-sidebar-chat-user-messages" data-ng-style="style2" ng-scrollbars>\n <div class="post animate-repeat" data-ng-repeat="chatMessage in chatRoom.ChatMessages | filter:searchMessage as resultsMessage" data-ng-class="chatMessage.UserId === currentUser.id ? \'in\' : \'out\'">\n <img class="avatar" alt="" ng-src="api/users/avatar/unknown_avatar"/>\n <div class="message">\n <span class="arrow"></span>\n <a href="#" class="name">{{chatMessage.User.fullname || chatMessage.ChatVisitor .fullname}}</a> -\n <span class="datetime">\n <time is="relative-time" datetime="{{chatMessage.createdAt}}">\n April 1, 2014\n </time>\n </span>\n <ng-emoticons class="body" emoticons-data="chatMessage.body" emoticons-options="options"/>\n </div>\n </div>\n\n <div class="media-body" style="text-align: center;" data-ng-if="resultsMessage.length == 0">\n <h5 class="media-heading"><i>{{\'MESSAGE_NO_MESSAGES_FOUND\' | translate | lowercase}}</i></h5>\n </div>\n\n <div class="media-body" style="text-align: center;" data-ng-if="chatRoom.status === \'close\'">\n <h5 class="media-heading"><i>{{\'MESSAGE_CHAT_CLOSED\' | translate | lowercase}}</i></h5>\n </div>\n\n </div>\n <div class="page-quick-sidebar-chat-user-form">\n <textarea rows="3" class="form-control" style="border:none;resize: none;" placeholder="Type a message here..." ng-enter="sendMessage()" data-ng-model="message.body" data-ng-disabled="chatRoom.status === \'close\'"></textarea>\n <div class="btn-group" style="width:100%;background-color:white">\n <button type="button" class="btn btn-default" style="border:none" data-ng-disabled="chatRoom.status === \'close\'" data-ng-click="addAgent(chatRoom.id)"><i class="icon-plus font-blue"></i></button>\n <button type="button" class="btn btn-default pull-right" style="border:none" data-ng-disabled="chatRoom.status === \'close\'" data-ng-click="closeChatRoom(chatRoom.id)" data-ng-show="chatRoom.type === \'external\'"><i class="icon-close font-red"></i></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("components/sidebar/sidebar.html",'<div id="page-sidebar" class="page-sidebar navbar-collapse collapse">\n <!-- BEGIN SIDEBAR MENU -->\n <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->\n <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->\n <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->\n <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->\n <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->\n <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->\n <ul data-ng-click="mainTab.active=true" class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" data-ng-class="{\'page-sidebar-menu-closed\': settings.layout.pageSidebarClosed}" data-ng-init="getSidebarIntegrations()">\n <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->\n <li class="sidebar-search-wrapper">\n <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->\n <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->\n <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->\n <form class="sidebar-search sidebar-search-bordered" action="extra_search.html" method="POST">\n <a href="javascript:;" class="remove">\n <i class="icon-close"></i>\n </a>\n <!-- <div class="input-group">\n <input type="text" class="form-control" placeholder="Search...">\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>\n </span>\n </div> -->\n </form>\n <!-- END RESPONSIVE QUICK SEARCH FORM -->\n </li>\n\n <!-- START DASHBOARD CASE -->\n <li class="start" data-ng-show="isAssociated(\'dashboard\')" data-ng-class="{active: $state.is(\'main.dashboard\')}">\n <a href="/dashboard/voice">\n <i class="icon-rocket"></i>\n <span class="title">{{\'APPLICATION_DASHBOARD\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.dashboard\')" class="selected"></span>\n </a>\n </li>\n <!-- END DASHBOARD CASE -->\n\n <!-- START YOURDASHBOARD LIST CASE -->\n <li data-ng-class="{active: $state.is(\'main.yourdashboards.show\')}" data-ng-show="Auth.isAdmin()">\n <a href="javascript:;">\n <i class="icon-screen-desktop"></i>\n <span class="title" >{{\'APPLICATION_YOUR_DASHBOARDS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.yourdashboards.show\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-init="getSidebarDashboards()">\n <li data-ng-class="{active: $stateParams.id == dashboard.id && $state.includes(\'main.yourdashboards.show\')}" data-ng-repeat="dashboard in dashboards" data-ng-show="dashboard[Auth.getRole()] && dashboard.visible">\n <a href="/yourdashboards/show/{{dashboard.id}}" >\n <i class="icon-screen-tablet"></i>\n <span class="title" >{{dashboard.name}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END YOURDASHBOARD LIST CASE -->\n\n <!-- START STAFF SEPARATOR -->\n <li class="heading" data-ng-show="Auth.isAdmin()">\n <h3 class="uppercase"> <span >{{\'APPLICATION_STAFF\' | translate}} </span> </h3>\n </li>\n <!-- END STAFF SEPARATOR -->\n\n <!-- START USERS CASE -->\n <!-- <li data-ng-show="isAssociated(\'users\')" data-ng-class="{active: $state.includes(\'main.users\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.users\')}">\n <a href="/users/list">\n <i class="icon-eye"></i>\n <span class="title" >{{\'APPLICATION_USERS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.users\')" class="selected"></span>\n </a>\n </li>\n <!-- END USERS CASE -->\n\n <!-- START AGENTS CASE -->\n <!-- <li data-ng-show="isAssociated(\'agents\')" data-ng-class="{active: $state.includes(\'main.agents\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.agents\')}">\n <a href="/agents/list">\n <i class="icon-people"></i>\n <span class="title" >{{\'APPLICATION_AGENTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.agents\')" class="selected"></span>\n </a>\n </li>\n <!-- END AGENTS CASE -->\n\n <!-- START TEAMS CASE -->\n <li data-ng-show="isAssociated(\'teams\')" data-ng-class="{active: $state.includes(\'main.teams\')}">\n <a href="/teams/list">\n <i class="icon-shield"></i>\n <span class="title" >{{\'APPLICATION_TEAMS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.teams\')" class="selected"></span>\n </a>\n </li>\n <!-- END TEAMS CASE -->\n <!-- END STAFF SEPARATOR -->\n\n <!-- START CONTACT_MANAGER SEPARATOR -->\n <li class="heading" data-ng-show="Auth.isAdmin()">\n <h3 class="uppercase"> <span >{{\'APPLICATION_CONTACT_MANAGER\' | translate}} </span> </h3>\n </li>\n <!-- END CONTACT_MANAGER SEPARATOR -->\n\n <!-- START CONTACTS CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.contacts\')}">\n <a href="/contactmanager/contacts/list">\n <i class=" fa fa-users"></i>\n <span class="title" >{{\'APPLICATION_CONTACTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.contacts\')" class="selected"></span>\n </a>\n </li>\n <!-- END CONTACTS CASE -->\n <!-- START COMPANIES CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.companies\')}">\n <a href="/contactmanager/companies/list">\n <i class="icon-briefcase"></i>\n <span class="title" >{{\'APPLICATION_COMPANIES\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.companies\')" class="selected"></span>\n </a>\n </li>\n <!-- END COMPANIES CASE -->\n <!-- START CUSTOMFIELDS CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.customfields\')}">\n <a href="/contactmanager/customfields/list">\n <i class="icon-pencil"></i>\n <span class="title" >{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.customfields\')" class="selected"></span>\n </a>\n </li>\n <!-- END CUSTOMFIELDS CASE -->\n <!-- END CONTACT_MANAGER SEPARATOR -->\n\n <!-- START CHANNELS SEPARATOR -->\n <li class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_CHANNELS\' | translate}} </span> </h3>\n </li>\n\n <!-- START icon-link CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{ active: $state.includes(\'main.voice\') }">\n <a href="javascript:;">\n <i class="icon-earphones-alt"></i>\n <span class="title">{{ \'APPLICATION_VOICE\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.voice\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.voice.queues\')}">\n <a href="/voice/queues/list">\n <i class="icon-docs"></i>\n <span class="title">{{\'APPLICATION_QUEUES\' | translate}}</span>\n </a>\n </li>\n <li>\n <a href="javascript:;">\n <i class="icon-directions"></i>\n <span class="title"> {{ \'APPLICATION_ROUTES\' | translate}} </span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.voice.routes\') }"></span>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.inbound\')}">\n <a href="/voice/routes/inbound/list">\n <i class="icon-call-in"></i>\n <span class="title"> {{\'APPLICATION_INBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.outbound\')}">\n <a href="/voice/routes/outbound/list">\n <i class="icon-call-out"></i>\n <span class="title"> {{\'APPLICATION_OUTBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.internal\')}">\n <a href="/voice/routes/internal/list">\n <i class="icon-reload"></i>\n <span class="title"> {{\'APPLICATION_INTERNALS\' | translate}} </span>\n </a>\n </li>\n </ul>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.contexts\')}">\n <a href="/voice/contexts/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_CONTEXTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.voicemails\')}">\n <a href="/voice/voicemails/list">\n <i class="icon-envelope-letter"></i>\n <span class="title"> {{\'APPLICATION_VOICEMAILS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.mohs\')}">\n <a href="/voice/mohs/list">\n <i class="icon-music-tone"></i>\n <span class="title"> {{\'APPLICATION_MOH\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.voice.realtime\')}">\n <a href="/voice/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END icon-link CASE -->\n\n <!-- START CHAT CASE -->\n <li data-ng-show="isAssociated(\'chat\')" data-ng-class="{ active: $state.includes(\'main.chat\') }">\n <a href="javascript:;">\n <i class="icon-bubble"></i>\n <span class="title">{{\'APPLICATION_CHAT\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.chat\') }"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.chat.websites\')}">\n <a href="/chat/websites/list">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_WEB_SITES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.chat.queues\')}">\n <a href="/chat/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.chat.realtime\')}">\n <a href="/chat/realtime/view/agent/queues">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END CHAT CASE -->\n\n <!-- START MAIL CASE -->\n <li data-ng-class="{ active: $state.includes(\'main.mail\') }">\n <a href="javascript:;">\n <i class="icon-envelope"></i>\n <span class="title">{{\'APPLICATION_MAIL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.mail\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.accounts\') || $state.includes(\'main.mail.account\')}">\n <a href="/mail/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.queues\') || $state.includes(\'main.mail.queue\')}">\n <a href="/mail/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.mail.inbox\')}">\n <a href="/mail/inbox/incoming">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.realtime\')}">\n <a href="/mail/realtime/view/agents/queues">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END MAIL CASE -->\n\n <!-- START FAX CASE -->\n <li data-ng-class="{active: $state.includes(\'main.fax\')}">\n <!-- <li data-ng-show="license.fax" data-ng-class="{active: $state.includes(\'main.fax\')}"> -->\n <a href="javascript:;">\n <i class="icon-paper-plane"></i>\n <span class="title"> {{ \'APPLICATION_FAX\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.fax\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.accounts\')}">\n <a href="/fax/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{ \'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.queues\')}">\n <a href="/fax/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{ \'APPLICATION_QUEUES\' | translate }} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.fax.inbox\')}">\n <a href="/fax/inbox/incoming">\n <i class="icon-note"></i>\n <span class="title"> {{ \'APPLICATION_INBOX\' | translate }} </span>\n </a>\n </li>\n <!-- <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.statistics\')}">\n <a href="/fax/statistics/summary">\n <i class="icon-eyeglass"></i>\n <span class="title"> {{ \'APPLICATION_STATISTICS\' | translate }} </span>\n </a>\n </li> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.automations\')}">\n <a href="/fax/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.timeline\')}">\n <a href="/fax/timeline/list">\n <i class="icon-list"></i>\n <span class="title"> {{\'APPLICATION_TIMELINE\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END FAX CASE -->\n <!-- END CHANNELS SEPARATOR -->\n\n <!-- START ANALYTICS SEPARATOR -->\n <li class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_ANALYTICS\' | translate}} </span> </h3>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.analytics.reports\')}">\n <a href="/analytics/reports/list">\n <i class="icon-book-open"></i>\n <span class="title" >{{\'APPLICATION_REPORTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.analytics.reports\')" class="selected"></span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.analytics.metrics\')}">\n <a href="/analytics/metrics/list">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_METRICS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.metrics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END ANALYTICS SEPARATOR -->\n\n <!-- START INTEGRATIONS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span translate> APPLICATION_INTEGRATIONS </span> </h3>\n </li>\n\n <!-- START INTEGRATION CASE -->\n <li data-ng-repeat="integration in integrations" data-ng-if="integration.active" data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.{{integration.state}}\')}">\n <a href="/{{integration.state}}/list">\n <i class="icon-handbag"></i>\n <span class="title" >{{integration.name}}</span>\n <span data-ng-show="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n </li>\n\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.is(\'main.market\')}">\n <a href="/market">\n <i class="icon-handbag"></i>\n <span class="title" translate>Market Place</span>\n <span data-ng-show="$state.includes(\'main.market\')" class="selected"></span>\n </a>\n </li>\n <!-- <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.is(\'main.integrations.list\')}">\n <a href="/integrations/list">\n <i class="icon-game-controller"></i>\n <span class="title" translate>Test Your App</span>\n <span data-ng-show="$state.includes(\'main.integrations.list\')" class="selected"></span>\n </a>\n </li> -->\n <!-- END INTEGRATIONS SEPARATOR -->\n\n <!-- START TOOLS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_TOOLS\' | translate}} </span> </h3>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.triggers\')}">\n <a href="/triggers/list">\n <i class="icon-bulb"></i>\n <span class="title"> {{\'APPLICATION_TRIGGERS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.automations\')}">\n <a href="/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.trunks\')}">\n <a href="/trunks/list">\n <i class="icon-link"></i>\n <span class="title"> {{\'APPLICATION_TRUNKS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.intervals\')}">\n <a href="/intervals/list">\n <i class="icon-clock"></i>\n <span class="title"> {{\'APPLICATION_INTERVALS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.variables\')}">\n <a href="/variables/list">\n <i class="fa fa-eye"></i>\n <span class="title" >{{\'APPLICATION_VARIABLES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.tags\')}">\n <a href="/tags/list">\n <i class="icon-tag"></i>\n <span class="title" >{{\'APPLICATION_TAGS\' | translate}} </span>\n </a>\n </li>\n <!-- START CALLYSQUARE CASE -->\n <!-- <li data-ng-show="isAssociated(\'callysquare\')" data-ng-class="{active: $state.includes(\'main.square\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.square\')}">\n <a href="javascript:;">\n <i class="fa fa-superscript"></i>\n <span class="title" >{{\'APPLICATION_CALLYSQUARE\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.square.projects\')}">\n <a href="/square/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.odbc\')}">\n <a href="/square/odbcs/list">\n <i class="fa fa-database"></i>\n <span class="title" >{{\'APPLICATION_ODBC\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.yourdashboards.list\') || $state.includes(\'main.yourdashboards.settings\')}">\n <a href="/yourdashboards/list">\n <i class="icon-grid"></i>\n <span class="title"> {{\'APPLICATION_DASHBOARDS_MANAGER\' | translate}} </span>\n </a>\n </li>\n <!-- END CALLYSQUARE CASE -->\n\n <!-- START AUTODIALER CASE -->\n <!-- <li data-ng-show="Auth.isAdmin()">\n <a href="javascript:;">\n <i class="icon-call-out"></i>\n <span class="title">AutoDialer</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n </ul>\n </li> -->\n <!-- END AUTODIALER CASE -->\n\n <!-- START ANALYTICS CASE -->\n <!-- <li data-ng-show="isAssociated(\'analytics\')"> -->\n <!-- <li data-ng-show="Auth.isAdmin()">\n <a href="#/analytics">\n <i class="icon-graph"></i>\n <span class="title" >{{\'APPLICATION_ANALYTICS\' | translate}}</span>\n </a>\n </li> -->\n <!-- END ANALYTICS CASE -->\n\n <!-- END TOOLS SEPARATOR -->\n\n <!-- START AUDIO SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_AUDIO\' | translate}} </span> </h3>\n </li>\n <!-- END AUDIO SEPARATOR -->\n\n <!-- START AUDIO CASE -->\n <!-- <li data-ng-show="isAssociated(\'audio\')" data-ng-class="{active: $state.is(\'main.sound\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.sounds\')}">\n <a href="/sounds/list">\n <i class="icon-music-tone-alt"></i>\n <span class="title" >{{\'APPLICATION_SOUNDS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.sounds\')" class="selected"></span>\n </a>\n </li>\n <!-- END AUDIO CASE -->\n\n\n <!-- START SETTINGS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_SETTINGS\' | translate}} </span> </h3>\n </li>\n <!-- END SETTINGS SEPARATOR -->\n\n <!-- START UPDATES CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.updates\')}">\n <a href="/updates/list">\n <i class="icon-cloud-download"></i>\n <span class="title" >{{\'APPLICATION_UPDATES\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.updates\')" class="selected"></span>\n </a>\n </li>\n <!-- END UPDATES CASE -->\n\n <!-- START SMTP CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.smtp\')}">\n <a href="/smtp/list">\n <i class="icon-envelope"></i>\n <span class="title">SMTP</span>\n <span data-ng-show="$state.includes(\'main.smtp\')" class="selected"></span>\n </a>\n </li>\n <!-- END SMTP CASE -->\n\n <!-- START TEMPLATE CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.templates\')}">\n <a href="/templates/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_TEMPLATES\' | translate}} </span>\n </a>\n </li>\n <!-- END TEMPLATE CASE -->\n\n </ul>\n <!-- END SIDEBAR MENU -->\n</div>\n');
+a.put("components/footer/footer.html",'<!-- BEGIN FOOTER -->\n<div class="page-footer" data-ng-init="initFooter()">\n <div class="page-footer-inner">\n {{info.name}} v. {{info.version}} | 2015-2016 © Powered by Xenialab\n </div>\n <div class="scroll-to-top">\n <i class="icon-arrow-up"></i>\n </div>\n</div>\n<!-- END FOOTER -->\n'),a.put("components/header/header.html",'<!-- BEGIN HEADER INNER -->\n<div class="page-header-inner" data-ng-init="initHeader()">\n <!-- BEGIN LOGO -->\n <div class="page-logo">\n <a href="/">\n <img src="assets/images/logo.png" alt="logo" class="logo-default"/>\n </a>\n <div class="menu-toggler sidebar-toggler">\n <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->\n </div>\n </div>\n <!-- END LOGO -->\n <!-- BEGIN HEADER SEARCH BOX -->\n <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->\n <form class="search-form hide" action="extra_search.html" method="GET">\n <div class="input-group">\n <input type="text" class="form-control" placeholder="Search..." name="query">\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>\n </span>\n </div>\n </form>\n <!-- END HEADER SEARCH BOX -->\n <!-- BEGIN RESPONSIVE MENU TOGGLER -->\n <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">\n </a>\n <!-- END RESPONSIVE MENU TOGGLER -->\n <!-- BEGIN TOP NAVIGATION MENU -->\n <div class="top-menu">\n <ul class="nav navbar-nav pull-right">\n <!-- BEGIN LANGUAGE BAR -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-language">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <img ng-src="assets/images/flags/{{ language }}.png">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a href="#" ng-click="changeLanguage(\'it\')">\n <img alt="" src="assets/images/flags/it.png"> Italian </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'en_EN\')">\n <img alt="" src="assets/images/flags/en_EN.png"> English </a>\n </li>\n </ul>\n </li>\n <!-- END LANGUAGE BAR -->\n <!-- BEGIN USER LOGIN DROPDOWN -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <img class="img-circle" data-ng-src="api/users/avatar/{{getCurrentUser().userpic || \'unknown_avatar\'}}" alt="...">\n <span class="username username-hide-on-mobile">\n {{ getCurrentUser().fullname }} </span>\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a ng-href=" {{isAdmin() ? \'/users/view/\'+getCurrentUser().id+\'/account\' : \'/agents/view/\'+getCurrentUser().id+\'/account\'}}">\n <i class="icon-key"></i>Change password</a>\n </li>\n <!-- <li>\n <a href="#">\n <i class="icon-calendar"></i> My Calendar </a>\n </li> -->\n <!-- <li>\n <a href="#">\n <i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger">\n 3 </span>\n </a>\n </li> -->\n <!-- <li>\n <a href="#/todo">\n <i class="icon-rocket"></i> My Tasks <span class="badge badge-success">\n 7 </span>\n </a>\n </li> -->\n <!-- <li class="divider">\n </li> -->\n <!-- <li>\n <a href="#">\n <i class="icon-lock"></i> Lock Screen </a>\n </li> -->\n <li data-ng-click="logout()">\n <a href="#">\n <i class="icon-logout"></i> Log Out </a>\n </li>\n </ul>\n </li>\n <!-- END USER LOGIN DROPDOWN -->\n <!-- BEGIN QUICK SIDEBAR TOGGLER -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-quick-sidebar-toggler" data-ng-click="toggleQuickSidebar()">\n <a href="#" class="dropdown-toggle">\n <i class="icon-logout"></i>\n </a>\n </li>\n <!-- END QUICK SIDEBAR TOGGLER -->\n </ul>\n </div>\n <!-- END TOP NAVIGATION MENU -->\n</div>\n<!-- END HEADER INNER -->\n'),a.put("components/modal/delete.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("components/quickSidebar/modal/add.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n\n<div class="modal-body">\n <div class="portlet box blue">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-people"></i>{{\'APPLICATION_SELECTED_AGENTS\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <ul>\n <li data-ng-repeat="item in items">\n {{item.fullname}}\n </li>\n\n <li data-ng-repeat="item in selected.items">\n {{item.fullname}}\n </li>\n </ul>\n </div>\n </div>\n\n <ui-select multiple name="items" ng-model="selected.items" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SELECTED_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="{id: agent.id, fullname: agent.fullname} as agent in agents.rows | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n</div>\n\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="selected.items.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("components/quickSidebar/modal/close.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text | translate"></p>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("components/quickSidebar/quickSidebar.html",'<div class="page-quick-sidebar">\n <div class="nav-justified">\n <ul class="nav nav-tabs nav-justified">\n <li data-ng-class="{active:currentTab==0}" data-ng-click="goToTab(0)">\n <a href="#">\n <i class="icon-people"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==1}" data-ng-click="goToTab(1)">\n <a href="#">\n <i class="icon-eye"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==2}" data-ng-click="goToTab(2)">\n <a href="#">\n <i class="icon-globe"></i>\n </a>\n </li>\n <li data-ng-class="{active:currentTab==3}" data-ng-click="goToTab(3)">\n <a href="#">\n <i class="icon-bubbles"></i>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==0 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list" >\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_AGENT\' | translate}}..." ng-model="searchAgent">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="agent in agents.rows | orderBy:\'-online\' | filter:searchAgent as resultsAgent" data-ng-if="agent.id !== currentUser.id">\n <img class="media-object" data-ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" alt="{{agent.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(agent.id)">\n <h4 class="media-heading"><span class="item-status">{{agent.fullname | characters:15 :true}} {{agent.internal}}</h4>\n <div class="media-heading-small">\n <span class="badge badge-empty" data-ng-class="agent.online ? \'badge-success\' : \'badge-danger\'"></span></span> {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{agent.updatedAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="agents.rows.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_AGENTS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="resultsAgent.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_AGENTS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==1 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." ng-model="searchUser">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="user in users.rows | orderBy:\'-online\' | filter:searchUser as resultsUser" data-ng-if="user.id !== currentUser.id">\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(user.id)">\n <h4 class="media-heading">{{user.fullname | characters:15 :true}} {{user.internal}}</h4>\n <div class="media-heading-small">\n <span class="badge badge-empty" data-ng-class="user.online ? \'badge-success\' : \'badge-danger\'"></span> {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{user.updatedAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="users.rows.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_USERS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n <li class="media animate-repeat" ng-if="resultsUser.length == 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_USERS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==2 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." data-ng-model="searchChatRoomsExternals">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="chatRoom in chatRooms | QuickSidebarFilterUsersLowerThan:2 | filter:{type:\'external\'} | filter:searchChatRoomsExternals as resultsChatRoomsExternals">\n <div class="media-status">\n <i class="icon icon-close" data-ng-show="chatRoom.status === \'close\'"></i>\n </div>\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(null, chatRoom.id)">\n <h4 class="media-heading">{{chatRoom.ChatVisitor.fullname}}</h4>\n <div class="media-heading-small">\n {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{chatRoom.createdAt}}">April 1, 2014</time>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" data-ng-if="resultsChatRoomsExternals.length === 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_CHATS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat" ng-class="{active:currentTab==3 && !messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list">\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_USER\' | translate}}..." data-ng-model="searchChatRoomsGroups">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n <ul class="media-list list-items" data-ng-style="style" ng-scrollbars>\n <li class="media animate-repeat" data-ng-repeat="chatRoom in chatRooms | QuickSidebarFilterUsersGreaterThan:2 | filter:searchChatRoomsGroups as resultsChatRoomsGroups">\n <img class="media-object" data-ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" alt="{{user.fullname}}">\n <div class="media-body" data-ng-click="goToMessage(null, chatRoom.id)">\n <h4 class="media-heading">{{chatRoom.ChatVisitor.fullname}}</h4>\n <div class="media-heading-small">\n {{\'APPLICATION_LAST_SEEN\' | translate | lowercase}} <time is="relative-time" datetime="{{chatRoom.updatedAt}}">April 1, 2014</time>\n </div>\n <div class="media-heading-small">\n <div data-ng-repeat="user in chatRoom.Users | map: \'fullname\'" class="inline">\n {{ $last ? user : user + \', \'}}\n </div>\n </div>\n </div>\n </li>\n <li class="media animate-repeat" data-ng-if="resultsChatRoomsGroups.length === 0">\n <div class="media-body" style="text-align: center;">\n <h4 class="media-heading"><i>{{\'MESSAGE_NO_CHATS_FOUND\' | translate | lowercase}}</i></h4>\n </div>\n </li>\n </ul>\n </div>\n </div>\n <div class="tab-pane page-quick-sidebar-chat page-quick-sidebar-content-item-shown" ng-class="{active:messagesTab}">\n <div class="page-quick-sidebar-chat-users" data-rail-color="#ddd" data-wrapper-class="page-quick-sidebar-list" >\n <div class="quicksidebar-search">\n <div class="input-group">\n <input type="search" class="form-control" placeholder="{{\'APPLICATION_SEARCH\' | translate}} {{\'APPLICATION_MESSAGE\' | translate}}..." ng-model="searchMessage">\n <span class="input-group-btn">\n <i class="icon-magnifier"></i>\n </span>\n </div>\n </div>\n </div>\n <div class="page-quick-sidebar-item">\n <div class="page-quick-sidebar-chat-user" data-wrapper-class="page-quick-sidebar-list">\n <div class="page-quick-sidebar-nav">\n <a href="#" class="page-quick-sidebar-back-to-list" data-ng-click="goBack()"><i class="icon-arrow-left"></i>Back</a>\n </div>\n <div id="page-quick-sidebar-chat-user-messages" class="page-quick-sidebar-chat-user-messages" data-ng-style="style2" ng-scrollbars>\n <div class="post animate-repeat" data-ng-repeat="chatMessage in chatRoom.ChatMessages | filter:searchMessage as resultsMessage" data-ng-class="chatMessage.UserId === currentUser.id ? \'in\' : \'out\'">\n <img class="avatar" alt="" ng-src="api/users/avatar/unknown_avatar"/>\n <div class="message">\n <span class="arrow"></span>\n <a href="#" class="name">{{chatMessage.User.fullname || chatMessage.ChatVisitor .fullname}}</a> -\n <span class="datetime">\n <time is="relative-time" datetime="{{chatMessage.createdAt}}">\n April 1, 2014\n </time>\n </span>\n <ng-emoticons class="body" emoticons-data="chatMessage.body" emoticons-options="options"/>\n </div>\n </div>\n\n <div class="media-body" style="text-align: center;" data-ng-if="resultsMessage.length == 0">\n <h5 class="media-heading"><i>{{\'MESSAGE_NO_MESSAGES_FOUND\' | translate | lowercase}}</i></h5>\n </div>\n\n <div class="media-body" style="text-align: center;" data-ng-if="chatRoom.status === \'close\'">\n <h5 class="media-heading"><i>{{\'MESSAGE_CHAT_CLOSED\' | translate | lowercase}}</i></h5>\n </div>\n\n </div>\n <div class="page-quick-sidebar-chat-user-form">\n <textarea rows="3" class="form-control" style="border:none;resize: none;" placeholder="Type a message here..." ng-enter="sendMessage()" data-ng-model="message.body" data-ng-disabled="chatRoom.status === \'close\'"></textarea>\n <div class="btn-group" style="width:100%;background-color:white">\n <button type="button" class="btn btn-default" style="border:none" data-ng-disabled="chatRoom.status === \'close\'" data-ng-click="addAgent(chatRoom.id)"><i class="icon-plus font-blue"></i></button>\n <button type="button" class="btn btn-default pull-right" style="border:none" data-ng-disabled="chatRoom.status === \'close\'" data-ng-click="closeChatRoom(chatRoom.id)" data-ng-show="chatRoom.type === \'external\'"><i class="icon-close font-red"></i></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("components/sidebar/sidebar.html",'<div id="page-sidebar" class="page-sidebar navbar-collapse collapse">\n <!-- BEGIN SIDEBAR MENU -->\n <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->\n <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->\n <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->\n <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->\n <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->\n <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->\n <ul data-ng-click="mainTab.active=true" class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" data-ng-class="{\'page-sidebar-menu-closed\': settings.layout.pageSidebarClosed}" data-ng-init="getSidebarIntegrations()">\n <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->\n <li class="sidebar-search-wrapper">\n <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->\n <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->\n <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->\n <form class="sidebar-search sidebar-search-bordered" action="extra_search.html" method="POST">\n <a href="javascript:;" class="remove">\n <i class="icon-close"></i>\n </a>\n <!-- <div class="input-group">\n <input type="text" class="form-control" placeholder="Search...">\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>\n </span>\n </div> -->\n </form>\n <!-- END RESPONSIVE QUICK SEARCH FORM -->\n </li>\n\n <!-- START DASHBOARD CASE -->\n <li class="start" data-ng-show="isAssociated(\'dashboard\')" data-ng-class="{active: $state.includes(\'main.dashboard\')}">\n <a href="/dashboard/voice">\n <i class="icon-rocket"></i>\n <span class="title">{{\'APPLICATION_DASHBOARD\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.dashboard\')" class="selected"></span>\n </a>\n </li>\n <!-- END DASHBOARD CASE -->\n\n <!-- START YOURDASHBOARD LIST CASE -->\n <li data-ng-class="{active: $state.is(\'main.yourdashboards.show\')}" data-ng-show="Auth.isAdmin()">\n <a href="javascript:;">\n <i class="icon-screen-desktop"></i>\n <span class="title" >{{\'APPLICATION_YOUR_DASHBOARDS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.yourdashboards.show\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-init="getSidebarDashboards()">\n <li data-ng-class="{active: $stateParams.id == dashboard.id && $state.includes(\'main.yourdashboards.show\')}" data-ng-repeat="dashboard in dashboards" data-ng-show="dashboard[Auth.getRole()] && dashboard.visible">\n <a href="/yourdashboards/show/{{dashboard.id}}" >\n <i class="icon-screen-tablet"></i>\n <span class="title" >{{dashboard.name}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END YOURDASHBOARD LIST CASE -->\n\n <!-- START STAFF SEPARATOR -->\n <li class="heading" data-ng-show="Auth.isAdmin()">\n <h3 class="uppercase"> <span >{{\'APPLICATION_STAFF\' | translate}} </span> </h3>\n </li>\n <!-- END STAFF SEPARATOR -->\n\n <!-- START USERS CASE -->\n <!-- <li data-ng-show="isAssociated(\'users\')" data-ng-class="{active: $state.includes(\'main.users\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.users\')}">\n <a href="/users/list">\n <i class="icon-eye"></i>\n <span class="title" >{{\'APPLICATION_USERS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.users\')" class="selected"></span>\n </a>\n </li>\n <!-- END USERS CASE -->\n\n <!-- START AGENTS CASE -->\n <!-- <li data-ng-show="isAssociated(\'agents\')" data-ng-class="{active: $state.includes(\'main.agents\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.agents\')}">\n <a href="/agents/list">\n <i class="icon-people"></i>\n <span class="title" >{{\'APPLICATION_AGENTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.agents\')" class="selected"></span>\n </a>\n </li>\n <!-- END AGENTS CASE -->\n\n <!-- START TEAMS CASE -->\n <li data-ng-show="isAssociated(\'teams\')" data-ng-class="{active: $state.includes(\'main.teams\')}">\n <a href="/teams/list">\n <i class="icon-shield"></i>\n <span class="title" >{{\'APPLICATION_TEAMS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.teams\')" class="selected"></span>\n </a>\n </li>\n <!-- END TEAMS CASE -->\n <!-- END STAFF SEPARATOR -->\n\n <!-- START CONTACT_MANAGER SEPARATOR -->\n <li class="heading" data-ng-show="Auth.isAdmin()">\n <h3 class="uppercase"> <span >{{\'APPLICATION_CONTACT_MANAGER\' | translate}} </span> </h3>\n </li>\n <!-- END CONTACT_MANAGER SEPARATOR -->\n\n <!-- START CONTACTS CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.contacts\')}">\n <a href="/contactmanager/contacts/list">\n <i class=" fa fa-users"></i>\n <span class="title" >{{\'APPLICATION_CONTACTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.contacts\')" class="selected"></span>\n </a>\n </li>\n <!-- END CONTACTS CASE -->\n <!-- START COMPANIES CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.companies\')}">\n <a href="/contactmanager/companies/list">\n <i class="icon-briefcase"></i>\n <span class="title" >{{\'APPLICATION_COMPANIES\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.companies\')" class="selected"></span>\n </a>\n </li>\n <!-- END COMPANIES CASE -->\n <!-- START CUSTOMFIELDS CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.contactmanager.customfields\')}">\n <a href="/contactmanager/customfields/list">\n <i class="icon-pencil"></i>\n <span class="title" >{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.contactmanager.customfields\')" class="selected"></span>\n </a>\n </li>\n <!-- END CUSTOMFIELDS CASE -->\n <!-- END CONTACT_MANAGER SEPARATOR -->\n\n <!-- START CHANNELS SEPARATOR -->\n <li class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_CHANNELS\' | translate}} </span> </h3>\n </li>\n\n <!-- START icon-link CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{ active: $state.includes(\'main.voice\') }">\n <a href="javascript:;">\n <i class="icon-earphones-alt"></i>\n <span class="title">{{ \'APPLICATION_VOICE\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.voice\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.voice.queues\')}">\n <a href="/voice/queues/list">\n <i class="icon-docs"></i>\n <span class="title">{{\'APPLICATION_QUEUES\' | translate}}</span>\n </a>\n </li>\n <li>\n <a href="javascript:;">\n <i class="icon-directions"></i>\n <span class="title"> {{ \'APPLICATION_ROUTES\' | translate}} </span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.voice.routes\') }"></span>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.inbound\')}">\n <a href="/voice/routes/inbound/list">\n <i class="icon-call-in"></i>\n <span class="title"> {{\'APPLICATION_INBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.outbound\')}">\n <a href="/voice/routes/outbound/list">\n <i class="icon-call-out"></i>\n <span class="title"> {{\'APPLICATION_OUTBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.routes.internal\')}">\n <a href="/voice/routes/internal/list">\n <i class="icon-reload"></i>\n <span class="title"> {{\'APPLICATION_INTERNALS\' | translate}} </span>\n </a>\n </li>\n </ul>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.contexts\')}">\n <a href="/voice/contexts/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_CONTEXTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.voicemails\')}">\n <a href="/voice/voicemails/list">\n <i class="icon-envelope-letter"></i>\n <span class="title"> {{\'APPLICATION_VOICEMAILS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.voice.mohs\')}">\n <a href="/voice/mohs/list">\n <i class="icon-music-tone"></i>\n <span class="title"> {{\'APPLICATION_MOH\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.voice.realtime\')}">\n <a href="/voice/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END icon-link CASE -->\n\n <!-- START CHAT CASE -->\n <li data-ng-class="{active: $state.includes(\'main.chat\')}" data-ng-if="license.chat">\n <a href="javascript:;">\n <i class="icon-bubble"></i>\n <span class="title">{{\'APPLICATION_CHAT\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.chat\')}"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.chat.websites\')}">\n <a href="/chat/websites/list">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_WEB_SITES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.chat.queues\')}">\n <a href="/chat/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.chat.realtime\')}">\n <a href="/chat/realtime/view/agent/queues">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END CHAT CASE -->\n\n <!-- START MAIL CASE -->\n <li data-ng-class="{active: $state.includes(\'main.mail\')}" data-ng-if="license.mail">\n <a href="javascript:;">\n <i class="icon-envelope"></i>\n <span class="title">{{\'APPLICATION_MAIL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.mail\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.accounts\') || $state.includes(\'main.mail.account\')}">\n <a href="/mail/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.queues\') || $state.includes(\'main.mail.queue\')}">\n <a href="/mail/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.mail.inbox\')}">\n <a href="/mail/inbox/incoming">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.mail.realtime\')}">\n <a href="/mail/realtime/view/agents/queues">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END MAIL CASE -->\n\n <!-- START FAX CASE -->\n <li data-ng-class="{active: $state.includes(\'main.fax\')}" data-ng-if="license.fax">\n <!-- <li data-ng-show="license.fax" data-ng-class="{active: $state.includes(\'main.fax\')}"> -->\n <a href="javascript:;">\n <i class="icon-paper-plane"></i>\n <span class="title"> {{ \'APPLICATION_FAX\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.fax\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.accounts\')}">\n <a href="/fax/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{ \'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.queues\')}">\n <a href="/fax/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{ \'APPLICATION_QUEUES\' | translate }} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.fax.inbox\')}">\n <a href="/fax/inbox/incoming">\n <i class="icon-note"></i>\n <span class="title"> {{ \'APPLICATION_INBOX\' | translate }} </span>\n </a>\n </li>\n <!-- <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.statistics\')}">\n <a href="/fax/statistics/summary">\n <i class="icon-eyeglass"></i>\n <span class="title"> {{ \'APPLICATION_STATISTICS\' | translate }} </span>\n </a>\n </li> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.automations\')}">\n <a href="/fax/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.fax.timeline\')}">\n <a href="/fax/timeline/list">\n <i class="icon-list"></i>\n <span class="title"> {{\'APPLICATION_TIMELINE\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END FAX CASE -->\n <!-- END CHANNELS SEPARATOR -->\n\n <!-- START ANALYTICS SEPARATOR -->\n <li class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_ANALYTICS\' | translate}} </span> </h3>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.analytics.reports\')}">\n <a href="/analytics/reports/list">\n <i class="icon-book-open"></i>\n <span class="title" >{{\'APPLICATION_REPORTS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.analytics.reports\')" class="selected"></span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.analytics.metrics\')}">\n <a href="/analytics/metrics/list">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_METRICS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.metrics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END ANALYTICS SEPARATOR -->\n\n <!-- START INTEGRATIONS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span translate> APPLICATION_INTEGRATIONS </span> </h3>\n </li>\n\n <!-- START INTEGRATION CASE -->\n <li data-ng-repeat="integration in integrations" data-ng-if="integration.active" data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.{{integration.state}}\')}">\n <a href="/{{integration.state}}/list">\n <i class="icon-handbag"></i>\n <span class="title" >{{integration.name}}</span>\n <span data-ng-show="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n </li>\n\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.is(\'main.market\')}">\n <a href="/market">\n <i class="icon-handbag"></i>\n <span class="title" translate>Market Place</span>\n <span data-ng-show="$state.includes(\'main.market\')" class="selected"></span>\n </a>\n </li>\n <!-- <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.is(\'main.integrations.list\')}">\n <a href="/integrations/list">\n <i class="icon-game-controller"></i>\n <span class="title" translate>Test Your App</span>\n <span data-ng-show="$state.includes(\'main.integrations.list\')" class="selected"></span>\n </a>\n </li> -->\n <!-- END INTEGRATIONS SEPARATOR -->\n\n <!-- START TOOLS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_TOOLS\' | translate}} </span> </h3>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.triggers\')}">\n <a href="/triggers/list">\n <i class="icon-bulb"></i>\n <span class="title"> {{\'APPLICATION_TRIGGERS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.automations\')}">\n <a href="/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.trunks\')}">\n <a href="/trunks/list">\n <i class="icon-link"></i>\n <span class="title"> {{\'APPLICATION_TRUNKS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.intervals\')}">\n <a href="/intervals/list">\n <i class="icon-clock"></i>\n <span class="title"> {{\'APPLICATION_INTERVALS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.variables\')}">\n <a href="/variables/list">\n <i class="fa fa-eye"></i>\n <span class="title" >{{\'APPLICATION_VARIABLES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.tags\')}">\n <a href="/tags/list">\n <i class="icon-tag"></i>\n <span class="title" >{{\'APPLICATION_TAGS\' | translate}} </span>\n </a>\n </li>\n <!-- START CALLYSQUARE CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.square\')}">\n <a href="javascript:;">\n <i class="fa fa-superscript"></i>\n <span class="title" >{{\'APPLICATION_CALLYSQUARE\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.square.projects\')}">\n <a href="/square/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.odbc\')}">\n <a href="/square/odbcs/list">\n <i class="fa fa-database"></i>\n <span class="title" >{{\'APPLICATION_ODBC\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.yourdashboards.list\') || $state.includes(\'main.yourdashboards.settings\')}">\n <a href="/yourdashboards/list">\n <i class="icon-grid"></i>\n <span class="title"> {{\'APPLICATION_DASHBOARDS_MANAGER\' | translate}} </span>\n </a>\n </li>\n <!-- END CALLYSQUARE CASE -->\n\n <!-- START AUTODIALER CASE -->\n <!-- <li data-ng-show="Auth.isAdmin()">\n <a href="javascript:;">\n <i class="icon-call-out"></i>\n <span class="title">AutoDialer</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n </ul>\n </li> -->\n <!-- END AUTODIALER CASE -->\n\n <!-- START ANALYTICS CASE -->\n <!-- <li data-ng-show="isAssociated(\'analytics\')"> -->\n <!-- <li data-ng-show="Auth.isAdmin()">\n <a href="#/analytics">\n <i class="icon-graph"></i>\n <span class="title" >{{\'APPLICATION_ANALYTICS\' | translate}}</span>\n </a>\n </li> -->\n <!-- END ANALYTICS CASE -->\n\n <!-- END TOOLS SEPARATOR -->\n\n <!-- START AUDIO SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_AUDIO\' | translate}} </span> </h3>\n </li>\n <!-- END AUDIO SEPARATOR -->\n\n <!-- START AUDIO CASE -->\n <!-- <li data-ng-show="isAssociated(\'audio\')" data-ng-class="{active: $state.is(\'main.sound\')}"> -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.sounds\')}">\n <a href="/sounds/list">\n <i class="icon-music-tone-alt"></i>\n <span class="title" >{{\'APPLICATION_SOUNDS\' | translate}}</span>\n <span data-ng-show="$state.includes(\'main.sounds\')" class="selected"></span>\n </a>\n </li>\n <!-- END AUDIO CASE -->\n\n\n <!-- START SETTINGS SEPARATOR -->\n <li data-ng-show="Auth.isAdmin()" class="heading">\n <h3 class="uppercase"> <span >{{\'APPLICATION_SETTINGS\' | translate}} </span> </h3>\n </li>\n <!-- END SETTINGS SEPARATOR -->\n\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.setting\')}">\n <a href="javascript:;">\n <i class="icon-settings"></i>\n <span class="title" >{{\'APPLICATION_SETTINGS\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <!-- START UPDATES CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.setting.updates\')}">\n <a href="/setting/updates/list">\n <i class="icon-cloud-download"></i>\n <span class="title" >{{\'APPLICATION_UPDATES\' | translate}}</span>\n <!-- <span data-ng-show="$state.includes(\'main.updates\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END UPDATES CASE -->\n\n <!-- START SMTP CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.setting.smtp\')}">\n <a href="/setting/smtp/view">\n <i class="icon-envelope"></i>\n <span class="title">SMTP</span>\n <!-- <span data-ng-show="$state.includes(\'main.smtp\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SMTP CASE -->\n\n <!-- START TEMPLATE CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.setting.templates\')}">\n <a href="/setting/templates/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_TEMPLATES\' | translate}} </span>\n </a>\n </li>\n <!-- END TEMPLATE CASE -->\n\n <!-- START LICENSE CASE -->\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.setting.license\')}">\n <a href="/setting/license/view">\n <i class="icon-info"></i>\n <span class="title"> {{\'APPLICATION_LICENSE\' | translate}} </span>\n </a>\n </li>\n <!-- END LICENSE CASE -->\n </ul>\n </li>\n\n </ul>\n <!-- END SIDEBAR MENU -->\n</div>\n');
}]);
\ No newline at end of file
-.badge,.btn-arrow-link,.btn-lg{vertical-align:middle}.chart-tooltip,.chart-tooltip .label,.chat-form,.dashboard-stat .more,.dashboard-stat2 .display:after,.dashboard-stat2 .progress-info,.dashboard-stat2 .progress-info .progress,.dashboard-stat:after,.dropdown-menu li>a,.feeds li .col1,.feeds li:after,.form .form-actions:after,.general-item-list>.item>.item-head:after,.portlet>.portlet-title:after,.social-icons:after,.tabbable:after,.table-toolbar:after,.tiles .tile .tile-object:after,.tiles:after{clear:both}.animate-enter{-webkit-transition:1s linear all;transition:1s linear all;opacity:0}.animate-enter.animate-enter-active{opacity:1}#faxMessages::-webkit-scrollbar-track{background-color:#fff!important}#faxMessages::-webkit-scrollbar{width:5px}.interval-to{min-height:34px;padding:9px 12px}.inbox{margin-bottom:20px}.inbox .inbox{margin-bottom:0}.inbox .tab-content{overflow:inherit}.inbox .inbox-loading{display:none;font-size:22px;font-weight:300}.inbox .inbox-nav{margin:0;padding:0;list-style:none}.inbox .inbox-nav li{position:relative}.inbox .inbox-nav li a{color:#4d82a3;display:block;font-size:15px;border-left:none;text-align:left!important;padding:8px 14px;margin-bottom:1px;background:#f4f9fd}.inbox .inbox-nav li.active a,.inbox .inbox-nav li.active:hover a{color:#fff;border-left:none;background:#169ef4!important;text-decoration:none}.inbox .inbox-nav li.active b{top:12px;right:-6px;width:6px;position:absolute;display:inline-block;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #169ef4}.inbox .inbox-nav li:hover a{color:#4d82a3;background:#eef4f7!important;text-decoration:none}.inbox .inbox-nav li.compose-btn a{color:#fff;text-shadow:none;text-align:center;margin-bottom:18px;background:#35aa47}.inbox .pagination-control,.inbox th.text-right{text-align:right}.inbox .inbox-nav li.compose-btn i,.inbox .inbox-nav li.compose-btn:hover i{top:1px;color:#fff;font-size:15px;position:relative;background:0 0!important}.inbox .inbox-nav li.compose-btn a:hover{background-color:#1d943b!important}.inbox .inbox-header{overflow:hidden}.inbox .inbox-header h1{margin:0 0 10px;color:#666}.inbox tr label,.inbox ul.inbox-nav{margin-bottom:0}.inbox .pagination-control .pagination-info{display:inline-block;padding-right:10px;font-size:14px;line-height:14px}.inbox tr{color:#777;font-size:13px}.inbox tr label{display:inline-block}.inbox tr.unread td{font-weight:600}.audio-portlet .audio-portlet-title,h1,h2,h3,h4,h5,h6{font-family:"Open Sans",sans-serif;font-weight:300}.inbox td i.icon-paper-clip{top:2px;color:#d8e0e5;font-size:17px;position:relative}.inbox tr i.icon-star,.inbox tr i.icon-trash{cursor:pointer}.inbox tr i.icon-star{color:#eceef0}.inbox tr i.icon-star:hover,.inbox tr i.inbox-started{color:#fd7b12}.inbox .table td,.inbox .table th{border:none}.inbox .table th{background:#eef4f7;border-bottom:solid 5px #fff}.inbox .inbox-drafts,.inbox-view-info{border-top:solid 1px #eee;border-bottom:solid 1px #eee}.inbox th label.inbox-select-all{color:#828f97;font-size:13px;padding:1px 4px 0}.inbox ul.inbox-nav li{padding:0}.inbox ul.inbox-nav li span{color:#828f97;font-size:12px;margin-right:10px}.inbox ul.inbox-nav i{color:#fff;padding:1px 0;font-size:15px;cursor:pointer;background:#d0dde4!important}.inbox ul.inbox-nav i:hover{background:#169ef4!important}.inbox td.text-right{width:100px;text-align:right}.inbox td.inbox-small-cells,.small-cells{width:10px}.inbox .table-hover tbody tr:hover>td,.inbox .table-hover tbody tr:hover>th,.inbox .table-striped tbody>tr:nth-child(odd)>td,.inbox .table-striped tbody>tr:nth-child(odd)>th{background:#f8fbfd;cursor:pointer}.inbox .table-hover tbody tr:hover>td,.inbox .table-hover tbody tr:hover>th{background:#eef4f7}.inbox .inbox-drafts{padding:8px 0;text-align:center}.inbox-view-header{margin-bottom:20px}.inbox-view-header h1{color:#666;font-size:22px;line-height:24px;margin-bottom:0!important}.inbox-view-header h1 a{top:-2px;color:#fff;cursor:pointer;font-size:13px;padding:2px 7px;line-height:16px;position:relative;background:#b0bcc4;display:inline-block}.inbox-view-header h1 a:hover{background:#aab5bc;text-decoration:none}.inbox-view-header i.icon-print{color:#94a4ab;cursor:pointer;font-size:14px;display:inline-block;padding:6px 8px!important;background:#edf1f4!important}.inbox-view-header i.icon-print:hover{background:#e7ebef!important}.inbox-view-info{color:#666;padding:5px 0;margin-bottom:10px}.inbox-view-info strong{color:#666;margin:0 10px 0 5px}.inbox-view-info .inbox-info-btn{text-align:right}.inbox-view-info .inbox-info-btn ul{text-align:left}.inbox-view-info button{top:2px;color:#94a4ab;font-size:13px;margin-left:4px;padding:3px 10px;position:relative;background:#edf1f4}.inbox-view-info button:hover{color:#94a4ab;background:#e7ebef}.inbox-view{color:#666;padding:15px 0 0}.inbox-view a{color:#169ce9}.inbox-attached{line-height:16px}.inbox-attached a{margin:0 2px}.inbox-attached span,.inbox-compose-btn button i{margin-right:3px}.inbox-attached img{height:auto;max-width:250px;margin-bottom:5px}.inbox-attached strong{color:#555;display:block;font-size:13px}.inbox-attached .margin-bottom-25{margin-bottom:25px}.inbox-attached .margin-bottom-15{margin-bottom:15px}.inbox-compose{margin-top:1px;border:1px solid #eee}.inbox-compose-btn{padding:8px 4px;background:#f0f6fa}.inbox-compose-attachment{padding:8px}.inbox-compose-attachment .btn{padding:4px 10px}.inbox-compose-btn button{color:#fff;font-size:14px;margin-left:4px;padding:4px 10px;background:#c0cfdd}.inbox-compose-btn button:hover{color:#fff;background:#4d90fe}.inbox-compose .inbox-form-group{margin-bottom:0;position:relative;border-bottom:solid 1px #eee}.inbox-compose .controls{margin-left:85px}.inbox-compose .inbox-form-group>label{width:80px;float:left;color:#979797;text-align:right}.inbox-compose .controls>input{border:none!important}.inbox-compose .controls-to{padding-right:55px}.inbox-compose .controls-bcc,.inbox-compose .controls-cc{padding-right:20px}.inbox-compose .inbox-form-group a.close{top:13px;right:10px;position:absolute}.inbox-compose .mail-to .inbox-cc-bcc{display:inline-block;top:7px;right:10px;color:#979797;font-size:14px;cursor:pointer;position:absolute}.inbox-compose .mail-to .inbox-bcc{margin-left:5px}.inbox-compose .mail-to inbox-bcc:hover,.inbox-compose .mail-to inbox-cc:hover{color:#777}.inbox-compose .wysihtml5{padding:0!important;margin:0!important;border:0!important}.inbox-compose .wysihtml5-sandbox{padding:0!important;margin:5px 0 0!important;display:block!important;border:0!important;width:100%!important;border-left:none;border-right:none}.inbox-compose .wysihtml5-toolbar{border:0;border-bottom:1px solid #eee}.inbox-compose .wysihtml5-toolbar>li{height:34px;margin-right:0;margin-bottom:0}.inbox-compose .wysihtml5-toolbar>li>a,.inbox-compose .wysihtml5-toolbar>li>div>a{background:#fff}.inbox-compose .wysihtml5-toolbar>li>a:hover,.inbox-compose .wysihtml5-toolbar>li>div>a:hover{background:#f1f1f1;border-radius:0}.inbox-compose .wysihtml5-toolbar .dropdown.open .dropdown-toggle,ul.wysihtml5-toolbar a.btn.wysihtml5-command-active{background:#eee!important}@media (max-width:480px){.inbox-compose .inbox-form-group>label{margin-top:7px}}#mailMessages::-webkit-scrollbar-track{background-color:#fff!important}#mailMessages::-webkit-scrollbar{width:5px}.inbox-editor{padding:10px;margin:0!important}blockquote{margin-top:20px;margin-left:10px;margin-bottom:20px;border-left:1px solid #666!important;padding-left:5px;display:block;opacity:.7;filter:alpha(opacity=70)}.wysiwyg-color-black{color:#000}.wysiwyg-color-silver{color:silver}.wysiwyg-color-gray{color:gray}.wysiwyg-color-white{color:#fff}.wysiwyg-color-maroon{color:maroon}.wysiwyg-color-red{color:red}.wysiwyg-color-purple{color:purple}.wysiwyg-color-fuchsia{color:#f0f}.wysiwyg-color-green{color:green}.wysiwyg-color-lime{color:#0f0}.wysiwyg-color-olive{color:olive}.wysiwyg-color-yellow{color:#ff0}.wysiwyg-color-navy{color:navy}.wysiwyg-color-blue{color:#00f}.wysiwyg-color-teal{color:teal}.wysiwyg-color-aqua{color:#0ff}.wysiwyg-color-orange{color:orange}.our-integrations h3{margin-bottom:0;padding:10px;background:#f9f9f9}.our-integrations small{display:block;font-size:12px;color:#999;margin-top:5px}.our-integrations .integration-info{padding:10px;overflow:hidden;background:#f5f5f5}.audio-portlet .audio-portlet-title{margin-bottom:0;padding:10px;background:#f9f9f9;font-size:17px;word-wrap:break-word;margin-top:20px;line-height:1.1;color:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.audio-portlet .audio-portlet-title a{display:block;word-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.audio-portlet .file-info{padding:10px;overflow:hidden;background:#f5f5f5;height:105px}.audio-portlet-wrapper{float:left;margin:0 0 0 20px;-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s;-moz-transition:all .5s linear;-webkit-transition:all .5s linear;transition:all .5s linear}.animate-repeat{list-style:none;box-sizing:border-box}.animate-repeat.ng-enter,.animate-repeat.ng-leave,.animate-repeat.ng-move{-webkit-transition:all linear .5s;transition:all linear .5s}.animate-repeat.ng-enter,.animate-repeat.ng-leave.ng-leave-active,.animate-repeat.ng-move{opacity:0;max-height:0}.animate-repeat.ng-enter.ng-enter-active,.animate-repeat.ng-leave,.animate-repeat.ng-move.ng-move-active{opacity:1;max-height:600px}audio{-moz-transition:all .5s linear;-webkit-transition:all .5s linear;transition:all .5s linear;border-radius:0}@media (min-width:502px){.audio-portlet-wrapper{width:240px}.editable-error,audio{width:220px}}@media (max-width:501px){.audio-portlet-wrapper{width:320px}.editable-error,audio{width:300px}}.editable-error{white-space:pre-line}#description_div,.table-scrollable>.table>tbody>tr>th,.table-scrollable>.table>tfoot>tr>td,.table-scrollable>.table>tfoot>tr>th,.table-scrollable>.table>thead>tr>th{white-space:nowrap}#description_div{text-overflow:ellipsis;overflow:hidden;word-wrap:break-word}.portlet-title.collapsible{cursor:pointer}.group{background-color:#fff;padding:15px;border-radius:5px;border:1px solid #666}.group-conditions{margin-left:20px}.alert-group{margin-top:10px;margin-bottom:10px;border-color:#dcc896}.condition,.group{margin-top:15px;margin-bottom:15px}.ui-padding{padding-bottom:200px}div[contenteditable]{max-height:100px;overflow:auto;display:block;width:100%;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}a,button,code,div,img,input,label,li,p,pre,select,span,table,td,textarea,th,ul{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.img-circle{border-radius:50%!important}.img-rounded{border-radius:6px!important}body{color:#333;font-family:"Open Sans",sans-serif;padding:0!important;margin:0!important;font-size:13px;direction:ltr}@-ms-viewport{width:device-width}@-o-viewport{width:device-width}@viewport{width:device-width}@-ms-viewport{width:auto!important}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background-color:#eaeaea;border-radius:0;box-shadow:none;border:0}::-webkit-scrollbar-thumb{background-color:#cecece;border-radius:0;box-shadow:none;border:0}::-webkit-scrollbar-thumb:hover{background-color:#aaa}.bars,.chart,.pie,.primary-font{font-family:"Open Sans",sans-serif!important}h1{font-size:33px}h2{font-size:27px}h3{font-size:23px}h4{font-size:17px}h5{font-size:13px}h6{font-size:12px}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#444}h1.block,h2.block,h3.block,h4.block,h5.block,h6.block{padding-top:10px;padding-bottom:10px}a{text-shadow:none;color:#5b9bd1}a:active,a:focus,a:hover{outline:0}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:0}.list-unstyled li>.list-unstyled{margin-left:25px}code{border:1px solid #e1e1e1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px rgba(0,0,0,.1);box-shadow:0 1px 4px rgba(0,0,0,.1)}.disabled-link .disable-target{opacity:.5!important;filter:alpha(opacity=50)!important}.disabled-link .disable-target:hover,.disabled-link:hover{cursor:not-allowed!important}a:hover{color:#3175af;cursor:pointer}.primary-link{color:#65A0D0;font-weight:600}.primary-link:hover{color:#5194ca}.rounded-2{border-radius:2px!important}.rounded-3{border-radius:3px!important}.rounded-4{border-radius:4px!important}.circle{border-radius:25px!important}.circle-right{border-radius:0 25px 25px 0!important}.circle-left{border-radius:25px 0 0 25px!important}.circle-bottom{border-radius:0 0 25px 25px!important}.circle-top{border-radius:25px 25px 0 0!important}.display-hide,.display-none{display:none}.hidden{display:none!important}.bold{font-weight:700!important}.thin{font-weight:300!important}.uppercase{text-transform:uppercase!important}.fix-margin{margin-left:0!important}.border{border:1px solid red}.font-hg{font-size:23px}.font-lg{font-size:18px}.font-md{font-size:14px}.font-sm{font-size:13px}.font-xs{font-size:11px}.inline{display:inline}.inline-block{display:inline-block}.text-align-reverse{text-align:right}.top-news a,.top-news span{text-align:left;display:block}.no-space{margin:0!important;padding:0!important}.no-margin{margin:0}.margin-bottom-5{margin-bottom:5px}.margin-bottom-10{margin-bottom:10px!important}.margin-top-10{margin-top:10px!important}.margin-top-15{margin-top:15px!important}.margin-bottom-15{margin-bottom:15px!important}.margin-bottom-20{margin-bottom:20px!important}.margin-top-20{margin-top:20px!important}.margin-bottom-25{margin-bottom:25px!important}.margin-bottom-30{margin-bottom:30px!important}.margin-right-10{margin-right:10px!important}.visible-ie8{display:none}.ie8 .visible-ie8{display:inherit!important}.visible-ie9{display:none}.ie9 .visible-ie9{display:inherit!important}.hidden-ie8{display:inherit}.ie8 .hidden-ie8{display:none!important}.hidden-ie9{display:inherit}.ie9 .hidden-ie9{display:none!important}@media (max-width:1024px){.hidden-1024{display:none}}@media (max-width:480px){.hidden-480{display:none}}@media (max-width:320px){.hidden-320{display:none}}.scrollspy-example{position:relative;height:200px;margin-top:10px;overflow:auto}.util-btn-group-margin-bottom-5 .btn-group,.util-btn-margin-bottom-5 .btn{margin-bottom:5px!important}.user-info{margin-bottom:10px!important}.user-info img{float:left;margin-right:5px}.number-stats .stat-left,.number-stats .stat-left .stat-chart{float:right}.user-info .details{display:inline-block}.user-info .label{font-weight:300;font-size:11px}.top-news{color:#fff;margin:8px 0}.top-news em{font-size:13px;margin-bottom:0;font-style:normal;display:block}.top-news em i{font-size:14px}.top-news span{font-size:18px;margin-bottom:5px}.top-news a{padding:10px;position:relative;margin-bottom:10px}.top-news a .top-news-icon{right:8px;bottom:15px;opacity:.3;font-size:35px;position:absolute;filter:alpha(opacity=30)}.blog-images{margin-bottom:0}.blog-images li{padding:0;margin:0;display:inline}.blog-images li a:hover{text-decoration:none}.blog-images li img{width:50px;height:50px;opacity:.6;margin:0 2px 8px}.blog-images li img:hover{opacity:1;box-shadow:0 0 0 4px #72c02c;transition:all .4s ease-in-out 0s;-moz-transition:all .4s ease-in-out 0s;-webkit-transition:all .4s ease-in-out 0s}.sidebar-tags li{padding:0}.sidebar-tags li a{color:#555;font-size:12px;padding:3px 5px;background:#f7f7f7;margin:0 2px 5px 0;display:inline-block}.sidebar-tags li a:hover,.sidebar-tags li a:hover i{background:#EEE;text-decoration:none;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.sidebar-tags li a i{color:#777}.ver-inline-menu{padding:0;margin:0;list-style:none}.ver-inline-menu li{position:relative;margin-bottom:1px}.ver-inline-menu li i{width:37px;height:37px;display:inline-block;color:#b9cbd5;font-size:15px;padding:12px 10px 10px 8px;margin:0 8px 0 0;text-align:center;background:#e0eaf0!important}.ver-inline-menu li a{font-size:14px;font-weight:300;color:#557386;display:block;background:#f0f6fa;border-left:solid 2px #c4d5df}.ver-inline-menu li:hover a{background:#e0eaf0;text-decoration:none}.ver-inline-menu li:hover i{color:#fff;background:#c4d5df!important}.ver-inline-menu li.active a{border-left:solid 2px #0c91e5}.ver-inline-menu li.active i{background:#0c91e5!important}.ver-inline-menu li.active a,.ver-inline-menu li.active i{color:#fff;background:#169ef4;text-decoration:none}.ver-inline-menu li.active a,.ver-inline-menu li:hover a{font-size:14px}.ver-inline-menu li.active:after{content:'';display:inline-block;border-bottom:6px solid transparent;border-top:6px solid transparent;border-left:6px solid #169ef4;position:absolute;top:12px;right:-5px}.list-separated{margin-top:10px;margin-bottom:15px}.list-separated>div{border-right1:1px solid #f5f5f5}.list-separated>div:last-child{border-right:0}@media (max-width:767px){.ver-inline-menu>li.active:after{display:none}.list-separated>div{margin-bottom:20px}}.number-stats{margin:10px 0}.number-stats .stat-number{display:inline-block;margin:0 5px}.number-stats .stat-number .title{font-size:13px;margin-bottom:3px;color:#B8C3C7}.number-stats .stat-number .number{font-size:27px;line-height:27px;color:#7D8C9D}.number-stats>div{border-right:1px solid #f5f5f5}.number-stats>div:last-child{border-right:0}.number-stats .stat-left .stat-number{float:right;text-align:right}.number-stats .stat-right{float:left!important}.number-stats .stat-right .stat-number{float:left;text-align:left}.number-stats .stat-right .stat-chart{float:left}.number-stats .stat-number{float:left;text-align:left}.number-stats .stat-chart{display:inline-block;margin:0 5px;float:left}.general-item-list>.item{padding:10px 0;border-bottom:1px solid #F1F4F7}.general-item-list>.item:last-child{border-bottom:0}.general-item-list>.item>.item-head{margin-bottom:5px}.general-item-list>.item>.item-head:after,.general-item-list>.item>.item-head:before{content:" ";display:table}.general-item-list>.item>.item-head>.item-details{display:inline-block;float:left}.general-item-list>.item>.item-head>.item-details>.item-pic{height:35px;margin-right:10px;-webkit-border-radius:100%;-moz-border-radius:100%;-ms-border-radius:100%;-o-border-radius:100%;border-radius:100%}.general-item-list>.item>.item-head>.item-details>.item-name{display:inline-block;margin-right:10px}.general-item-list>.item>.item-head>.item-details>.item-label{color:#C0C9CC}.general-item-list>.item>.item-head>.item-status{color:#C0C9CC;top:10px;position:relative;display:inline-block;float:right}.general-item-list>.item>.item-head>.item-status>.badge{margin-top:-2px}.general-item-list>.item>.item-body{color:#96a5aa}.file-drop-zone{border:2px dashed #ddd;padding:30px;text-align:center}.file-drop-zone.file-drop-zone-over{border-color:#aaa}[class*=" fa-"],[class*=" glyphicon-"],[class*=" icon-"],[class^=fa-],[class^=glyphicon-],[class^=icon-]{display:inline-block;margin-top:1px;font-size:14px;line-height:14px;-webkit-font-smoothing:antialiased}li [class*=" fa-"],li [class*=" glyphicon-"],li [class*=" icon-"],li [class^=fa-],li [class^=glyphicon-],li [class^=icon-]{display:inline-block;width:1.25em;text-align:center}li [class*=" glyphicon-"],li [class^=glyphicon-]{top:2px}li [class*=" icon-"],li [class^=icon-]{top:1px;position:relative}li [class*=" fa-"].icon-large,li [class*=" glyphicon-"].icon-large,li [class*=" icon-"].icon-large,li [class^=fa-].icon-large,li [class^=glyphicon-].icon-large,li [class^=icon-].icon-large{width:1.5625em}.fa-sm,.icon-sm{font-size:12px}.fa-lg,.icon-lg{font-size:16px!important}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.icon-state-default{color:#c6c6c6}.icon-state-success{color:#45B6AF}.icon-state-info{color:#89C4F4}.icon-state-warning{color:#dfba49}.icon-state-danger{color:#F3565D}.fa-item{font-size:14px;padding:10px 10px 10px 20px}.fa-item i{font-size:16px;display:inline-block;width:20px;color:#333}.fa-item:hover{cursor:pointer;background:#eee}.badge-danger,.badge-default,.badge-info,.badge-primary,.badge-success,.badge-warning{background-image:none}.simplelineicons-demo .item-box{display:inline-block;font-size:16px;margin:0 -.22em 1em 0;padding-left:1em;width:100%}.simplelineicons-demo .item-box .item{background-color:#fff;color:#33383e;border-radius:8px;display:inline-block;padding:10px;width:100%}.bs-glyphicons,.glyphicons-demo ul{padding-left:0;padding-bottom:1px;margin-bottom:20px;overflow:hidden;list-style:none}.simplelineicons-demo .item-box .item span{font-size:22px}@media only screen and (min-width:768px){.simplelineicons-demo .item-box{width:33.333%}}.bs-glyphicon-class{text-align:center}.glyphicons-demo ul li{float:left;width:25%;height:115px;padding:10px;margin:0 -1px -1px 0;font-size:14px;line-height:1.4;text-align:center;border:1px solid #ddd}.glyphicons-demo .glyphicon{display:block;margin:5px auto 10px;font-size:24px;color:#444}.glyphicons-demo ul li:hover{background-color:rgba(86,61,124,.1)}.badge-default,.label-default{background-color:#c6c6c6}@media (min-width:768px){.glyphicons-demo ul li{width:12.5%}}.alert.alert-borderless{border:0}.badge{font-size:11px!important;font-weight:300;height:18px;padding:3px 6px;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important;text-shadow:none!important;text-align:center}.badge.badge-roundless{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.badge.badge-empty{display:inline-block;padding:0;min-width:8px;height:8px;width:8px}.badge-primary{background-color:#428bca}.badge-info{background-color:#89C4F4}.badge-success{background-color:#45B6AF}.badge-danger{background-color:#F3565D}.badge-warning{background-color:#dfba49}.nav.nav-pills>li>a>.badge,.nav.nav-stacked>li>a>.badge{margin-top:-2px}.dropdown-menu>li>a>.badge{position:absolute;margin-top:1px;right:3px;display:inline;font-size:11px;font-weight:300;text-shadow:none;height:18px;padding:3px 6px;text-align:center;vertical-align:middle;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important}.btn,.btn>i{font-size:14px}.dropdown-menu.badge-roundless{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.btn{border-width:0;padding:7px 14px;outline:0!important;background-image:none!important;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-shadow:none}.btn-group .btn.dropdown-toggle,.btn.active,.btn.dropdown-toggle,.btn:active,.btn:disabled,.btn:focus,.btn:hover,.btn[disabled]{outline:0!important;background-image:none!important;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-shadow:none}.btn-default{border-width:1px;padding:6px 13px;color:#333;background-color:#fff;border-color:#ccc}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open .btn-default.dropdown-toggle{color:#333;background-color:#ededed;border-color:#b3b3b3}.btn-default.active,.btn-default:active{background-image:none;background-color:#e0e0e0}.btn-default.active:hover,.btn-default:active:hover{background-color:#e6e6e6}.open .btn-default.dropdown-toggle{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-default>i{color:#aaa}.btn-default>i[class*=icon-],.btn-default>i[class^=icon-]{color:#8c8c8c}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open .btn-primary.dropdown-toggle{color:#fff;background-color:#3379b5;border-color:#2a6496}.btn-primary.active,.btn-primary:active{background-image:none;background-color:#2d6ca2}.btn-primary.active:hover,.btn-primary:active:hover{background-color:#3071a9}.open .btn-primary.dropdown-toggle{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#45B6AF;border-color:#3ea49d}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .btn-success.dropdown-toggle{color:#fff;background-color:#3b9c96;border-color:#307f7a}.btn-success.active,.btn-success:active{background-image:none;background-color:#348a84}.btn-success.active:hover,.btn-success:active:hover{background-color:#37918b}.open .btn-success.dropdown-toggle{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#45B6AF;border-color:#3ea49d}.btn-success .badge{color:#45B6AF;background-color:#fff}.btn-info{color:#fff;background-color:#89C4F4;border-color:#72b8f2}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open .btn-info.dropdown-toggle{color:#fff;background-color:#68b4f1;border-color:#43a1ed}.btn-info.active,.btn-info:active{background-image:none;background-color:#51a8ef}.btn-info.active:hover,.btn-info:active:hover{background-color:#5aadf0}.open .btn-info.dropdown-toggle{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#89C4F4;border-color:#72b8f2}.btn-info .badge{color:#89C4F4;background-color:#fff}.btn-warning{color:#fff;background-color:#dfba49;border-color:#dbb233}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open .btn-warning.dropdown-toggle{color:#fff;background-color:#daae2b;border-color:#bb9521}.btn-warning.active,.btn-warning:active{background-image:none;background-color:#c89f23}.btn-warning.active:hover,.btn-warning:active:hover{background-color:#d0a625}.open .btn-warning.dropdown-toggle{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#dfba49;border-color:#dbb233}.btn-warning .badge{color:#dfba49;background-color:#fff}.btn-danger{color:#fff;background-color:#F3565D;border-color:#f13e46}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open .btn-danger.dropdown-toggle{color:#fff;background-color:#f1353d;border-color:#ec111b}.btn-danger.active,.btn-danger:active{background-image:none;background-color:#ef1d26}.btn-danger.active:hover,.btn-danger:active:hover{background-color:#f0262f}.open .btn-danger.dropdown-toggle{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#F3565D;border-color:#f13e46}.btn-danger .badge{color:#F3565D;background-color:#fff}.btn-lg,.btn-lg>i{font-size:18px}.btn-lg{padding:10px 16px;line-height:1.33}.btn-sm,.btn-xs{padding:4px 10px 5px;font-size:13px;line-height:1.5}.btn-sm>i,.btn-xs>i{font-size:13px}.btn-xs{padding:1px 5px}.btn-group .input-sm .btn-default{padding-top:3px;padding-bottom:3px}.btn-arrow-link{display:inline-block;font-size:13px}.btn-arrow-link>i{font-size:14px;line-height:14px;vertical-align:top;margin:2px 3px;color:#999}.btn-arrow-link.btn-arrow-link-lg{font-size:14px}.btn-arrow-link.btn-arrow-link-lg>i{font-size:16px;line-height:16px;margin:2px 3px 1px}.btn-circle{border-radius:25px!important}.btn-circle-right{border-radius:0 25px 25px 0!important}.btn-circle-left{border-radius:25px 0 0 25px!important}.btn-circle-bottom{border-radius:0 0 25px 25px!important}.btn-circle-top{border-radius:25px 25px 0 0!important}.btn-icon-only{height:34px;width:34px;text-align:center;padding-left:0;padding-right:0}.btn-icon-only>[class^=icon-],.btn-icon-only>i{text-align:center;margin-top:2px}.btn-sm>[class*=" glyphicon-"],.btn-sm>[class^=glyphicon-],.btn-sm>i{font-size:13px}.btn-xs>[class*=" glyphicon-"],.btn-xs>[class^=glyphicon-],.btn-xs>i{font-size:11px}.btn-group.btn-group-circle>.btn:first-child{border-radius:25px 0 0 25px!important}.btn-group.btn-group-circle>.btn:last-child{border-radius:0 25px 25px 0!important}.btn-group.btn-group-devided>.btn{margin-right:5px}.btn-group.btn-group-devided>.btn:last-child{margin-right:0}.btn-group-vertical.btn-group-vertical-circle>.btn:first-child{border-radius:25px 25px 0 0!important}.btn-group-vertical.btn-group-vertical-circle>.btn:last-child{border-radius:0 0 25px 25px!important}.carousel.image-carousel .carousel-inner{padding-top:0;padding-bottom:0}.carousel.image-carousel .carousel-control i{position:absolute;top:40%}.carousel.image-carousel.image-carousel-hoverable .carousel-control i{display:none}.carousel.image-carousel.image-carousel-hoverable:hover .carousel-control i{display:inline-block}.carousel.image-carousel .carousel-control.left i{left:10px}.carousel.image-carousel .carousel-control.right i{right:10px}.carousel.image-carousel .carousel-indicators{margin-top:10px;bottom:-7px}.carousel.image-carousel .carousel-indicators li,.carousel.image-carousel .carousel-indicators li.active{background-color:#666}.carousel.image-carousel .carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px 15px 25px;background:#333;background:rgba(0,0,0,.75)}.carousel.image-carousel .carousel-caption h2,.carousel.image-carousel .carousel-caption h3,.carousel.image-carousel .carousel-caption h4,.carousel.image-carousel .carousel-caption p{text-align:left;line-height:20px;color:#fff}.carousel.image-carousel .carousel-caption h2,.carousel.image-carousel .carousel-caption h3,.carousel.image-carousel .carousel-caption h4{margin:0 0 5px}.carousel.image-carousel .carousel-caption h2 a,.carousel.image-carousel .carousel-caption h3 a,.carousel.image-carousel .carousel-caption h4 a{color:#aaa}.carousel.image-carousel .carousel-caption p{margin-bottom:0}.carousel.image-carousel .carousel-caption .item{margin:0}.bars,.chart,.pie{overflow:hidden;height:300px;width:100%;font-size:14px}.item-list.table .percent{width:30px;float:right;margin-right:10px;margin-top:3px}.chart-tooltip{z-index:100;background-color:#736e6e!important;padding:5px!important;color:#fff}.chart-tooltip .label{display:block;margin-bottom:2px}.bar-chart,.line-chart{display:none}.chats{margin:-15px 0 0;padding:0}.chats li{list-style:none;padding:5px 0;margin:10px auto;font-size:12px}.chats li .body{display:block}.chats li .avatar{height:45px;width:45px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;border-radius:50%!important}.chats li.in .avatar{float:left;margin-right:10px}.chats li.out .avatar{float:right;margin-left:10px}.chats li .name{color:#3590c1;font-size:13px;font-weight:400}.chats li .datetime{color:#333;font-size:13px;font-weight:400}.chats li .message{border-radius:5px!important;-webkit-border-readius:5px!important;-moz-border-radius:5px!important;display:block;padding:5px 20px;position:relative}.chats li.in .message{text-align:left;border:2px solid #E9E9E9;margin-left:65px;box-shadow:0 5px 10px #777}.chats li.in .message .arrow{display:block;position:absolute;top:15px;left:-8px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #e9e9e9}.chats li.out .message{border:2px solid #DFEECF;margin-right:65px;margin-left:5px;box-shadow:0 5px 10px #777}.chats li.out .message .arrow{display:block;position:absolute;top:15px;right:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:8px solid #DFEECF}.chats li.out .datetime,.chats li.out .name{text-align:right}.chat-form{margin-top:15px;padding:10px;background-color:#e9eff3;overflow:hidden}.chat-form .input-cont{margin-right:40px}.chat-form .input-cont .form-control{border:1px solid #ddd;width:100%!important;margin-top:0;background-color:#fff!important}.chat-form .input-cont .form-control:focus{border:1px solid #4b8df9!important}.chat-form .btn-cont{margin-top:-42px;position:relative;float:right;width:44px}.chat-form .btn-cont .arrow{position:absolute;top:17px;right:43px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #4d90fe;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chat-form .btn-cont .btn{margin-top:8px}.chat-form .btn-cont:hover .arrow{border-right-color:#0362fd}.chat-form .btn-cont:hover .btn{background-color:#0362fd}.close{display:inline-block;margin-top:0;margin-right:0;width:9px;height:9px;background-repeat:no-repeat!important;text-indent:-10000px;outline:0;background-image:url(../../assets/images/remove-icon-small.png)!important}.dropdown.open>.dropdown-toggle,.dropup.open>.dropdown-toggle{border-color:#ddd}.dropdown-menu{min-width:175px;position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;list-style:none;text-shadow:none;padding:0;margin:10px 0 0;background-color:#fffff;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #eee;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.dropdown-menu li.divider{background:#f1f3f6}.dropdown-menu li>a{padding:8px 14px;color:#555;text-decoration:none;display:block;font-weight:300;line-height:18px;white-space:nowrap}.dropdown-menu li>a>[class*=" fa-"],.dropdown-menu li>a>[class^=fa-]{color:#888}.dropdown-menu li>a>[class*=" icon-"],.dropdown-menu li>a>[class^=icon-]{color:#666}.dropdown-menu li>a>[class*=" glyphicon-"],.dropdown-menu li>a>[class^=glyphicon-]{color:#888}.dropdown-menu .active>a,.dropdown-menu .active>a:hover,.dropdown-menu li>a:hover{text-decoration:none;background-image:none;background-color:#f6f6f6;color:#555;filter:none}.dropdown-menu.bottom-up{top:auto;bottom:100%;margin-bottom:2px}.btn-group>.dropdown-menu,.dropdown-toggle>.dropdown-menu,.dropdown>.dropdown-menu{margin-top:10px}.btn-group>.dropdown-menu:before,.dropdown-toggle>.dropdown-menu:before,.dropdown>.dropdown-menu:before{position:absolute;top:-8px;left:9px;right:auto;display:inline-block!important;border-right:8px solid transparent;border-bottom:8px solid #e0e0e0;border-left:8px solid transparent;content:''}.btn-group>.dropdown-menu:after,.dropdown-toggle>.dropdown-menu:after,.dropdown>.dropdown-menu:after{position:absolute;top:-7px;left:10px;right:auto;display:inline-block!important;border-right:7px solid transparent;border-bottom:7px solid #fff;border-left:7px solid transparent;content:''}.btn-group>.dropdown-menu.pull-left:before,.dropdown-toggle>.dropdown-menu.pull-left:before,.dropdown>.dropdown-menu.pull-left:before{left:auto;right:9px}.btn-group>.dropdown-menu.pull-left:after,.dropdown-toggle>.dropdown-menu.pull-left:after,.dropdown>.dropdown-menu.pull-left:after{left:auto;right:10px}.btn-group>.dropdown-menu.pull-right:before,.dropdown-toggle>.dropdown-menu.pull-right:before,.dropdown>.dropdown-menu.pull-right:before{left:auto;right:9px}.btn-group>.dropdown-menu.pull-right:after,.dropdown-toggle>.dropdown-menu.pull-right:after,.dropdown>.dropdown-menu.pull-right:after{left:auto;right:10px}.btn-group.dropup>.dropdown-menu,.dropdown-toggle.dropup>.dropdown-menu,.dropdown.dropup>.dropdown-menu{margin-top:0;margin-bottom:10px}.btn-group.dropup>.dropdown-menu:after,.btn-group.dropup>.dropdown-menu:before,.dropdown-toggle.dropup>.dropdown-menu:after,.dropdown-toggle.dropup>.dropdown-menu:before,.dropdown.dropup>.dropdown-menu:after,.dropdown.dropup>.dropdown-menu:before{display:none!important}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:5px;left:100%;margin-top:-6px;margin-left:-1px}.dropdown-submenu>a:after{position:absolute;display:inline-block;font-size:14px;right:7px;top:7px;font-family:FontAwesome;height:auto;content:"\f105";font-weight:300}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px}.dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px}.nav.pull-right>li>.dropdown-menu,.nav>li>.dropdown-menu.pull-right{right:0;left:auto}.nav.pull-right>li>.dropdown-menu:before,.nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.nav.pull-right>li>.dropdown-menu:after,.nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.nav.pull-right>li>.dropdown-menu .dropdown-menu,.nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:absolute;float:left;width:auto;margin-top:0;background-color:#fff;border:1px solid #efefef;box-shadow:5px 5px rgba(102,102,102,.1)}.navbar-nav .open .dropdown-menu>li>a{padding:6px 0 6px 13px;color:#333}.navbar-nav .open .dropdown-menu>li>a:active,.navbar-nav .open .dropdown-menu>li>a:hover{ackground-color:#eee}}.feeds li .col1,.feeds li .col1>.cont>.cont-col2{width:100%;float:left}.dropdown-checkboxes,.dropdown-content,.dropdown-radiobuttons{padding:5px}.dropdown-content form{margin:0}.dropdown.inline .dropdown-menu{display:inline-block;position:relative}.dropdown-checkboxes label,.dropdown-radiobuttons label{display:block;font-weight:300;color:#333;margin-bottom:4px;margin-top:4px}.dropdown-checkboxes label .radio,.dropdown-radiobuttons label .radio{margin-right:3px}.feeds{margin:0;padding:0;list-style:none}.feeds li{background-color:#fafafa;color:#82949a;margin-bottom:7px}.feeds li:after,.feeds li:before{display:table;line-height:0;content:""}.feeds li:last-child{margin-bottom:0}.feeds li .col1>.cont{float:left;margin-right:75px;overflow:hidden}.feeds li .col1>.cont>.cont-col1{float:left;margin-right:-100%}.feeds li .col1>.cont>.cont-col1>.label{display:inline-block;padding:5px 4px 6px 5px;vertical-align:middle;text-align:center}.feeds li .col1>.cont>.cont-col1>.label>i{text-align:center;font-size:14px}.feeds li .col1>.cont>.cont-col2>.desc{margin-left:35px;padding-top:4px;padding-bottom:5px;overflow:hidden}.modal,.modal-open{overflow-y:auto!important}.feeds li .col2{float:left;width:75px;margin-left:-75px}.feeds li .col2>.date{padding:4px 9px 5px 4px;text-align:right;font-style:italic;color:#c1cbd0}.static-info{margin-bottom:10px}.static-info .name{font-size:14px}.static-info .value{font-size:14px;font-weight:600}.static-info.align-reverse .name,.static-info.align-reverse .value{text-align:right}.help-block{margin-top:5px;margin-bottom:5px}.help-inline{font-size:13px;color:#737373;display:inline-block;padding:5px}.form-inline input{margin-bottom:0!important}.control-label{margin-top:1px}.control-label .required{color:#e02222;font-size:12px;padding-left:2px}.form{padding:0!important}.form .form-body{padding:10px}.portlet.light .form .form-body{padding-left:0;padding-right:0}.form .form-actions{padding:20px 10px;margin:0;background-color:#f5f5f5;border-top:1px solid #e5e5e5}.portlet.light .form .form-actions{background:0 0;padding-left:0;padding-right:0}.portlet .form .form-actions{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.form .form-actions:after,.form .form-actions:before{content:" ";display:table}.form .form-actions.right{padding-left:0;padding-right:10px;text-align:right}.portlet.light .form .form-actions.right{padding-right:0}.form .form-actions.left{padding-left:10px;padding-right:0;text-align:left}.checkbox-list>label.checkbox-inline:first-child,.checkbox>label,.form-horizontal .checkbox>label,.portlet.light .form .form-actions.left,.radio-list>label.radio-inline:first-child{padding-left:0}.form .form-actions.nobg{background-color:transparent}.form .form-actions.top{margin-top:0;margin-bottom:20px;border-top:0;border-bottom:1px solid #e5e5e5}.portlet.light .form .form-actions.top{background:0 0}.form .form-actions .btn-set{display:inline-block}@media (max-width:767px){.form .form-actions .btn-set{margin-bottom:3px;margin-top:3px;float:left!important}}.form .form-section{margin:30px 0 25px;padding-bottom:5px;border-bottom:1px solid #eee}.form .form-bordered .form-group .help-block,.form .form-row-seperated .form-group .help-block,.form-horizontal .radio-list>label{margin-bottom:0}.form .form-section:first-child{margin-top:5px}.checkbox,.form-horizontal .checkbox{padding:0}.checkbox-list>label{display:block}.checkbox-list>label.checkbox-inline{display:inline-block}.input-icon>i,.radio-list>label{display:block}.form-control-static,.icon-btn,.input-inline,.radio-list>label.radio-inline{display:inline-block}.form-horizontal .radio-list .radio{padding-top:1px}.form-horizontal .radio>span{margin-top:2px}.form .form-row-seperated .portlet-body{padding:0}.form .form-row-seperated .form-group{margin:0;border-bottom:1px solid #efefef;padding:15px 0}.form .form-row-seperated .form-group.last{border-bottom:0;margin-bottom:0;padding-bottom:13px}.form .form-row-seperated .form-body{padding:0}.form .form-row-seperated .form-actions{padding-left:15px!important;padding-right:15px!important}.form .form-bordered .form-group{margin:0;border-bottom:1px solid #efefef}.form .form-bordered .form-group>div{padding:15px;border-left:1px solid #efefef}.form .form-bordered .form-group.last{border-bottom:0}.form .form-bordered .form-group .control-label{padding-top:20px}@media (max-width:991px){.form .form-bordered .form-group>div{border-left:0}.form .form-bordered .form-group .control-label{padding-top:10px}}.form .form-bordered .form-group .form-control{margin:0}.form .form-bordered .form-body{margin:0;padding:0}.form .form-bordered .form-actions{margin-top:0;padding-left:16px!important;padding-right:16px!important}@media (max-width:991px){.form .form-bordered .form-actions{padding-left:15px!important;padding-right:15px!important}}.form .form-horizontal.form-bordered.form-row-stripped .form-group:nth-child(even){background-color:#fcfcfc}.form .form-horizontal.form-bordered.form-row-stripped .form-control{background:#fff!important}.form .form-horizontal.form-bordered.form-label-stripped .form-group:nth-child(even)>div{background-color:#fff}.form .form-horizontal.form-bordered.form-label-stripped .form-group:nth-child(even){background-color:#fcfcfc}.form-control::-moz-placeholder{color:#b3b3b3;opacity:1}.form-control:-ms-input-placeholder{color:#b3b3b3}.form-control::-webkit-input-placeholder{color:#b3b3b3}.form-control{font-size:14px;font-weight:400;color:#333;background-color:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#999;outline:0;-webkit-box-shadow:none;box-shadow:none}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}.form-control.height-auto{height:auto}.form-control.form-control-solid{background-color:#F1F3F8;border-color:#F1F3F8;color:#A6B2BA}.note .highlight,.note code,.uneditable-input{background-color:#fff}.form-control.form-control-solid:focus{border-color:#e3e7f1}.form-control.form-control-solid::-moz-placeholder{color:#acb7be;opacity:1}.form-control.form-control-solid:-ms-input-placeholder{color:#acb7be}.form-control.form-control-solid::-webkit-input-placeholder{color:#acb7be}.uneditable-input{padding:6px 12px;min-width:206px;font-size:14px;font-weight:400;height:34px;color:#333;border:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.icon-btn,.icon-btn:hover{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.input-mini{width:45px!important}.input-xsmall{width:80px!important}.input-small{width:145px!important}.input-medium{width:240px!important}.input-large{width:320px!important}.input-xlarge{width:420px!important}.input-inline{width:auto;vertical-align:middle}.form-group .input-inline{margin-right:5px}.input-sm{height:28px;padding:5px 10px;font-size:13px}select.input-sm{height:28px;line-height:28px;padding:2px 10px}@media (max-width:768px){.input-large{width:250px!important}.input-xlarge{width:300px!important}}.input-group .btn-default{border-color:#e5e5e5}.input-group .input-group-addon{border-color:#e5e5e5;background:#e5e5e5;min-width:39px}.input-group .input-group-addon>i{color:#999}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .form-control-feedback,.has-success .help-block,.has-success .help-inline,.has-success .radio,.has-success .radio-inline{color:#3c763d}input[type=text].spinner,input[type=password].spinner,input[type=datetime].spinner,input[type=datetime-local].spinner,input[type=date].spinner,input[type=month].spinner,input[type=time].spinner,input[type=week].spinner,input[type=number].spinner,input[type=email].spinner,input[type=url].spinner,input[type=search].spinner,input[type=tel].spinner,input[type=color].spinner{background-image:url(../../assets/images/input-spinner.gif)!important;background-repeat:no-repeat;background-position:right 8px}label{font-weight:400;font-size:14px}.form-control-static{margin:2px 0}.has-success .form-control{border-color:#d6e9c6;-webkit-box-shadow:none;box-shadow:none}.has-success .form-control:focus{border-color:#bbdba1;-webkit-box-shadow:none;box-shadow:none}.has-success .input-group-addon{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .form-control-feedback,.has-warning .help-block,.has-warning .help-inline,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#faebcc;-webkit-box-shadow:none;box-shadow:none}.has-warning .form-control:focus{border-color:#f5d89e;-webkit-box-shadow:none;box-shadow:none}.has-warning .input-group-addon{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .form-control-feedback,.has-error .help-block,.has-error .help-inline,.has-error .radio,.has-error .radio-inline{color:#a94442}.has-error .form-control{border-color:#ebccd1;-webkit-box-shadow:none;box-shadow:none}.has-error .form-control:focus{border-color:#dca7b0;-webkit-box-shadow:none;box-shadow:none}.has-error .input-group-addon{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.input-circle{border-radius:25px!important}.input-circle-right{border-radius:0 25px 25px 0!important}.input-circle-left{border-radius:25px 0 0 25px!important}.input-circle-bottom{border-radius:0 0 25px 25px!important}.input-circle-top{border-radius:25px 25px 0 0!important}.icon-btn{height:60px;min-width:80px;margin:5px 5px 0 0;border:1px solid #ddd;padding:12px 0 0;background-color:#fafafa;background-image:none;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;color:#646464;text-shadow:none;text-align:center;cursor:pointer;position:relative;transition:all .3s ease}.loading-message,.page-loading{min-width:125px;vertical-align:middle}[class^=m-icon-],[class^=m-icon-big-]{background-image:url(../../assets/images/syncfusion-icons.png);background-position:0 0;background-repeat:no-repeat}.icon-btn:hover,.icon-btn:hover>.badge{-webkit-box-shadow:none;-moz-box-shadow:none}.close,.icon-btn:hover{text-shadow:0 1px 0 #fff}.icon-btn:hover{text-decoration:none;border-color:#999;color:#444;transition:all .3s ease;box-shadow:none}.icon-btn:hover>.badge{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;box-shadow:none}.icon-btn>div{margin-top:5px;margin-bottom:20px;color:#000;font-size:12px;font-weight:300}.icon-btn>.badge{position:absolute;font-size:11px;font-weight:300;top:-5px;right:-5px;padding:3px 6px;color:#fff;text-shadow:none;border-width:0;border-style:solid;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.input-group .input-icon>.form-control,.tabs-left.nav-tabs>li>a:focus,.tabs-left.nav-tabs>li>a:hover{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;-ms-border-radius:4px 0 0 4px;-o-border-radius:4px 0 0 4px}.icon-btn>i{font-size:18px}.ie8 .icon-btn:hover{filter:none}.input-icon{position:relative}.input-icon>.form-control{padding-left:33px}.input-group .input-icon>.form-control{border-radius:4px 0 0 4px}.input-icon>i{color:#ccc;position:absolute;margin:11px 2px 4px 10px;z-index:3;width:16px;height:16px;font-size:16px;text-align:center}.modal .input-icon>i{z-index:10055}.has-success .input-icon>i{color:#45B6AF}.has-warning .input-icon>i{color:#dfba49}.has-info .input-icon>i{color:#89C4F4}.has-error .input-icon>i{color:#F3565D}.input-icon.right>.form-control{padding-right:33px;padding-left:12px}.input-group .input-icon.right>.form-control{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-icon.right>i{right:8px;float:right}.input-icon.input-icon-lg>i{margin-top:16px}.input-icon.input-icon-sm>i{margin-top:8px;font-size:13px}.label{text-shadow:none!important;font-size:13px;font-weight:300;padding:3px 6px;color:#fff;font-family:"Open Sans",sans-serif}.label.label-sm{font-size:12px;padding:0 4px 1px}h1 .label,h2 .label,h3 .label,h4 .label,h5 .label,h6 .label{font-size:75%}.label-default[href]:focus,.label-default[href]:hover{background-color:#adadad}.label-primary{background-color:#428bca}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#3071a9}.label-success{background-color:#45B6AF}.label-success[href]:focus,.label-success[href]:hover{background-color:#37918b}.label-info{background-color:#89C4F4}.label-info[href]:focus,.label-info[href]:hover{background-color:#5aadf0}.label-warning{background-color:#dfba49}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#d0a625}.label-danger{background-color:#F3565D}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#f0262f}.label.label-icon{padding:4px 0 4px 4px;margin-right:2px;text-align:center!important}.label.label-icon>i{font-size:12px;text-align:center!important}.note p,.page-loading,.panel .panel-body{font-size:13px}.ie8 .label.label-icon,.ie9 .label.label-icon{padding:3px 0 3px 3px}.text-default{color:#c6c6c6}.text-primary{color:#428bca}.text-success{color:#45B6AF}.text-info{color:#89C4F4}.text-warning{color:#dfba49}.text-danger{color:#F3565D}.list-group .list-group-item-success{color:#3c763d;background-color:#dff0d8}.list-group a.list-group-item-success{color:#3c763d}.list-group a.list-group-item-success .list-group-item-heading{color:inherit}.list-group a.list-group-item-success:focus,.list-group a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}.list-group a.list-group-item-success.active,.list-group a.list-group-item-success.active:focus,.list-group a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group .list-group-item-info{color:#31708f;background-color:#d9edf7}.list-group a.list-group-item-info{color:#31708f}.list-group a.list-group-item-info .list-group-item-heading{color:inherit}.list-group a.list-group-item-info:focus,.list-group a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}.list-group a.list-group-item-info.active,.list-group a.list-group-item-info.active:focus,.list-group a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group .list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}.list-group a.list-group-item-warning{color:#8a6d3b}.list-group a.list-group-item-warning .list-group-item-heading{color:inherit}.list-group a.list-group-item-warning:focus,.list-group a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}.list-group a.list-group-item-warning.active,.list-group a.list-group-item-warning.active:focus,.list-group a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group .list-group-item-danger{color:#a94442;background-color:#f2dede}.list-group a.list-group-item-danger{color:#a94442}.list-group a.list-group-item-danger .list-group-item-heading{color:inherit}.list-group a.list-group-item-danger:focus,.list-group a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}.list-group a.list-group-item-danger.active,.list-group a.list-group-item-danger.active:focus,.list-group a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.loading-message{display:inline-block;padding:10px;margin:0 auto;color:#000!important;font-size:13px;font-weight:400;text-align:center}.loading-message.loading-message-boxed{border:1px solid #ddd;background-color:#eee;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.loading-message>span{line-height:20px;vertical-align:middle}.page-loading{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;position:fixed;top:50%;left:50%;margin-left:-60px;margin-top:-30px;padding:7px;text-align:center;color:#333;border:1px solid #ddd;background-color:#eee;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.block-spinner-bar>div,.page-spinner-bar>div{border-radius:100%!important;display:inline-block}.panel,.well{-webkit-box-shadow:none!important}.page-loading>span{line-height:20px;vertical-align:middle}.page-spinner-bar{position:fixed;z-index:10051;width:100px;top:40%;left:50%;margin-left:-55px;text-align:center}.page-spinner-bar>div{margin:0 5px;width:18px;height:18px;-webkit-animation:bounceDelay 1.4s infinite ease-in-out;animation:bounceDelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.page-spinner-bar .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.page-spinner-bar .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}.block-spinner-bar{display:inline-block;width:80px;text-align:center}.block-spinner-bar>div{margin:0 2px;width:15px;height:15px;-webkit-animation:bounceDelay 1.4s infinite ease-in-out;animation:bounceDelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.note,.tabs-right.nav-tabs>li>a:focus,.tabs-right.nav-tabs>li>a:hover{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0}.block-spinner-bar .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.block-spinner-bar .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}[class^=m-icon-]{display:inline-block;width:14px;height:14px;margin-top:3px;line-height:14px;vertical-align:top}[class^=m-icon-big-]{display:inline-block;width:30px;height:30px;margin:6px;vertical-align:middle}.btn.m-icon-big{padding:9px 16px 8px}.btn.m-icon-big.m-icon-only{padding:9px 8px 8px 0}.btn.m-icon-big [class^=m-icon-big-]{margin:0 0 0 10px}.btn.m-icon-ony>i{margin-left:0}.btn.m-icon{padding:7px 14px}.btn.m-icon [class^=m-icon-]{margin:4px 0 0 5px}.btn.m-icon.m-icon-only{padding:7px 10px 7px 6px}.m-icon-white{background-image:url(../../assets/images/syncfusion-icons-white.png)}.m-icon-swapright{background-position:-27px -10px}.m-icon-swapdown{background-position:-68px -10px}.m-icon-swapleft{background-position:-8px -10px}.m-icon-swapup{background-position:-46px -10px}.m-icon-big-swapright{background-position:-42px -28px}.m-icon-big-swapdown{background-position:-115px -28px}.m-icon-big-swapleft{background-position:-6px -28px}.m-icon-big-swapup{background-position:-78px -28px}.modal{z-index:10050;outline:0}.modal .modal-header{border-bottom:1px solid #EFEFEF}.modal .modal-header h3{font-weight:300}.modal .modal-header .close{margin-top:0!important}.modal .modal-dialog{z-index:10051}.modal>.loading{position:absolute;top:50%;left:50%;margin-top:-22px;margin-left:-22px}.modal.in .page-loading{display:none}.modal-open-noscroll{overflow-y:hidden!important}.modal-full.modal-dialog{width:99%}@media (max-width:768px){.modal-full.modal-dialog{width:auto}}.note{margin:0 0 20px;padding:15px 30px 15px 15px;border-left:5px solid #eee;border-radius:0 4px 4px 0}.note h1,.note h2,.note h3,.note h4,.note h5,.note h6{margin-top:0}.note h1 .close,.note h2 .close,.note h3 .close,.note h4 .close,.note h5 .close,.note h6 .close{margin-right:-10px}.note p:last-child{margin-bottom:0}.note.note-default{background-color:#d3d3d3;border-color:#a0a0a0;color:#333,80%}.note.note-default.note-bordered{background-color:#c9c9c9;border-color:#a5a5a5}.note.note-primary{background-color:#5697d0;border-color:#2a7696;color:#D8E3F2,80%}.note.note-primary.note-bordered{background-color:#468dcb;border-color:#2c7c9e}.note.note-success{background-color:#eef7ea;border-color:#bbdba1;color:#3c763d,80%}.note.note-success.note-bordered{background-color:#e2f1dc;border-color:#c1dea8}.note.note-info{background-color:#eef7fb;border-color:#91d9e8;color:#31708f,80%}.note.note-info.note-bordered{background-color:#ddeff8;border-color:#9adcea}.note.note-warning{background-color:#fcf8e3;border-color:#f2cf87;color:#8a6d3b,80%}.note.note-warning.note-bordered{background-color:#faf3d1;border-color:#f3d390}.note.note-danger{background-color:#f9f0f0;border-color:#dca7b0;color:#a94442,80%}.note.note-danger.note-bordered{background-color:#f3e2e2;border-color:#dfaeb7}.pagination{margin:10px 0}.pagination.pagination-circle>li:first-child>a{border-radius:25px 0 0 25px!important}.pagination.pagination-circle>li:last-child>a{border-radius:0 25px 25px 0!important}.dashboard-stat,.portlet{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px}.pagination .active>a,.pagination .active>a:hover{background:#eee;border-color:#ddd;color:#333}.panel{-moz-box-shadow:none!important;box-shadow:none!important}.panel-group .panel{overflow:visible}.panel .panel-title>a:hover{text-decoration:none}.accordion .panel .panel-heading,.accordion .panel .panel-title{padding:0}.accordion .panel .panel-title .accordion-toggle{display:block;padding:10px 15px}.accordion .panel .panel-title .accordion-toggle.accordion-toggle-styled{background:url(../../assets/images/accordion-plusminus.png) right -19px no-repeat;margin-right:15px}.accordion .panel .panel-title .accordion-toggle.accordion-toggle-styled.collapsed{background-position:right 12px}.panel-default{border-color:#e0e0e0}.panel-default>.panel-heading{color:#333;background-color:#f9f9f9;border-color:#e0e0e0}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#e0e0e0}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#e0e0e0}.panel-primary{border-color:#3595bd}.panel-primary>.panel-heading{color:#D8E3F2;background-color:#428bca;border-color:#3595bd}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#3595bd}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#3595bd}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.accordion-heading{background:#eee}.accordion-heading a,.accordion-heading a:hover{text-decoration:none}.popover{box-shadow:5px 5px rgba(102,102,102,.1);padding:0}.portlet.calendar .fc-button,.progress{-webkit-box-shadow:none;-moz-box-shadow:none}.popover .popover-title{margin:0!important}.popover.name .popover-content,.popover.name .popover-title,name .popover .popover-content{color:#F3565D}.popovers.yellow+.popover,.popovers.yellow+.popover .popover-content,.popovers.yellow+.popover .popover-title{background:#ff0}.page-portlet-fullscreen{overflow:hidden}.portlet{margin-top:0;margin-bottom:25px;padding:0;border-radius:4px}.portlet.portlet-fullscreen{z-index:10060;margin:0;position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:#fff}.portlet.portlet-fullscreen>.portlet-body{overflow-y:auto;overflow-x:hidden;padding:0 10px}.portlet.portlet-fullscreen>.portlet-title{padding:0 10px}.portlet>.portlet-title{border-bottom:1px solid #eee;padding:0;margin-bottom:10px;min-height:41px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.portlet>.portlet-title:after,.portlet>.portlet-title:before{content:" ";display:table}.portlet>.portlet-title>.caption{float:left;display:inline-block;font-size:18px;line-height:18px;font-weight:300;padding:10px 0}.portlet>.portlet-title>.caption.bold{font-weight:400}.portlet>.portlet-title>.caption>i{float:left;margin-top:4px;display:inline-block;font-size:13px;margin-right:5px;color:#666}.portlet>.portlet-title>.caption>i.glyphicon{margin-top:2px}.portlet>.portlet-title>.caption>.caption-helper{padding:0;margin:0;line-height:13px;color:#9eacb4;font-size:13px;font-weight:400}.portlet>.portlet-title>.actions{float:right;display:inline-block;padding:6px 0}.portlet>.portlet-title>.actions>.dropdown-menu i{color:#555}.portlet>.portlet-title>.actions>.btn,.portlet>.portlet-title>.actions>.btn-group>.btn,.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm,.portlet>.portlet-title>.actions>.btn.btn-sm{padding:4px 10px;font-size:13px;line-height:1.5}.portlet>.portlet-title>.actions>.btn-group>.btn.btn-default,.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm.btn-default,.portlet>.portlet-title>.actions>.btn.btn-default,.portlet>.portlet-title>.actions>.btn.btn-sm.btn-default{padding:3px 9px}.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm>i,.portlet>.portlet-title>.actions>.btn-group>.btn>i,.portlet>.portlet-title>.actions>.btn.btn-sm>i,.portlet>.portlet-title>.actions>.btn>i{font-size:13px}.portlet>.portlet-title>.actions .btn-icon-only{padding:5px 7px 3px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default{padding:4px 6px 2px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default>i{font-size:14px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen{font-family:FontAwesome;color:#a0a0a0;padding-top:3px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen.btn-sm{padding:3px!important;height:27px;width:27px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen:before{content:"\f065"}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen.on:before{content:"\f066"}.portlet>.portlet-title>.tools{float:right;display:inline-block;padding:12px 0 8px}.portlet>.portlet-title>.tools>a{display:inline-block;height:16px;margin-left:5px;opacity:1;filter:alpha(opacity=100)}.portlet>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon.png);background-repeat:no-repeat;width:11px}.portlet>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon.png);background-repeat:no-repeat;width:12px}.portlet>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon.png);width:13px}.portlet>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon.png);width:14px;visibility:visible}.portlet>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon.png);width:14px;visibility:visible}.portlet>.portlet-title>.tools>a.fullscreen{display:inline-block;top:-3px;position:relative;font-size:13px;font-family:FontAwesome;color:#ACACAC}.portlet>.portlet-title>.tools>a.fullscreen:before{content:"\f065"}.portlet>.portlet-title>.tools>a.fullscreen.on:before{content:"\f066"}.portlet>.portlet-title>.tools>a:hover{text-decoration:none;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;transition:all .1s ease-in-out;opacity:.8;filter:alpha(opacity=80)}.portlet>.portlet-title>.pagination{float:right;display:inline-block;margin:2px 0 0;border:0;padding:4px 0}.portlet>.portlet-title>.nav-tabs{background:0 0;margin:0;float:right;display:inline-block;border:0}.portlet>.portlet-title>.nav-tabs>li{background:0 0;margin:0;border:0}.portlet>.portlet-title>.nav-tabs>li>a{background:0 0;margin:5px 0 0 1px;border:0;padding:8px 10px;color:#fff}.portlet>.portlet-title>.nav-tabs>li.active>a,.portlet>.portlet-title>.nav-tabs>li:hover>a{color:#333;background:#fff;border:0}.portlet>.portlet-body{clear:both;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.portlet>.portlet-empty{min-height:125px}.portlet.full-height-content{margin-bottom:0}.portlet.bordered{border-left:2px solid #e6e9ec!important}.portlet.bordered>.portlet-title{border-bottom:0}.portlet.solid{padding:0 10px 10px;border:0}.portlet.solid>.portlet-title{border-bottom:0;margin-bottom:10px}.portlet.solid>.portlet-title>.caption{padding:16px 0 2px}.portlet.solid>.portlet-title>.actions{padding:12px 0 6px}.portlet.solid>.portlet-title>.tools{padding:14px 0 6px}.portlet.solid.bordered>.portlet-title{margin-bottom:10px}.portlet.box{padding:0!important}.portlet.box>.portlet-title{border-bottom:0;padding:0 10px;margin-bottom:0;color:#fff}.portlet.box>.portlet-title>.caption{padding:11px 0 9px}.portlet.box>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.box>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.box>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.box>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.box>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.box>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box>.portlet-title>.actions{padding:7px 0 5px}.portlet.box>.portlet-body{background-color:#fff;padding:10px}.portlet.box.portlet-fullscreen>.portlet-body{padding:10px}.portlet.light{padding:12px 20px 15px;background-color:#fff}.portlet.light.bordered{border:1px solid #e1e1e1!important}.portlet.light.bordered>.portlet-title{border-bottom:1px solid #eee}.portlet.light.bg-inverse{background:#F7F7F7}.portlet.light>.portlet-title{padding:0;min-height:48px}.portlet.light>.portlet-title>.caption{color:#666;padding:10px 0}.portlet.light>.portlet-title>.caption>.caption-subject{font-size:16px}.portlet.light>.portlet-title>.caption>i{color:#777;font-size:15px;font-weight:300;margin-top:3px}.portlet.light>.portlet-title>.caption.caption-md>.caption-subject{font-size:15px}.portlet.light>.portlet-title>.caption.caption-md>i{font-size:14px}.portlet.light>.portlet-title>.actions{padding:6px 0 14px}.portlet.light>.portlet-title>.actions .btn-default{color:#666}.portlet.light>.portlet-title>.actions .btn-icon-only{height:27px;width:27px}.portlet.light>.portlet-title>.actions .dropdown-menu li>a{color:#555}.portlet.light>.portlet-title>.inputs{float:right;display:inline-block;padding:4px 0}.portlet.light>.portlet-title>.inputs>.portlet-input .input-icon>i{font-size:14px;margin-top:9px}.portlet.light>.portlet-title>.inputs>.portlet-input .input-icon>.form-control{height:30px;padding:2px 26px 3px 10px;font-size:13px}.portlet.light>.portlet-title>.inputs>.portlet-input>.form-control{height:30px;padding:3px 10px;font-size:13px}.portlet.light>.portlet-title>.pagination{padding:2px 0 13px}.portlet.light>.portlet-title>.tools{padding:10px 0 13px;margin-top:2px}.portlet.light>.portlet-title>.nav-tabs>li{margin:0;padding:0}.portlet.light>.portlet-title>.nav-tabs>li>a{margin:0;padding:12px 13px 13px;font-size:13px;color:#666}.portlet.light>.portlet-title>.nav-tabs>li.active>a,.portlet.light>.portlet-title>.nav-tabs>li:hover>a{margin:0;background:0 0;color:#333}.blue.btn.active,.blue.btn:active,.btn.default.active,.btn.default:active,.open .blue.btn.dropdown-toggle,.open .btn.default.dropdown-toggle,.progress,.progress-striped .progress>.progress-bar-default,.progress-striped .progress>.progress-bar-info,.progress-striped .progress>.progress-bar-success,.progress-striped .progress>.progress-bar-warning{background-image:none}.portlet.light.form-fit{padding:0}.portlet.light.form-fit>.portlet-title{padding:17px 20px 10px;margin-bottom:0}.portlet.light .portlet-body{padding-top:8px}.portlet.light.portlet-fullscreen>.portlet-body{padding:8px 0}.tab-pane>p:last-child{margin-bottom:0}.tabs-reversed>li{float:right;margin-right:0}.tabs-reversed>li>a{margin-right:0}.portlet-sortable:not(.portlet-fullscreen)>.portlet-title{cursor:move}.portlet-sortable-placeholder{border:2px dashed #eee;margin-bottom:25px}.portlet-sortable-empty{height:45px}.progress{border:0;filter:none;box-shadow:none}.progress.progress-sm{height:12px}.progress>.progress-bar-default{background-color:#c6c6c6}.progress>.progress-bar-success{background-color:#45B6AF}.progress>.progress-bar-info{background-color:#89C4F4}.progress>.progress-bar-danger{background-color:#F3565D}.progress-striped .progress>.progress-bar-danger{background-image:none}.progress>.progress-bar-warning{background-color:#dfba49}.dashboard-stat{display:block;margin-bottom:25px;overflow:hidden;border-radius:4px}.dashboard-stat:after,.dashboard-stat:before{content:" ";display:table}.portlet .dashboard-stat:last-child{margin-bottom:0}.dashboard-stat .visual{width:80px;height:80px;display:block;float:left;padding-top:10px;padding-left:15px;margin-bottom:15px;font-size:35px;line-height:35px}.dashboard-stat .visual>i{margin-left:-35px;font-size:110px;line-height:110px}.dashboard-stat .details{position:absolute;right:15px;padding-right:15px}.dashboard-stat .details .number{padding-top:25px;text-align:right;font-size:34px;line-height:36px;letter-spacing:-1px;margin-bottom:0;font-weight:300}.dashboard-stat .details .desc{text-align:right;font-size:16px;letter-spacing:0;font-weight:300}.dashboard-stat .more{display:block;padding:6px 10px;position:relative;text-transform:uppercase;font-weight:300;font-size:11px;opacity:.7;filter:alpha(opacity=70)}.dashboard-stat .more:hover{text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.dashboard-stat .more>i{display:inline-block;margin-top:1px;float:right}.dashboard-stat-light{padding-bottom:20px;margin-bottom:20px}.dashboard-stat-light .details{margin-bottom:5px}.dashboard-stat-light .details .number{font-weight:300;margin-bottom:0}.dashboard-stat2,.dashboard-stat2 .display{margin-bottom:20px}.dashboard-stat2{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background:#fff;padding:15px 15px 30px}.dashboard-stat2 .display:after,.dashboard-stat2 .display:before{content:" ";display:table}.dashboard-stat2 .display .number{float:left;display:inline-block}.dashboard-stat2 .display .number h3{margin:0 0 2px;padding:0;font-size:30px;font-weight:400}.dashboard-stat2 .display .number h3>small{font-size:23px}.dashboard-stat2 .display .number small{font-size:14px;color:#AAB5BC;font-weight:600;text-transform:uppercase}.dashboard-stat2 .display .icon{display:inline-block;float:right;padding:7px 0 0}.dashboard-stat2 .display .icon>i{color:#cbd4e0;font-size:26px}.dashboard-stat2 .progress-info .progress{margin:0;height:4px;display:block}.dashboard-stat2 .progress-info .status{margin-top:5px;font-size:11px;color:#AAB5BC;font-weight:600;text-transform:uppercase}.dashboard-stat2 .progress-info .status .status-title{float:left;display:inline-block}.dashboard-stat2 .progress-info .status .status-number{float:right;display:inline-block}.text-stat h3{margin-top:5px;margin-bottom:0;font-size:18px}.text-stat span{font-size:13px!important}@media (max-width:767px){.text-stat{margin-top:20px}}.social-icons{padding:0;margin:0}.social-icons:after,.social-icons:before{content:" ";display:table}.social-icons li{float:left;display:inline;list-style:none;margin-right:5px;margin-bottom:5px;text-indent:-9999px}.social-icons li>a{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;width:28px;height:28px;display:block;background-position:0 0;background-repeat:no-repeat;transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out}.social-icons li:hover>a{background-position:0 -38px}.social-icons li .amazon{background:url(../../assets/images/social/amazon.png) no-repeat}.social-icons li .behance{background:url(../../assets/images/social/behance.png) no-repeat}.social-icons li .blogger{background:url(../../assets/images/social/blogger.png) no-repeat}.social-icons li .deviantart{background:url(../../assets/images/social/deviantart.png) no-repeat}.social-icons li .dribbble{background:url(../../assets/images/social/dribbble.png) no-repeat}.social-icons li .dropbox{background:url(../../assets/images/social/dropbox.png) no-repeat}.social-icons li .evernote{background:url(../../assets/images/social/evernote.png) no-repeat}.social-icons li .facebook{background:url(../../assets/images/social/facebook.png) no-repeat}.social-icons li .forrst{background:url(../../assets/images/social/forrst.png) no-repeat}.social-icons li .github{background:url(../../assets/images/social/github.png) no-repeat}.social-icons li .googleplus{background:url(../../assets/images/social/googleplus.png) no-repeat}.social-icons li .jolicloud{background:url(../../assets/images/social/jolicloud.png) no-repeat}.social-icons li .last-fm{background:url(../../assets/images/social/last-fm.png) no-repeat}.social-icons li .linkedin{background:url(../../assets/images/social/linkedin.png) no-repeat}.social-icons li .picasa{background:url(../../assets/images/social/picasa.png) no-repeat}.social-icons li .pintrest{background:url(../../assets/images/social/pintrest.png) no-repeat}.social-icons li .rss{background:url(../../assets/images/social/rss.png) no-repeat}.social-icons li .skype{background:url(../../assets/images/social/skype.png) no-repeat}.social-icons li .spotify{background:url(../../assets/images/social/spotify.png) no-repeat}.social-icons li .stumbleupon{background:url(../../assets/images/social/stumbleupon.png) no-repeat}.social-icons li .tumblr{background:url(../../assets/images/social/tumblr.png) no-repeat}.social-icons li .twitter{background:url(../../assets/images/social/twitter.png) no-repeat}.social-icons li .vimeo{background:url(../../assets/images/social/vimeo.png) no-repeat}.social-icons li .wordpress{background:url(../../assets/images/social/wordpress.png) no-repeat}.social-icons li .xing{background:url(../../assets/images/social/xing.png) no-repeat}.social-icons li .yahoo{background:url(../../assets/images/social/yahoo.png) no-repeat}.social-icons li .youtube{background:url(../../assets/images/social/youtube.png) no-repeat}.social-icons li .vk{background:url(../../assets/images/social/vk.png) no-repeat}.social-icons li .instagram{background:url(../../assets/images/social/instagram.png) no-repeat}.social-icons li .reddit{background:url(../../assets/images/social/reddit.png) no-repeat}.social-icons li .aboutme{background:url(../../assets/images/social/aboutme.png) no-repeat}.social-icons li .flickr{background:url(../../assets/images/social/flickr.png) no-repeat}.social-icons li .foursquare{background:url(../../assets/images/social/foursquare.png) no-repeat}.social-icons li .gravatar{background:url(../../assets/images/social/gravatar.png) no-repeat}.social-icons li .klout{background:url(../../assets/images/social/klout.png) no-repeat}.social-icons li .myspace{background:url(../../assets/images/social/myspace.png) no-repeat}.social-icons li .quora{background:url(../../assets/images/social/quora.png) no-repeat}.social-icons.social-icons-color>li>a{opacity:.7;background-position:0 -38px!important}.social-icons.social-icons-color>li>a:hover{opacity:1}.social-icons.social-icons-circle>li>a{border-radius:25px!important}.social-icon{display:inline-block!important;width:28px;height:28px;background-position:0 0;background-repeat:no-repeat;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out}.social-icon.social-icon-circle{border-radius:25px!important}.social-icon.amazon{background:url(../../assets/images/social/amazon.png) no-repeat}.social-icon.behance{background:url(../../assets/images/social/behance.png) no-repeat}.social-icon.blogger{background:url(../../assets/images/social/blogger.png) no-repeat}.social-icon.deviantart{background:url(../../assets/images/social/deviantart.png) no-repeat}.social-icon.dribbble{background:url(../../assets/images/social/dribbble.png) no-repeat}.social-icon.dropbox{background:url(../../assets/images/social/dropbox.png) no-repeat}.social-icon.evernote{background:url(../../assets/images/social/evernote.png) no-repeat}.social-icon.facebook{background:url(../../assets/images/social/facebook.png) no-repeat}.social-icon.forrst{background:url(../../assets/images/social/forrst.png) no-repeat}.social-icon.github{background:url(../../assets/images/social/github.png) no-repeat}.social-icon.googleplus{background:url(../../assets/images/social/googleplus.png) no-repeat}.social-icon.jolicloud{background:url(../../assets/images/social/jolicloud.png) no-repeat}.social-icon.last-fm{background:url(../../assets/images/social/last-fm.png) no-repeat}.social-icon.linkedin{background:url(../../assets/images/social/linkedin.png) no-repeat}.social-icon.picasa{background:url(../../assets/images/social/picasa.png) no-repeat}.social-icon.pintrest{background:url(../../assets/images/social/pintrest.png) no-repeat}.social-icon.rss{background:url(../../assets/images/social/rss.png) no-repeat}.social-icon.skype{background:url(../../assets/images/social/skype.png) no-repeat}.social-icon.spotify{background:url(../../assets/images/social/spotify.png) no-repeat}.social-icon.stumbleupon{background:url(../../assets/images/social/stumbleupon.png) no-repeat}.social-icon.tumblr{background:url(../../assets/images/social/tumblr.png) no-repeat}.social-icon.twitter{background:url(../../assets/images/social/twitter.png) no-repeat}.social-icon.vimeo{background:url(../../assets/images/social/vimeo.png) no-repeat}.social-icon.wordpress{background:url(../../assets/images/social/wordpress.png) no-repeat}.social-icon.xing{background:url(../../assets/images/social/xing.png) no-repeat}.social-icon.yahoo{background:url(../../assets/images/social/yahoo.png) no-repeat}.social-icon.youtube{background:url(../../assets/images/social/youtube.png) no-repeat}.social-icon.vk{background:url(../../assets/images/social/vk.png) no-repeat}.social-icon.instagram{background:url(../../assets/images/social/instagram.png) no-repeat}.social-icon.reddit{background:url(../../assets/images/social/reddit.png) no-repeat}.social-icon.aboutme{background:url(../../assets/images/social/aboutme.png) no-repeat}.social-icon.flickr{background:url(../../assets/images/social/flickr.png) no-repeat}.social-icon.foursquare{background:url(../../assets/images/social/foursquare.png) no-repeat}.social-icon.gravatar{background:url(../../assets/images/social/gravatar.png) no-repeat}.social-icon.klout{background:url(../../assets/images/social/klout.png) no-repeat}.social-icon.myspace{background:url(../../assets/images/social/myspace.png) no-repeat}.social-icon.quora{background:url(../../assets/images/social/quora.png) no-repeat}.social-icon:hover{background-position:0 -38px}.social-icon-color{opacity:.7;background-position:0 -38px!important}.social-icon-color:hover{opacity:1}.table.table-bordered thead>tr>th{border-bottom:0}.table tr.heading>th{background-color:#eee!important}.table td .img-responsive{width:100%}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background:#a6c8e6;color:#132339}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background:#92bce0}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background:#dff0d8;color:#3c763d}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background:#d9edf7;color:#31708f}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background:#fcf8e3;color:#8a6d3b}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background:#f2dede;color:#a94442}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background:#ebcccc}.table-scrollable{width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #ddd;margin:10px 0!important}.table-scrollable.table-scrollable-borderless,.table-scrollable>.table-bordered{border:0}.table-scrollable>.table{width:100%!important;margin:0!important;background-color:#fff}.table-scrollable>.table-bordered>tbody>tr>td:first-child,.table-scrollable>.table-bordered>tbody>tr>th:first-child,.table-scrollable>.table-bordered>tfoot>tr>td:first-child,.table-scrollable>.table-bordered>tfoot>tr>th:first-child,.table-scrollable>.table-bordered>thead>tr>td:first-child,.table-scrollable>.table-bordered>thead>tr>th:first-child{border-left:0}.table-scrollable>.table-bordered>tbody>tr>td:last-child,.table-scrollable>.table-bordered>tbody>tr>th:last-child,.table-scrollable>.table-bordered>tfoot>tr>td:last-child,.table-scrollable>.table-bordered>tfoot>tr>th:last-child,.table-scrollable>.table-bordered>thead>tr>td:last-child,.table-scrollable>.table-bordered>thead>tr>th:last-child{border-right:0}.table-scrollable>.table-bordered>tbody>tr:last-child>td,.table-scrollable>.table-bordered>tbody>tr:last-child>th,.table-scrollable>.table-bordered>tfoot>tr:last-child>td,.table-scrollable>.table-bordered>tfoot>tr:last-child>th,.table-scrollable>.table-bordered>thead>tr:last-child>td,.table-scrollable>.table-bordered>thead>tr:last-child>th{border-bottom:0}.flip-scroll table{width:100%}@media only screen and (max-width:768px){.flip-scroll .flip-content:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.flip-scroll * html .flip-content{zoom:1}.flip-scroll td,.flip-scroll th{margin:0;vertical-align:top}.flip-scroll th{border:0!important;border-bottom:1px solid #ddd!important;border-right:1px solid #ddd!important;font-size:13px!important;padding:5px;width:auto!important;display:block;text-align:right}.flip-scroll table{border-collapse:collapse;border-spacing:0;display:block;position:relative;width:100%}.flip-scroll thead{display:block;float:left}.flip-scroll tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap}.flip-scroll thead tr{display:block}.flip-scroll tbody tr{display:inline-block;vertical-align:top;margin-left:-5px}.flip-scroll td{display:block;min-height:1.25em;text-align:left;border-top:0!important;border-left:0!important;border-right:0!important;border-bottom:0}.flip-scroll th{border-left:0}.flip-scroll tbody tr{border-left:1px solid #ddd}.flip-scroll td:last-child,.flip-scroll th:last-child{border-bottom:1px solid #ddd}}.centered-td,.page-404,.tiles .tile .tile-body>i{text-align:center}.table-toolbar{margin-bottom:15px}.table-toolbar:after,.table-toolbar:before{content:" ";display:table}.table.table-full-width{width:100%!important}.table .btn{margin-top:0;margin-left:0;margin-right:5px}.table thead tr th{font-size:14px;font-weight:600}.table-advance{margin-bottom:10px!important}.table-advance thead{color:#999}.table-advance thead tr th{background-color:#DDD;font-size:14px;font-weight:400;color:#666}.table-advance div.danger,.table-advance div.important,.table-advance div.info,.table-advance div.success,.table-advance div.warning{position:absolute;margin-top:-5px;float:left;width:2px;height:30px;margin-right:20px!important}.table-advance tr td{border-left-width:0}.table-advance tr td:first-child{border-left-width:1px!important}.table-advance tr td.highlight:first-child a{margin-left:15px}.table-advance td.highlight div.primary{border-left:2px solid #428bca}.table-advance td.highlight div.success{border-left:2px solid #45B6AF}.table-advance td.highlight div.info{border-left:2px solid #89C4F4}.table-advance td.highlight div.warning{border-left:2px solid #dfba49}.table-advance td.highlight div.danger{border-left:2px solid #F3565D}@media (max-width:767px){.table-advance tr>td.highlight:first-child a{margin-left:8px}}.table.table-light{border:0!important}.table.table-light>thead>tr:hover>th{background:0 0}.table.table-light>thead>tr.uppercase{text-transform:uppercase}.table.table-light>thead>tr>th{font-weight:600;font-size:13px;color:#a7b3b9;font-family:"Open Sans",sans-serif;border:0;border-bottom:1px solid #F2F5F8}.table.table-light>tbody>tr:last-child>td{border:0}.table.table-light>tbody>tr>td{border:0;border-bottom:1px solid #F2F5F8;color:#9ca8b0;vertical-align:middle}.table.table-light>tbody>tr>td.fit{width:1px;padding-right:3px}.table.table-light>tbody>tr>td .user-pic{display:inline-block;vertical-align:middle;height:30px;-webkit-border-radius:100%;-moz-border-radius:100%;-ms-border-radius:100%;-o-border-radius:100%;border-radius:100%}.table.table-light.table-hover>tbody>tr:hover>td,.table.table-light.table-hover>tbody>tr:hover>th,.table.table-light.table-hover>tbody>tr>td:hover,.table.table-light.table-hover>tbody>tr>th:hover{background:#f9fafb}.nav-pills,.nav-tabs{margin-bottom:10px}.nav-pills>li>a,.nav-tabs>li>a{font-size:14px}.nav-pills>li>a>.badge,.nav-tabs>li>a>.badge{margin-top:-3px}.nav-pills>li .dropdown-menu:after,.nav-pills>li .dropdown-menu:before,.nav-tabs>li .dropdown-menu:after,.nav-tabs>li .dropdown-menu:before{display:none}.nav-pills.nav-pills-sm>li>a,.nav-pills.nav-tabs-sm>li>a,.nav-tabs.nav-pills-sm>li>a,.nav-tabs.nav-tabs-sm>li>a{font-size:13px}.nav-pills .dropdown.open>.dropdown-toggle,.nav-tabs .dropdown.open>.dropdown-toggle{background:#eee;color:#0d638f;border-color:transparent}.tabs-left.nav-tabs,.tabs-right.nav-tabs{border-bottom:0}.tabs-left.nav-tabs>li,.tabs-right.nav-tabs>li{float:none}.tabs-left.nav-tabs>li>a,.tabs-right.nav-tabs>li>a{margin-right:0;margin-bottom:3px}.tabs-left.nav-tabs{border-right:1px solid #ddd}.tabs-left.nav-tabs>li>a{display:block;margin-right:-1px}.tabs-left.nav-tabs>li>a:focus,.tabs-left.nav-tabs>li>a:hover{border-radius:4px 0 0 4px;border-color:#eee #ddd #eee #eee}.tabs-left.nav-tabs>li.active>a,.tabs-left.nav-tabs>li.active>a:hover>li.active>a:focus{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;-ms-border-radius:4px 0 0 4px;-o-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;border-color:#ddd transparent #ddd #ddd}.tabs-right.nav-tabs{border-left:1px solid #ddd}.tabs-right.nav-tabs>li>a{display:block;margin-left:-1px}.tabbable:after,.tabbable:before,.tiles:after,.tiles:before{display:table;content:" "}.tabs-right.nav-tabs>li>a:focus,.tabs-right.nav-tabs>li>a:hover{border-radius:0 4px 4px 0;border-color:#eee #eee #eee #ddd}.tabs-right.nav-tabs>li.active>a,.tabs-right.nav-tabs>li.active>a:hover>li.active>a:focus{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;border-color:#ddd #ddd #ddd transparent}.tabs-below>.nav-pills,.tabs-below>.nav-tabs{border-bottom:0;margin-bottom:0;margin-top:10px}.tabs-below>.nav-tabs{border-top:1px solid #ddd;margin-bottom:0;margin-top:10px}.tabs-below>.nav-tabs>li>a{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a:focus,.tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>li>a .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.tabs-below>.nav-tabs .active a,.tabs-below>.nav-tabs .active a:hover .active a:focus{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;border-color:transparent #ddd #ddd}.tabbable-custom{margin-bottom:15px;padding:0;overflow:hidden}.tabbable-custom>.nav-tabs{border:none;margin:0}.tabbable-custom>.nav-tabs>li.active>a,.tabbable-custom>.nav-tabs>li>a{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0}.tabbable-custom>.nav-tabs>li{margin-right:2px;border-top:2px solid transparent}.tabbable-custom>.nav-tabs>li>a{margin-right:0;border-radius:0}.tabbable-custom>.nav-tabs>li>a:hover{background:0 0;border-color:transparent}.tabbable-custom>.nav-tabs>li.active{border-top:3px solid #F3565D;margin-top:0;position:relative}.tabbable-custom>.nav-tabs>li.active>a{border-top:none;font-weight:400;border-radius:0}.tabbable-custom>.nav-tabs>li.active>a:hover{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;border-top:none;background:#fff;border-color:#d4d4d4 #d4d4d4 transparent}.tabbable-custom>.tab-content{background-color:#fff;border:1px solid #ddd;padding:10px;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabbable-custom.nav-justified>.tab-content{margin-top:-1px}.tabbable-custom.boxless>.tab-content{padding:15px 0;border-left:none;border-right:none;border-bottom:none}.tabbable-custom.tabs-below.nav-justified .tab-content{margin-top:0;margin-bottom:-2px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.tabbable-custom.tabbable-full-width>.nav-tabs>li>a{color:#424242;font-size:15px;padding:9px 15px}.tabbable-custom.tabbable-full-width>.tab-content{padding:15px 0;border-left:none;border-right:none;border-bottom:none}.tabbable-custom.tabs-below .nav-tabs>li>a{border-top:none;border-bottom:2px solid transparent;margin-top:-1px}.tabbable-custom.tabs-below .nav-tabs>li.active{border-top:none;border-bottom:3px solid #d12610;margin-bottom:0;position:relative}.tabbable-custom.tabs-below .nav-tabs>li.active>a{border-bottom:none}.tabbable-custom.tabs-below .nav-tabs>li.active>a:hover{background:#fff;border-color:#d4d4d4 #d4d4d4 transparent}.tabbable-custom.tabbable-noborder .tab-content,.tabbable-custom.tabbable-noborder>.nav-tabs>li>a{border:0}.tabbable-line>.nav-tabs{border:none;margin:0}.tabbable-line>.nav-tabs>li{margin-right:2px}.tabbable-line>.nav-tabs>li>a{border:0;margin-right:0;color:#737373}.tabbable-line>.nav-tabs>li>a>i{color:#a6a6a6}.tabbable-line>.nav-tabs>li.open,.tabbable-line>.nav-tabs>li:hover{border-bottom:4px solid #fbcdcf}.tabbable-line>.nav-tabs>li.open>a,.tabbable-line>.nav-tabs>li:hover>a{border:0;background:0 0!important;color:#333}.tabbable-line>.nav-tabs>li.open>a>i,.tabbable-line>.nav-tabs>li:hover>a>i{color:#a6a6a6}.tabbable-line>.nav-tabs>li.open .dropdown-menu,.tabbable-line>.nav-tabs>li:hover .dropdown-menu{margin-top:0}.tabbable-line>.nav-tabs>li.active{border-bottom:4px solid #F3565D;position:relative}.tabbable-line>.nav-tabs>li.active>a{border:0;color:#333}.tabbable-line>.nav-tabs>li.active>a>i{color:#404040}.tabbable-line>.tab-content{margin-top:-3px;background-color:#fff;border:0;border-top:1px solid #eee;padding:15px 0}.portlet .tabbable-line>.tab-content{padding-bottom:0}.tabbable-line.tabs-below>.nav-tabs>li{border-top:4px solid transparent}.tabbable-line.tabs-below>.nav-tabs>li>a{margin-top:0}.tabbable-line.tabs-below>.nav-tabs>li:hover{border-bottom:0;border-top:4px solid #fbcdcf}.tabbable-line.tabs-below>.nav-tabs>li.active{margin-bottom:-2px;border-bottom:0;border-top:4px solid #F3565D}.tabbable-line.tabs-below>.tab-content{margin-top:-10px;border-top:0;border-bottom:1px solid #eee;padding-bottom:15px}.tiles{margin-right:-10px}.tiles .tile{display:block;float:left;height:135px;width:135px!important;cursor:pointer;text-decoration:none;color:#fff;position:relative;font-weight:300;font-size:12px;letter-spacing:.02em;line-height:20px;overflow:hidden;border:4px solid transparent;margin:0 10px 10px 0}.tiles .tile .tile-body>.content,.tiles .tile.image .tile-body h3,.tiles .tile.selected .check:after{display:inline-block}.tiles .tile:after,.tiles .tile:before{content:"";float:left}.tiles .tile.double{width:280px!important}.tiles .tile.double-down{height:280px!important}.tiles .tile.double-down i{margin-top:95px}.tiles .tile:hover{border-color:#aaa!important}.tiles .tile.selected,.tiles .tile:active{border-color:#ccc!important}.tiles .tile.selected .corner:after{content:"";display:inline-block;border-left:40px solid transparent;border-bottom:40px solid transparent;border-right:40px solid #ccc;position:absolute;top:-3px;right:-3px}.tiles .tile.selected .check:after{font-family:FontAwesome;font-size:13px;content:"\f00c";position:absolute;top:2px;right:2px}.tiles .tile.icon{padding:0}.tiles .tile.image .tile-body{padding:0!important}.tiles .tile.image .tile-body>img{width:100%;height:auto;min-height:100%;max-width:100%}.tiles .tile .tile-body{height:100%;vertical-align:top;padding:10px;overflow:hidden;position:relative;font-weight:400;font-size:12px;color:#fff;margin-bottom:10px}.tiles .tile .tile-body p{font-weight:400;font-size:13px;color:#fff;overflow:hidden}.tiles .tile .tile-body p:active{color:rgba(0,0,0,.4)}.tiles .tile .tile-body p:hover{color:#fff}.tiles .tile .tile-body img{float:left;margin-right:10px}.tiles .tile .tile-body img.pull-right{float:right!important;margin-left:10px;margin-right:0}.tiles .tile .tile-body>i{margin-top:17px;display:block;font-size:56px;line-height:56px}.tiles .tile .tile-body h1,.tiles .tile .tile-body h2,.tiles .tile .tile-body h3,.tiles .tile .tile-body h4,.tiles .tile .tile-body h5,.tiles .tile .tile-body h6,.tiles .tile .tile-body p{padding:0;margin:0;line-height:14px}.tiles .tile .tile-body h1:hover,.tiles .tile .tile-body h2:hover,.tiles .tile .tile-body h3:hover,.tiles .tile .tile-body h4:hover,.tiles .tile .tile-body h5:hover,.tiles .tile .tile-body h6:hover,.tiles .tile .tile-body p:hover{color:#fff}.tiles .tile .tile-body h3,.tiles .tile .tile-body h4{margin-bottom:5px}.tiles .tile .tile-object{position:absolute;bottom:0;left:0;right:0;min-height:30px;background-color:transparent}.tiles .tile .tile-object:after,.tiles .tile .tile-object:before{display:table;content:""}.tiles .tile .tile-object>.name{position:absolute;bottom:0;left:0;margin-bottom:5px;margin-left:10px;margin-right:15px;font-weight:400;font-size:13px;color:#fff}.tiles .tile .tile-object>.name>i{vertical-align:middle;display:block;font-size:24px;height:18px;width:24px}.tiles .tile .tile-object>.number{position:absolute;bottom:0;right:0;color:#fff;text-align:center;font-weight:600;font-size:14px;letter-spacing:.01em;line-height:14px;margin-bottom:8px;margin-right:10px}.well{background-color:#eee;border:0;-moz-box-shadow:none!important;box-shadow:none!important}.blue.btn,.btn.default{border-color:""}@-webkit-keyframes fadeInUpm{0%{opacity:0;-webkit-transform:translateY(15px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes fadeInUpm{0%{opacity:0;-moz-transform:translateY(15px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes fadeInUpm{0%{opacity:0;-o-transform:translateY(15px)}100%{opacity:1;-o-transform:translateY(0)}}@keyframes fadeInUpm{0%{opacity:0;transform:translateY(15px)}100%{opacity:1;transform:translateY(0)}}.fade-in-up{-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s}@-webkit-keyframes bounceDelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes bounceDelay{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.btn.default{color:#333;background-color:#E5E5E5}.btn.default.active,.btn.default:active,.btn.default:focus,.btn.default:hover,.open .btn.default.dropdown-toggle{color:#333;background-color:#d3d3d3}.btn.default.active,.btn.default:active{background-color:#c6c6c6}.btn.default.active:hover,.btn.default:active:hover{background-color:#ccc}.btn.default.disabled,.btn.default.disabled.active,.btn.default.disabled:active,.btn.default.disabled:focus,.btn.default.disabled:hover,.btn.default[disabled],.btn.default[disabled].active,.btn.default[disabled]:active,.btn.default[disabled]:focus,.btn.default[disabled]:hover,fieldset[disabled] .btn.default,fieldset[disabled] .btn.default.active,fieldset[disabled] .btn.default:active,fieldset[disabled] .btn.default:focus,fieldset[disabled] .btn.default:hover{background-color:#E5E5E5}.btn.default .badge{color:#E5E5E5;background-color:#333}.blue.btn{color:#FFF;background-color:#4B8DF8}.blue.btn.active,.blue.btn:active,.blue.btn:focus,.blue.btn:hover,.open .blue.btn.dropdown-toggle{color:#FFF;background-color:#2977f7}.blue.btn.active,.blue.btn:active{background-color:#1068f6}.blue.btn.active:hover,.blue.btn:active:hover{background-color:#1a6ef6}.blue.btn.disabled,.blue.btn.disabled.active,.blue.btn.disabled:active,.blue.btn.disabled:focus,.blue.btn.disabled:hover,.blue.btn[disabled],.blue.btn[disabled].active,.blue.btn[disabled]:active,.blue.btn[disabled]:focus,.blue.btn[disabled]:hover,fieldset[disabled] .blue.btn,fieldset[disabled] .blue.btn.active,fieldset[disabled] .blue.btn:active,fieldset[disabled] .blue.btn:focus,fieldset[disabled] .blue.btn:hover{background-color:#4B8DF8}.blue.btn .badge{color:#4B8DF8;background-color:#FFF}.portlet.blue,.portlet.box.blue>.portlet-title,.portlet>.portlet-body.blue{background-color:#4B8DF8}.btn.blue-stripe{border-left:3px solid #4B8DF8}.portlet.solid.blue>.portlet-body,.portlet.solid.blue>.portlet-title{border:0;color:#FFF}.portlet.solid.blue>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue{border:1px solid #7cacfa;border-top:0}.portlet.box.blue>.portlet-title>.caption,.portlet.box.blue>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b7d1fc;color:#d0e1fd}.portlet.box.blue>.portlet-title>.actions .btn-default>i{color:#deeafe}.portlet.box.blue>.portlet-title>.actions .btn-default.active,.portlet.box.blue>.portlet-title>.actions .btn-default:active,.portlet.box.blue>.portlet-title>.actions .btn-default:focus,.portlet.box.blue>.portlet-title>.actions .btn-default:hover{border:1px solid #e8f0fe;color:#fff}.dashboard-stat.blue{background-color:#4B8DF8}.dashboard-stat.blue.dashboard-stat-light:hover{background-color:#3781f7}.dashboard-stat.blue .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue .details .number{color:#FFF}.dashboard-stat.blue .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue .more{color:#FFF;background-color:#3781f7}.bg-blue{border-color:#4B8DF8!important;background-image:none!important;background-color:#4B8DF8!important;color:#FFF!important}.font-blue{color:#4B8DF8!important}.progress-bar.blue{background:#4B8DF8!important;color:#FFF!important}.blue-madison.btn{color:#FFF;background-color:#578ebe;border-color:""}.blue-madison.btn.active,.blue-madison.btn:active,.blue-madison.btn:focus,.blue-madison.btn:hover,.open .blue-madison.btn.dropdown-toggle{color:#FFF;background-color:#437cae}.blue-madison.btn.active,.blue-madison.btn:active{background-image:none;background-color:#3c6f9c}.blue-madison.btn.active:hover,.blue-madison.btn:active:hover{background-color:#3f74a3}.open .blue-madison.btn.dropdown-toggle{background-image:none}.blue-madison.btn.disabled,.blue-madison.btn.disabled.active,.blue-madison.btn.disabled:active,.blue-madison.btn.disabled:focus,.blue-madison.btn.disabled:hover,.blue-madison.btn[disabled],.blue-madison.btn[disabled].active,.blue-madison.btn[disabled]:active,.blue-madison.btn[disabled]:focus,.blue-madison.btn[disabled]:hover,fieldset[disabled] .blue-madison.btn,fieldset[disabled] .blue-madison.btn.active,fieldset[disabled] .blue-madison.btn:active,fieldset[disabled] .blue-madison.btn:focus,fieldset[disabled] .blue-madison.btn:hover{background-color:#578ebe}.blue-madison.btn .badge{color:#578ebe;background-color:#FFF}.portlet.blue-madison,.portlet.box.blue-madison>.portlet-title,.portlet>.portlet-body.blue-madison{background-color:#578ebe}.btn.blue-madison-stripe{border-left:3px solid #578ebe}.portlet.solid.blue-madison>.portlet-body,.portlet.solid.blue-madison>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-madison>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-madison>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-madison{border:1px solid #7ca7cc;border-top:0}.portlet.box.blue-madison>.portlet-title>.caption,.portlet.box.blue-madison>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-madison>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #a8c4dd;color:#bad1e4}.portlet.box.blue-madison>.portlet-title>.actions .btn-default>i{color:#c5d8e9}.portlet.box.blue-madison>.portlet-title>.actions .btn-default.active,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:active,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:hover{border:1px solid #cdddec;color:#dfeaf3}.dashboard-stat.blue-madison{background-color:#578ebe}.dashboard-stat.blue-madison.dashboard-stat-light:hover{background-color:#4884b8}.dashboard-stat.blue-madison .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-madison .details .number{color:#FFF}.dashboard-stat.blue-madison .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-madison .more{color:#FFF;background-color:#4884b8}.bg-blue-madison{border-color:#578ebe!important;background-image:none!important;background-color:#578ebe!important;color:#FFF!important}.font-blue-madison{color:#578ebe!important}.progress-bar.blue-madison{background:#578ebe!important;color:#FFF!important}.blue-chambray.btn{color:#FFF;background-color:#2C3E50;border-color:""}.blue-chambray.btn.active,.blue-chambray.btn:active,.blue-chambray.btn:focus,.blue-chambray.btn:hover,.open .blue-chambray.btn.dropdown-toggle{color:#FFF;background-color:#1f2c39}.blue-chambray.btn.active,.blue-chambray.btn:active{background-image:none;background-color:#161f29}.blue-chambray.btn.active:hover,.blue-chambray.btn:active:hover{background-color:#1a242f}.open .blue-chambray.btn.dropdown-toggle{background-image:none}.blue-chambray.btn.disabled,.blue-chambray.btn.disabled.active,.blue-chambray.btn.disabled:active,.blue-chambray.btn.disabled:focus,.blue-chambray.btn.disabled:hover,.blue-chambray.btn[disabled],.blue-chambray.btn[disabled].active,.blue-chambray.btn[disabled]:active,.blue-chambray.btn[disabled]:focus,.blue-chambray.btn[disabled]:hover,fieldset[disabled] .blue-chambray.btn,fieldset[disabled] .blue-chambray.btn.active,fieldset[disabled] .blue-chambray.btn:active,fieldset[disabled] .blue-chambray.btn:focus,fieldset[disabled] .blue-chambray.btn:hover{background-color:#2C3E50}.blue-chambray.btn .badge{color:#2C3E50;background-color:#FFF}.portlet.blue-chambray,.portlet.box.blue-chambray>.portlet-title,.portlet>.portlet-body.blue-chambray{background-color:#2C3E50}.btn.blue-chambray-stripe{border-left:3px solid #2C3E50}.portlet.solid.blue-chambray>.portlet-body,.portlet.solid.blue-chambray>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-chambray>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-chambray>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-chambray{border:1px solid #3e5771;border-top:0}.portlet.box.blue-chambray>.portlet-title>.caption,.portlet.box.blue-chambray>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #547698;color:#5f83a7}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default>i{color:#698aac}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default.active,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:active,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:hover{border:1px solid #6f90b0;color:#809cb9}.dashboard-stat.blue-chambray{background-color:#2C3E50}.dashboard-stat.blue-chambray.dashboard-stat-light:hover{background-color:#253443}.dashboard-stat.blue-chambray .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-chambray .details .number{color:#FFF}.dashboard-stat.blue-chambray .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-chambray .more{color:#FFF;background-color:#253443}.bg-blue-chambray{border-color:#2C3E50!important;background-image:none!important;background-color:#2C3E50!important;color:#FFF!important}.font-blue-chambray{color:#2C3E50!important}.progress-bar.blue-chambray{background:#2C3E50!important;color:#FFF!important}.blue-ebonyclay.btn{color:#FFF;background-color:#22313F;border-color:""}.blue-ebonyclay.btn.active,.blue-ebonyclay.btn:active,.blue-ebonyclay.btn:focus,.blue-ebonyclay.btn:hover,.open .blue-ebonyclay.btn.dropdown-toggle{color:#FFF;background-color:#151f28}.blue-ebonyclay.btn.active,.blue-ebonyclay.btn:active{background-image:none;background-color:#0d1217}.blue-ebonyclay.btn.active:hover,.blue-ebonyclay.btn:active:hover{background-color:#10171e}.open .blue-ebonyclay.btn.dropdown-toggle{background-image:none}.blue-ebonyclay.btn.disabled,.blue-ebonyclay.btn.disabled.active,.blue-ebonyclay.btn.disabled:active,.blue-ebonyclay.btn.disabled:focus,.blue-ebonyclay.btn.disabled:hover,.blue-ebonyclay.btn[disabled],.blue-ebonyclay.btn[disabled].active,.blue-ebonyclay.btn[disabled]:active,.blue-ebonyclay.btn[disabled]:focus,.blue-ebonyclay.btn[disabled]:hover,fieldset[disabled] .blue-ebonyclay.btn,fieldset[disabled] .blue-ebonyclay.btn.active,fieldset[disabled] .blue-ebonyclay.btn:active,fieldset[disabled] .blue-ebonyclay.btn:focus,fieldset[disabled] .blue-ebonyclay.btn:hover{background-color:#22313F}.blue-ebonyclay.btn .badge{color:#22313F;background-color:#FFF}.portlet.blue-ebonyclay,.portlet.box.blue-ebonyclay>.portlet-title,.portlet>.portlet-body.blue-ebonyclay{background-color:#22313F}.btn.blue-ebonyclay-stripe{border-left:3px solid #22313F}.portlet.solid.blue-ebonyclay>.portlet-body,.portlet.solid.blue-ebonyclay>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-ebonyclay>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-ebonyclay{border:1px solid #344b60;border-top:0}.portlet.box.blue-ebonyclay>.portlet-title>.caption,.portlet.box.blue-ebonyclay>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #496a88;color:#527798}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default>i{color:#587ea2}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default.active,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:active,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:hover{border:1px solid #5d83a7;color:#6d90b0}.dashboard-stat.blue-ebonyclay{background-color:#22313F}.dashboard-stat.blue-ebonyclay.dashboard-stat-light:hover{background-color:#1b2732}.dashboard-stat.blue-ebonyclay .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-ebonyclay .details .number{color:#FFF}.dashboard-stat.blue-ebonyclay .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-ebonyclay .more{color:#FFF;background-color:#1b2732}.bg-blue-ebonyclay{border-color:#22313F!important;background-image:none!important;background-color:#22313F!important;color:#FFF!important}.font-blue-ebonyclay{color:#22313F!important}.progress-bar.blue-ebonyclay{background:#22313F!important;color:#FFF!important}.blue-hoki.btn{color:#FFF;background-color:#67809F;border-color:""}.blue-hoki.btn.active,.blue-hoki.btn:active,.blue-hoki.btn:focus,.blue-hoki.btn:hover,.open .blue-hoki.btn.dropdown-toggle{color:#FFF;background-color:#586e8b}.blue-hoki.btn.active,.blue-hoki.btn:active{background-image:none;background-color:#4e627b}.blue-hoki.btn.active:hover,.blue-hoki.btn:active:hover{background-color:#526781}.open .blue-hoki.btn.dropdown-toggle{background-image:none}.blue-hoki.btn.disabled,.blue-hoki.btn.disabled.active,.blue-hoki.btn.disabled:active,.blue-hoki.btn.disabled:focus,.blue-hoki.btn.disabled:hover,.blue-hoki.btn[disabled],.blue-hoki.btn[disabled].active,.blue-hoki.btn[disabled]:active,.blue-hoki.btn[disabled]:focus,.blue-hoki.btn[disabled]:hover,fieldset[disabled] .blue-hoki.btn,fieldset[disabled] .blue-hoki.btn.active,fieldset[disabled] .blue-hoki.btn:active,fieldset[disabled] .blue-hoki.btn:focus,fieldset[disabled] .blue-hoki.btn:hover{background-color:#67809F}.blue-hoki.btn .badge{color:#67809F;background-color:#FFF}.portlet.blue-hoki,.portlet.box.blue-hoki>.portlet-title,.portlet>.portlet-body.blue-hoki{background-color:#67809F}.btn.blue-hoki-stripe{border-left:3px solid #67809F}.portlet.solid.blue-hoki>.portlet-body,.portlet.solid.blue-hoki>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-hoki>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-hoki>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-hoki{border:1px solid #869ab3;border-top:0}.portlet.box.blue-hoki>.portlet-title>.caption,.portlet.box.blue-hoki>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #acb9ca;color:#bbc7d4}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default>i{color:#c5ceda}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default.active,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:active,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:hover{border:1px solid #cbd4de;color:#dbe1e8}.dashboard-stat.blue-hoki{background-color:#67809F}.dashboard-stat.blue-hoki.dashboard-stat-light:hover{background-color:#5e7694}.dashboard-stat.blue-hoki .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-hoki .details .number{color:#FFF}.dashboard-stat.blue-hoki .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-hoki .more{color:#FFF;background-color:#5e7694}.bg-blue-hoki{border-color:#67809F!important;background-image:none!important;background-color:#67809F!important;color:#FFF!important}.font-blue-hoki{color:#67809F!important}.progress-bar.blue-hoki{background:#67809F!important;color:#FFF!important}.blue-steel.btn{color:#FFF;background-color:#4B77BE;border-color:""}.blue-steel.btn.active,.blue-steel.btn:active,.blue-steel.btn:focus,.blue-steel.btn:hover,.open .blue-steel.btn.dropdown-toggle{color:#FFF;background-color:#3d66a8}.blue-steel.btn.active,.blue-steel.btn:active{background-image:none;background-color:#365b96}.blue-steel.btn.active:hover,.blue-steel.btn:active:hover{background-color:#395f9d}.open .blue-steel.btn.dropdown-toggle{background-image:none}.blue-steel.btn.disabled,.blue-steel.btn.disabled.active,.blue-steel.btn.disabled:active,.blue-steel.btn.disabled:focus,.blue-steel.btn.disabled:hover,.blue-steel.btn[disabled],.blue-steel.btn[disabled].active,.blue-steel.btn[disabled]:active,.blue-steel.btn[disabled]:focus,.blue-steel.btn[disabled]:hover,fieldset[disabled] .blue-steel.btn,fieldset[disabled] .blue-steel.btn.active,fieldset[disabled] .blue-steel.btn:active,fieldset[disabled] .blue-steel.btn:focus,fieldset[disabled] .blue-steel.btn:hover{background-color:#4B77BE}.blue-steel.btn .badge{color:#4B77BE;background-color:#FFF}.portlet.blue-steel,.portlet.box.blue-steel>.portlet-title,.portlet>.portlet-body.blue-steel{background-color:#4B77BE}.btn.blue-steel-stripe{border-left:3px solid #4B77BE}.portlet.solid.blue-steel>.portlet-body,.portlet.solid.blue-steel>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-steel>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-steel>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.collapse{background-image:url(../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-steel{border:1px solid #7093cc;border-top:0}.portlet.box.blue-steel>.portlet-title>.caption,.portlet.box.blue-steel>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-steel>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9db5dc;color:#b0c3e3}.portlet.box.blue-steel>.portlet-title>.actions .btn-default>i{color:#bbcce7}.portlet.box.blue-steel>.portlet-title>.actions .btn-default.active,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:active,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:hover{border:1px solid #c3d2e9;color:#d6e0f0}.dashboard-stat.blue-steel{background-color:#4B77BE}.dashboard-stat.blue-steel.dashboard-stat-light:hover{background-color:#416db4}.dashboard-stat.blue-steel .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-steel .details .number{color:#FFF}.dashboard-stat.blue-steel .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-steel .more{color:#FFF;background-color:#416db4}.bg-blue-steel{border-color:#4B77BE!important;background-image:none!important;background-color:#4B77BE!important;color:#FFF!important}.font-blue-steel{color:#4B77BE!important}.progress-bar.blue-steel{background:#4B77BE!important;color:#FFF!important}.blue-soft.btn{color:#FFF;background-color:#4c87b9;border-color:""}.blue-soft.btn.active,.blue-soft.btn:active,.blue-soft.btn:focus,.blue-soft.btn:hover,.open .blue-soft.btn.dropdown-toggle{color:#FFF;background-color:#3f75a2}.blue-soft.btn.active,.blue-soft.btn:active{background-image:none;background-color:#386890}.blue-soft.btn.active:hover,.blue-soft.btn:active:hover{background-color:#3b6d97}.open .blue-soft.btn.dropdown-toggle{background-image:none}.blue-soft.btn.disabled,.blue-soft.btn.disabled.active,.blue-soft.btn.disabled:active,.blue-soft.btn.disabled:focus,.blue-soft.btn.disabled:hover,.blue-soft.btn[disabled],.blue-soft.btn[disabled].active,.blue-soft.btn[disabled]:active,.blue-soft.btn[disabled]:focus,.blue-soft.btn[disabled]:hover,fieldset[disabled] .blue-soft.btn,fieldset[disabled] .blue-soft.btn.active,fieldset[disabled] .blue-soft.btn:active,fieldset[disabled] .blue-soft.btn:focus,fieldset[disabled] .blue-soft.btn:hover{background-color:#4c87b9}.blue-soft.btn .badge{color:#4c87b9;background-color:#FFF}.portlet.blue-soft,.portlet.box.blue-soft>.portlet-title,.portlet>.portlet-body.blue-soft{background-color:#4c87b9}.btn.blue-soft-stripe{border-left:3px solid #4c87b9}.portlet.solid.blue-soft>.portlet-body,.portlet.solid.blue-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-soft{border:1px solid #71a0c7;border-top:0}.portlet.box.blue-soft>.portlet-title>.caption,.portlet.box.blue-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9dbdd9;color:#afc9e0}.portlet.box.blue-soft>.portlet-title>.actions .btn-default>i{color:#bad1e4}.portlet.box.blue-soft>.portlet-title>.actions .btn-default.active,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:active,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #c1d6e7;color:#d4e2ee}.dashboard-stat.blue-soft{background-color:#4c87b9}.dashboard-stat.blue-soft.dashboard-stat-light:hover{background-color:#447dad}.dashboard-stat.blue-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-soft .details .number{color:#FFF}.dashboard-stat.blue-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-soft .more{color:#FFF;background-color:#447dad}.bg-blue-soft{border-color:#4c87b9!important;background-image:none!important;background-color:#4c87b9!important;color:#FFF!important}.font-blue-soft{color:#4c87b9!important}.progress-bar.blue-soft{background:#4c87b9!important;color:#FFF!important}.blue-dark.btn{color:#FFF;background-color:#5e738b;border-color:""}.blue-dark.btn.active,.blue-dark.btn:active,.blue-dark.btn:focus,.blue-dark.btn:hover,.open .blue-dark.btn.dropdown-toggle{color:#FFF;background-color:#506176}.blue-dark.btn.active,.blue-dark.btn:active{background-image:none;background-color:#455566}.blue-dark.btn.active:hover,.blue-dark.btn:active:hover{background-color:#495a6d}.open .blue-dark.btn.dropdown-toggle{background-image:none}.blue-dark.btn.disabled,.blue-dark.btn.disabled.active,.blue-dark.btn.disabled:active,.blue-dark.btn.disabled:focus,.blue-dark.btn.disabled:hover,.blue-dark.btn[disabled],.blue-dark.btn[disabled].active,.blue-dark.btn[disabled]:active,.blue-dark.btn[disabled]:focus,.blue-dark.btn[disabled]:hover,fieldset[disabled] .blue-dark.btn,fieldset[disabled] .blue-dark.btn.active,fieldset[disabled] .blue-dark.btn:active,fieldset[disabled] .blue-dark.btn:focus,fieldset[disabled] .blue-dark.btn:hover{background-color:#5e738b}.blue-dark.btn .badge{color:#5e738b;background-color:#FFF}.portlet.blue-dark,.portlet.box.blue-dark>.portlet-title,.portlet>.portlet-body.blue-dark{background-color:#5e738b}.btn.blue-dark-stripe{border-left:3px solid #5e738b}.portlet.solid.blue-dark>.portlet-body,.portlet.solid.blue-dark>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-dark>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-dark>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-dark{border:1px solid #788da4;border-top:0}.portlet.box.blue-dark>.portlet-title>.caption,.portlet.box.blue-dark>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-dark>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9dacbd;color:#acb8c7}.portlet.box.blue-dark>.portlet-title>.actions .btn-default>i{color:#b5c0cd}.portlet.box.blue-dark>.portlet-title>.actions .btn-default.active,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:active,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:hover{border:1px solid #bbc5d1;color:#cad2db}.dashboard-stat.blue-dark{background-color:#5e738b}.dashboard-stat.blue-dark.dashboard-stat-light:hover{background-color:#56697f}.dashboard-stat.blue-dark .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-dark .details .number{color:#FFF}.dashboard-stat.blue-dark .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-dark .more{color:#FFF;background-color:#56697f}.bg-blue-dark{border-color:#5e738b!important;background-image:none!important;background-color:#5e738b!important;color:#FFF!important}.font-blue-dark{color:#5e738b!important}.progress-bar.blue-dark{background:#5e738b!important;color:#FFF!important}.blue-sharp.btn{color:#FFF;background-color:#5C9BD1;border-color:""}.blue-sharp.btn.active,.blue-sharp.btn:active,.blue-sharp.btn:focus,.blue-sharp.btn:hover,.open .blue-sharp.btn.dropdown-toggle{color:#FFF;background-color:#408ac9}.blue-sharp.btn.active,.blue-sharp.btn:active{background-image:none;background-color:#357dbb}.blue-sharp.btn.active:hover,.blue-sharp.btn:active:hover{background-color:#3782c3}.open .blue-sharp.btn.dropdown-toggle{background-image:none}.blue-sharp.btn.disabled,.blue-sharp.btn.disabled.active,.blue-sharp.btn.disabled:active,.blue-sharp.btn.disabled:focus,.blue-sharp.btn.disabled:hover,.blue-sharp.btn[disabled],.blue-sharp.btn[disabled].active,.blue-sharp.btn[disabled]:active,.blue-sharp.btn[disabled]:focus,.blue-sharp.btn[disabled]:hover,fieldset[disabled] .blue-sharp.btn,fieldset[disabled] .blue-sharp.btn.active,fieldset[disabled] .blue-sharp.btn:active,fieldset[disabled] .blue-sharp.btn:focus,fieldset[disabled] .blue-sharp.btn:hover{background-color:#5C9BD1}.blue-sharp.btn .badge{color:#5C9BD1;background-color:#FFF}.portlet.blue-sharp,.portlet.box.blue-sharp>.portlet-title,.portlet>.portlet-body.blue-sharp{background-color:#5C9BD1}.btn.blue-sharp-stripe{border-left:3px solid #5C9BD1}.portlet.solid.blue-sharp>.portlet-body,.portlet.solid.blue-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-sharp{border:1px solid #84b3dc;border-top:0}.portlet.box.blue-sharp>.portlet-title>.caption,.portlet.box.blue-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b4d1ea;color:#c7ddef}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default>i{color:#d3e4f3}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #dbe9f5;color:#eff5fb}.dashboard-stat.blue-sharp{background-color:#5C9BD1}.dashboard-stat.blue-sharp.dashboard-stat-light:hover{background-color:#4c91cd}.dashboard-stat.blue-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-sharp .details .number{color:#FFF}.dashboard-stat.blue-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-sharp .more{color:#FFF;background-color:#4c91cd}.bg-blue-sharp{border-color:#5C9BD1!important;background-image:none!important;background-color:#5C9BD1!important;color:#FFF!important}.font-blue-sharp{color:#5C9BD1!important}.progress-bar.blue-sharp{background:#5C9BD1!important;color:#FFF!important}.green.btn{color:#FFF;background-color:#35aa47;border-color:""}.green.btn.active,.green.btn:active,.green.btn:focus,.green.btn:hover,.open .green.btn.dropdown-toggle{color:#FFF;background-color:#2d8f3c}.green.btn.active,.green.btn:active{background-image:none;background-color:#267b34}.green.btn.active:hover,.green.btn:active:hover{background-color:#298337}.open .green.btn.dropdown-toggle{background-image:none}.green.btn.disabled,.green.btn.disabled.active,.green.btn.disabled:active,.green.btn.disabled:focus,.green.btn.disabled:hover,.green.btn[disabled],.green.btn[disabled].active,.green.btn[disabled]:active,.green.btn[disabled]:focus,.green.btn[disabled]:hover,fieldset[disabled] .green.btn,fieldset[disabled] .green.btn.active,fieldset[disabled] .green.btn:active,fieldset[disabled] .green.btn:focus,fieldset[disabled] .green.btn:hover{background-color:#35aa47}.green.btn .badge{color:#35aa47;background-color:#FFF}.portlet.box.green>.portlet-title,.portlet.green,.portlet>.portlet-body.green{background-color:#35aa47}.btn.green-stripe{border-left:3px solid #35aa47}.portlet.solid.green>.portlet-body,.portlet.solid.green>.portlet-title{border:0;color:#FFF}.portlet.solid.green>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green{border:1px solid #4bc75e;border-top:0}.portlet.box.green>.portlet-title>.caption,.portlet.box.green>.portlet-title>.caption>i{color:#FFF}.portlet.box.green>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #7ad588;color:#8ddc99}.portlet.box.green>.portlet-title>.actions .btn-default>i{color:#99dfa4}.portlet.box.green>.portlet-title>.actions .btn-default.active,.portlet.box.green>.portlet-title>.actions .btn-default:active,.portlet.box.green>.portlet-title>.actions .btn-default:focus,.portlet.box.green>.portlet-title>.actions .btn-default:hover{border:1px solid #a1e2ab;color:#b4e8bc}.dashboard-stat.green{background-color:#35aa47}.dashboard-stat.green.dashboard-stat-light:hover{background-color:#309a41}.dashboard-stat.green .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green .details .number{color:#FFF}.dashboard-stat.green .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green .more{color:#FFF;background-color:#309a41}.bg-green{border-color:#35aa47!important;background-image:none!important;background-color:#35aa47!important;color:#FFF!important}.font-green{color:#35aa47!important}.progress-bar.green{background:#35aa47!important;color:#FFF!important}.green-meadow.btn{color:#FFF;background-color:#1BBC9B;border-color:""}.green-meadow.btn.active,.green-meadow.btn:active,.green-meadow.btn:focus,.green-meadow.btn:hover,.open .green-meadow.btn.dropdown-toggle{color:#FFF;background-color:#179d81}.green-meadow.btn.active,.green-meadow.btn:active{background-image:none;background-color:#13866f}.green-meadow.btn.active:hover,.green-meadow.btn:active:hover{background-color:#158f76}.open .green-meadow.btn.dropdown-toggle{background-image:none}.green-meadow.btn.disabled,.green-meadow.btn.disabled.active,.green-meadow.btn.disabled:active,.green-meadow.btn.disabled:focus,.green-meadow.btn.disabled:hover,.green-meadow.btn[disabled],.green-meadow.btn[disabled].active,.green-meadow.btn[disabled]:active,.green-meadow.btn[disabled]:focus,.green-meadow.btn[disabled]:hover,fieldset[disabled] .green-meadow.btn,fieldset[disabled] .green-meadow.btn.active,fieldset[disabled] .green-meadow.btn:active,fieldset[disabled] .green-meadow.btn:focus,fieldset[disabled] .green-meadow.btn:hover{background-color:#1BBC9B}.green-meadow.btn .badge{color:#1BBC9B;background-color:#FFF}.portlet.box.green-meadow>.portlet-title,.portlet.green-meadow,.portlet>.portlet-body.green-meadow{background-color:#1BBC9B}.btn.green-meadow-stripe{border-left:3px solid #1BBC9B}.portlet.solid.green-meadow>.portlet-body,.portlet.solid.green-meadow>.portlet-title{border:0;color:#FFF}.portlet.solid.green-meadow>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-meadow>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-meadow{border:1px solid #2ae0bb;border-top:0}.portlet.box.green-meadow>.portlet-title>.caption,.portlet.box.green-meadow>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-meadow>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #5fe8cc;color:#75ebd3}.portlet.box.green-meadow>.portlet-title>.actions .btn-default>i{color:#83edd7}.portlet.box.green-meadow>.portlet-title>.actions .btn-default.active,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:active,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:focus,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:hover{border:1px solid #8ceeda;color:#a2f2e1}.dashboard-stat.green-meadow{background-color:#1BBC9B}.dashboard-stat.green-meadow.dashboard-stat-light:hover{background-color:#18aa8c}.dashboard-stat.green-meadow .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-meadow .details .number{color:#FFF}.dashboard-stat.green-meadow .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-meadow .more{color:#FFF;background-color:#18aa8c}.bg-green-meadow{border-color:#1BBC9B!important;background-image:none!important;background-color:#1BBC9B!important;color:#FFF!important}.font-green-meadow{color:#1BBC9B!important}.progress-bar.green-meadow{background:#1BBC9B!important;color:#FFF!important}.green-seagreen.btn{color:#FFF;background-color:#1BA39C;border-color:""}.green-seagreen.btn.active,.green-seagreen.btn:active,.green-seagreen.btn:focus,.green-seagreen.btn:hover,.open .green-seagreen.btn.dropdown-toggle{color:#FFF;background-color:#16847f}.green-seagreen.btn.active,.green-seagreen.btn:active{background-image:none;background-color:#126e6a}.green-seagreen.btn.active:hover,.green-seagreen.btn:active:hover{background-color:#147772}.open .green-seagreen.btn.dropdown-toggle{background-image:none}.green-seagreen.btn.disabled,.green-seagreen.btn.disabled.active,.green-seagreen.btn.disabled:active,.green-seagreen.btn.disabled:focus,.green-seagreen.btn.disabled:hover,.green-seagreen.btn[disabled],.green-seagreen.btn[disabled].active,.green-seagreen.btn[disabled]:active,.green-seagreen.btn[disabled]:focus,.green-seagreen.btn[disabled]:hover,fieldset[disabled] .green-seagreen.btn,fieldset[disabled] .green-seagreen.btn.active,fieldset[disabled] .green-seagreen.btn:active,fieldset[disabled] .green-seagreen.btn:focus,fieldset[disabled] .green-seagreen.btn:hover{background-color:#1BA39C}.green-seagreen.btn .badge{color:#1BA39C;background-color:#FFF}.portlet.box.green-seagreen>.portlet-title,.portlet.green-seagreen,.portlet>.portlet-body.green-seagreen{background-color:#1BA39C}.btn.green-seagreen-stripe{border-left:3px solid #1BA39C}.portlet.solid.green-seagreen>.portlet-body,.portlet.solid.green-seagreen>.portlet-title{border:0;color:#FFF}.portlet.solid.green-seagreen>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-seagreen>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-seagreen{border:1px solid #22cfc6;border-top:0}.portlet.box.green-seagreen>.portlet-title>.caption,.portlet.box.green-seagreen>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #4de1da;color:#63e5de}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default>i{color:#70e7e1}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default.active,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:active,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:focus,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:hover{border:1px solid #78e9e3;color:#8eece8}.dashboard-stat.green-seagreen{background-color:#1BA39C}.dashboard-stat.green-seagreen.dashboard-stat-light:hover{background-color:#18918b}.dashboard-stat.green-seagreen .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-seagreen .details .number{color:#FFF}.dashboard-stat.green-seagreen .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-seagreen .more{color:#FFF;background-color:#18918b}.bg-green-seagreen{border-color:#1BA39C!important;background-image:none!important;background-color:#1BA39C!important;color:#FFF!important}.font-green-seagreen{color:#1BA39C!important}.progress-bar.green-seagreen{background:#1BA39C!important;color:#FFF!important}.green-turquoise.btn{color:#FFF;background-color:#36D7B7;border-color:""}.green-turquoise.btn.active,.green-turquoise.btn:active,.green-turquoise.btn:focus,.green-turquoise.btn:hover,.open .green-turquoise.btn.dropdown-toggle{color:#FFF;background-color:#27c3a4}.green-turquoise.btn.active,.green-turquoise.btn:active{background-image:none;background-color:#22ad92}.green-turquoise.btn.active:hover,.green-turquoise.btn:active:hover{background-color:#24b699}.open .green-turquoise.btn.dropdown-toggle{background-image:none}.green-turquoise.btn.disabled,.green-turquoise.btn.disabled.active,.green-turquoise.btn.disabled:active,.green-turquoise.btn.disabled:focus,.green-turquoise.btn.disabled:hover,.green-turquoise.btn[disabled],.green-turquoise.btn[disabled].active,.green-turquoise.btn[disabled]:active,.green-turquoise.btn[disabled]:focus,.green-turquoise.btn[disabled]:hover,fieldset[disabled] .green-turquoise.btn,fieldset[disabled] .green-turquoise.btn.active,fieldset[disabled] .green-turquoise.btn:active,fieldset[disabled] .green-turquoise.btn:focus,fieldset[disabled] .green-turquoise.btn:hover{background-color:#36D7B7}.green-turquoise.btn .badge{color:#36D7B7;background-color:#FFF}.portlet.box.green-turquoise>.portlet-title,.portlet.green-turquoise,.portlet>.portlet-body.green-turquoise{background-color:#36D7B7}.btn.green-turquoise-stripe{border-left:3px solid #36D7B7}.portlet.solid.green-turquoise>.portlet-body,.portlet.solid.green-turquoise>.portlet-title{border:0;color:#FFF}.portlet.solid.green-turquoise>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-turquoise>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-turquoise{border:1px solid #61dfc6;border-top:0}.portlet.box.green-turquoise>.portlet-title>.caption,.portlet.box.green-turquoise>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #94ead9;color:#a9eee0}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default>i{color:#b6f0e5}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default.active,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:active,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:focus,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:hover{border:1px solid #bef2e8;color:#d3f6ef}.dashboard-stat.green-turquoise{background-color:#36D7B7}.dashboard-stat.green-turquoise.dashboard-stat-light:hover{background-color:#29cfae}.dashboard-stat.green-turquoise .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-turquoise .details .number{color:#FFF}.dashboard-stat.green-turquoise .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-turquoise .more{color:#FFF;background-color:#29cfae}.bg-green-turquoise{border-color:#36D7B7!important;background-image:none!important;background-color:#36D7B7!important;color:#FFF!important}.font-green-turquoise{color:#36D7B7!important}.progress-bar.green-turquoise{background:#36D7B7!important;color:#FFF!important}.green-haze.btn{color:#FFF;background-color:#44b6ae;border-color:""}.green-haze.btn.active,.green-haze.btn:active,.green-haze.btn:focus,.green-haze.btn:hover,.open .green-haze.btn.dropdown-toggle{color:#FFF;background-color:#3a9c95}.green-haze.btn.active,.green-haze.btn:active{background-image:none;background-color:#338983}.green-haze.btn.active:hover,.green-haze.btn:active:hover{background-color:#36918b}.open .green-haze.btn.dropdown-toggle{background-image:none}.green-haze.btn.disabled,.green-haze.btn.disabled.active,.green-haze.btn.disabled:active,.green-haze.btn.disabled:focus,.green-haze.btn.disabled:hover,.green-haze.btn[disabled],.green-haze.btn[disabled].active,.green-haze.btn[disabled]:active,.green-haze.btn[disabled]:focus,.green-haze.btn[disabled]:hover,fieldset[disabled] .green-haze.btn,fieldset[disabled] .green-haze.btn.active,fieldset[disabled] .green-haze.btn:active,fieldset[disabled] .green-haze.btn:focus,fieldset[disabled] .green-haze.btn:hover{background-color:#44b6ae}.green-haze.btn .badge{color:#44b6ae;background-color:#FFF}.portlet.box.green-haze>.portlet-title,.portlet.green-haze,.portlet>.portlet-body.green-haze{background-color:#44b6ae}.btn.green-haze-stripe{border-left:3px solid #44b6ae}.portlet.solid.green-haze>.portlet-body,.portlet.solid.green-haze>.portlet-title{border:0;color:#FFF}.portlet.solid.green-haze>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-haze>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-haze{border:1px solid #67c6bf;border-top:0}.portlet.box.green-haze>.portlet-title>.caption,.portlet.box.green-haze>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-haze>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #93d7d2;color:#a6deda}.portlet.box.green-haze>.portlet-title>.actions .btn-default>i{color:#b1e2de}.portlet.box.green-haze>.portlet-title>.actions .btn-default.active,.portlet.box.green-haze>.portlet-title>.actions .btn-default:active,.portlet.box.green-haze>.portlet-title>.actions .btn-default:focus,.portlet.box.green-haze>.portlet-title>.actions .btn-default:hover{border:1px solid #b9e5e2;color:#cbece9}.dashboard-stat.green-haze{background-color:#44b6ae}.dashboard-stat.green-haze.dashboard-stat-light:hover{background-color:#3ea7a0}.dashboard-stat.green-haze .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-haze .details .number{color:#FFF}.dashboard-stat.green-haze .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-haze .more{color:#FFF;background-color:#3ea7a0}.bg-green-haze{border-color:#44b6ae!important;background-image:none!important;background-color:#44b6ae!important;color:#FFF!important}.font-green-haze{color:#44b6ae!important}.progress-bar.green-haze{background:#44b6ae!important;color:#FFF!important}.green-jungle.btn{color:#FFF;background-color:#26C281;border-color:""}.green-jungle.btn.active,.green-jungle.btn:active,.green-jungle.btn:focus,.green-jungle.btn:hover,.open .green-jungle.btn.dropdown-toggle{color:#FFF;background-color:#20a46d}.green-jungle.btn.active,.green-jungle.btn:active{background-image:none;background-color:#1c8f5f}.green-jungle.btn.active:hover,.green-jungle.btn:active:hover{background-color:#1e9765}.open .green-jungle.btn.dropdown-toggle{background-image:none}.green-jungle.btn.disabled,.green-jungle.btn.disabled.active,.green-jungle.btn.disabled:active,.green-jungle.btn.disabled:focus,.green-jungle.btn.disabled:hover,.green-jungle.btn[disabled],.green-jungle.btn[disabled].active,.green-jungle.btn[disabled]:active,.green-jungle.btn[disabled]:focus,.green-jungle.btn[disabled]:hover,fieldset[disabled] .green-jungle.btn,fieldset[disabled] .green-jungle.btn.active,fieldset[disabled] .green-jungle.btn:active,fieldset[disabled] .green-jungle.btn:focus,fieldset[disabled] .green-jungle.btn:hover{background-color:#26C281}.green-jungle.btn .badge{color:#26C281;background-color:#FFF}.portlet.box.green-jungle>.portlet-title,.portlet.green-jungle,.portlet>.portlet-body.green-jungle{background-color:#26C281}.btn.green-jungle-stripe{border-left:3px solid #26C281}.portlet.solid.green-jungle>.portlet-body,.portlet.solid.green-jungle>.portlet-title{border:0;color:#FFF}.portlet.solid.green-jungle>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-jungle>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-jungle{border:1px solid #41da9a;border-top:0}.portlet.box.green-jungle>.portlet-title>.caption,.portlet.box.green-jungle>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-jungle>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #74e4b5;color:#8ae8c1}.portlet.box.green-jungle>.portlet-title>.actions .btn-default>i{color:#96ebc8}.portlet.box.green-jungle>.portlet-title>.actions .btn-default.active,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:active,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:focus,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:hover{border:1px solid #9feccc;color:#b4f0d7}.dashboard-stat.green-jungle{background-color:#26C281}.dashboard-stat.green-jungle.dashboard-stat-light:hover{background-color:#23b176}.dashboard-stat.green-jungle .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-jungle .details .number{color:#FFF}.dashboard-stat.green-jungle .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-jungle .more{color:#FFF;background-color:#23b176}.bg-green-jungle{border-color:#26C281!important;background-image:none!important;background-color:#26C281!important;color:#FFF!important}.font-green-jungle{color:#26C281!important}.progress-bar.green-jungle{background:#26C281!important;color:#FFF!important}.green-sharp.btn{color:#FFF;background-color:#4DB3A2;border-color:""}.green-sharp.btn.active,.green-sharp.btn:active,.green-sharp.btn:focus,.green-sharp.btn:hover,.open .green-sharp.btn.dropdown-toggle{color:#FFF;background-color:#429a8c}.green-sharp.btn.active,.green-sharp.btn:active{background-image:none;background-color:#3a897b}.green-sharp.btn.active:hover,.green-sharp.btn:active:hover{background-color:#3d9082}.open .green-sharp.btn.dropdown-toggle{background-image:none}.green-sharp.btn.disabled,.green-sharp.btn.disabled.active,.green-sharp.btn.disabled:active,.green-sharp.btn.disabled:focus,.green-sharp.btn.disabled:hover,.green-sharp.btn[disabled],.green-sharp.btn[disabled].active,.green-sharp.btn[disabled]:active,.green-sharp.btn[disabled]:focus,.green-sharp.btn[disabled]:hover,fieldset[disabled] .green-sharp.btn,fieldset[disabled] .green-sharp.btn.active,fieldset[disabled] .green-sharp.btn:active,fieldset[disabled] .green-sharp.btn:focus,fieldset[disabled] .green-sharp.btn:hover{background-color:#4DB3A2}.green-sharp.btn .badge{color:#4DB3A2;background-color:#FFF}.portlet.box.green-sharp>.portlet-title,.portlet.green-sharp,.portlet>.portlet-body.green-sharp{background-color:#4DB3A2}.btn.green-sharp-stripe{border-left:3px solid #4DB3A2}.portlet.solid.green-sharp>.portlet-body,.portlet.solid.green-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.green-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-sharp{border:1px solid #71c2b5;border-top:0}.portlet.box.green-sharp>.portlet-title>.caption,.portlet.box.green-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9cd5cb;color:#addcd4}.portlet.box.green-sharp>.portlet-title>.actions .btn-default>i{color:#b8e1da}.portlet.box.green-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #bfe4de;color:#d1ebe7}.dashboard-stat.green-sharp{background-color:#4DB3A2}.dashboard-stat.green-sharp.dashboard-stat-light:hover{background-color:#46a595}.dashboard-stat.green-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-sharp .details .number{color:#FFF}.dashboard-stat.green-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-sharp .more{color:#FFF;background-color:#46a595}.bg-green-sharp{border-color:#4DB3A2!important;background-image:none!important;background-color:#4DB3A2!important;color:#FFF!important}.font-green-sharp{color:#4DB3A2!important}.progress-bar.green-sharp{background:#4DB3A2!important;color:#FFF!important}.green-soft.btn{color:#FFF;background-color:#3faba4;border-color:""}.green-soft.btn.active,.green-soft.btn:active,.green-soft.btn:focus,.green-soft.btn:hover,.open .green-soft.btn.dropdown-toggle{color:#FFF;background-color:#35918b}.green-soft.btn.active,.green-soft.btn:active{background-image:none;background-color:#2f7e79}.green-soft.btn.active:hover,.green-soft.btn:active:hover{background-color:#318680}.open .green-soft.btn.dropdown-toggle{background-image:none}.green-soft.btn.disabled,.green-soft.btn.disabled.active,.green-soft.btn.disabled:active,.green-soft.btn.disabled:focus,.green-soft.btn.disabled:hover,.green-soft.btn[disabled],.green-soft.btn[disabled].active,.green-soft.btn[disabled]:active,.green-soft.btn[disabled]:focus,.green-soft.btn[disabled]:hover,fieldset[disabled] .green-soft.btn,fieldset[disabled] .green-soft.btn.active,fieldset[disabled] .green-soft.btn:active,fieldset[disabled] .green-soft.btn:focus,fieldset[disabled] .green-soft.btn:hover{background-color:#3faba4}.green-soft.btn .badge{color:#3faba4;background-color:#FFF}.portlet.box.green-soft>.portlet-title,.portlet.green-soft,.portlet>.portlet-body.green-soft{background-color:#3faba4}.btn.green-soft-stripe{border-left:3px solid #3faba4}.portlet.solid.green-soft>.portlet-body,.portlet.solid.green-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.green-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-soft{border:1px solid #5bc2bc;border-top:0}.portlet.box.green-soft>.portlet-title>.caption,.portlet.box.green-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #87d3ce;color:#9adad6}.portlet.box.green-soft>.portlet-title>.actions .btn-default>i{color:#a5deda}.portlet.box.green-soft>.portlet-title>.actions .btn-default.active,.portlet.box.green-soft>.portlet-title>.actions .btn-default:active,.portlet.box.green-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.green-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #ade1dd;color:#bfe7e5}.dashboard-stat.green-soft{background-color:#3faba4}.dashboard-stat.green-soft.dashboard-stat-light:hover{background-color:#3a9c96}.dashboard-stat.green-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-soft .details .number{color:#FFF}.dashboard-stat.green-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-soft .more{color:#FFF;background-color:#3a9c96}.bg-green-soft{border-color:#3faba4!important;background-image:none!important;background-color:#3faba4!important;color:#FFF!important}.font-green-soft{color:#3faba4!important}.progress-bar.green-soft{background:#3faba4!important;color:#FFF!important}.grey.btn{color:#333;background-color:#E5E5E5;border-color:""}.grey.btn.active,.grey.btn:active,.grey.btn:focus,.grey.btn:hover,.open .grey.btn.dropdown-toggle{color:#333;background-color:#d3d3d3}.grey.btn.active,.grey.btn:active{background-image:none;background-color:#c6c6c6}.grey.btn.active:hover,.grey.btn:active:hover{background-color:#ccc}.open .grey.btn.dropdown-toggle{background-image:none}.grey.btn.disabled,.grey.btn.disabled.active,.grey.btn.disabled:active,.grey.btn.disabled:focus,.grey.btn.disabled:hover,.grey.btn[disabled],.grey.btn[disabled].active,.grey.btn[disabled]:active,.grey.btn[disabled]:focus,.grey.btn[disabled]:hover,fieldset[disabled] .grey.btn,fieldset[disabled] .grey.btn.active,fieldset[disabled] .grey.btn:active,fieldset[disabled] .grey.btn:focus,fieldset[disabled] .grey.btn:hover{background-color:#E5E5E5}.grey.btn .badge{color:#E5E5E5;background-color:#333}.portlet.box.grey>.portlet-title,.portlet.grey,.portlet>.portlet-body.grey{background-color:#E5E5E5}.btn.grey-stripe{border-left:3px solid #E5E5E5}.portlet.solid.grey>.portlet-body,.portlet.solid.grey>.portlet-title{border:0;color:#333}.portlet.solid.grey>.portlet-title>.caption>i{color:#333}.portlet.solid.grey>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey{border:1px solid #fff;border-top:0}.portlet.box.grey>.portlet-title>.caption,.portlet.box.grey>.portlet-title>.caption>i{color:#333}.portlet.box.grey>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey>.portlet-title>.actions .btn-default.active,.portlet.box.grey>.portlet-title>.actions .btn-default:active,.portlet.box.grey>.portlet-title>.actions .btn-default:focus,.portlet.box.grey>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey{background-color:#E5E5E5}.dashboard-stat.grey.dashboard-stat-light:hover{background-color:#dbdbdb}.dashboard-stat.grey .visual>i{color:#333;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey .details .number{color:#333}.dashboard-stat.grey .details .desc{color:#333;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey .more{color:#333;background-color:#dbdbdb}.bg-grey{border-color:#E5E5E5!important;background-image:none!important;background-color:#E5E5E5!important;color:#333!important}.font-grey{color:#E5E5E5!important}.progress-bar.grey{background:#E5E5E5!important;color:#333!important}.grey-steel.btn{color:#80898e;background-color:#e9edef;border-color:""}.grey-steel.btn.active,.grey-steel.btn:active,.grey-steel.btn:focus,.grey-steel.btn:hover,.open .grey-steel.btn.dropdown-toggle{color:#80898e;background-color:#d4dce0}.grey-steel.btn.active,.grey-steel.btn:active{background-image:none;background-color:#c6d0d5}.grey-steel.btn.active:hover,.grey-steel.btn:active:hover{background-color:#cbd5da}.open .grey-steel.btn.dropdown-toggle{background-image:none}.grey-steel.btn.disabled,.grey-steel.btn.disabled.active,.grey-steel.btn.disabled:active,.grey-steel.btn.disabled:focus,.grey-steel.btn.disabled:hover,.grey-steel.btn[disabled],.grey-steel.btn[disabled].active,.grey-steel.btn[disabled]:active,.grey-steel.btn[disabled]:focus,.grey-steel.btn[disabled]:hover,fieldset[disabled] .grey-steel.btn,fieldset[disabled] .grey-steel.btn.active,fieldset[disabled] .grey-steel.btn:active,fieldset[disabled] .grey-steel.btn:focus,fieldset[disabled] .grey-steel.btn:hover{background-color:#e9edef}.grey-steel.btn .badge{color:#e9edef;background-color:#80898e}.portlet.box.grey-steel>.portlet-title,.portlet.grey-steel,.portlet>.portlet-body.grey-steel{background-color:#e9edef}.btn.grey-steel-stripe{border-left:3px solid #e9edef}.portlet.solid.grey-steel>.portlet-body,.portlet.solid.grey-steel>.portlet-title{border:0;color:#80898e}.portlet.solid.grey-steel>.portlet-title>.caption>i{color:#80898e}.portlet.solid.grey-steel>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-steel{border:1px solid #fff;border-top:0}.portlet.box.grey-steel>.portlet-title>.caption,.portlet.box.grey-steel>.portlet-title>.caption>i{color:#80898e}.portlet.box.grey-steel>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-steel>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-steel>.portlet-title>.actions .btn-default.active,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:active,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-steel{background-color:#e9edef}.dashboard-stat.grey-steel.dashboard-stat-light:hover{background-color:#dde3e6}.dashboard-stat.grey-steel .visual>i{color:#80898e;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-steel .details .number{color:#80898e}.dashboard-stat.grey-steel .details .desc{color:#80898e;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-steel .more{color:#80898e;background-color:#dde3e6}.bg-grey-steel{border-color:#e9edef!important;background-image:none!important;background-color:#e9edef!important;color:#80898e!important}.font-grey-steel{color:#e9edef!important}.progress-bar.grey-steel{background:#e9edef!important;color:#80898e!important}.grey-cararra.btn{color:#333;background-color:#fafafa;border-color:""}.grey-cararra.btn.active,.grey-cararra.btn:active,.grey-cararra.btn:focus,.grey-cararra.btn:hover,.open .grey-cararra.btn.dropdown-toggle{color:#333;background-color:#e8e8e8}.grey-cararra.btn.active,.grey-cararra.btn:active{background-image:none;background-color:#dbdbdb}.grey-cararra.btn.active:hover,.grey-cararra.btn:active:hover{background-color:#e1e1e1}.open .grey-cararra.btn.dropdown-toggle{background-image:none}.grey-cararra.btn.disabled,.grey-cararra.btn.disabled.active,.grey-cararra.btn.disabled:active,.grey-cararra.btn.disabled:focus,.grey-cararra.btn.disabled:hover,.grey-cararra.btn[disabled],.grey-cararra.btn[disabled].active,.grey-cararra.btn[disabled]:active,.grey-cararra.btn[disabled]:focus,.grey-cararra.btn[disabled]:hover,fieldset[disabled] .grey-cararra.btn,fieldset[disabled] .grey-cararra.btn.active,fieldset[disabled] .grey-cararra.btn:active,fieldset[disabled] .grey-cararra.btn:focus,fieldset[disabled] .grey-cararra.btn:hover{background-color:#fafafa}.grey-cararra.btn .badge{color:#fafafa;background-color:#333}.portlet.box.grey-cararra>.portlet-title,.portlet.grey-cararra,.portlet>.portlet-body.grey-cararra{background-color:#fafafa}.btn.grey-cararra-stripe{border-left:3px solid #fafafa}.portlet.solid.grey-cararra>.portlet-body,.portlet.solid.grey-cararra>.portlet-title{border:0;color:#333}.portlet.solid.grey-cararra>.portlet-title>.caption>i{color:#333}.portlet.solid.grey-cararra>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-cararra{border:1px solid #fff;border-top:0}.portlet.box.grey-cararra>.portlet-title>.caption,.portlet.box.grey-cararra>.portlet-title>.caption>i{color:#333}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default.active,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:active,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-cararra{background-color:#fafafa}.dashboard-stat.grey-cararra.dashboard-stat-light:hover{background-color:#f0f0f0}.dashboard-stat.grey-cararra .visual>i{color:#333;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-cararra .details .number{color:#333}.dashboard-stat.grey-cararra .details .desc{color:#333;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-cararra .more{color:#333;background-color:#f0f0f0}.bg-grey-cararra{border-color:#fafafa!important;background-image:none!important;background-color:#fafafa!important;color:#333!important}.font-grey-cararra{color:#fafafa!important}.progress-bar.grey-cararra{background:#fafafa!important;color:#333!important}.grey-gallery.btn{color:#fff;background-color:#555;border-color:""}.grey-gallery.btn.active,.grey-gallery.btn:active,.grey-gallery.btn:focus,.grey-gallery.btn:hover,.open .grey-gallery.btn.dropdown-toggle{color:#fff;background-color:#434343}.grey-gallery.btn.active,.grey-gallery.btn:active{background-image:none;background-color:#363636}.grey-gallery.btn.active:hover,.grey-gallery.btn:active:hover{background-color:#3b3b3b}.open .grey-gallery.btn.dropdown-toggle{background-image:none}.grey-gallery.btn.disabled,.grey-gallery.btn.disabled.active,.grey-gallery.btn.disabled:active,.grey-gallery.btn.disabled:focus,.grey-gallery.btn.disabled:hover,.grey-gallery.btn[disabled],.grey-gallery.btn[disabled].active,.grey-gallery.btn[disabled]:active,.grey-gallery.btn[disabled]:focus,.grey-gallery.btn[disabled]:hover,fieldset[disabled] .grey-gallery.btn,fieldset[disabled] .grey-gallery.btn.active,fieldset[disabled] .grey-gallery.btn:active,fieldset[disabled] .grey-gallery.btn:focus,fieldset[disabled] .grey-gallery.btn:hover{background-color:#555}.grey-gallery.btn .badge{color:#555;background-color:#fff}.portlet.box.grey-gallery>.portlet-title,.portlet.grey-gallery,.portlet>.portlet-body.grey-gallery{background-color:#555}.btn.grey-gallery-stripe{border-left:3px solid #555}.portlet.solid.grey-gallery>.portlet-body,.portlet.solid.grey-gallery>.portlet-title{border:0;color:#fff}.portlet.solid.grey-gallery>.portlet-title>.caption>i{color:#fff}.portlet.solid.grey-gallery>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-gallery{border:1px solid #6e6e6e;border-top:0}.portlet.box.grey-gallery>.portlet-title>.caption,.portlet.box.grey-gallery>.portlet-title>.caption>i{color:#fff}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #8d8d8d;color:#9a9a9a}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default>i{color:#a2a2a2}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default.active,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:active,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:hover{border:1px solid #a7a7a7;color:#b3b3b3}.dashboard-stat.grey-gallery{background-color:#555}.dashboard-stat.grey-gallery.dashboard-stat-light:hover{background-color:#4b4b4b}.dashboard-stat.grey-gallery .visual>i{color:#fff;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-gallery .details .number{color:#fff}.dashboard-stat.grey-gallery .details .desc{color:#fff;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-gallery .more{color:#fff;background-color:#4b4b4b}.bg-grey-gallery{border-color:#555!important;background-image:none!important;background-color:#555!important;color:#fff!important}.font-grey-gallery{color:#555!important}.progress-bar.grey-gallery{background:#555!important;color:#fff!important}.grey-cascade.btn{color:#FFF;background-color:#95A5A6;border-color:""}.grey-cascade.btn.active,.grey-cascade.btn:active,.grey-cascade.btn:focus,.grey-cascade.btn:hover,.open .grey-cascade.btn.dropdown-toggle{color:#FFF;background-color:#829596}.grey-cascade.btn.active,.grey-cascade.btn:active{background-image:none;background-color:#74898a}.grey-cascade.btn.active:hover,.grey-cascade.btn:active:hover{background-color:#798d8f}.open .grey-cascade.btn.dropdown-toggle{background-image:none}.grey-cascade.btn.disabled,.grey-cascade.btn.disabled.active,.grey-cascade.btn.disabled:active,.grey-cascade.btn.disabled:focus,.grey-cascade.btn.disabled:hover,.grey-cascade.btn[disabled],.grey-cascade.btn[disabled].active,.grey-cascade.btn[disabled]:active,.grey-cascade.btn[disabled]:focus,.grey-cascade.btn[disabled]:hover,fieldset[disabled] .grey-cascade.btn,fieldset[disabled] .grey-cascade.btn.active,fieldset[disabled] .grey-cascade.btn:active,fieldset[disabled] .grey-cascade.btn:focus,fieldset[disabled] .grey-cascade.btn:hover{background-color:#95A5A6}.grey-cascade.btn .badge{color:#95A5A6;background-color:#FFF}.portlet.box.grey-cascade>.portlet-title,.portlet.grey-cascade,.portlet>.portlet-body.grey-cascade{background-color:#95A5A6}.btn.grey-cascade-stripe{border-left:3px solid #95A5A6}.portlet.solid.grey-cascade>.portlet-body,.portlet.solid.grey-cascade>.portlet-title{border:0;color:#FFF}.portlet.solid.grey-cascade>.portlet-title>.caption>i{color:#FFF}.portlet.solid.grey-cascade>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-cascade{border:1px solid #b1bdbd;border-top:0}.portlet.box.grey-cascade>.portlet-title>.caption,.portlet.box.grey-cascade>.portlet-title>.caption>i{color:#FFF}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #d2d9d9;color:#e0e5e5}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default>i{color:#e8ecec}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default.active,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:active,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:hover{border:1px solid #eef0f0;color:#fcfcfc}.dashboard-stat.grey-cascade{background-color:#95A5A6}.dashboard-stat.grey-cascade.dashboard-stat-light:hover{background-color:#8a9c9d}.dashboard-stat.grey-cascade .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-cascade .details .number{color:#FFF}.dashboard-stat.grey-cascade .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-cascade .more{color:#FFF;background-color:#8a9c9d}.bg-grey-cascade{border-color:#95A5A6!important;background-image:none!important;background-color:#95A5A6!important;color:#FFF!important}.font-grey-cascade{color:#95A5A6!important}.progress-bar.grey-cascade{background:#95A5A6!important;color:#FFF!important}.grey-silver.btn{color:#FAFCFB;background-color:#BFBFBF;border-color:""}.grey-silver.btn.active,.grey-silver.btn:active,.grey-silver.btn:focus,.grey-silver.btn:hover,.open .grey-silver.btn.dropdown-toggle{color:#FAFCFB;background-color:#adadad}.grey-silver.btn.active,.grey-silver.btn:active{background-image:none;background-color:#a0a0a0}.grey-silver.btn.active:hover,.grey-silver.btn:active:hover{background-color:#a6a6a6}.open .grey-silver.btn.dropdown-toggle{background-image:none}.grey-silver.btn.disabled,.grey-silver.btn.disabled.active,.grey-silver.btn.disabled:active,.grey-silver.btn.disabled:focus,.grey-silver.btn.disabled:hover,.grey-silver.btn[disabled],.grey-silver.btn[disabled].active,.grey-silver.btn[disabled]:active,.grey-silver.btn[disabled]:focus,.grey-silver.btn[disabled]:hover,fieldset[disabled] .grey-silver.btn,fieldset[disabled] .grey-silver.btn.active,fieldset[disabled] .grey-silver.btn:active,fieldset[disabled] .grey-silver.btn:focus,fieldset[disabled] .grey-silver.btn:hover{background-color:#BFBFBF}.grey-silver.btn .badge{color:#BFBFBF;background-color:#FAFCFB}.portlet.box.grey-silver>.portlet-title,.portlet.grey-silver,.portlet>.portlet-body.grey-silver{background-color:#BFBFBF}.btn.grey-silver-stripe{border-left:3px solid #BFBFBF}.portlet.solid.grey-silver>.portlet-body,.portlet.solid.grey-silver>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-silver>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-silver>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-silver{border:1px solid #d9d9d9;border-top:0}.portlet.box.grey-silver>.portlet-title>.caption,.portlet.box.grey-silver>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-silver>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f7f7f7;color:#fff}.portlet.box.grey-silver>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-silver>.portlet-title>.actions .btn-default.active,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:active,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-silver{background-color:#BFBFBF}.dashboard-stat.grey-silver.dashboard-stat-light:hover{background-color:#b5b5b5}.dashboard-stat.grey-silver .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-silver .details .number{color:#FAFCFB}.dashboard-stat.grey-silver .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-silver .more{color:#FAFCFB;background-color:#b5b5b5}.bg-grey-silver{border-color:#BFBFBF!important;background-image:none!important;background-color:#BFBFBF!important;color:#FAFCFB!important}.font-grey-silver{color:#BFBFBF!important}.progress-bar.grey-silver{background:#BFBFBF!important;color:#FAFCFB!important}.grey-salsa.btn{color:#FAFCFB;background-color:#ACB5C3;border-color:""}.grey-salsa.btn.active,.grey-salsa.btn:active,.grey-salsa.btn:focus,.grey-salsa.btn:hover,.open .grey-salsa.btn.dropdown-toggle{color:#FAFCFB;background-color:#97a3b4}.grey-salsa.btn.active,.grey-salsa.btn:active{background-image:none;background-color:#8895a9}.grey-salsa.btn.active:hover,.grey-salsa.btn:active:hover{background-color:#8e9bae}.open .grey-salsa.btn.dropdown-toggle{background-image:none}.grey-salsa.btn.disabled,.grey-salsa.btn.disabled.active,.grey-salsa.btn.disabled:active,.grey-salsa.btn.disabled:focus,.grey-salsa.btn.disabled:hover,.grey-salsa.btn[disabled],.grey-salsa.btn[disabled].active,.grey-salsa.btn[disabled]:active,.grey-salsa.btn[disabled]:focus,.grey-salsa.btn[disabled]:hover,fieldset[disabled] .grey-salsa.btn,fieldset[disabled] .grey-salsa.btn.active,fieldset[disabled] .grey-salsa.btn:active,fieldset[disabled] .grey-salsa.btn:focus,fieldset[disabled] .grey-salsa.btn:hover{background-color:#ACB5C3}.grey-salsa.btn .badge{color:#ACB5C3;background-color:#FAFCFB}.portlet.box.grey-salsa>.portlet-title,.portlet.grey-salsa,.portlet>.portlet-body.grey-salsa{background-color:#ACB5C3}.btn.grey-salsa-stripe{border-left:3px solid #ACB5C3}.portlet.solid.grey-salsa>.portlet-body,.portlet.solid.grey-salsa>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-salsa>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-salsa>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-salsa{border:1px solid #cacfd8;border-top:0}.portlet.box.grey-salsa>.portlet-title>.caption,.portlet.box.grey-salsa>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #edeff2;color:#fcfcfd}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default.active,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:active,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-salsa{background-color:#ACB5C3}.dashboard-stat.grey-salsa.dashboard-stat-light:hover{background-color:#a0aaba}.dashboard-stat.grey-salsa .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-salsa .details .number{color:#FAFCFB}.dashboard-stat.grey-salsa .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-salsa .more{color:#FAFCFB;background-color:#a0aaba}.bg-grey-salsa{border-color:#ACB5C3!important;background-image:none!important;background-color:#ACB5C3!important;color:#FAFCFB!important}.font-grey-salsa{color:#ACB5C3!important}.progress-bar.grey-salsa{background:#ACB5C3!important;color:#FAFCFB!important}.grey-salt.btn{color:#FAFCFB;background-color:#bfcad1;border-color:""}.grey-salt.btn.active,.grey-salt.btn:active,.grey-salt.btn:focus,.grey-salt.btn:hover,.open .grey-salt.btn.dropdown-toggle{color:#FAFCFB;background-color:#aab9c2}.grey-salt.btn.active,.grey-salt.btn:active{background-image:none;background-color:#9badb7}.grey-salt.btn.active:hover,.grey-salt.btn:active:hover{background-color:#a1b1bc}.open .grey-salt.btn.dropdown-toggle{background-image:none}.grey-salt.btn.disabled,.grey-salt.btn.disabled.active,.grey-salt.btn.disabled:active,.grey-salt.btn.disabled:focus,.grey-salt.btn.disabled:hover,.grey-salt.btn[disabled],.grey-salt.btn[disabled].active,.grey-salt.btn[disabled]:active,.grey-salt.btn[disabled]:focus,.grey-salt.btn[disabled]:hover,fieldset[disabled] .grey-salt.btn,fieldset[disabled] .grey-salt.btn.active,fieldset[disabled] .grey-salt.btn:active,fieldset[disabled] .grey-salt.btn:focus,fieldset[disabled] .grey-salt.btn:hover{background-color:#bfcad1}.grey-salt.btn .badge{color:#bfcad1;background-color:#FAFCFB}.portlet.box.grey-salt>.portlet-title,.portlet.grey-salt,.portlet>.portlet-body.grey-salt{background-color:#bfcad1}.btn.grey-salt-stripe{border-left:3px solid #bfcad1}.portlet.solid.grey-salt>.portlet-body,.portlet.solid.grey-salt>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-salt>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-salt>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-salt{border:1px solid #dde3e6;border-top:0}.portlet.box.grey-salt>.portlet-title>.caption,.portlet.box.grey-salt>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-salt>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-salt>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-salt>.portlet-title>.actions .btn-default.active,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:active,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-salt{background-color:#bfcad1}.dashboard-stat.grey-salt.dashboard-stat-light:hover{background-color:#b3c0c8}.dashboard-stat.grey-salt .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-salt .details .number{color:#FAFCFB}.dashboard-stat.grey-salt .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-salt .more{color:#FAFCFB;background-color:#b3c0c8}.bg-grey-salt{border-color:#bfcad1!important;background-image:none!important;background-color:#bfcad1!important;color:#FAFCFB!important}.font-grey-salt{color:#bfcad1!important}.progress-bar.grey-salt{background:#bfcad1!important;color:#FAFCFB!important}.grey-mint.btn{color:#FAFCFB;background-color:#9eacb4;border-color:""}.grey-mint.btn.active,.grey-mint.btn:active,.grey-mint.btn:focus,.grey-mint.btn:hover,.open .grey-mint.btn.dropdown-toggle{color:#FAFCFB;background-color:#8a9ba4}.grey-mint.btn.active,.grey-mint.btn:active{background-image:none;background-color:#7b8e99}.grey-mint.btn.active:hover,.grey-mint.btn:active:hover{background-color:#81939e}.open .grey-mint.btn.dropdown-toggle{background-image:none}.grey-mint.btn.disabled,.grey-mint.btn.disabled.active,.grey-mint.btn.disabled:active,.grey-mint.btn.disabled:focus,.grey-mint.btn.disabled:hover,.grey-mint.btn[disabled],.grey-mint.btn[disabled].active,.grey-mint.btn[disabled]:active,.grey-mint.btn[disabled]:focus,.grey-mint.btn[disabled]:hover,fieldset[disabled] .grey-mint.btn,fieldset[disabled] .grey-mint.btn.active,fieldset[disabled] .grey-mint.btn:active,fieldset[disabled] .grey-mint.btn:focus,fieldset[disabled] .grey-mint.btn:hover{background-color:#9eacb4}.grey-mint.btn .badge{color:#9eacb4;background-color:#FAFCFB}.portlet.box.grey-mint>.portlet-title,.portlet.grey-mint,.portlet>.portlet-body.grey-mint{background-color:#9eacb4}.btn.grey-mint-stripe{border-left:3px solid #9eacb4}.portlet.solid.grey-mint>.portlet-body,.portlet.solid.grey-mint>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-mint>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-mint>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-mint{border:1px solid #bbc5ca;border-top:0}.portlet.box.grey-mint>.portlet-title>.caption,.portlet.box.grey-mint>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-mint>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #dde2e5;color:#eceef0}.portlet.box.grey-mint>.portlet-title>.actions .btn-default>i{color:#f4f6f7}.portlet.box.grey-mint>.portlet-title>.actions .btn-default.active,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:active,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:hover{border:1px solid #fafbfb;color:#fff}.dashboard-stat.grey-mint{background-color:#9eacb4}.dashboard-stat.grey-mint.dashboard-stat-light:hover{background-color:#92a2ab}.dashboard-stat.grey-mint .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-mint .details .number{color:#FAFCFB}.dashboard-stat.grey-mint .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-mint .more{color:#FAFCFB;background-color:#92a2ab}.bg-grey-mint{border-color:#9eacb4!important;background-image:none!important;background-color:#9eacb4!important;color:#FAFCFB!important}.font-grey-mint{color:#9eacb4!important}.progress-bar.grey-mint{background:#9eacb4!important;color:#FAFCFB!important}.red.btn{color:#FFF;background-color:#d84a38;border-color:""}.open .red.btn.dropdown-toggle,.red.btn.active,.red.btn:active,.red.btn:focus,.red.btn:hover{color:#FFF;background-color:#c63927}.red.btn.active,.red.btn:active{background-image:none;background-color:#b03223}.red.btn.active:hover,.red.btn:active:hover{background-color:#b93524}.open .red.btn.dropdown-toggle{background-image:none}.red.btn.disabled,.red.btn.disabled.active,.red.btn.disabled:active,.red.btn.disabled:focus,.red.btn.disabled:hover,.red.btn[disabled],.red.btn[disabled].active,.red.btn[disabled]:active,.red.btn[disabled]:focus,.red.btn[disabled]:hover,fieldset[disabled] .red.btn,fieldset[disabled] .red.btn.active,fieldset[disabled] .red.btn:active,fieldset[disabled] .red.btn:focus,fieldset[disabled] .red.btn:hover{background-color:#d84a38}.red.btn .badge{color:#d84a38;background-color:#FFF}.portlet.box.red>.portlet-title,.portlet.red,.portlet>.portlet-body.red{background-color:#d84a38}.btn.red-stripe{border-left:3px solid #d84a38}.portlet.solid.red>.portlet-body,.portlet.solid.red>.portlet-title{border:0;color:#FFF}.portlet.solid.red>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red{border:1px solid #e07163;border-top:0}.portlet.box.red>.portlet-title>.caption,.portlet.box.red>.portlet-title>.caption>i{color:#FFF}.portlet.box.red>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ea9f96;color:#efb3ab}.portlet.box.red>.portlet-title>.actions .btn-default>i{color:#f1beb8}.portlet.box.red>.portlet-title>.actions .btn-default.active,.portlet.box.red>.portlet-title>.actions .btn-default:active,.portlet.box.red>.portlet-title>.actions .btn-default:focus,.portlet.box.red>.portlet-title>.actions .btn-default:hover{border:1px solid #f3c6c0;color:#f7dad6}.dashboard-stat.red{background-color:#d84a38}.dashboard-stat.red.dashboard-stat-light:hover{background-color:#d23c29}.dashboard-stat.red .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red .details .number{color:#FFF}.dashboard-stat.red .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red .more{color:#FFF;background-color:#d23c29}.bg-red{border-color:#d84a38!important;background-image:none!important;background-color:#d84a38!important;color:#FFF!important}.font-red{color:#d84a38!important}.progress-bar.red{background:#d84a38!important;color:#FFF!important}.red-pink.btn{color:#FFF;background-color:#E08283;border-color:""}.open .red-pink.btn.dropdown-toggle,.red-pink.btn.active,.red-pink.btn:active,.red-pink.btn:focus,.red-pink.btn:hover{color:#FFF;background-color:#d96567}.red-pink.btn.active,.red-pink.btn:active{background-image:none;background-color:#d45152}.red-pink.btn.active:hover,.red-pink.btn:active:hover{background-color:#d6595a}.open .red-pink.btn.dropdown-toggle{background-image:none}.red-pink.btn.disabled,.red-pink.btn.disabled.active,.red-pink.btn.disabled:active,.red-pink.btn.disabled:focus,.red-pink.btn.disabled:hover,.red-pink.btn[disabled],.red-pink.btn[disabled].active,.red-pink.btn[disabled]:active,.red-pink.btn[disabled]:focus,.red-pink.btn[disabled]:hover,fieldset[disabled] .red-pink.btn,fieldset[disabled] .red-pink.btn.active,fieldset[disabled] .red-pink.btn:active,fieldset[disabled] .red-pink.btn:focus,fieldset[disabled] .red-pink.btn:hover{background-color:#E08283}.red-pink.btn .badge{color:#E08283;background-color:#FFF}.portlet.box.red-pink>.portlet-title,.portlet.red-pink,.portlet>.portlet-body.red-pink{background-color:#E08283}.btn.red-pink-stripe{border-left:3px solid #E08283}.portlet.solid.red-pink>.portlet-body,.portlet.solid.red-pink>.portlet-title{border:0;color:#FFF}.portlet.solid.red-pink>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-pink>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-pink{border:1px solid #eaabac;border-top:0}.portlet.box.red-pink>.portlet-title>.caption,.portlet.box.red-pink>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-pink>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f6dcdc;color:#fbf0f0}.portlet.box.red-pink>.portlet-title>.actions .btn-default>i{color:#fefdfd}.portlet.box.red-pink>.portlet-title>.actions .btn-default.active,.portlet.box.red-pink>.portlet-title>.actions .btn-default:active,.portlet.box.red-pink>.portlet-title>.actions .btn-default:focus,.portlet.box.red-pink>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.red-pink{background-color:#E08283}.dashboard-stat.red-pink.dashboard-stat-light:hover{background-color:#dc7273}.dashboard-stat.red-pink .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-pink .details .number{color:#FFF}.dashboard-stat.red-pink .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-pink .more{color:#FFF;background-color:#dc7273}.bg-red-pink{border-color:#E08283!important;background-image:none!important;background-color:#E08283!important;color:#FFF!important}.font-red-pink{color:#E08283!important}.progress-bar.red-pink{background:#E08283!important;color:#FFF!important}.red-sunglo.btn{color:#FFF;background-color:#E26A6A;border-color:""}.open .red-sunglo.btn.dropdown-toggle,.red-sunglo.btn.active,.red-sunglo.btn:active,.red-sunglo.btn:focus,.red-sunglo.btn:hover{color:#FFF;background-color:#dc4c4c}.red-sunglo.btn.active,.red-sunglo.btn:active{background-image:none;background-color:#d83737}.red-sunglo.btn.active:hover,.red-sunglo.btn:active:hover{background-color:#da3f3f}.open .red-sunglo.btn.dropdown-toggle{background-image:none}.red-sunglo.btn.disabled,.red-sunglo.btn.disabled.active,.red-sunglo.btn.disabled:active,.red-sunglo.btn.disabled:focus,.red-sunglo.btn.disabled:hover,.red-sunglo.btn[disabled],.red-sunglo.btn[disabled].active,.red-sunglo.btn[disabled]:active,.red-sunglo.btn[disabled]:focus,.red-sunglo.btn[disabled]:hover,fieldset[disabled] .red-sunglo.btn,fieldset[disabled] .red-sunglo.btn.active,fieldset[disabled] .red-sunglo.btn:active,fieldset[disabled] .red-sunglo.btn:focus,fieldset[disabled] .red-sunglo.btn:hover{background-color:#E26A6A}.red-sunglo.btn .badge{color:#E26A6A;background-color:#FFF}.portlet.box.red-sunglo>.portlet-title,.portlet.red-sunglo,.portlet>.portlet-body.red-sunglo{background-color:#E26A6A}.btn.red-sunglo-stripe{border-left:3px solid #E26A6A}.portlet.solid.red-sunglo>.portlet-body,.portlet.solid.red-sunglo>.portlet-title{border:0;color:#FFF}.portlet.solid.red-sunglo>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-sunglo>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-sunglo{border:1px solid #ea9595;border-top:0}.portlet.box.red-sunglo>.portlet-title>.caption,.portlet.box.red-sunglo>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f4c8c8;color:#f8dddd}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default>i{color:#fbeaea}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default.active,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:active,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:focus,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:hover{border:1px solid #fdf3f3;color:#fff}.dashboard-stat.red-sunglo{background-color:#E26A6A}.dashboard-stat.red-sunglo.dashboard-stat-light:hover{background-color:#df5959}.dashboard-stat.red-sunglo .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-sunglo .details .number{color:#FFF}.dashboard-stat.red-sunglo .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-sunglo .more{color:#FFF;background-color:#df5959}.bg-red-sunglo{border-color:#E26A6A!important;background-image:none!important;background-color:#E26A6A!important;color:#FFF!important}.font-red-sunglo{color:#E26A6A!important}.progress-bar.red-sunglo{background:#E26A6A!important;color:#FFF!important}.red-intense.btn{color:#FFF;background-color:#e35b5a;border-color:""}.open .red-intense.btn.dropdown-toggle,.red-intense.btn.active,.red-intense.btn:active,.red-intense.btn:focus,.red-intense.btn:hover{color:#FFF;background-color:#de3d3b}.red-intense.btn.active,.red-intense.btn:active{background-image:none;background-color:#da2726}.red-intense.btn.active:hover,.red-intense.btn:active:hover{background-color:#dc302e}.open .red-intense.btn.dropdown-toggle{background-image:none}.red-intense.btn.disabled,.red-intense.btn.disabled.active,.red-intense.btn.disabled:active,.red-intense.btn.disabled:focus,.red-intense.btn.disabled:hover,.red-intense.btn[disabled],.red-intense.btn[disabled].active,.red-intense.btn[disabled]:active,.red-intense.btn[disabled]:focus,.red-intense.btn[disabled]:hover,fieldset[disabled] .red-intense.btn,fieldset[disabled] .red-intense.btn.active,fieldset[disabled] .red-intense.btn:active,fieldset[disabled] .red-intense.btn:focus,fieldset[disabled] .red-intense.btn:hover{background-color:#e35b5a}.red-intense.btn .badge{color:#e35b5a;background-color:#FFF}.portlet.box.red-intense>.portlet-title,.portlet.red-intense,.portlet>.portlet-body.red-intense{background-color:#e35b5a}.btn.red-intense-stripe{border-left:3px solid #e35b5a}.portlet.solid.red-intense>.portlet-body,.portlet.solid.red-intense>.portlet-title{border:0;color:#FFF}.portlet.solid.red-intense>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-intense>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-intense{border:1px solid #ea8686;border-top:0}.portlet.box.red-intense>.portlet-title>.caption,.portlet.box.red-intense>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-intense>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f3baba;color:#f7d0d0}.portlet.box.red-intense>.portlet-title>.actions .btn-default>i{color:#f9dddd}.portlet.box.red-intense>.portlet-title>.actions .btn-default.active,.portlet.box.red-intense>.portlet-title>.actions .btn-default:active,.portlet.box.red-intense>.portlet-title>.actions .btn-default:focus,.portlet.box.red-intense>.portlet-title>.actions .btn-default:hover{border:1px solid #fbe6e6;color:#fefbfb}.dashboard-stat.red-intense{background-color:#e35b5a}.dashboard-stat.red-intense.dashboard-stat-light:hover{background-color:#e04a49}.dashboard-stat.red-intense .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-intense .details .number{color:#FFF}.dashboard-stat.red-intense .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-intense .more{color:#FFF;background-color:#e04a49}.bg-red-intense{border-color:#e35b5a!important;background-image:none!important;background-color:#e35b5a!important;color:#FFF!important}.font-red-intense{color:#e35b5a!important}.progress-bar.red-intense{background:#e35b5a!important;color:#FFF!important}.red-thunderbird.btn{color:#FFF;background-color:#D91E18;border-color:""}.open .red-thunderbird.btn.dropdown-toggle,.red-thunderbird.btn.active,.red-thunderbird.btn:active,.red-thunderbird.btn:focus,.red-thunderbird.btn:hover{color:#FFF;background-color:#b91a14}.red-thunderbird.btn.active,.red-thunderbird.btn:active{background-image:none;background-color:#a21612}.red-thunderbird.btn.active:hover,.red-thunderbird.btn:active:hover{background-color:#ab1813}.open .red-thunderbird.btn.dropdown-toggle{background-image:none}.red-thunderbird.btn.disabled,.red-thunderbird.btn.disabled.active,.red-thunderbird.btn.disabled:active,.red-thunderbird.btn.disabled:focus,.red-thunderbird.btn.disabled:hover,.red-thunderbird.btn[disabled],.red-thunderbird.btn[disabled].active,.red-thunderbird.btn[disabled]:active,.red-thunderbird.btn[disabled]:focus,.red-thunderbird.btn[disabled]:hover,fieldset[disabled] .red-thunderbird.btn,fieldset[disabled] .red-thunderbird.btn.active,fieldset[disabled] .red-thunderbird.btn:active,fieldset[disabled] .red-thunderbird.btn:focus,fieldset[disabled] .red-thunderbird.btn:hover{background-color:#D91E18}.red-thunderbird.btn .badge{color:#D91E18;background-color:#FFF}.portlet.box.red-thunderbird>.portlet-title,.portlet.red-thunderbird,.portlet>.portlet-body.red-thunderbird{background-color:#D91E18}.btn.red-thunderbird-stripe{border-left:3px solid #D91E18}.portlet.solid.red-thunderbird>.portlet-body,.portlet.solid.red-thunderbird>.portlet-title{border:0;color:#FFF}.portlet.solid.red-thunderbird>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-thunderbird{border:1px solid #e9403b;border-top:0}.portlet.box.red-thunderbird>.portlet-title>.caption,.portlet.box.red-thunderbird>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ef7672;color:#f28c89}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default>i{color:#f39997}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default.active,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:active,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:focus,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:hover{border:1px solid #f4a2a0;color:#f7b9b7}.dashboard-stat.red-thunderbird{background-color:#D91E18}.dashboard-stat.red-thunderbird.dashboard-stat-light:hover{background-color:#c71b16}.dashboard-stat.red-thunderbird .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-thunderbird .details .number{color:#FFF}.dashboard-stat.red-thunderbird .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-thunderbird .more{color:#FFF;background-color:#c71b16}.bg-red-thunderbird{border-color:#D91E18!important;background-image:none!important;background-color:#D91E18!important;color:#FFF!important}.font-red-thunderbird{color:#D91E18!important}.progress-bar.red-thunderbird{background:#D91E18!important;color:#FFF!important}.red-flamingo.btn{color:#FFF;background-color:#EF4836;border-color:""}.open .red-flamingo.btn.dropdown-toggle,.red-flamingo.btn.active,.red-flamingo.btn:active,.red-flamingo.btn:focus,.red-flamingo.btn:hover{color:#FFF;background-color:#ec2a15}.red-flamingo.btn.active,.red-flamingo.btn:active{background-image:none;background-color:#d72411}.red-flamingo.btn.active:hover,.red-flamingo.btn:active:hover{background-color:#e02612}.open .red-flamingo.btn.dropdown-toggle{background-image:none}.red-flamingo.btn.disabled,.red-flamingo.btn.disabled.active,.red-flamingo.btn.disabled:active,.red-flamingo.btn.disabled:focus,.red-flamingo.btn.disabled:hover,.red-flamingo.btn[disabled],.red-flamingo.btn[disabled].active,.red-flamingo.btn[disabled]:active,.red-flamingo.btn[disabled]:focus,.red-flamingo.btn[disabled]:hover,fieldset[disabled] .red-flamingo.btn,fieldset[disabled] .red-flamingo.btn.active,fieldset[disabled] .red-flamingo.btn:active,fieldset[disabled] .red-flamingo.btn:focus,fieldset[disabled] .red-flamingo.btn:hover{background-color:#EF4836}.red-flamingo.btn .badge{color:#EF4836;background-color:#FFF}.portlet.box.red-flamingo>.portlet-title,.portlet.red-flamingo,.portlet>.portlet-body.red-flamingo{background-color:#EF4836}.btn.red-flamingo-stripe{border-left:3px solid #EF4836}.portlet.solid.red-flamingo>.portlet-body,.portlet.solid.red-flamingo>.portlet-title{border:0;color:#FFF}.portlet.solid.red-flamingo>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-flamingo>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-flamingo{border:1px solid #f37365;border-top:0}.portlet.box.red-flamingo>.portlet-title>.caption,.portlet.box.red-flamingo>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f7a79e;color:#f9bcb6}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default>i{color:#fac9c4}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default.active,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:active,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:focus,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:hover{border:1px solid #fbd2cd;color:#fde7e5}.dashboard-stat.red-flamingo{background-color:#EF4836}.dashboard-stat.red-flamingo.dashboard-stat-light:hover{background-color:#ed3723}.dashboard-stat.red-flamingo .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-flamingo .details .number{color:#FFF}.dashboard-stat.red-flamingo .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-flamingo .more{color:#FFF;background-color:#ed3723}.bg-red-flamingo{border-color:#EF4836!important;background-image:none!important;background-color:#EF4836!important;color:#FFF!important}.font-red-flamingo{color:#EF4836!important}.progress-bar.red-flamingo{background:#EF4836!important;color:#FFF!important}.red-soft.btn{color:#FFF;background-color:#d05454;border-color:""}.open .red-soft.btn.dropdown-toggle,.red-soft.btn.active,.red-soft.btn:active,.red-soft.btn:focus,.red-soft.btn:hover{color:#FFF;background-color:#c83838}.red-soft.btn.active,.red-soft.btn:active{background-image:none;background-color:#b53232}.red-soft.btn.active:hover,.red-soft.btn:active:hover{background-color:#bd3434}.open .red-soft.btn.dropdown-toggle{background-image:none}.red-soft.btn.disabled,.red-soft.btn.disabled.active,.red-soft.btn.disabled:active,.red-soft.btn.disabled:focus,.red-soft.btn.disabled:hover,.red-soft.btn[disabled],.red-soft.btn[disabled].active,.red-soft.btn[disabled]:active,.red-soft.btn[disabled]:focus,.red-soft.btn[disabled]:hover,fieldset[disabled] .red-soft.btn,fieldset[disabled] .red-soft.btn.active,fieldset[disabled] .red-soft.btn:active,fieldset[disabled] .red-soft.btn:focus,fieldset[disabled] .red-soft.btn:hover{background-color:#d05454}.red-soft.btn .badge{color:#d05454;background-color:#FFF}.portlet.box.red-soft>.portlet-title,.portlet.red-soft,.portlet>.portlet-body.red-soft{background-color:#d05454}.btn.red-soft-stripe{border-left:3px solid #d05454}.portlet.solid.red-soft>.portlet-body,.portlet.solid.red-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.red-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-soft{border:1px solid #db7c7c;border-top:0}.portlet.box.red-soft>.portlet-title>.caption,.portlet.box.red-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #e8acac;color:#eec0c0}.portlet.box.red-soft>.portlet-title>.actions .btn-default>i{color:#f1cccc}.portlet.box.red-soft>.portlet-title>.actions .btn-default.active,.portlet.box.red-soft>.portlet-title>.actions .btn-default:active,.portlet.box.red-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.red-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #f3d4d4;color:#f9e8e8}.dashboard-stat.red-soft{background-color:#d05454}.dashboard-stat.red-soft.dashboard-stat-light:hover{background-color:#c44}.dashboard-stat.red-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-soft .details .number{color:#FFF}.dashboard-stat.red-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-soft .more{color:#FFF;background-color:#c44}.bg-red-soft{border-color:#d05454!important;background-image:none!important;background-color:#d05454!important;color:#FFF!important}.font-red-soft{color:#d05454!important}.progress-bar.red-soft{background:#d05454!important;color:#FFF!important}.red-haze.btn{color:#FFF;background-color:#f36a5a;border-color:""}.open .red-haze.btn.dropdown-toggle,.red-haze.btn.active,.red-haze.btn:active,.red-haze.btn:focus,.red-haze.btn:hover{color:#FFF;background-color:#f14c39}.red-haze.btn.active,.red-haze.btn:active{background-image:none;background-color:#ef3621}.red-haze.btn.active:hover,.red-haze.btn:active:hover{background-color:#f03f2a}.open .red-haze.btn.dropdown-toggle{background-image:none}.red-haze.btn.disabled,.red-haze.btn.disabled.active,.red-haze.btn.disabled:active,.red-haze.btn.disabled:focus,.red-haze.btn.disabled:hover,.red-haze.btn[disabled],.red-haze.btn[disabled].active,.red-haze.btn[disabled]:active,.red-haze.btn[disabled]:focus,.red-haze.btn[disabled]:hover,fieldset[disabled] .red-haze.btn,fieldset[disabled] .red-haze.btn.active,fieldset[disabled] .red-haze.btn:active,fieldset[disabled] .red-haze.btn:focus,fieldset[disabled] .red-haze.btn:hover{background-color:#f36a5a}.red-haze.btn .badge{color:#f36a5a;background-color:#FFF}.portlet.box.red-haze>.portlet-title,.portlet.red-haze,.portlet>.portlet-body.red-haze{background-color:#f36a5a}.btn.red-haze-stripe{border-left:3px solid #f36a5a}.portlet.solid.red-haze>.portlet-body,.portlet.solid.red-haze>.portlet-title{border:0;color:#FFF}.portlet.solid.red-haze>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-haze>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-haze{border:1px solid #f6958a;border-top:0}.portlet.box.red-haze>.portlet-title>.caption,.portlet.box.red-haze>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-haze>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fbc8c3;color:#fcdeda}.portlet.box.red-haze>.portlet-title>.actions .btn-default>i{color:#fdebe9}.portlet.box.red-haze>.portlet-title>.actions .btn-default.active,.portlet.box.red-haze>.portlet-title>.actions .btn-default:active,.portlet.box.red-haze>.portlet-title>.actions .btn-default:focus,.portlet.box.red-haze>.portlet-title>.actions .btn-default:hover{border:1px solid #fef3f2;color:#fff}.dashboard-stat.red-haze{background-color:#f36a5a}.dashboard-stat.red-haze.dashboard-stat-light:hover{background-color:#f25947}.dashboard-stat.red-haze .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-haze .details .number{color:#FFF}.dashboard-stat.red-haze .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-haze .more{color:#FFF;background-color:#f25947}.bg-red-haze{border-color:#f36a5a!important;background-image:none!important;background-color:#f36a5a!important;color:#FFF!important}.font-red-haze{color:#f36a5a!important}.progress-bar.red-haze{background:#f36a5a!important;color:#FFF!important}.yellow.btn{color:#FFF;background-color:#FFB848;border-color:""}.open .yellow.btn.dropdown-toggle,.yellow.btn.active,.yellow.btn:active,.yellow.btn:focus,.yellow.btn:hover{color:#FFF;background-color:#ffaa24}.yellow.btn.active,.yellow.btn:active{background-image:none;background-color:#ffa00b}.yellow.btn.active:hover,.yellow.btn:active:hover{background-color:#ffa415}.open .yellow.btn.dropdown-toggle{background-image:none}.yellow.btn.disabled,.yellow.btn.disabled.active,.yellow.btn.disabled:active,.yellow.btn.disabled:focus,.yellow.btn.disabled:hover,.yellow.btn[disabled],.yellow.btn[disabled].active,.yellow.btn[disabled]:active,.yellow.btn[disabled]:focus,.yellow.btn[disabled]:hover,fieldset[disabled] .yellow.btn,fieldset[disabled] .yellow.btn.active,fieldset[disabled] .yellow.btn:active,fieldset[disabled] .yellow.btn:focus,fieldset[disabled] .yellow.btn:hover{background-color:#FFB848}.yellow.btn .badge{color:#FFB848;background-color:#FFF}.portlet.box.yellow>.portlet-title,.portlet.yellow,.portlet>.portlet-body.yellow{background-color:#FFB848}.btn.yellow-stripe{border-left:3px solid #FFB848}.portlet.solid.yellow>.portlet-body,.portlet.solid.yellow>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow{border:1px solid #ffcc7b;border-top:0}.portlet.box.yellow>.portlet-title>.caption,.portlet.box.yellow>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ffe4b8;color:#ffedd2}.portlet.box.yellow>.portlet-title>.actions .btn-default>i{color:#fff3e1}.portlet.box.yellow>.portlet-title>.actions .btn-default.active,.portlet.box.yellow>.portlet-title>.actions .btn-default:active,.portlet.box.yellow>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow>.portlet-title>.actions .btn-default:hover{border:1px solid #fff7eb;color:#fff}.dashboard-stat.yellow{background-color:#FFB848}.dashboard-stat.yellow.dashboard-stat-light:hover{background-color:#ffb034}.dashboard-stat.yellow .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow .details .number{color:#FFF}.dashboard-stat.yellow .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow .more{color:#FFF;background-color:#ffb034}.bg-yellow{border-color:#FFB848!important;background-image:none!important;background-color:#FFB848!important;color:#FFF!important}.font-yellow{color:#FFB848!important}.progress-bar.yellow{background:#FFB848!important;color:#FFF!important}.yellow-gold.btn{color:#FFF;background-color:#E87E04;border-color:""}.open .yellow-gold.btn.dropdown-toggle,.yellow-gold.btn.active,.yellow-gold.btn:active,.yellow-gold.btn:focus,.yellow-gold.btn:hover{color:#FFF;background-color:#c56b03}.yellow-gold.btn.active,.yellow-gold.btn:active{background-image:none;background-color:#ac5d03}.yellow-gold.btn.active:hover,.yellow-gold.btn:active:hover{background-color:#b66303}.open .yellow-gold.btn.dropdown-toggle{background-image:none}.yellow-gold.btn.disabled,.yellow-gold.btn.disabled.active,.yellow-gold.btn.disabled:active,.yellow-gold.btn.disabled:focus,.yellow-gold.btn.disabled:hover,.yellow-gold.btn[disabled],.yellow-gold.btn[disabled].active,.yellow-gold.btn[disabled]:active,.yellow-gold.btn[disabled]:focus,.yellow-gold.btn[disabled]:hover,fieldset[disabled] .yellow-gold.btn,fieldset[disabled] .yellow-gold.btn.active,fieldset[disabled] .yellow-gold.btn:active,fieldset[disabled] .yellow-gold.btn:focus,fieldset[disabled] .yellow-gold.btn:hover{background-color:#E87E04}.yellow-gold.btn .badge{color:#E87E04;background-color:#FFF}.portlet.box.yellow-gold>.portlet-title,.portlet.yellow-gold,.portlet>.portlet-body.yellow-gold{background-color:#E87E04}.btn.yellow-gold-stripe{border-left:3px solid #E87E04}.portlet.solid.yellow-gold>.portlet-body,.portlet.solid.yellow-gold>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-gold>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-gold>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-gold{border:1px solid #fb9724;border-top:0}.portlet.box.yellow-gold>.portlet-title>.caption,.portlet.box.yellow-gold>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fcb460;color:#fdbf79}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default>i{color:#fdc788}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:hover{border:1px solid #fdcb92;color:#fed7ab}.dashboard-stat.yellow-gold{background-color:#E87E04}.dashboard-stat.yellow-gold.dashboard-stat-light:hover{background-color:#d47304}.dashboard-stat.yellow-gold .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-gold .details .number{color:#FFF}.dashboard-stat.yellow-gold .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-gold .more{color:#FFF;background-color:#d47304}.bg-yellow-gold{border-color:#E87E04!important;background-image:none!important;background-color:#E87E04!important;color:#FFF!important}.font-yellow-gold{color:#E87E04!important}.progress-bar.yellow-gold{background:#E87E04!important;color:#FFF!important}.yellow-casablanca.btn{color:#FFF;background-color:#f2784b;border-color:""}.open .yellow-casablanca.btn.dropdown-toggle,.yellow-casablanca.btn.active,.yellow-casablanca.btn:active,.yellow-casablanca.btn:focus,.yellow-casablanca.btn:hover{color:#FFF;background-color:#f05f2a}.yellow-casablanca.btn.active,.yellow-casablanca.btn:active{background-image:none;background-color:#ee4d12}.yellow-casablanca.btn.active:hover,.yellow-casablanca.btn:active:hover{background-color:#ef541b}.open .yellow-casablanca.btn.dropdown-toggle{background-image:none}.yellow-casablanca.btn.disabled,.yellow-casablanca.btn.disabled.active,.yellow-casablanca.btn.disabled:active,.yellow-casablanca.btn.disabled:focus,.yellow-casablanca.btn.disabled:hover,.yellow-casablanca.btn[disabled],.yellow-casablanca.btn[disabled].active,.yellow-casablanca.btn[disabled]:active,.yellow-casablanca.btn[disabled]:focus,.yellow-casablanca.btn[disabled]:hover,fieldset[disabled] .yellow-casablanca.btn,fieldset[disabled] .yellow-casablanca.btn.active,fieldset[disabled] .yellow-casablanca.btn:active,fieldset[disabled] .yellow-casablanca.btn:focus,fieldset[disabled] .yellow-casablanca.btn:hover{background-color:#f2784b}.yellow-casablanca.btn .badge{color:#f2784b;background-color:#FFF}.portlet.box.yellow-casablanca>.portlet-title,.portlet.yellow-casablanca,.portlet>.portlet-body.yellow-casablanca{background-color:#f2784b}.btn.yellow-casablanca-stripe{border-left:3px solid #f2784b}.portlet.solid.yellow-casablanca>.portlet-body,.portlet.solid.yellow-casablanca>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-casablanca>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-casablanca{border:1px solid #f59c7b;border-top:0}.portlet.box.yellow-casablanca>.portlet-title>.caption,.portlet.box.yellow-casablanca>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fac6b4;color:#fbd8cb}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default>i{color:#fce3da}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:hover{border:1px solid #fdeae3;color:#fffcfb}.dashboard-stat.yellow-casablanca{background-color:#f2784b}.dashboard-stat.yellow-casablanca.dashboard-stat-light:hover{background-color:#f16a38}.dashboard-stat.yellow-casablanca .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-casablanca .details .number{color:#FFF}.dashboard-stat.yellow-casablanca .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-casablanca .more{color:#FFF;background-color:#f16a38}.bg-yellow-casablanca{border-color:#f2784b!important;background-image:none!important;background-color:#f2784b!important;color:#FFF!important}.font-yellow-casablanca{color:#f2784b!important}.progress-bar.yellow-casablanca{background:#f2784b!important;color:#FFF!important}.yellow-crusta.btn{color:#FFF;background-color:#f3c200;border-color:""}.open .yellow-crusta.btn.dropdown-toggle,.yellow-crusta.btn.active,.yellow-crusta.btn:active,.yellow-crusta.btn:focus,.yellow-crusta.btn:hover{color:#FFF;background-color:#cfa500}.yellow-crusta.btn.active,.yellow-crusta.btn:active{background-image:none;background-color:#b69100}.yellow-crusta.btn.active:hover,.yellow-crusta.btn:active:hover{background-color:#c09900}.open .yellow-crusta.btn.dropdown-toggle{background-image:none}.yellow-crusta.btn.disabled,.yellow-crusta.btn.disabled.active,.yellow-crusta.btn.disabled:active,.yellow-crusta.btn.disabled:focus,.yellow-crusta.btn.disabled:hover,.yellow-crusta.btn[disabled],.yellow-crusta.btn[disabled].active,.yellow-crusta.btn[disabled]:active,.yellow-crusta.btn[disabled]:focus,.yellow-crusta.btn[disabled]:hover,fieldset[disabled] .yellow-crusta.btn,fieldset[disabled] .yellow-crusta.btn.active,fieldset[disabled] .yellow-crusta.btn:active,fieldset[disabled] .yellow-crusta.btn:focus,fieldset[disabled] .yellow-crusta.btn:hover{background-color:#f3c200}.yellow-crusta.btn .badge{color:#f3c200;background-color:#FFF}.portlet.box.yellow-crusta>.portlet-title,.portlet.yellow-crusta,.portlet>.portlet-body.yellow-crusta{background-color:#f3c200}.btn.yellow-crusta-stripe{border-left:3px solid #f3c200}.portlet.solid.yellow-crusta>.portlet-body,.portlet.solid.yellow-crusta>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-crusta>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-crusta{border:1px solid #ffd327;border-top:0}.portlet.box.yellow-crusta>.portlet-title>.caption,.portlet.box.yellow-crusta>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ffe064;color:#ffe57e}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default>i{color:#ffe88d}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:hover{border:1px solid #ffea97;color:#ffefb1}.dashboard-stat.yellow-crusta{background-color:#f3c200}.dashboard-stat.yellow-crusta.dashboard-stat-light:hover{background-color:#dfb200}.dashboard-stat.yellow-crusta .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-crusta .details .number{color:#FFF}.dashboard-stat.yellow-crusta .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-crusta .more{color:#FFF;background-color:#dfb200}.bg-yellow-crusta{border-color:#f3c200!important;background-image:none!important;background-color:#f3c200!important;color:#FFF!important}.font-yellow-crusta{color:#f3c200!important}.progress-bar.yellow-crusta{background:#f3c200!important;color:#FFF!important}.yellow-lemon.btn{color:#FFF;background-color:#F7CA18;border-color:""}.open .yellow-lemon.btn.dropdown-toggle,.yellow-lemon.btn.active,.yellow-lemon.btn:active,.yellow-lemon.btn:focus,.yellow-lemon.btn:hover{color:#FFF;background-color:#e3b708}.yellow-lemon.btn.active,.yellow-lemon.btn:active{background-image:none;background-color:#cba307}.yellow-lemon.btn.active:hover,.yellow-lemon.btn:active:hover{background-color:#d5ab07}.open .yellow-lemon.btn.dropdown-toggle{background-image:none}.yellow-lemon.btn.disabled,.yellow-lemon.btn.disabled.active,.yellow-lemon.btn.disabled:active,.yellow-lemon.btn.disabled:focus,.yellow-lemon.btn.disabled:hover,.yellow-lemon.btn[disabled],.yellow-lemon.btn[disabled].active,.yellow-lemon.btn[disabled]:active,.yellow-lemon.btn[disabled]:focus,.yellow-lemon.btn[disabled]:hover,fieldset[disabled] .yellow-lemon.btn,fieldset[disabled] .yellow-lemon.btn.active,fieldset[disabled] .yellow-lemon.btn:active,fieldset[disabled] .yellow-lemon.btn:focus,fieldset[disabled] .yellow-lemon.btn:hover{background-color:#F7CA18}.yellow-lemon.btn .badge{color:#F7CA18;background-color:#FFF}.portlet.box.yellow-lemon>.portlet-title,.portlet.yellow-lemon,.portlet>.portlet-body.yellow-lemon{background-color:#F7CA18}.btn.yellow-lemon-stripe{border-left:3px solid #F7CA18}.portlet.solid.yellow-lemon>.portlet-body,.portlet.solid.yellow-lemon>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-lemon>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-lemon{border:1px solid #f9d549;border-top:0}.portlet.box.yellow-lemon>.portlet-title>.caption,.portlet.box.yellow-lemon>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fbe384;color:#fce99d}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default>i{color:#fcecac}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:hover{border:1px solid #fceeb6;color:#fdf4ce}.dashboard-stat.yellow-lemon{background-color:#F7CA18}.dashboard-stat.yellow-lemon.dashboard-stat-light:hover{background-color:#f2c308}.dashboard-stat.yellow-lemon .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-lemon .details .number{color:#FFF}.dashboard-stat.yellow-lemon .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-lemon .more{color:#FFF;background-color:#f2c308}.bg-yellow-lemon{border-color:#F7CA18!important;background-image:none!important;background-color:#F7CA18!important;color:#FFF!important}.font-yellow-lemon{color:#F7CA18!important}.progress-bar.yellow-lemon{background:#F7CA18!important;color:#FFF!important}.yellow-saffron.btn{color:#FFF;background-color:#F4D03F;border-color:""}.open .yellow-saffron.btn.dropdown-toggle,.yellow-saffron.btn.active,.yellow-saffron.btn:active,.yellow-saffron.btn:focus,.yellow-saffron.btn:hover{color:#FFF;background-color:#f2c81d}.yellow-saffron.btn.active,.yellow-saffron.btn:active{background-image:none;background-color:#e8bd0d}.yellow-saffron.btn.active:hover,.yellow-saffron.btn:active:hover{background-color:#f1c40f}.open .yellow-saffron.btn.dropdown-toggle{background-image:none}.yellow-saffron.btn.disabled,.yellow-saffron.btn.disabled.active,.yellow-saffron.btn.disabled:active,.yellow-saffron.btn.disabled:focus,.yellow-saffron.btn.disabled:hover,.yellow-saffron.btn[disabled],.yellow-saffron.btn[disabled].active,.yellow-saffron.btn[disabled]:active,.yellow-saffron.btn[disabled]:focus,.yellow-saffron.btn[disabled]:hover,fieldset[disabled] .yellow-saffron.btn,fieldset[disabled] .yellow-saffron.btn.active,fieldset[disabled] .yellow-saffron.btn:active,fieldset[disabled] .yellow-saffron.btn:focus,fieldset[disabled] .yellow-saffron.btn:hover{background-color:#F4D03F}.yellow-saffron.btn .badge{color:#F4D03F;background-color:#FFF}.portlet.box.yellow-saffron>.portlet-title,.portlet.yellow-saffron,.portlet>.portlet-body.yellow-saffron{background-color:#F4D03F}.btn.yellow-saffron-stripe{border-left:3px solid #F4D03F}.portlet.solid.yellow-saffron>.portlet-body,.portlet.solid.yellow-saffron>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-saffron>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-saffron{border:1px solid #f7dc6f;border-top:0}.portlet.box.yellow-saffron>.portlet-title>.caption,.portlet.box.yellow-saffron>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #faeaa9;color:#fbf0c1}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default>i{color:#fcf3d0}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:hover{border:1px solid #fdf6d9;color:#fefcf1}.dashboard-stat.yellow-saffron{background-color:#F4D03F}.dashboard-stat.yellow-saffron.dashboard-stat-light:hover{background-color:#f3cb2c}.dashboard-stat.yellow-saffron .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-saffron .details .number{color:#FFF}.dashboard-stat.yellow-saffron .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-saffron .more{color:#FFF;background-color:#f3cb2c}.bg-yellow-saffron{border-color:#F4D03F!important;background-image:none!important;background-color:#F4D03F!important;color:#FFF!important}.font-yellow-saffron{color:#F4D03F!important}.progress-bar.yellow-saffron{background:#F4D03F!important;color:#FFF!important}.purple.btn{color:#FFF;background-color:#8E44AD;border-color:""}.open .purple.btn.dropdown-toggle,.purple.btn.active,.purple.btn:active,.purple.btn:focus,.purple.btn:hover{color:#FFF;background-color:#793a93}.purple.btn.active,.purple.btn:active{background-image:none;background-color:#6a3381}.purple.btn.active:hover,.purple.btn:active:hover{background-color:#703688}.open .purple.btn.dropdown-toggle{background-image:none}.purple.btn.disabled,.purple.btn.disabled.active,.purple.btn.disabled:active,.purple.btn.disabled:focus,.purple.btn.disabled:hover,.purple.btn[disabled],.purple.btn[disabled].active,.purple.btn[disabled]:active,.purple.btn[disabled]:focus,.purple.btn[disabled]:hover,fieldset[disabled] .purple.btn,fieldset[disabled] .purple.btn.active,fieldset[disabled] .purple.btn:active,fieldset[disabled] .purple.btn:focus,fieldset[disabled] .purple.btn:hover{background-color:#8E44AD}.purple.btn .badge{color:#8E44AD;background-color:#FFF}.portlet.box.purple>.portlet-title,.portlet.purple,.portlet>.portlet-body.purple{background-color:#8E44AD}.btn.purple-stripe{border-left:3px solid #8E44AD}.portlet.solid.purple>.portlet-body,.portlet.solid.purple>.portlet-title{border:0;color:#FFF}.portlet.solid.purple>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple{border:1px solid #a563c1;border-top:0}.portlet.box.purple>.portlet-title>.caption,.portlet.box.purple>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #bf8ed3;color:#c9a1da}.portlet.box.purple>.portlet-title>.actions .btn-default>i{color:#cfacde}.portlet.box.purple>.portlet-title>.actions .btn-default.active,.portlet.box.purple>.portlet-title>.actions .btn-default:active,.portlet.box.purple>.portlet-title>.actions .btn-default:focus,.portlet.box.purple>.portlet-title>.actions .btn-default:hover{border:1px solid #d4b3e1;color:#dec5e8}.dashboard-stat.purple{background-color:#8E44AD}.dashboard-stat.purple.dashboard-stat-light:hover{background-color:#823e9e}.dashboard-stat.purple .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple .details .number{color:#FFF}.dashboard-stat.purple .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple .more{color:#FFF;background-color:#823e9e}.bg-purple{border-color:#8E44AD!important;background-image:none!important;background-color:#8E44AD!important;color:#FFF!important}.font-purple{color:#8E44AD!important}.progress-bar.purple{background:#8E44AD!important;color:#FFF!important}.purple-plum.btn{color:#FFF;background-color:#8775a7;border-color:""}.open .purple-plum.btn.dropdown-toggle,.purple-plum.btn.active,.purple-plum.btn:active,.purple-plum.btn:focus,.purple-plum.btn:hover{color:#FFF;background-color:#746198}.purple-plum.btn.active,.purple-plum.btn:active{background-image:none;background-color:#685788}.purple-plum.btn.active:hover,.purple-plum.btn:active:hover{background-color:#6d5b8e}.open .purple-plum.btn.dropdown-toggle{background-image:none}.purple-plum.btn.disabled,.purple-plum.btn.disabled.active,.purple-plum.btn.disabled:active,.purple-plum.btn.disabled:focus,.purple-plum.btn.disabled:hover,.purple-plum.btn[disabled],.purple-plum.btn[disabled].active,.purple-plum.btn[disabled]:active,.purple-plum.btn[disabled]:focus,.purple-plum.btn[disabled]:hover,fieldset[disabled] .purple-plum.btn,fieldset[disabled] .purple-plum.btn.active,fieldset[disabled] .purple-plum.btn:active,fieldset[disabled] .purple-plum.btn:focus,fieldset[disabled] .purple-plum.btn:hover{background-color:#8775a7}.purple-plum.btn .badge{color:#8775a7;background-color:#FFF}.portlet.box.purple-plum>.portlet-title,.portlet.purple-plum,.portlet>.portlet-body.purple-plum{background-color:#8775a7}.btn.purple-plum-stripe{border-left:3px solid #8775a7}.portlet.solid.purple-plum>.portlet-body,.portlet.solid.purple-plum>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-plum>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-plum>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-plum{border:1px solid #a294bb;border-top:0}.portlet.box.purple-plum>.portlet-title>.caption,.portlet.box.purple-plum>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-plum>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c3bad3;color:#d0c9dd}.portlet.box.purple-plum>.portlet-title>.actions .btn-default>i{color:#d8d2e3}.portlet.box.purple-plum>.portlet-title>.actions .btn-default.active,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:active,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:hover{border:1px solid #ded9e7;color:#ebe8f0}.dashboard-stat.purple-plum{background-color:#8775a7}.dashboard-stat.purple-plum.dashboard-stat-light:hover{background-color:#7c699f}.dashboard-stat.purple-plum .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-plum .details .number{color:#FFF}.dashboard-stat.purple-plum .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-plum .more{color:#FFF;background-color:#7c699f}.bg-purple-plum{border-color:#8775a7!important;background-image:none!important;background-color:#8775a7!important;color:#FFF!important}.font-purple-plum{color:#8775a7!important}.progress-bar.purple-plum{background:#8775a7!important;color:#FFF!important}.purple-medium.btn{color:#FFF;background-color:#BF55EC;border-color:""}.open .purple-medium.btn.dropdown-toggle,.purple-medium.btn.active,.purple-medium.btn:active,.purple-medium.btn:focus,.purple-medium.btn:hover{color:#FFF;background-color:#b335e8}.purple-medium.btn.active,.purple-medium.btn:active{background-image:none;background-color:#aa1ee6}.purple-medium.btn.active:hover,.purple-medium.btn:active:hover{background-color:#ae27e7}.open .purple-medium.btn.dropdown-toggle{background-image:none}.purple-medium.btn.disabled,.purple-medium.btn.disabled.active,.purple-medium.btn.disabled:active,.purple-medium.btn.disabled:focus,.purple-medium.btn.disabled:hover,.purple-medium.btn[disabled],.purple-medium.btn[disabled].active,.purple-medium.btn[disabled]:active,.purple-medium.btn[disabled]:focus,.purple-medium.btn[disabled]:hover,fieldset[disabled] .purple-medium.btn,fieldset[disabled] .purple-medium.btn.active,fieldset[disabled] .purple-medium.btn:active,fieldset[disabled] .purple-medium.btn:focus,fieldset[disabled] .purple-medium.btn:hover{background-color:#BF55EC}.purple-medium.btn .badge{color:#BF55EC;background-color:#FFF}.portlet.box.purple-medium>.portlet-title,.portlet.purple-medium,.portlet>.portlet-body.purple-medium{background-color:#BF55EC}.btn.purple-medium-stripe{border-left:3px solid #BF55EC}.portlet.solid.purple-medium>.portlet-body,.portlet.solid.purple-medium>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-medium>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-medium>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-medium{border:1px solid #d083f1;border-top:0}.portlet.box.purple-medium>.portlet-title>.caption,.portlet.box.purple-medium>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-medium>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #e5baf7;color:#eed1fa}.portlet.box.purple-medium>.portlet-title>.actions .btn-default>i{color:#f3dffb}.portlet.box.purple-medium>.portlet-title>.actions .btn-default.active,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:active,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:hover{border:1px solid #f6e8fc;color:#fff}.dashboard-stat.purple-medium{background-color:#BF55EC}.dashboard-stat.purple-medium.dashboard-stat-light:hover{background-color:#b843ea}.dashboard-stat.purple-medium .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-medium .details .number{color:#FFF}.dashboard-stat.purple-medium .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-medium .more{color:#FFF;background-color:#b843ea}.bg-purple-medium{border-color:#BF55EC!important;background-image:none!important;background-color:#BF55EC!important;color:#FFF!important}.font-purple-medium{color:#BF55EC!important}.progress-bar.purple-medium{background:#BF55EC!important;color:#FFF!important}.purple-studio.btn{color:#FFF;background-color:#8E44AD;border-color:""}.open .purple-studio.btn.dropdown-toggle,.purple-studio.btn.active,.purple-studio.btn:active,.purple-studio.btn:focus,.purple-studio.btn:hover{color:#FFF;background-color:#793a93}.purple-studio.btn.active,.purple-studio.btn:active{background-image:none;background-color:#6a3381}.purple-studio.btn.active:hover,.purple-studio.btn:active:hover{background-color:#703688}.open .purple-studio.btn.dropdown-toggle{background-image:none}.purple-studio.btn.disabled,.purple-studio.btn.disabled.active,.purple-studio.btn.disabled:active,.purple-studio.btn.disabled:focus,.purple-studio.btn.disabled:hover,.purple-studio.btn[disabled],.purple-studio.btn[disabled].active,.purple-studio.btn[disabled]:active,.purple-studio.btn[disabled]:focus,.purple-studio.btn[disabled]:hover,fieldset[disabled] .purple-studio.btn,fieldset[disabled] .purple-studio.btn.active,fieldset[disabled] .purple-studio.btn:active,fieldset[disabled] .purple-studio.btn:focus,fieldset[disabled] .purple-studio.btn:hover{background-color:#8E44AD}.purple-studio.btn .badge{color:#8E44AD;background-color:#FFF}.portlet.box.purple-studio>.portlet-title,.portlet.purple-studio,.portlet>.portlet-body.purple-studio{background-color:#8E44AD}.btn.purple-studio-stripe{border-left:3px solid #8E44AD}.portlet.solid.purple-studio>.portlet-body,.portlet.solid.purple-studio>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-studio>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-studio>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-studio{border:1px solid #a563c1;border-top:0}.portlet.box.purple-studio>.portlet-title>.caption,.portlet.box.purple-studio>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-studio>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #bf8ed3;color:#c9a1da}.portlet.box.purple-studio>.portlet-title>.actions .btn-default>i{color:#cfacde}.portlet.box.purple-studio>.portlet-title>.actions .btn-default.active,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:active,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:hover{border:1px solid #d4b3e1;color:#dec5e8}.dashboard-stat.purple-studio{background-color:#8E44AD}.dashboard-stat.purple-studio.dashboard-stat-light:hover{background-color:#823e9e}.dashboard-stat.purple-studio .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-studio .details .number{color:#FFF}.dashboard-stat.purple-studio .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-studio .more{color:#FFF;background-color:#823e9e}.bg-purple-studio{border-color:#8E44AD!important;background-image:none!important;background-color:#8E44AD!important;color:#FFF!important}.font-purple-studio{color:#8E44AD!important}.progress-bar.purple-studio{background:#8E44AD!important;color:#FFF!important}.purple-wisteria.btn{color:#FFF;background-color:#9B59B6;border-color:""}.open .purple-wisteria.btn.dropdown-toggle,.purple-wisteria.btn.active,.purple-wisteria.btn:active,.purple-wisteria.btn:focus,.purple-wisteria.btn:hover{color:#FFF;background-color:#8948a3}.purple-wisteria.btn.active,.purple-wisteria.btn:active{background-image:none;background-color:#7a4092}.purple-wisteria.btn.active:hover,.purple-wisteria.btn:active:hover{background-color:#804399}.open .purple-wisteria.btn.dropdown-toggle{background-image:none}.purple-wisteria.btn.disabled,.purple-wisteria.btn.disabled.active,.purple-wisteria.btn.disabled:active,.purple-wisteria.btn.disabled:focus,.purple-wisteria.btn.disabled:hover,.purple-wisteria.btn[disabled],.purple-wisteria.btn[disabled].active,.purple-wisteria.btn[disabled]:active,.purple-wisteria.btn[disabled]:focus,.purple-wisteria.btn[disabled]:hover,fieldset[disabled] .purple-wisteria.btn,fieldset[disabled] .purple-wisteria.btn.active,fieldset[disabled] .purple-wisteria.btn:active,fieldset[disabled] .purple-wisteria.btn:focus,fieldset[disabled] .purple-wisteria.btn:hover{background-color:#9B59B6}.purple-wisteria.btn .badge{color:#9B59B6;background-color:#FFF}.portlet.box.purple-wisteria>.portlet-title,.portlet.purple-wisteria,.portlet>.portlet-body.purple-wisteria{background-color:#9B59B6}.btn.purple-wisteria-stripe{border-left:3px solid #9B59B6}.portlet.solid.purple-wisteria>.portlet-body,.portlet.solid.purple-wisteria>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-wisteria>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-wisteria{border:1px solid #b07cc6;border-top:0}.portlet.box.purple-wisteria>.portlet-title>.caption,.portlet.box.purple-wisteria>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #caa7d8;color:#d5b9e0}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default>i{color:#dbc3e5}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default.active,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:active,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:hover{border:1px solid #dfcae8;color:#eadcf0}.dashboard-stat.purple-wisteria{background-color:#9B59B6}.dashboard-stat.purple-wisteria.dashboard-stat-light:hover{background-color:#924dae}.dashboard-stat.purple-wisteria .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-wisteria .details .number{color:#FFF}.dashboard-stat.purple-wisteria .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-wisteria .more{color:#FFF;background-color:#924dae}.bg-purple-wisteria{border-color:#9B59B6!important;background-image:none!important;background-color:#9B59B6!important;color:#FFF!important}.font-purple-wisteria{color:#9B59B6!important}.progress-bar.purple-wisteria{background:#9B59B6!important;color:#FFF!important}.purple-seance.btn{color:#FFF;background-color:#9A12B3;border-color:""}.open .purple-seance.btn.dropdown-toggle,.purple-seance.btn.active,.purple-seance.btn:active,.purple-seance.btn:focus,.purple-seance.btn:hover{color:#FFF;background-color:#7e0f93}.purple-seance.btn.active,.purple-seance.btn:active{background-image:none;background-color:#6a0c7b}.purple-seance.btn.active:hover,.purple-seance.btn:active:hover{background-color:#720d85}.open .purple-seance.btn.dropdown-toggle{background-image:none}.purple-seance.btn.disabled,.purple-seance.btn.disabled.active,.purple-seance.btn.disabled:active,.purple-seance.btn.disabled:focus,.purple-seance.btn.disabled:hover,.purple-seance.btn[disabled],.purple-seance.btn[disabled].active,.purple-seance.btn[disabled]:active,.purple-seance.btn[disabled]:focus,.purple-seance.btn[disabled]:hover,fieldset[disabled] .purple-seance.btn,fieldset[disabled] .purple-seance.btn.active,fieldset[disabled] .purple-seance.btn:active,fieldset[disabled] .purple-seance.btn:focus,fieldset[disabled] .purple-seance.btn:hover{background-color:#9A12B3}.purple-seance.btn .badge{color:#9A12B3;background-color:#FFF}.portlet.box.purple-seance>.portlet-title,.portlet.purple-seance,.portlet>.portlet-body.purple-seance{background-color:#9A12B3}.btn.purple-seance-stripe{border-left:3px solid #9A12B3}.portlet.solid.purple-seance>.portlet-body,.portlet.solid.purple-seance>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-seance>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-seance>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-seance{border:1px solid #c217e1;border-top:0}.portlet.box.purple-seance>.portlet-title>.caption,.portlet.box.purple-seance>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-seance>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #d349ed;color:#d960ef}.portlet.box.purple-seance>.portlet-title>.actions .btn-default>i{color:#dc6ef0}.portlet.box.purple-seance>.portlet-title>.actions .btn-default.active,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:active,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:hover{border:1px solid #de77f1;color:#e48ef4}.dashboard-stat.purple-seance{background-color:#9A12B3}.dashboard-stat.purple-seance.dashboard-stat-light:hover{background-color:#8a10a0}.dashboard-stat.purple-seance .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-seance .details .number{color:#FFF}.dashboard-stat.purple-seance .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-seance .more{color:#FFF;background-color:#8a10a0}.bg-purple-seance{border-color:#9A12B3!important;background-image:none!important;background-color:#9A12B3!important;color:#FFF!important}.font-purple-seance{color:#9A12B3!important}.progress-bar.purple-seance{background:#9A12B3!important;color:#FFF!important}.purple-intense.btn{color:#FFF;background-color:#8775a7;border-color:""}.open .purple-intense.btn.dropdown-toggle,.purple-intense.btn.active,.purple-intense.btn:active,.purple-intense.btn:focus,.purple-intense.btn:hover{color:#FFF;background-color:#746198}.purple-intense.btn.active,.purple-intense.btn:active{background-image:none;background-color:#685788}.purple-intense.btn.active:hover,.purple-intense.btn:active:hover{background-color:#6d5b8e}.open .purple-intense.btn.dropdown-toggle{background-image:none}.purple-intense.btn.disabled,.purple-intense.btn.disabled.active,.purple-intense.btn.disabled:active,.purple-intense.btn.disabled:focus,.purple-intense.btn.disabled:hover,.purple-intense.btn[disabled],.purple-intense.btn[disabled].active,.purple-intense.btn[disabled]:active,.purple-intense.btn[disabled]:focus,.purple-intense.btn[disabled]:hover,fieldset[disabled] .purple-intense.btn,fieldset[disabled] .purple-intense.btn.active,fieldset[disabled] .purple-intense.btn:active,fieldset[disabled] .purple-intense.btn:focus,fieldset[disabled] .purple-intense.btn:hover{background-color:#8775a7}.purple-intense.btn .badge{color:#8775a7;background-color:#FFF}.portlet.box.purple-intense>.portlet-title,.portlet.purple-intense,.portlet>.portlet-body.purple-intense{background-color:#8775a7}.btn.purple-intense-stripe{border-left:3px solid #8775a7}.portlet.solid.purple-intense>.portlet-body,.portlet.solid.purple-intense>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-intense>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-intense>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-intense{border:1px solid #a294bb;border-top:0}.portlet.box.purple-intense>.portlet-title>.caption,.portlet.box.purple-intense>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-intense>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c3bad3;color:#d0c9dd}.portlet.box.purple-intense>.portlet-title>.actions .btn-default>i{color:#d8d2e3}.portlet.box.purple-intense>.portlet-title>.actions .btn-default.active,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:active,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:hover{border:1px solid #ded9e7;color:#ebe8f0}.dashboard-stat.purple-intense{background-color:#8775a7}.dashboard-stat.purple-intense.dashboard-stat-light:hover{background-color:#7c699f}.dashboard-stat.purple-intense .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-intense .details .number{color:#FFF}.dashboard-stat.purple-intense .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-intense .more{color:#FFF;background-color:#7c699f}.bg-purple-intense{border-color:#8775a7!important;background-image:none!important;background-color:#8775a7!important;color:#FFF!important}.font-purple-intense{color:#8775a7!important}.progress-bar.purple-intense{background:#8775a7!important;color:#FFF!important}.purple-sharp.btn{color:#FFF;background-color:#796799;border-color:""}.open .purple-sharp.btn.dropdown-toggle,.purple-sharp.btn.active,.purple-sharp.btn:active,.purple-sharp.btn:focus,.purple-sharp.btn:hover{color:#FFF;background-color:#685884}.purple-sharp.btn.active,.purple-sharp.btn:active{background-image:none;background-color:#5c4e75}.purple-sharp.btn.active:hover,.purple-sharp.btn:active:hover{background-color:#61527b}.open .purple-sharp.btn.dropdown-toggle{background-image:none}.purple-sharp.btn.disabled,.purple-sharp.btn.disabled.active,.purple-sharp.btn.disabled:active,.purple-sharp.btn.disabled:focus,.purple-sharp.btn.disabled:hover,.purple-sharp.btn[disabled],.purple-sharp.btn[disabled].active,.purple-sharp.btn[disabled]:active,.purple-sharp.btn[disabled]:focus,.purple-sharp.btn[disabled]:hover,fieldset[disabled] .purple-sharp.btn,fieldset[disabled] .purple-sharp.btn.active,fieldset[disabled] .purple-sharp.btn:active,fieldset[disabled] .purple-sharp.btn:focus,fieldset[disabled] .purple-sharp.btn:hover{background-color:#796799}.purple-sharp.btn .badge{color:#796799;background-color:#FFF}.portlet.box.purple-sharp>.portlet-title,.portlet.purple-sharp,.portlet>.portlet-body.purple-sharp{background-color:#796799}.btn.purple-sharp-stripe{border-left:3px solid #796799}.portlet.solid.purple-sharp>.portlet-body,.portlet.solid.purple-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-sharp{border:1px solid #9486ad;border-top:0}.portlet.box.purple-sharp>.portlet-title>.caption,.portlet.box.purple-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b4aac6;color:#c2b9d0}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default>i{color:#cac3d6}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #cfc9db;color:#ddd8e5}.dashboard-stat.purple-sharp{background-color:#796799}.dashboard-stat.purple-sharp.dashboard-stat-light:hover{background-color:#6f5f8d}.dashboard-stat.purple-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-sharp .details .number{color:#FFF}.dashboard-stat.purple-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-sharp .more{color:#FFF;background-color:#6f5f8d}.bg-purple-sharp{border-color:#796799!important;background-image:none!important;background-color:#796799!important;color:#FFF!important}.font-purple-sharp{color:#796799!important}.progress-bar.purple-sharp{background:#796799!important;color:#FFF!important}.purple-soft.btn{color:#FFF;background-color:#8877a9;border-color:""}.open .purple-soft.btn.dropdown-toggle,.purple-soft.btn.active,.purple-soft.btn:active,.purple-soft.btn:focus,.purple-soft.btn:hover{color:#FFF;background-color:#75629b}.purple-soft.btn.active,.purple-soft.btn:active{background-image:none;background-color:#69588b}.purple-soft.btn.active:hover,.purple-soft.btn:active:hover{background-color:#6e5c91}.open .purple-soft.btn.dropdown-toggle{background-image:none}.purple-soft.btn.disabled,.purple-soft.btn.disabled.active,.purple-soft.btn.disabled:active,.purple-soft.btn.disabled:focus,.purple-soft.btn.disabled:hover,.purple-soft.btn[disabled],.purple-soft.btn[disabled].active,.purple-soft.btn[disabled]:active,.purple-soft.btn[disabled]:focus,.purple-soft.btn[disabled]:hover,fieldset[disabled] .purple-soft.btn,fieldset[disabled] .purple-soft.btn.active,fieldset[disabled] .purple-soft.btn:active,fieldset[disabled] .purple-soft.btn:focus,fieldset[disabled] .purple-soft.btn:hover{background-color:#8877a9}.purple-soft.btn .badge{color:#8877a9;background-color:#FFF}.portlet.box.purple-soft>.portlet-title,.portlet.purple-soft,.portlet>.portlet-body.purple-soft{background-color:#8877a9}.btn.purple-soft-stripe{border-left:3px solid #8877a9}.portlet.solid.purple-soft>.portlet-body,.portlet.solid.purple-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-soft{border:1px solid #a396bd;border-top:0}.portlet.box.purple-soft>.portlet-title>.caption,.portlet.box.purple-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c4bcd4;color:#d2cbde}.portlet.box.purple-soft>.portlet-title>.actions .btn-default>i{color:#dad5e4}.portlet.box.purple-soft>.portlet-title>.actions .btn-default.active,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:active,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #dfdbe8;color:#edebf2}.dashboard-stat.purple-soft{background-color:#8877a9}.dashboard-stat.purple-soft.dashboard-stat-light:hover{background-color:#7d6ba1}.dashboard-stat.purple-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-soft .details .number{color:#FFF}.dashboard-stat.purple-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-soft .more{color:#FFF;background-color:#7d6ba1}.bg-purple-soft{border-color:#8877a9!important;background-image:none!important;background-color:#8877a9!important;color:#FFF!important}.font-purple-soft{color:#8877a9!important}.progress-bar.purple-soft{background:#8877a9!important;color:#FFF!important}.btn-transparent.btn{background:0 0;color:#888}@-moz-keyframes whirly-loader{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes whirly-loader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes whirly-loader{0%{-moz-transform:rotate(0);-ms-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.whirly-loader:not(:required){overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;width:8px;height:8px;background:0 0;-moz-border-radius:100%;-webkit-border-radius:100%;border-radius:100%;-moz-box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;-webkit-box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;-moz-animation:whirly-loader 1.25s infinite linear;-webkit-animation:whirly-loader 1.25s infinite linear;animation:whirly-loader 1.25s infinite linear;-moz-transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.float-right{float:right}.float-left{float:left}.checker{width:19px;height:19px}.collapse.am-collapse{animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:backwards;overflow:hidden}.message-info{float:right;color:#d3d3d3;margin-right:5px}[ui-view].ng-enter{-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s}.steps,.steps-indicator{padding-bottom:20px!important}.ui-sortable,.ui-sortable-handle{cursor:move}.step .btn:not(.ui-select-toggle,.remove-condition){margin-bottom:10px}.mbottom20{margin-bottom:20px}.pbottom20{padding-bottom:20px}.break-overflow{overflow-wrap:break-word}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;opacity:.2;filter:alpha(opacity=20)}.alert{padding:15px!important;margin-bottom:20px!important;border:1px solid transparent!important;border-radius:4px!important}.alert h4{margin-top:0!important;color:inherit!important}.alert .alert-link{font-weight:700!important}.alert>p,.alert>ul{margin-bottom:0!important}.alert>p+p{margin-top:5px!important}.alert-dismissable,.alert-dismissible{padding-right:35px!important}.alert-dismissable .close,.alert-dismissible .close{position:relative!important;top:-2px!important;right:-21px!important;color:inherit!important}.alert-success{background-color:#dff0d8!important;border-color:#d6e9c6!important;color:#3c763d!important}.alert-success hr{border-top-color:#c9e2b3!important}.alert-success .alert-link{color:#2b542c!important}.alert-info{background-color:#d9edf7!important;border-color:#bce8f1!important;color:#31708f!important}.alert-info hr{border-top-color:#a6e1ec!important}.alert-info .alert-link{color:#245269!important}.alert-warning{background-color:#fcf8e3!important;border-color:#faebcc!important;color:#8a6d3b!important}.alert-warning hr{border-top-color:#f7e1b5!important}.alert-warning .alert-link{color:#66512c!important}.alert-danger{background-color:#f2dede!important;border-color:#ebccd1!important;color:#a94442!important}.alert-danger hr{border-top-color:#e4b9c0!important}.alert-danger .alert-link{color:#843534!important}.alert .close{text-indent:inherit!important;background-image:none!important;width:auto!important}.page-404 .number{position:relative;top:35px;display:inline-block;letter-spacing:-10px;margin-top:0;margin-bottom:10px;line-height:128px;font-size:128px;font-weight:300;color:#7bbbd6;text-align:right}.page-404 .details{margin-left:40px;display:inline-block;padding-top:0;text-align:left}.sounds-title-icon{font-size:17px}.ui-select-multiple input.ui-select-search{width:100%!important}.modal.fade,.over-topbar{z-index:9996!important}.list-group-item-custom{border:none}.pointer-cursor{cursor:pointer!important}.select-group-father{font-weight:700!important}.select-group-son{font-style:italic!important}@media (max-height:908px){.modal-body-scroll{max-height:325px;overflow-y:scroll}}.widget .dashboard-stat{margin-bottom:0!important}.widget .panel-body{padding:0}.left-margin{margin-left:20px}.contact-portlet{overflow-x:hidden;overflow-y:auto;height:337px}.contact-tab{background:#F1F3FA;padding-top:20px}.contact-tab-container{padding-left:20px;padding-right:20px}.col-fixed,.tree-row{float:left}.col-fixed{width:277px;margin-right:15px}.tree-row{width:calc(100% - 277px + 15px)}.tree-search{float:left;display:inline-block;line-height:18px;font-weight:300;padding:10px 0}.page-header.navbar{background-color:#2b3643}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle>i{color:#79869a}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle .badge.badge-default{background-color:#1caf9a;color:#fff}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle{background-color:#3f4f62}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover>i,.page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle>i{color:#a4aebb}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu{border-color:#e7eaf0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu:after{border-bottom-color:#eaedf2}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external{background:#eaedf2}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>h3{color:#62878f}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a{color:#5b9bd1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a:hover{color:#3175af;text-decoration:underline}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a{border-bottom:1px solid #EFF2F6!important;color:#888}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a:hover{background:#f8f9fa}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li>a .time{background:#f1f1f1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li>a:hover .time{background:#e4e4e4}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-toggle>.circle{background-color:#1caf9a;color:#fff}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-toggle>.corner{border-color:transparent transparent transparent #1caf9a}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu .dropdown-menu-list .subject .from{color:#5b9bd1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>.langname,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>.username,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>i{color:#c6cfda}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list .progress{background-color:#dfe2e9}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-menu{width:195px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu{background:#3f4f62;border:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu:after{border-bottom-color:#3f4f62}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external{background:#2f3b49}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external>h3{color:#adbaca}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external>a:hover{color:#87b6dd}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a{color:#bcc7d4;border-bottom:1px solid #4b5e75!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a>i,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a>i{color:#9dadc0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a:hover{background:#47596e}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a{border-bottom:0!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li.divider{background:#4b5e75}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification.dropdown-dark .dropdown-menu .dropdown-menu-list>li>a .time{background:#354353}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification.dropdown-dark .dropdown-menu .dropdown-menu-list>li>a:hover .time{background:#2b3643}.page-header.navbar .search-form{background:#232c37}.page-header.navbar .search-form.open,.page-header.navbar .search-form:hover{background:#3f4f62}.page-header.navbar .search-form .input-group .form-control{color:#959fad}.page-header.navbar .search-form .input-group .form-control::-moz-placeholder{color:#929cab;opacity:1}.page-header.navbar .search-form .input-group .form-control:-ms-input-placeholder{color:#929cab}.page-header.navbar .search-form .input-group .form-control::-webkit-input-placeholder{color:#929cab}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit>i{color:#959fad}.page-header.navbar .menu-toggler{background-image:url(../../assets/images/sidebar_toggler_icon_darkblue.png)}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{box-shadow:5px 5px rgba(63,79,98,.2)}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3,.page-header.navbar .hor-menu .navbar-nav>li>a{color:#c6cfda}.page-header.navbar .hor-menu .navbar-nav>li>a>i{color:#788ea8}.page-header.navbar .hor-menu .navbar-nav>li.open>a,.page-header.navbar .hor-menu .navbar-nav>li>a:hover{color:#d5dce4;background:#3f4f62!important}.page-header.navbar .hor-menu .navbar-nav>li.open>a>i,.page-header.navbar .hor-menu .navbar-nav>li>a:hover>i{color:#889bb2}.page-header.navbar .hor-menu .navbar-nav>li.active>a,.page-header.navbar .hor-menu .navbar-nav>li.current>a{color:#fff;background:#1caf9a!important}.page-header.navbar .hor-menu .navbar-nav>li.active>a>i,.page-header.navbar .hor-menu .navbar-nav>li.current>a>i{color:#788ea8}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu{box-shadow:5px 5px rgba(63,79,98,.2);background:#3f4f62}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a>i{color:#c6cfda}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li:hover>a{color:#f1f3f6;background:#47596e}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li:hover>a>i{color:#f1f3f6}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a:hover,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a:hover{color:#f1f3f6;background:#47596e}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a:hover>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a:hover>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a>i{color:#f1f3f6}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.divider{background-color:#495c72}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>a:after{color:#c6cfda}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{box-shadow:5px 5px rgba(102,102,102,.1)}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a{color:#c6cfda}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a>i{color:#788ea8}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a:hover{color:#d5dce4;background:#3f4f62}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a:hover>i{color:#889bb2}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.open>a{color:#333!important;background:#fff!important}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.open>a>i{color:#333!important}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a:hover,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a:hover{color:#fff;background:#1caf9a}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a>i{color:#788ea8}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu{box-shadow:5px 5px rgba(102,102,102,.1);background:#fff;border:1px solid #efeff5}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li>a{color:#000}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li>a>i{color:#888}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li:hover>a{color:#000;background:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li:hover>a>i{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a:hover,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a:hover{color:#000;background:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a>i{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.divider{background-color:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>.dropdown-menu{border-top:0}.page-sidebar,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{background-color:#364150}.page-sidebar .page-sidebar-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{color:#b4bcc8}.page-sidebar .page-sidebar-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu>li>a>i[class*=icon-],.page-sidebar .page-sidebar-menu>li>a>i[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class*=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class^=icon-]{color:#6b788b}.page-sidebar .page-sidebar-menu>li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu>li.heading>h3,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading>h3{color:#708096}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar .page-sidebar-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a{background:#2C3542;color:#b4bcc8}.page-sidebar .page-sidebar-menu>li.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.open>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.open>a>i,.page-sidebar .page-sidebar-menu>li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li:hover>a>.arrow:before,.page-sidebar .page-sidebar-menu>li:hover>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu>li.active.open>a,.page-sidebar .page-sidebar-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a{background:#1caf9a;border-top-color:transparent;color:#fff}.page-sidebar .page-sidebar-menu>li.active.open>a:hover,.page-sidebar .page-sidebar-menu>li.active>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a:hover{background:#1caf9a}.page-sidebar .page-sidebar-menu>li.active.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.active.open>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.active.open>a>i,.page-sidebar .page-sidebar-menu>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>i{color:#fff}.page-sidebar .page-sidebar-menu>li.active+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active+li>a{border-top-color:transparent}.page-sidebar .page-sidebar-menu>li.active.open+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open+li>a{border-top-color:#3d4957}.page-sidebar .page-sidebar-menu>li:last-child>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:last-child>a{border-bottom:1px solid transparent!important}.page-sidebar .page-sidebar-menu li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li:hover>a>.arrow:before,.page-sidebar .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>a>.arrow:before{color:#fff}.page-sidebar-closed .page-sidebar .page-sidebar-menu:hover .sub-menu,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu:hover .sub-menu{background-color:#364150}.page-sidebar .page-sidebar-menu .sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a{color:#b4bcc8}.page-sidebar .page-sidebar-menu .sub-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu .sub-menu>li>a>i[class*=icon-],.page-sidebar .page-sidebar-menu .sub-menu>li>a>i[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i[class*=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i[class^=icon-]{color:#6b788b}.page-sidebar .page-sidebar-menu .sub-menu>li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a{background:#3e4b5c!important}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>i,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>i,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>i{color:#959fae}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>.arrow:before,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li:hover>a{background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a{background:#3e4b5c;border-left:4px solid #1caf9a;color:#f1f1f1}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover{border-left:4px solid #1caf9a;background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>i,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>i{color:#eee}.page-sidebar .sidebar-search .input-group .input-group-btn .btn>i,.page-sidebar-closed .page-sidebar .sidebar-search.open .remove>i,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.open .remove>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn>i{color:#4e5c6f}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a{background:#3e4b5c!important}.page-sidebar .sidebar-toggler,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler{background:url(../assets/images/sidebar_inline_toggler_icon_darkblue.jpg)}.page-sidebar .sidebar-search .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group{border-bottom:1px solid #435060}.page-sidebar .sidebar-search .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control{background-color:#364150;color:#4e5c6f}.page-sidebar .sidebar-search .input-group .form-control::-moz-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control::-moz-placeholder{color:#4e5c6f;opacity:1}.page-sidebar .sidebar-search .input-group .form-control:-ms-input-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control:-ms-input-placeholder{color:#4e5c6f}.page-sidebar .sidebar-search .input-group .form-control::-webkit-input-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control::-webkit-input-placeholder{color:#4e5c6f}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group{border:1px solid #435060}.page-sidebar-closed .page-sidebar .sidebar-search.open .input-group,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.open .input-group{background-color:#364150}.page-sidebar-closed .page-sidebar .sidebar-search.sidebar-search-solid .input-group,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group{background:0 0}.page-sidebar .sidebar-search.sidebar-search-solid .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group{border:1px solid #2c3541;background:#2c3541}.page-sidebar .sidebar-search.sidebar-search-solid .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group .form-control{background:#2c3541}.page-sidebar .sidebar-search.sidebar-search-solid.open .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid.open .input-group{border:1px solid #364150;background:#364150}.page-sidebar .sidebar-search.sidebar-search-solid.open .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid.open .input-group .form-control{background:#364150}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover{border-left:0;border-right:4px solid #1caf9a}.page-quick-sidebar-wrapper,.page-quick-sidebar-wrapper .page-quick-sidebar{background:#435468}.page-quick-sidebar-toggler{background:#576d87}.page-quick-sidebar-toggler:hover{background:#51667e}.page-quick-sidebar-toggler>i,.page-quick-sidebar-wrapper{color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a:hover{background:#4d6178}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li.open>a{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li.active>a{border:0;background:#435468}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu{border:0;background:#576d87;box-shadow:5px 5px rgba(142,160,182,.1)}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:after,.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:before{border-bottom:7px solid #576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a{color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a>i{color:#ccd1d9}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a:hover{background:#5d7591;color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a:hover>i{color:#d4d9e0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li.active>a{background:#59708a;color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li.divider{background-color:#5d7591}.page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{color:#a5afbd}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{border-bottom-color:#495c72}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:hover{background:#495c72}.page-quick-sidebar-wrapper .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list{color:#c9ced7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group{border-bottom:1px solid #435060}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .form-control{background-color:#435468;color:#c9ced7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{color:#9ca7b7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-small{color:#919cae}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .datetime,.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .name{color:#bdc4ce}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .message{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message .arrow{border-right-color:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message .arrow{border-left-color:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li a{color:#b7bfca}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li a .desc{text-decoration:underline}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .desc{color:#b1b9c6}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .date{color:#919cae}.page-footer .page-footer-inner{color:#98a6ba}.page-footer-fixed .page-footer{background-color:#28303b}@media (min-width:992px){.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-closed>li:hover{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-closed>li:hover.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-closed>li:hover.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li.heading{padding:0;margin-top:15px;margin-bottom:15px;border-top:1px solid #3d4957!important}.page-sidebar-fixed:not(.page-footer-fixed) .page-content{border-bottom:0}.page-sidebar-fixed:not(.page-footer-fixed) .page-footer{background-color:#fff}.page-sidebar-fixed:not(.page-footer-fixed) .page-footer .page-footer-inner{color:#333}.page-boxed{background-color:#303a47!important}.page-boxed .page-container{background-color:#364150;border-left:1px solid #3d4957;border-bottom:1px solid #3d4957}.page-boxed.page-sidebar-reversed .page-container{border-left:0;border-right:1px solid #3d4957}.page-boxed.page-sidebar-fixed .page-container{border-left:0;border-bottom:0}.page-boxed.page-sidebar-reversed.page-sidebar-fixed .page-container{border-left:0;border-right:0;border-bottom:0}.page-boxed.page-sidebar-fixed .page-sidebar{border-left:1px solid #3d4957}.page-boxed.page-sidebar-reversed.page-sidebar-fixed .page-sidebar{border-right:1px solid #3d4957;border-left:0}.page-boxed.page-sidebar-fixed.page-footer-fixed .page-footer{background-color:#303a47!important}.page-boxed.page-sidebar-fixed.page-footer-fixed .page-footer .page-footer-inner{color:#98a6ba}.page-sidebar-menu-hover-submenu li:hover a>.arrow{border-right:8px solid #323c4b}.page-sidebar-reversed .page-sidebar-menu-hover-submenu li:hover a>.arrow{border-left:8px solid #323c4b}.page-sidebar-menu-hover-submenu li:hover>.sub-menu{background:#323c4b!important}}.pace .pace-progress-inner,.page-header.navbar,.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .progress .progress-bar{box-shadow:none}@media (max-width:991px){.page-sidebar{background-color:#28303b}.page-sidebar .page-sidebar-menu>li>a{border-top:1px solid #364150}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar .page-sidebar-menu>li:hover>a{background:#2e3744}.page-sidebar .page-sidebar-menu>li:last-child>a{border-bottom:0!important}.page-sidebar .page-sidebar-menu .sidebar-search input,.page-sidebar .page-sidebar-menu>li .sub-menu{background-color:#28303b!important}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li:hover>a{background:#2e3744}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{background:#28303b!important}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a{background:#2e3744!important}}@media (max-width:480px){.page-header.navbar .top-menu{background-color:#364150}.page-header-fixed-mobile .page-header.navbar .top-menu{background-color:#2b3643}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{background-color:#415265}.page-header-fixed-mobile .page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{background:0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle:hover{background-color:#3f4f62}}body{background-color:#364150}.block-spinner-bar>div,.page-spinner-bar>div{background:#20c5ad}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQ7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTSGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTZ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTYjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/TCmDhmS1RRL7aqhqZW19hwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/ttwNtsRpgsxVmgGGmiUOEoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(http://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSgzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSg7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSiGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSp6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSojoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzAzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzCGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@media print{body{background-color:#fff!important}.hidden-print,.page-bar,.page-footer,.page-quick-sidebar-wrapper,.page-sidebar-wrapper,.theme-panel{display:none}.no-page-break{page-break-after:avoid}.page-container{margin:0!important;padding:0!important}.page-content{min-height:300px!important;padding:0 20px 20px!important;margin:0!important}}.page-header.navbar{width:100%;margin:0;border:0;padding:0;height:46px;min-height:46px;filter:none;background-image:none}.page-header.navbar.navbar-fixed-top,.page-header.navbar.navbar-static-top{z-index:9995}.page-header.navbar .page-logo{float:left;display:block;width:235px;height:46px;padding-left:20px;padding-right:20px}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo{padding:0}.page-header.navbar .page-logo>.logo-image,.page-header.navbar .page-logo>a{display:inline-block;float:left}.page-header.navbar .page-logo .logo-default{margin:16px 0 0}.page-header.navbar .page-logo .logo-mini{display:none;margin-left:5px}.page-header.navbar .page-logo .text-logo{padding-left:20px;padding-top:12px}.page-header.navbar .search-form{display:inline-block;width:46px;position:relative;float:left;transition:all .6s}.page-header.navbar .search-form .input-group .form-control{height:46px;border:0;background:0 0!important;font-size:13px;padding-left:0;margin-left:12px;text-indent:-150000px}.page-header.navbar .search-form .input-group .form-control:hover{cursor:pointer}.page-header.navbar .search-form .input-group .input-group-btn{height:46px}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit{margin-left:-24px;padding:0;width:46px;background:0 0;margin-top:4px;display:block}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit>i{font-size:15px}.page-header.navbar .search-form.open{transition:all .6s;width:300px!important}.page-header.navbar .search-form.open .input-group .form-control{text-indent:0}.page-header.navbar .search-form.open .input-group .form-control:hover{cursor:text}.page-header.navbar .search-form.open .input-group .input-group-btn .btn.submit{margin-left:0}.page-header.navbar .menu-toggler{display:block;cursor:pointer;opacity:.7;filter:alpha(opacity=70);width:24px;height:24px;background-repeat:no-repeat;background-position:center center}.page-header.navbar .menu-toggler:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a:hover{opacity:1;filter:alpha(opacity=100)}.page-header.navbar .menu-toggler.sidebar-toggler{float:right;margin:11px 0 0}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .menu-toggler.sidebar-toggler{margin-right:10.5px}.page-header.navbar .menu-toggler.responsive-toggler{display:none;float:right;margin:11px 6px 0}.page-header.navbar .top-menu{margin:0;padding:0;float:right}.page-header.navbar .top-menu .navbar-nav{padding:0;margin-right:20px;display:block}.page-header.navbar .top-menu .navbar-nav>li.dropdown{margin:0;padding:0 4px;height:46px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown:last-child{padding-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle{margin:0;padding:17px 10px 9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle:last-child{padding-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>i{font-size:17px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>i.glyphicon{font-size:16px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>.badge{font-family:"Open Sans",sans-serif;position:absolute;top:10px;right:20px;font-weight:300px;padding:3px 6px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle:focus{background:0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu{margin-top:3px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu:before{position:absolute;top:-7px;right:9px;display:inline-block!important;border-right:7px solid transparent;border-bottom:7px solid #eee;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu:after{position:absolute;top:-6px;right:10px;display:inline-block!important;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu>li>a{color:#555}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu{min-width:160px;max-width:275px;width:275px;z-index:9995}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external{display:block;overflow:hidden;padding:15px;letter-spacing:.5px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>h3{margin:0;padding:0;float:left;font-size:13px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a{display:inline-block;padding:0;background:0 0;clear:inherit;font-size:13px;font-weight:300;position:absolute;right:10px;border:0;margin-top:-1px}.page-bar:after,.page-container:after,.page-footer:after,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:after,.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:after{clear:both}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list{padding-right:0!important;padding-left:0;list-style:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a{display:block;clear:both;font-weight:300;line-height:20px;white-space:normal;font-size:13px;padding:16px 15px 18px;text-shadow:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li:first-child a{border-top:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details{overflow:hidden}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon{margin-right:10px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon i{margin-right:2px;margin-left:1px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon .badge{right:15px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .time{float:right;max-width:75px;font-size:11px;font-weight:400;opacity:.7;filter:alpha(opacity=70);text-align:right;padding:1px 5px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .photo{float:left;margin:0 6px 6px 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .photo img{height:40px;width:40px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;-ms-border-radius:50%!important;-o-border-radius:50%!important;border-radius:50%!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject{display:block;margin-left:46px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject .from{font-size:13px;font-weight:600}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject .time{font-size:12px;font-weight:400;opacity:.5;filter:alpha(opacity=50);float:right}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .message{display:block!important;font-size:12px;line-height:1.3;margin-left:46px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task{margin-bottom:5px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task .desc{font-size:13px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task .percent{float:right;font-weight:600;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .progress{display:block;height:8px;margin:8px 0 2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{padding:14px 6px 12px 8px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>.username{display:inline-block;font-size:13px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>img{float:left;margin-top:-5px;margin-right:5px;height:29px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>i{display:inline-block;margin:0;font-size:13px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu{width:175px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a{font-size:14px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a i{width:15px;display:inline-block;margin-right:9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a .badge{margin-right:10px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language{padding-left:0;padding-right:0;margin:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle{padding:14px 3px 12px 7px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>img{margin-bottom:2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>i{font-size:14px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-menu>li>a{font-size:13px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-menu>li>a>img{margin-bottom:2px;margin-right:5px}.page-header.navbar .top-menu .navbar-nav li.dropdown-dark .dropdown-menu:before{border-left:none;border-right:none}.page-header.navbar .top-menu .navbar-nav li.dropdown-dark .dropdown-menu .dropdown-menu-list>li.external a{background:0 0!important;border:none!important}@media (min-width:768px){.page-header.navbar .search-form.search-form-expanded{width:200px}.page-header.navbar .search-form.search-form-expanded .input-group .form-control{text-indent:0}.page-header.navbar .search-form.search-form-expanded .input-group .form-control:hover{cursor:text}.page-header.navbar .search-form.search-form-expanded .input-group .input-group-btn .btn.submit{margin-left:0}}.page-header.navbar .container{position:relative}.page-header.navbar .hor-menu .navbar-nav,.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown{position:static}.page-header.navbar .hor-menu{margin:0;float:left}.page-header.navbar .hor-menu .navbar-nav.navbar-right .dropdown-menu{left:auto;right:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{left:auto;width:auto}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content{font-family:"Open Sans",sans-serif;padding:15px;margin:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content.mega-menu-responsive-content{padding:10px 18px 10px 45px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu{padding:0;margin:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu:last-child{border-right:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li{padding:1px!important;margin:0!important;list-style:none}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3{margin-top:5px;padding-left:6px;font-size:15px;font-weight:400}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a{white-space:normal;font-family:"Open Sans",sans-serif;padding:7px;margin:0;font-size:14px;font-weight:300}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a.iconify{padding:7px 7px 7px 30px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a.iconify>i{position:absolute;top:auto!important;margin-left:-24px;font-size:15px;margin-top:3px!important}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a .badge,.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a .label{margin-left:5px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown.mega-menu-full .dropdown-menu{left:20px;right:20px}.page-header.navbar .hor-menu .navbar-nav>li.menu-dropdown .dropdown-menu:after,.page-header.navbar .hor-menu .navbar-nav>li.menu-dropdown .dropdown-menu:before{display:none!important}.page-header.navbar .hor-menu .navbar-nav>li>a{font-size:14px;font-weight:400;padding:13px}.page-header.navbar .hor-menu .navbar-nav>li>a:focus{background:0 0!important}.page-header.navbar .hor-menu .navbar-nav>li.active .selected,.page-header.navbar .hor-menu .navbar-nav>li.current .selected{left:50%;bottom:0;position:absolute;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid transparent;display:inline-block;margin:0 0 -6px -7px;width:0;height:0}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu{margin-top:0;border:none}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:300;padding:9px 10px;white-space:normal}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a .badge,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a .label{font-weight:300}.page-header.navbar .hor-menu .navbar-nav>li.classic-menu-dropdown .dropdown-menu{min-width:195px;max-width:235px}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>.dropdown-menu{top:0}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>a:after{top:9px;right:10px}@media (min-width:992px) and (max-width:1200px){.page-boxed .page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle .langname,.page-boxed .page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle .username.username-hide-on-mobile{display:none}}@media (min-width:992px){.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo{padding:0;width:45px}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo .logo-default{display:none}.page-boxed .page-header.navbar .page-logo{width:236px}.page-boxed .page-header.navbar .top-menu .navbar-nav{margin-right:0}.page-sidebar-closed.page-sidebar-closed-hide-logo.page-boxed .page-header.navbar .page-logo{width:46px}.page-boxed.page-sidebar-fixed .page-header.navbar .page-logo{width:235px}}@media (max-width:991px){.page-header.navbar{padding:0 20px;position:relative;clear:both}.page-header.navbar .page-logo{width:auto;padding:0;margin-right:10px;margin-left:0!important;padding-left:0!important}.page-header.navbar .page-logo img{margin-left:4px!important}.page-header.navbar .menu-toggler.sidebar-toggler{display:none!important}.page-header.navbar .menu-toggler.responsive-toggler{display:inline-block}.page-header.navbar .top-menu .navbar-nav{display:inline-block;margin:0 10px 0 0}.page-header.navbar .top-menu .navbar-nav>li{float:left}.page-header.navbar .top-menu .navbar-nav .nav li.dropdown i{display:inline-block;position:relative;top:1px;right:0}.page-header.navbar .top-menu .navbar-nav .open .dropdown-menu{position:absolute}.page-header-fixed.page-header-fixed-mobile .navbar-fixed-top{position:fixed}.page-boxed .page-header.navbar>.container{max-width:none!important;margin:0!important;padding:0!important}}@media (min-width:768px) and (max-width:991px){.page-boxed .page-header.navbar{margin:auto!important;padding:0}.page-boxed .page-header.navbar>.container{margin:auto!important}}@media (max-width:767px){.page-header.navbar{padding:0 10px}.page-header.navbar .page-logo{width:auto}.page-header.navbar .search-form.open{z-index:3;left:10px;right:10px;position:absolute;width:auto!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended>.dropdown-menu{max-width:255px;width:255px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu{margin-right:-190px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu:before{margin-right:190px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu{margin-right:-150px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu:before{margin-right:150px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu{margin-right:-110px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu:before{margin-right:110px}}@media (max-width:580px){.page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle .langname,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle .username.username-hide-on-mobile{display:none}}@media (max-width:480px){.page-header-fixed.page-header-fixed-mobile .page-header.navbar{height:92px}.page-header.navbar .top-menu{display:block;clear:both}.page-header.navbar .top-menu .navbar-nav{margin-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle{padding:17px 6px 9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle{padding:14px 4px 12px 2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{padding:14px 0 12px 2px}}.pace .pace-progress{z-index:10000;top:44px;height:2px}.pace .pace-activity{top:48px;right:22px;border-radius:10px!important}.page-container{margin:0;padding:0;position:relative}.page-container:after,.page-container:before{content:" ";display:table}.page-header-fixed .page-container{margin-top:46px}.page-footer-fixed.page-footer-fixed-mobile .page-container{margin-bottom:20px!important}@media (min-width:992px){.page-footer-fixed .page-container{margin-bottom:20px!important}}@media (max-width:991px){.page-container{margin:0!important;padding:0!important}.page-header-fixed.page-header-fixed-mobile .page-container{margin-top:46px!important}}@media (max-width:480px){.page-header-fixed .pace .pace-progress{top:92px}.page-header-fixed .pace .pace-activity{top:188px;right:15px}.page-header-fixed.page-header-fixed-mobile .page-container{margin-top:92px!important}}.ie8 .page-sidebar{width:235px;float:left;position:relative;margin-right:-100%}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover.navbar-collapse,.page-sidebar.navbar-collapse{padding:0;box-shadow:none}.page-sidebar .page-sidebar-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu{list-style:none;margin:0;padding:0}.page-sidebar .page-sidebar-menu>li,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li{display:block;margin:0;padding:0;border:0}.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper{border:0!important}.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:before,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:before{content:" ";display:table}.page-sidebar .page-sidebar-menu>li.start>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.start>a{border-top-color:transparent!important}.page-sidebar .page-sidebar-menu>li.last>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.last>a{border-bottom-color:transparent!important}.page-sidebar .page-sidebar-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{display:block;position:relative;margin:0;border:0;padding:10px 15px;text-decoration:none;font-size:14px;font-weight:300}.page-sidebar .page-sidebar-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i{font-size:16px;margin-right:5px;text-shadow:none}.page-sidebar .page-sidebar-menu>li>a>i.glyphicon,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i.glyphicon{top:3px;margin-left:1px;margin-right:4px}.page-sidebar .page-sidebar-menu>li>a>[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>[class^=icon-]{top:2px;margin-left:1px;margin-right:4px}.page-sidebar-fixed .page-sidebar .page-sidebar-menu>li>a,.page-sidebar-fixed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{transition:all .2s ease}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar .page-sidebar-menu>li>a,.page-sidebar-reversed.page-sidebar-fixed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{transition:none}.page-sidebar .page-sidebar-menu>li.heading,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading{padding:15px}.page-sidebar .page-sidebar-menu>li.heading>h3,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading>h3{margin:0;padding:0;font-size:14px;font-weight:300}.page-sidebar .page-sidebar-menu>li.heading+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading+li>a{border-top:0}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a{font-size:14px}.page-sidebar .page-sidebar-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a{border:none;text-shadow:none;font-size:14px}.page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{display:block;float:right;position:absolute;right:0;top:8px;background:0 0;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #fff}.page-sidebar-reversed .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{right:auto;left:0;border-right:0;border-left:8px solid #fff}.page-container-bg-solid .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-container-bg-solid .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{border-color:transparent #F1F3FA transparent transparent}.page-container-bg-solid.page-sidebar-reversed .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-container-bg-solid.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{border-color:transparent transparent transparent #F1F3FA}.page-sidebar .page-sidebar-menu li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow:before{float:right;width:10px;text-align:center;margin-top:-1px;margin-right:5px;margin-left:5px;display:inline;font-size:16px;font-family:FontAwesome;height:auto;content:"\f104";font-weight:300;text-shadow:none}.page-sidebar .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow.open:before{content:"\f107"}.page-sidebar .page-sidebar-menu li>a>.badge,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.badge{float:right;margin-top:1px;margin-right:0}.page-sidebar .page-sidebar-menu .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu{list-style:none;display:none;padding:0;margin:8px 0}.page-sidebar .page-sidebar-menu .sub-menu li,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li{background:0 0;margin:0;padding:0;margin-top:1px!important}.page-sidebar .page-sidebar-menu .sub-menu li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>a{display:block;margin:0;padding:6px 15px 6px 43px;text-decoration:none;font-size:14px;font-weight:300;background:0 0}.page-sidebar .page-sidebar-menu .sub-menu li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>a>i{font-size:14px}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu{margin:0}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>a{padding-left:60px}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu{margin:0}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu>li>a{padding-left:80px}.page-sidebar .page-sidebar-menu li.active>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>.sub-menu{display:block}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li>a{border:0;margin:0;padding-left:11px;border-left:4px solid transparent}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{margin:0;padding:1px 0}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li>a{padding-top:8px;padding-bottom:8px}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li:first-child,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li:first-child{margin-top:0!important}.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li>a,.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li>a{padding-left:15px;padding-right:11px;border-left:0;border-right:4px solid transparent}.page-sidebar .sidebar-toggler,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler{display:block;cursor:pointer;opacity:.7;filter:alpha(opacity=70);width:30px;height:27px;margin-top:15px;margin-right:19px;float:right;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-toggler:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler:hover{filter:alpha(opacity=100);opacity:1}.page-sidebar .sidebar-search,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search{padding:0;margin:22px 18px}.page-sidebar .sidebar-search .remove,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .remove{display:none}.page-sidebar .sidebar-search .remove>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .remove>i{font-size:16px}.page-sidebar .sidebar-search .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-search .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control{border:0;font-size:14px;padding:0;height:auto;line-height:auto;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-search .input-group .input-group-btn .btn,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn{padding:2px 0 0;background-color:transparent;background-repeat:no-repeat;background-position:100% 3px}.page-sidebar .sidebar-search .input-group .input-group-btn .btn>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn>i{font-size:15px}.page-sidebar .sidebar-search.sidebar-search-bordered,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered{margin:25px 18px}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group .form-control{font-size:13px;padding:6px 8px}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group .input-group-btn .btn,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group .input-group-btn .btn{margin-right:6px}@media (min-width:992px){.page-full-width .page-sidebar,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.open>.sub-menu,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>.sub-menu{display:none!important}.page-sidebar{width:235px;float:left;position:relative;margin-right:-100%}.page-sidebar.navbar-collapse{max-height:none!important}.page-sidebar-reversed .page-sidebar{float:right;margin-right:0;margin-left:-100%}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar{margin-left:-235px}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar-wrapper{position:relative;float:right}.page-sidebar-fixed .page-sidebar{position:fixed!important;margin-left:0;top:46px}.page-sidebar-fixed .page-sidebar-menu>li.last{margin-bottom:15px!important}.page-sidebar-closed .page-sidebar,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed{width:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover{width:256px!important;position:relative!important;z-index:10000;display:block!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;-ms-border-radius:0 4px 0 0;-o-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>i{margin-right:10px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.title{display:inline!important;padding-left:15px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.badge{display:block!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.selected{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover.heading{width:45px!important;box-shadow:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu{width:210px;position:absolute;z-index:2000;left:46px;margin-top:0;top:100%;display:block!important;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>a{padding-left:15px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>.sub-menu>li>a{padding-left:30px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>.sub-menu>li>.sub-menu>li>a{padding-left:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.heading>h3{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper .sidebar-toggler{margin-right:8px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-search-wrapper:hover,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper:hover{width:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a{padding-left:11px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a .selected{right:-3px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.arrow,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.badge,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.title{display:none!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-toggler{margin-left:3px;margin-right:3px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group{border-color:transparent;margin-left:-4px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group .form-control{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group .input-group-btn .btn{display:block}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.sidebar-search-bordered .input-group{padding:5px 0 3px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open{height:39px;margin-top:14px;margin-bottom:14px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group{width:210px;position:relative;z-index:1;margin-left:24px;padding:0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .form-control{background:0 0;border:0;display:block;padding:8px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .input-group-btn .btn{display:block;margin-right:8px;margin-top:1px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .remove{background-repeat:no-repeat;width:11px;height:11px;margin:9px -5px 9px -7px;display:block;float:left}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open.sidebar-search-bordered{height:36px;margin-top:23px;margin-bottom:23px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open.sidebar-search-bordered .input-group{padding:0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li>a{padding-right:11px;padding-left:7px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar{margin-left:-45px;width:45px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>.sub-menu{left:auto;right:46px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover{margin-left:-211px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a{-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;-ms-border-radius:4px 0 0 0;-o-border-radius:4px 0 0;border-radius:4px 0 0}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.title{padding-left:0;padding-right:15px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>i{margin-right:0;margin-left:2px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-search-wrapper:hover,.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper:hover{margin-left:0}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group{margin-left:-227px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .input-group-btn .btn{margin-right:10px!important}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .remove{margin:9px 4px 12px -16px!important;float:right!important}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li>a{padding-right:7px;padding-left:11px}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{width:235px!important;display:absolute;z-index:10000}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu{width:235px!important}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .selected{display:none!important}.page-sidebar-closed.page-sidebar-fixed.page-sidebar-reversed .page-sidebar:hover{width:235px!important;display:absolute;z-index:10000;margin-left:-235px!important}.page-sidebar-closed.page-sidebar-fixed.page-sidebar-reversed .page-sidebar:hover .page-sidebar-menu{width:235px!important}.page-sidebar-closed.page-sidebar-hide .page-sidebar{display:none!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu li .sub-menu{display:none;width:210px;z-index:2000;position:absolute;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar-menu.page-sidebar-menu-hover-submenu li .sub-menu>li>a{margin:3px}.page-sidebar-menu.page-sidebar-menu-hover-submenu li.active .sub-menu,.page-sidebar-menu.page-sidebar-menu-hover-submenu li.open .sub-menu{display:none!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu li a>.arrow{display:none}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow{display:block;float:right;position:absolute;right:0;margin-top:-20px;background:0 0;width:0;height:0;border-style:solid;border-top:12px double transparent;border-bottom:12px double transparent;border-left:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow:after,.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow:before{display:none}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow{right:auto;left:0;border-right:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>.sub-menu{display:inline-block!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>a>.arrow{z-index:1;right:0;margin-top:-23px}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>a>.selected{display:none}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:235px;margin-top:-40px}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:-210px!important}.page-sidebar-closed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li>a{padding-left:15px}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu{margin-left:210px;margin-top:-38px!important}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu{margin-left:-210px!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu>li>a{padding-left:10px;padding-right:10px}.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-hover-submenu li:hover>.sub-menu,.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-hover-submenu li:hover>.sub-menu>li>.sub-menu{margin-top:-41px}}@media (max-width:991px){.page-sidebar,.page-sidebar.navbar-collapse.in{border-top:0!important;margin:20px}.page-sidebar .sidebar-toggler{display:none}.page-sidebar .selected,.page-sidebar.navbar-collapse.collapse{display:none!important}.page-sidebar.navbar-collapse{max-height:none}.page-sidebar.navbar-collapse.in{position:relative;overflow:hidden!important;overflow-y:auto!important;display:block!important}.page-sidebar.navbar-collapse.navbar-no-scroll{max-height:none!important}.page-sidebar .mega-menu-responsive-content{padding:10px 18px 10px 45px}.page-full-width .page-sidebar-menu{display:block}}@media (min-width:768px) and (max-width:991px){.page-sidebar .btn-navbar.collapsed .arrow{display:none}.page-sidebar .btn-navbar .arrow{position:absolute;right:25px;width:0;height:0;top:50px;border-bottom:15px solid #5f646b;border-left:15px solid transparent;border-right:15px solid transparent}}.page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle{padding:17px 10px 9px!important}.page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle i{top:0}.page-quick-sidebar-open .page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle i:before{content:"\e066"}.page-quick-sidebar-wrapper{transition:right .3s;z-index:9994;position:fixed;top:46px;bottom:0;right:-270px;width:270px;overflow:hidden}.page-quick-sidebar-wrapper.phonebar{top:0}.page-footer-fixed .page-quick-sidebar-wrapper{bottom:33px}.page-quick-sidebar-full-height .page-quick-sidebar-wrapper{top:0;bottom:0}.page-quick-sidebar-open .page-quick-sidebar-wrapper{transition:right .3s;right:0}.page-quick-sidebar-toggler{overflow:hidden;z-index:9994;display:none;width:28px;height:27px;position:fixed;top:19px;right:15px;text-align:center;padding-top:6px}.page-quick-sidebar-open .page-quick-sidebar-toggler{display:inline-block}.page-quick-sidebar-toggler>i{font-size:17px}@media (max-width:480px){.page-sidebar,.page-sidebar.in{margin:0 10px 10px!important}.page-header-fixed.page-header-fixed-mobile .page-sidebar,.page-header-fixed.page-header-fixed-mobile .page-sidebar.in{margin-top:10px!important}.page-quick-sidebar-wrapper{top:92px}.page-quick-sidebar-toggler{top:65px}}.page-content-wrapper,.page-footer,.page-header,.page-sidebar-wrapper{transition:margin .3s}.page-quick-sidebar-open.page-quick-sidebar-push-content .page-content-wrapper,.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{transition:margin-left .3s;margin-left:-270px}.page-quick-sidebar-open.page-quick-sidebar-push-content .page-footer{transition:margin-right .3s;margin-right:270px;margin-left:-270px}.page-sidebar-reversed.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{transition:margin-right .3s;margin-right:270px}.page-quick-sidebar-open.page-quick-sidebar-push-content.page-quick-sidebar-full-height .page-header{transition:margin-left .3s;margin-left:-270px}.page-quick-sidebar-open.page-quick-sidebar-push-content.page-footer-fixed:not(.page-quick-sidebar-full-height) .page-footer{margin-left:0;margin-right:0}.page-quick-sidebar-open.page-quick-sidebar-over-content-transparent .page-quick-sidebar-wrapper{opacity:.9;filter:alpha(opacity=90)}@media (max-width:991px){.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{display:none}}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified{margin:0;padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li{display:table-cell!important;width:1%!important}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a{padding:15px;border:0;height:46px;font-size:13px;text-transform:uppercase;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a>.badge{position:absolute;top:12px;right:3px}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a:hover{border:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu{margin-top:8px;margin-right:20px}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:before{position:absolute;top:-7px;right:19px;display:inline-block!important;border-right:7px solid transparent;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:after{position:absolute;top:-6px;right:20px;display:inline-block!important;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>.tab-content{margin:0;padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{font-size:16px;margin:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items{margin:0;padding:0;list-style:none}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{margin:0;padding:10px;background:0 0;border-bottom-width:1px;border-bottom-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:last-child{border-bottom:0}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items.borderless li{border:0}.page-quick-sidebar-wrapper .page-quick-sidebar .inner-content{margin:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-list{position:absolute!important;width:270px!important;transition:margin .3s}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item{position:absolute!important;width:270px!important;transition:margin .3s;margin-left:270px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav{padding:0 10px 5px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list{vertical-align:middle;display:inline-block;font-size:14px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list>i{font-size:17px;line-height:17px;vertical-align:top;margin-right:3px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list{transition:margin .3s;margin-left:-270px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list .slimScrollBar,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list .slimScrollRail{display:none!important}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-item{transition:margin .3s;margin-left:0}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media{padding:12px 10px 11px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object{border-radius:50%!important;width:38.57px;opacity:.8;filter:alpha(opacity=80);float:left;margin-right:10px}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search{padding:0;margin:10px 22px}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .form-control{border:0;font-size:14px;padding:0;height:auto}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .input-group-btn .btn{padding:2px 0 0;background-color:transparent;background-repeat:no-repeat;background-position:100% 3px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:after,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:before{content:" ";display:table}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media:hover{cursor:pointer}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media:hover .media-object{opacity:1;filter:alpha(opacity=100)}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading{margin:5px 0 0;font-size:14px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{font-size:11px;text-transform:uppercase}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-small{font-size:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-status{margin-top:10px;right:10px;position:absolute;display:inline-block}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages{padding:0 10px;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post{transition:display .3s;padding:5px 0;margin:10px auto;font-size:12px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .body{display:block;word-wrap:break-word}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .avatar{width:38.57px;border-radius:50%!important}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .avatar{float:left;margin-right:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .avatar{float:right;margin-left:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .name{font-size:12px;font-weight:300}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .datetime{font-size:12px;font-weight:300;text-style:italic}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .message{display:block;padding:5px;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message{text-align:left;margin-left:55px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message .arrow{display:block;position:absolute;top:9px;left:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right-width:6px;border-right-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message{margin-right:55px;text-align:right}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message .arrow{display:block;position:absolute;top:9px;right:-6px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left-width:6px;border-left-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .datetime,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .name{text-align:right}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-form{padding:20px 10px 15px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-form .input-group .form-control{font-size:13px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .label{margin-top:5px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .desc{padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li .bootstrap-switch{margin-top:-3px;float:right;border:0;min-width:59px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li .form-control{width:75px!important;padding:4px!important;float:right;border:0;margin-top:-4px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li select.form-control{padding:4px 0!important}.page-title{padding:0;font-size:28px;letter-spacing:-1px;display:block;color:#666;margin:0 0 15px;font-weight:300;font-family:"Open Sans",sans-serif}.page-title small{font-size:14px;letter-spacing:0;font-weight:300;color:#888}.page-container-bg-solid .page-title{color:#666;margin-bottom:20px;margin-top:20px}.page-container-bg-solid .page-title small{color:#666}.page-bar{padding:0;background-color:#f7f7f7;margin-bottom:25px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-bar:after,.page-bar:before{content:" ";display:table}.page-bar .page-breadcrumb{display:inline-block;float:left;padding:8px;margin:0;list-style:none}.page-bar .page-breadcrumb>li{display:inline-block}.ie8 .page-bar .page-breadcrumb>li{margin-right:1px}.page-bar .page-breadcrumb>li>a,.page-bar .page-breadcrumb>li>span{color:#888;font-size:14px;text-shadow:none}.page-bar .page-breadcrumb>li>i{color:#aaa;font-size:14px;text-shadow:none}.page-bar .page-breadcrumb>li>i[class*=icon-],.page-bar .page-breadcrumb>li>i[class^=icon-]{color:gray}.page-bar .page-toolbar{display:inline-block;float:right;padding:0}.page-bar .page-toolbar .btn-fit-height{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;padding-top:8px;padding-bottom:8px}.page-container-bg-solid .page-bar{position:relative;padding:0 20px;background-color:#fff;margin:-25px -20px 0}.page-container-bg-solid .page-bar .page-breadcrumb{padding:11px 0}.page-container-bg-solid .page-bar .page-breadcrumb>li>a,.page-container-bg-solid .page-bar .page-breadcrumb>li>span{color:#888}.page-container-bg-solid .page-bar .page-breadcrumb>li>i{color:#aaa}.page-container-bg-solid .page-bar .page-breadcrumb>li>i[class*=icon-],.page-container-bg-solid .page-bar .page-breadcrumb>li>i[class^=icon-]{color:#8c8c8c}.page-container-bg-solid .page-bar .page-toolbar{padding:6px 0}.page-container-bg-solid .page-bar .page-toolbar .btn{margin-top:-2px}.page-container-bg-solid .page-bar .page-toolbar .btn.btn-sm{margin-top:0}.page-content{margin-top:0;padding:0;background-color:#fff}.page-container-bg-solid .page-content{background:#F1F3FA}.page-full-width .page-content{margin-left:0!important}@media (min-width:992px){.page-content-wrapper{float:left;width:100%}.page-content-wrapper .page-content{margin-left:235px;margin-top:0;min-height:600px;padding:25px 20px 10px}.page-content-wrapper .page-content.no-min-height{min-height:auto}.page-sidebar-fixed.page-sidebar-hover-on .page-content-wrapper .page-content{margin-left:45px}.page-sidebar-reversed .page-content-wrapper .page-content{margin-left:0!important;margin-right:235px!important}.page-sidebar-reversed.page-sidebar-fixed.page-sidebar-hover-on .page-content-wrapper .page-content{margin-left:0;margin-right:45px}.page-sidebar-reversed.page-sidebar-closed .page-content-wrapper .page-content{margin-left:0!important;margin-right:45px!important}.page-sidebar-closed .page-content-wrapper .page-content{margin-left:45px!important}.page-full-width .page-content-wrapper .page-content,.page-sidebar-closed.page-sidebar-hide .page-content-wrapper .page-content{margin-left:0!important}.page-sidebar-closed.page-sidebar-reversed.page-sidebar-hide .page-content-wrapper .page-content{margin-right:0!important}}@media (max-width:991px){.page-container-bg-solid .page-bar{margin-top:-20px}.page-boxed>.container{max-width:none!important;margin:0!important;padding:0!important}.page-content-wrapper .page-content{margin:0!important;padding:20px!important;min-height:280px}}@media (min-width:768px) and (max-width:991px){.page-boxed>.container{margin:auto!important}}@media (max-width:767px){.page-content-wrapper .page-content{padding:20px 10px 10px!important;overflow:hidden}.page-content-wrapper .page-content .page-title{margin-bottom:20px;font-size:18px}.page-content-wrapper .page-content .page-title small{font-size:13px;padding-top:3px}}@media (max-width:480px){.page-content-wrapper .page-content .page-title small{display:block;clear:both}}.page-footer{padding:8px 20px 5px;font-size:12px;height:33px}.page-footer:after,.page-footer:before{content:" ";display:table}.page-footer .page-footer-inner{float:left;display:inline-block}.page-footer-fixed.page-footer-fixed-mobile .page-footer{position:fixed;left:0;right:0;z-index:10000;bottom:0}.page-footer-fixed.page-footer-fixed-mobile.page-sidebar-fixed .page-footer{margin-left:0!important}@media (min-width:992px){.page-footer{clear:left}.page-footer-fixed .page-footer{position:fixed;left:0;right:0;z-index:10000;bottom:0}.page-sidebar-fixed.page-sidebar-closed .page-footer{margin-left:45px}.page-sidebar-fixed.page-footer-fixed .page-footer{margin-left:0!important}.page-sidebar-fixed .page-footer{margin-left:235px;padding:8px 20px 5px}.page-boxed .page-footer{padding:8px 0 5px}.page-boxed.page-sidebar-fixed .page-footer{padding-right:20px;padding-left:20px}.page-sidebar-reversed.page-sidebar-fixed .page-footer{margin-left:0;margin-right:235px;padding:8px 20px 5px}.page-sidebar-reversed.page-sidebar-fixed.page-footer-fixed .page-footer{margin-left:0;margin-right:0}.page-sidebar-reversed.page-sidebar-fixed.page-sidebar-closed .page-footer{margin-right:45px}}.aside .aside-dialog .aside-footer:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.container-fluid:after,.container:after,.dataTable,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after,.scroller-footer:after{clear:both}@media (max-width:991px){.page-boxed .page-footer{padding-left:0;padding-right:0}}@media (max-width:767px){.page-boxed .page-footer,.page-footer{padding-left:10px;padding-right:10px}.page-footer-fixed .page-footer .container{padding-left:0;padding-right:0}}.scroll-to-top{padding:1px;text-align:center;position:fixed;bottom:10px;z-index:10001;display:none;right:10px}.theme-panel>.toggler,.theme-panel>.toggler-close{padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;top:4px;cursor:pointer}.scroll-to-top>i{display:inline-block;color:#687991;font-size:30px;opacity:.6;filter:alpha(opacity=60)}.scroll-to-top:hover{cursor:pointer}.scroll-to-top:hover>i{opacity:1;filter:alpha(opacity=100)}@media (min-width:992px){.scroll-to-top{right:20px}}@media (max-width:991px){.scroll-to-top{bottom:10px;right:10px}.scroll-to-top>i{font-size:28px}}.theme-panel{width:420px;margin-top:-13px;margin-right:0;z-index:100;float:right;position:relative}.theme-panel>.toggler{right:0;position:absolute;background:url(../img/icon-color.png) center no-repeat #d5dade;border-radius:4px}.theme-panel>.toggler:hover{background-color:#3d3d3d!important}.theme-panel>.toggler-close{display:none;right:0;z-index:101;position:absolute;background:url(../img/icon-color-close.png) center no-repeat #3d3d3d!important;border-radius:4px}.theme-panel>.toggler-close:hover{background-color:#222!important}.theme-panel>.theme-options{top:4px;right:0;display:none;position:absolute;z-index:100;background:#3d3d3d;box-shadow:5px 5px rgba(61,61,61,.1);-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.modal-open .colorpicker,.modal-open .datepicker,.modal-open .daterangepicker,.modal-open .datetimepicker{z-index:10055!important}.theme-panel>.theme-options>.theme-option{color:#cfcfcf;padding:10px;border-top:1px solid #444;margin-top:0;margin-bottom:0}.theme-panel>.theme-options>.theme-option>span{text-transform:uppercase;display:inline-block;width:145px;font-size:13px;font-weight:300}.theme-panel>.theme-options>.theme-option>select.form-control{display:inline;width:135px;padding:2px;text-transform:lowercase}.theme-panel>.theme-options>.theme-option.theme-colors{border-top:0}.theme-panel>.theme-options>.theme-option.theme-colors>span{display:block;width:auto}.theme-panel>.theme-options>.theme-option.theme-colors>ul{list-style:none;padding:0;display:block;margin-bottom:10px!important;margin-top:15px}.colorpicker.dropdown-menu,.daterangepicker.dropdown-menu,.datetimepicker.dropdown-menu{padding:5px}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li{width:40px;height:40px;margin:0 4px;cursor:pointer;list-style:none;float:left;border:1px solid #707070}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li:first-child{margin-left:0}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.current,.theme-panel>.theme-options>.theme-option.theme-colors>ul>li:hover{border:2px solid #d64635}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-default{background:#333438}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-darkblue{background:#2b3643}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-blue{background:#2D5F8B}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-grey{background:#697380}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-light{background:#F9FAFD}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-light2{background:#F1F1F1}.page-container-bg-solid .theme-panel{position:absolute;margin-top:30px;margin-right:20px;right:0}.page-container-bg-solid .theme-panel>.toggler{background:url(../img/icon-color.png) center no-repeat #BFCAD1}.page-container-bg-solid.page-sidebar-reversed .theme-panel{margin-right:255px}.page-on-load{background:#fefefe}.datepicker .active,.datepicker .active:hover,.datepicker .selected,.datepicker .today{background-image:none!important;filter:none!important}.page-on-load .page-container,.page-on-load .page-footer,.page-on-load .page-header,.page-on-load>.clearfix{display:none;transition:all 2s}.input-group.color .input-group-btn i{position:absolute;display:block;cursor:pointer;width:20px;height:20px;right:6px}.datepaginator a{font-family:'Open Sans';font-size:13px;font-weight:300}.datepicker table td,.datepicker table th,.datetimepicker table td,.datetimepicker table th{font-family:'Open Sans'!important}#dp-calendar{right:4px!important}.datepaginator .fa-angle-right:before{content:"\f105"}.datepaginator .fa-angle-left:before{content:"\f104"}.datepicker.dropdown-menu{padding:5px;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #efefef}.datepicker .selected{background-color:#909090!important}.datepicker .active{background-color:#4b8df8!important}.datepicker .active:hover{background-color:#2678FC!important}.datepicker .input-daterange input{text-align:left}.datepicker table td{color:#000;font-weight:300!important}.datepicker table th{color:#333;font-weight:400!important}.daterangepicker{margin-top:4px}.daterangepicker td{text-shadow:none}.daterangepicker td.active{background-color:#4b8df8;background-image:none;filter:none}.datetimepicker .active,.datetimepicker .active:hover{filter:none!important;background-image:none!important}.daterangepicker th{font-weight:400;font-size:14px}.daterangepicker .ranges input[type=text]{width:70px!important;font-size:11px;vertical-align:middle}.daterangepicker .ranges label{font-weight:300;display:block}.daterangepicker .ranges .btn{margin-top:10px}.daterangepicker .ranges li{color:#333}.daterangepicker .ranges li.active,.daterangepicker .ranges li:hover{background:#4b8df8!important;border:1px solid #4b8df8!important;color:#fff}.daterangepicker .range_inputs input{margin-bottom:0!important}.daterangepicker .fa-angle-right:before{content:"\f105"}.daterangepicker .fa-angle-left:before,.datetimepicker .fa-angle-left:before{content:"\f104"}.datetimepicker table td{color:#000;font-weight:300!important}.datetimepicker table th{font-weight:400!important}.datetimepicker .active{background-color:#4b8df8!important}.datetimepicker .active:hover{background-color:#2678FC!important}.datetimepicker .fa-angle-right:before{content:"\f105"}.editable-input table,.editable-input table td,.editable-input table th,.editable-input table tr{border:0!important}.editable-input .combodate select{margin-bottom:5px}.fileinput{margin-bottom:0}.fileinput .close{float:none}.fileinput .input-group{white-space:nowrap;overflow:hidden}.md-input{padding:5px!important;border-bottom:0!important;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.md-editor{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.md-editor .btn-toolbar{margin-left:0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.md-editor .btn-toolbar .btn-group .btn-sm.btn{padding-bottom:3px}.md-editor .btn-toolbar .btn-group .btn-primary{padding-top:5px;padding-bottom:7px}.md-editor.active{border:1px solid #999;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.has-error .md-editor{border:1px solid #ebccd1!important}.has-success .md-editor{border:1px solid #d6e9c6!important}.has-warning .md-editor{border:1px solid #faebcc!important}.modal-open.page-overflow .modal-scrollable,.modal-open.page-overflow .page-container,.modal-open.page-overflow .page-container .navbar-fixed-bottom,.modal-open.page-overflow .page-container .navbar-fixed-top{overflow-y:auto!important}.modal-scrollable{overflow:hidden!important}.modal-backdrop{position:fixed}.bootstrap-select .btn{border-color:#e5e5e5}.has-error .bootstrap-select .btn{border-color:#ebccd1}.has-success .bootstrap-select .btn{border-color:#d6e9c6}.has-warning .bootstrap-select .btn{border-color:#faebcc}.bootstrap-select.open .btn,.bootstrap-select.open.dropup .btn{border-color:#999}.bootstrap-select .btn:focus{outline:0!important;outline-offset:0}.bootstrap-select.btn-group .dropdown-menu{margin-top:1px}.bootstrap-select.btn-group .dropdown-menu>li>dt>.text{font-weight:600;font-family:'Open Sans';font-size:14px}.bootstrap-select.btn-group .dropdown-menu .text-muted{color:#999!important}.bootstrap-select .caret{border:0;width:auto;height:auto;margin-top:-10px!important}.bootstrap-select .caret:before{content:"\f107";display:inline-block;border:0;font-family:FontAwesome;font-style:normal;font-weight:400}.form-wizard .steps>li>a.step>.desc,.form-wizard .steps>li>a.step>.number{display:inline-block;font-size:16px;font-weight:300}.bootstrap-select .selected i{color:#aaa}.bootstrap-select .dropdown-menu{z-index:9999!important}.bootstrap-switch{border-color:#e5e5e5}.bootstrap-switch.bootstrap-switch-focused{box-shadow:none;border-color:#e5e5e5}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{color:#fff;background:#428bca}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info{color:#fff;background:#89C4F4}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{color:#fff;background:#45B6AF}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning{color:#fff;background:#dfba49}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:#fff;background:#F3565D}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default{color:#444;background:#ececec}.portlet>.portlet-title>.actions>.bootstrap-switch{border-color:transparent;margin-top:0}.bootstrap-timepicker-widget table td a{padding:4px 0}.bootstrap-timepicker-widget input,.bootstrap-timepicker-widget input:focus{outline:0!important;border:0}.modal-open .bootstrap-timepicker-widget{z-index:10055!important}.bootstrap-timepicker-widget.timepicker-orient-bottom:after,.bootstrap-timepicker-widget.timepicker-orient-bottom:before{top:auto}.toast{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}.toast .toast-close-button{display:inline-block;margin-top:0;margin-right:0;text-indent:-100000px;width:11px;height:16px;background-repeat:no-repeat!important;background-image:url(../../assets/images/portlet-remove-icon-white.png)!important}.form-wizard .steps,.form-wizard .steps>li>a.step{background-color:#fff;background-image:none;border:0;box-shadow:none;filter:none}.toast-top-center{top:12px;margin:0 auto 0 -150px;left:50%}.toast-bottom-center{bottom:12px;margin:0 auto 0 -150px;left:50%}.form-wizard .progress{margin-bottom:30px}.form-wizard .steps{padding:10px 0;margin-bottom:15px}.form-wizard .steps>li>a.step:hover{background:0 0}.form-wizard .steps>li>a.step>.number{background-color:#eee;text-align:center!important;padding:11px 15px 13px;margin-right:10px;height:45px;width:45px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;border-radius:50%!important}.form-wizard .steps>li>a.step>.desc>i{display:none}.form-wizard .steps>li.active>a.step .number{background-color:#45B6AF;color:#fff}.form-wizard .steps>li.active>a.step .desc{color:#333}.form-wizard .steps>li.done>a.step .number{background-color:#dfba49;color:#fff}.form-wizard .steps>li.done>a.step .desc{color:#333}.form-wizard .steps>li.done>a.step .desc i{font-size:12px;font-weight:400;color:#999;display:inline-block}@media (min-width:768px) and (max-width:1200px){.form-wizard .step .desc{margin-top:10px;display:block}}.wysihtml5-sandbox{width:100%!important}.wysihtml5-toolbar li{margin:0;height:29px}.wysihtml5-toolbar li .dropdown-menu{margin-top:5px}.has-error .wysihtml5-sandbox{border:1px solid #ebccd1!important}.has-success .wysihtml5-sandbox{border:1px solid #d6e9c6!important}.has-warning .wysihtml5-sandbox{border:1px solid #faebcc!important}.note-editor{border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.note-editor .note-toolbar{border-bottom:1px solid #e5e5e5;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.note-editor .note-statusbar{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.note-editor .note-statusbar .note-resizebar{border-top:1px solid #e5e5e5}.note-editor.fullscreen{z-index:11000;width:100%!important}.note-editor .dropdown-menu:before{left:9px;right:auto}.note-editor .dropdown-menu:after{left:10px;right:auto}.note-link-dialog .checkbox{margin-left:20px}.has-error .note-editor{border:1px solid #ebccd1!important}.has-success .note-editor{border:1px solid #d6e9c6!important}.has-warning .note-editor{border:1px solid #faebcc!important}.bootbox .bootbox-close-button{margin-top:0!important}.cke{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.cke .cke-top{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.cke .cke-bottom{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.cke_bottom,.cke_dialog,.cke_dialog_footer,.cke_dialog_title,.cke_inner,.cke_reset,.cke_top{background-image:none!important;filter:none;border-top:0;border-bottom:0;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-shadow:none}.cke_dialog_tab,.cke_dialog_ui_button,.cke_dialog_ui_input_text{filter:none;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;background-image:none!important}.cke_dialog_tab,.cke_dialog_ui_button{box-shadow:none!important;text-shadow:none!important}.cke_dialog_tab:hover,.cke_dialog_ui_button:hover{text-decoration:none;text-shadow:none}.cke_dialog_ui_input_text{box-shadow:none!important}.cke_button,.cke_combo_button,.cke_toolbar,.cke_toolgroup{background-image:none!important;filter:none!important;border:0;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.cke_button,.cke_combo_button,.cke_hc.cke_panel_listItem a,.cke_panel_grouptitle{background-image:none!important;filter:none;text-shadow:none}.cke_button:hover,.cke_combo_button:hover{background-color:#ddd}.cke_toolbar_break{background-image:none!important;filter:none!important;border:0;box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-ms-box-shadow:none!important;-o-box-shadow:none!important}.has-error .cke{border:1px solid #ebccd1!important}.has-success .cke{border:1px solid #d6e9c6!important}.has-warning .cke{border:1px solid #faebcc!important}.modal-open .clockface{z-index:10055!important}.clockface .cell .inner.active,.clockface .cell .outer.active{background-color:#4b8df8!important;background-image:none;filter:none}.dataTable{width:100%;margin-top:5px}.dataTables_filter .form-control{margin-left:4px}.dataTables_filter label{line-height:32px}.dataTable .row-details{margin-top:3px;display:inline-block;cursor:pointer;width:14px;height:14px}.dataTable .row-details.row-details-close{background:url(../img/datatable-row-openclose.png) no-repeat}.dataTable .row-details.row-details-open{background:url(../img/datatable-row-openclose.png) 0 -23px no-repeat}.dataTable .details{background-color:#eee}.dataTable .details td,.dataTable .details th{padding:4px;background:0 0;border:0}.dataTable .details tr:hover td,.dataTable .details tr:hover th{background:0 0}.dataTable .details tr:nth-child(even) td,.dataTable .details tr:nth-child(even) th,.dataTable .details tr:nth-child(odd) td,.dataTable .details tr:nth-child(odd) th{background-color:#eee}.dataTable>thead>tr>th.sorting,.dataTable>thead>tr>th.sorting_asc,.dataTable>thead>tr>th.sorting_desc{padding-right:18px}.dataTable .table-checkbox{width:8px!important}@media (max-width:768px){.form-wizard .steps>li>a{text-align:left}.dataTables_wrapper .dataTables_filter .form-control,.dataTables_wrapper .dataTables_length .form-control{display:inline-block}.dataTables_wrapper .dataTables_info{top:17px}.dataTables_wrapper .dataTables_paginate{margin-top:-15px}}@media (max-width:480px){.dataTables_wrapper .dataTables_filter .form-control{width:175px!important}.dataTables_wrapper .dataTables_paginate{float:left;margin-top:20px}}.dataTables_processing{position:fixed;top:50%;left:50%;min-width:125px;margin-left:0;padding:7px;text-align:center;color:#333;font-size:13px;border:1px solid #ddd;background-color:#eee;vertical-align:middle;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.dataTables_processing span{line-height:15px;vertical-align:middle}.dataTables_empty{text-align:center}.tabletools-btn-group{margin:0 0 10px}.tabletools-btn-group>.btn{margin-right:5px}.tabletools-btn-group>.btn:last-child{margin-right:0}.tabletools-dropdown-on-portlet{margin-top:-55px;float:right}.tabletools-dropdown-on-portlet>.btn{margin-right:5px}.tabletools-dropdown-on-portlet>.btn:last-child{margin-right:0}.DTTT_Print{background-color:#fff}.DTTT_Print .DTTT_PrintMessage{display:none}@media print{.DTTT_Print .DTTT_PrintMessage{display:inline-block}}.DTTT_Print .DTTT_Print_Info{display:block;position:fixed;top:35px;font-size:18px;width:700px;left:50%;margin-left:-350px;text-align:center}.DTTT_Print .page-footer,.DTTT_Print .page-header,.DTTT_Print .page-sidebar{display:none}.DTTT_Print .page-content-wrapper{float:none}.DTTT_Print .row,.DTTT_Print [class*=col-]{padding:0;margin:0}.DTTT_Print .page-content{margin:50px auto!important;border:0!important;width:800px!important;padding:0!important}.DTTT_Print .page-content .portlet{border:0;padding:0}.DTTT_Print .page-content .portlet .portlet-body{padding:0}.DTTT_Print .page-content .dataTables_wrapper{padding:0;margin:0;box-shadow:5px 5px rgba(102,102,102,.1)}@media print{.DTTT_Print .page-content .dataTables_wrapper{box-shadow:none}}.paging_bootstrap_extended{margin:0!important;padding:0!important;float:none!important;font-size:13px}.dataTables_extended_wrapper .seperator{padding:0 2px}.dataTables_extended_wrapper div.dataTables_info,.dataTables_extended_wrapper div.dataTables_length,.dataTables_extended_wrapper div.dataTables_paginate{display:inline-block;float:none!important;padding:0!important;margin:0!important;position:static!important}@media (max-width:480px){.dataTables_extended_wrapper div.dataTables_info,.dataTables_extended_wrapper div.dataTables_length,.dataTables_extended_wrapper div.dataTables_paginate{display:block;margin-bottom:10px!important}.dataTables_extended_wrapper .seperator{display:none!important}}.dataTables_extended_wrapper div.dataTables_length label{margin:0!important;padding:0!important;font-size:13px;float:none!important;display:inline-block!important}.table-container .table-actions-wrapper{display:none}.dataTables_scroll{margin-bottom:10px}.dataTables_scrollHead{border-bottom:2px solid #ddd!important}.dataTables_scrollHead thead th{border-bottom:0!important}.dataTables_scrollBody{border-bottom:1px solid #ddd!important}.dropzone{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.fancybox-overlay{z-index:100000}.fancybox-opened{z-index:100001}.spinner-buttons.btn-group-vertical .btn{text-align:center;margin:0;height:17px;width:22px;padding-left:6px;padding-right:6px;padding-top:0}.page-style-rounded .spinner-buttons.btn-group-vertical .btn.spinner-up{border-radius:0;border-top-right-radius:4px!important}.page-style-rounded .spinner-buttons.btn-group-vertical .btn.spinner-down{border-radius:0 0 4px}.external-event{display:inline-block;cursor:move;margin-bottom:5px;margin-left:5px}.fc-scroller{overflow-y:auto;overflow-x:hidden}.fc-month-view .fc-scroller{height:auto!important}.portlet .event-form-title{font-size:14px;margin-top:4px;font-weight:400;margin-bottom:10px}.portlet.calendar .fc-button{box-shadow:none;text-shadow:none;border:0 #ddd;height:35px;padding:6px 8px 7px;margin-left:2px;background:0 0;color:#fff;top:-45px;outline:0!important;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;border-style:none solid}.portlet.calendar .fc-toolbar{margin-bottom:0}.portlet.calendar .fc-toolbar h2{margin-top:3px;font-size:17px}.portlet.calendar .fc-button .fc-icon-left-single-arrow,.portlet.calendar .fc-button .fc-icon-right-single-arrow{font-family:FontAwesome;font-size:16px}.portlet.calendar .fc-header{margin-bottom:-21px}.portlet.calendar .fc-button-prev{padding-right:10px;padding-left:8px}.portlet.calendar .fc-button-next{padding-right:8px;padding-left:10px}.portlet.calendar .fc-button.fc-state-active,.portlet.calendar .fc-button.fc-state-hover{color:#666;background-color:#fff}.portlet.calendar .fc-button.fc-state-disabled{color:#ddd}.portlet.calendar .fc-button .fc-icon-left-single-arrow:after{content:""}.portlet.calendar .fc-button .fc-icon-left-single-arrow:before{content:"\f104"}.portlet.calendar .fc-button .fc-icon-right-single-arrow:after{content:""}.portlet.calendar .fc-button .fc-icon-right-single-arrow:before{content:"\f105"}.portlet.calendar .fc-text-arrow{font-size:22px;font-family:"Courier New",Courier,monospace;vertical-align:baseline}.portlet.calendar .fc-event .fc-time,.portlet.calendar .fc-event .fc-title{text-align:left;color:#fff;font-size:13px;font-weight:300;float:left}.portlet.calendar .fc-event{border:0;background-color:#69a4e0;color:#fff}.portlet.calendar .fc-event .fc-content{border:0}.portlet.calendar .fc-header-title h2{font-size:14px;line-height:20px;font-weight:400;color:#111}.portlet.calendar .fc-widget-header{background-image:none;filter:none;background-color:#eee;text-transform:uppercase;font-weight:300}.portlet.calendar.light .fc-button{top:-60px;color:#666;text-transform:uppercase;font-size:12px;padding-bottom:35px}.portlet.calendar.light .fc-button .fc-text-arrow{margin-top:-6px;display:inline-block}.portlet.calendar.light .fc-button.fc-state-active,.portlet.calendar.light .fc-button.fc-state-hover{color:#333;border-bottom:2px solid #45B6AF}.portlet.calendar.light .fc-button.fc-state-disabled{color:#aaa}.portlet.calendar .mobile .fc-button{padding:0 6px 20px;margin-left:2px;border:0;background-color:#ddd;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;color:#000;text-shadow:none;text-align:center}.portlet.calendar .mobile .fc-button.fc-state-active,.portlet.calendar .mobile .fc-button.fc-state-hover{background-color:#eee}.portlet.calendar .mobile .fc-button.fc-state-disabled{color:#bbb}.portlet.calendar .mobile .fc-button-prev{margin-right:5px;margin-top:-2px}.portlet.calendar .mobile .fc-button-next{margin-right:0;margin-top:-2px}.portlet.calendar .mobile .fc-header-space{margin:0;padding:0;width:0}.portlet.calendar .mobile .fc-header-left{position:absolute;z-index:10}.portlet.calendar .mobile .fc-header-left .fc-button{top:-2px}.portlet.calendar .mobile .fc-header-right{position:relative;right:0}.portlet.calendar .mobile .fc-header-right .fc-button{top:35px}.portlet.calendar .mobile .fc-content{margin-top:53px}.gmaps{height:300px;width:100%}.gmaps img{max-width:none}#gmap_static div{background-repeat:no-repeat;background-position:50% 50%;display:block;height:300px}#gmap_routes_instructions{margin-top:10px;margin-bottom:0}#gritter-notice-wrapper{right:1px!important}.gritter-close{left:auto!important;right:3px!important}.gritter-title{font-family:"Open Sans";font-size:18px;font-weight:300}.easy-pie-chart .number{font-size:14px!important;position:relative;text-align:center;height:75px;line-height:75px}.easy-pie-chart .number canvas{position:absolute;top:0;left:0}.bs-example,.sparkline-chart,.vmaps{position:relative}.blueimp-gallery .close{background-image:url(../../assets/images/portlet-remove-icon-white.png)!important;margin-top:-2px}.blueimp-gallery .next,.blueimp-gallery .prev{border-radius:23px!important}.ms-container .ms-list{border:1px solid #e5e5e5;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ms-container .ms-optgroup-label{font-size:14px}.jquery-notific8-message,.ms-container .ms-selectable li.ms-elem-selectable,.ms-container .ms-selection li.ms-elem-selection{font-size:13px}.ms-container .ms-list.ms-focus{border-color:#999;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ms-container .ms-selectable li.ms-hover,.ms-container .ms-selection li.ms-hover{color:#333;background-color:#eee}.ms-container .form-control{margin-bottom:5px}[class*=jquery-notific8],[class*=jquery-notific8]:after,[class*=jquery-notific8]:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.left .jquery-notific8-close-sticky span,.right .jquery-notific8-close-sticky span{font-size:10px}.jquery-notific8-heading{font-weight:300;font-size:16px}.password-strength .password-verdict{display:inline-block;margin-top:6px;margin-left:5px}.password-strength .progress{margin-top:5px;margin-bottom:0}.password-strength .progress-bar{padding:2px}.scroller{padding:0 12px 0 0;margin:0;overflow:hidden}.scroller-footer{margin-top:10px}.scroller-footer:after,.scroller-footer:before{content:" ";display:table}.portlet-body .slimScrollBar{margin-right:0}.jqstooltip{width:auto!important;height:auto!important}.easy-pie-chart,.sparkline-chart{text-align:center}.sparkline-chart{margin-top:15px}.easy-pie-chart .number{font-weight:300;width:85px;margin:0 auto}.sparkline-chart .number{width:100px;margin:0 auto 10px}.easy-pie-chart .title,.sparkline-chart .title{display:block;text-align:center;color:#333;font-weight:300;font-size:16px;margin-top:5px;margin-bottom:10px}.easy-pie-chart .title:hover,.sparkline-chart .title:hover{color:#666;text-decoration:none}.easy-pie-chart .title>i,.sparkline-chart .title>i{margin-top:5px}div.tagsinput{min-height:35px;height:auto!important;margin:0;padding:5px 5px 0;overflow:auto}div.tagsinput span.tag{background:#aaa;color:#fff;border:0;padding:3px 6px;margin-top:0;margin-bottom:5px}div.tagsinput input{padding:3px 6px;width:75px!important}div.tagsinput span.tag a{color:#fff}div.tagsinput .not_valid{color:#fff;padding:3px 6px;background-color:#e02222}.slider{border:0;padding:0;display:block;margin:12px 5px;min-height:11px}.vakata-context li a .vakata-contextmenu-sep,.vakata-context li a i,iframe[src="about:blank"]{display:none}.ui-slider-vertical{width:11px}.ui-slider-horizontal .ui-slider-handle{top:-3px}.ui-slider-vertical .ui-slider-handle{left:-3px}.bs-example+.highlight:after,.bs-example:after{left:15px;text-transform:uppercase;letter-spacing:1px}.ui-slider-handle,.ui-slider-vertical{filter:none!important;background-image:none!important}.jqvmap-zoomin,.jqvmap-zoomout{height:16px;width:16px;background-color:#666}.vmaps{overflow:hidden;height:300px}.jstree-default .jstree-clicked{border:0;background-color:#e1e1e1;box-shadow:none}.jstree-default .jstree-hovered{border:0;background-color:#eee;box-shadow:none}.jstree-default .jstree-wholerow-clicked,.jstree-wholerow .jstree-wholerow-clicked{background:#e1e1e1;border:0;box-shadow:none}.jstree-default .jstree-wholerow-hovered,.jstree-wholerow .jstree-wholerow-hovered{border:0;background-color:#eee;box-shadow:none}.jstree-icon.icon-lg{margin-top:1px}.jstree-open>.jstree-anchor>.fa-folder:before{margin-left:2px;content:"\f07c"}.jstree-default.jstree-rtl .jstree-last{background:no-repeat}.vakata-context,.vakata-context ul{padding:0;min-width:125px;background-color:#fff;font-size:14px;font-family:"Segoe UI",Helvetica,Arial,sans-serif;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #efefef}.vakata-context li{border:0}.vakata-context li a{padding:0 10px;border:0}.vakata-context .vakata-context-hover>a,.vakata-context li a:hover{background-color:#eee;color:#333;box-shadow:none;margin:0}.vakata-context .vakata-context-hover>a .ins,.vakata-context .vakata-context-hover>a .span,.vakata-context li a:hover .ins,.vakata-context li a:hover .span{border:0!important}.vakata-context li a ins,.vakata-context li a span{display:none;border:0!important}.vakata-context .vakata-context-separator a,.vakata-context-rtl .vakata-context-separator a{margin:0;border:0}.jstree-rename-input{background-color:#fff!important;border:1px solid #e5e5e5!important;outline:0!important;padding:2px 6px!important;margin-right:-4px!important}.noUi-control{margin:9px 0}.noUi-primary .noUi-connect,.noUi-primary.noUi-connect{background:#428bca}.noUi-info .noUi-connect,.noUi-info.noUi-connect{background:#89C4F4}.noUi-success .noUi-connect,.noUi-success.noUi-connect{background:#45B6AF}.noUi-warning .noUi-connect,.noUi-warning.noUi-connect{background:#dfba49}.noUi-danger .noUi-connect,.noUi-danger.noUi-connect{background:#F3565D}.noUi-default .noUi-connect,.noUi-default.noUi-connect{background:#c6c6c6}.form-recaptcha-img{margin-bottom:10px;clear:both;border:1px solid #e5e5e5;padding:5px}.form-control .select2-choice{border:1px solid #e5e5e5;background-color:#fff;background-image:none;filter:none;height:34px;padding:3px 0 0 12px}.select2-container.select2-drop-above .select2-choice{border-bottom-color:#e5e5e5;background-color:#fff;background-image:none;filter:none}.select2-drop{border:1px solid #e5e5e5;background-color:#fff;background-image:none;-webkit-box-shadow:none;box-shadow:none;filter:none;border-top:0}.select2-drop-auto-width{border-top:1px solid #e5e5e5}.select2-drop.select2-drop-above{border-top:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none}.select2-drop-active{border:1px solid #999;border-top:0}.select2-container .select2-choice .select2-arrow{background-image:none;background-color:#fff;filter:none;border-left:1px solid #e5e5e5}.select2-container.select2-container-active .select2-arrow,.select2-container.select2-dropdown-open .select2-arrow{border-left:0!important}.select2-container .select2-choice .select2-arrow b{background-position:0 1px}.select2-search input{background-color:#fff!important;filter:none;margin:5px 0 0;border:1px solid #e5e5e5;webkit-appearance:none!important;color:#333;outline:0;height:auto!important;min-height:26px;padding:6px!important;line-height:20px;font-size:14px;font-weight:400;vertical-align:top;-webkit-box-shadow:none;box-shadow:none}.form-control.select2-container{border:0;height:auto!important;padding:0}.select2-container-active .select2-choice,.select2-container-active .select2-choices{border:1px solid #999!important;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-dropdown-open .select2-choice{border-bottom:0!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices{border:1px solid #999!important;border-top:0!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-drop.select2-drop-above.select2-drop-active{border:1px solid #999!important;border-bottom:0!important}.select2-dropdown-open .select2-choice .select2-arrow b{background-position:-18px 1px}.select2-results{margin:5px 0}.select2-results .select2-highlighted{background:#eee;color:#333}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:0 0}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{padding:3px 7px 4px;background:#f4f4f4;display:list-item}.select2-container-multi,.select2-container-multi .select2-choices{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.select2-container-multi.select2-dropdown-open,.select2-container-multi.select2-dropdown-open .select2-choices{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.select2-container-multi.select2-dropdown-open.select2-drop-above,.select2-container-multi.select2-dropdown-open.select2-drop-above .select2-choices{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.select2-container-multi .select2-choices{padding-left:6px;min-height:34px;border:1px solid #e5e5e5;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-container-multi.select2-container-active .select2-choices{border:1px solid #999!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-container-multi .select2-choices .select2-search-choice{padding:3px 5px 3px 18px;margin:5px 0 3px 5px;border:1px solid #e5e5e5;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.has-warning .select2-container .select2-choice,.has-warning .select2-container .select2-choices,.has-warning .select2-container.select2-dropdown-open .select2-choice,.has-warning .select2-container.select2-dropdown-open .select2-choices{border-color:#faebcc}.has-warning .select2-container.select2-dropdown-open .select2-choice>span{color:#faebcc}.has-error .select2-container .select2-choice,.has-error .select2-container .select2-choices,.has-error .select2-container.select2-dropdown-open .select2-choice,.has-error .select2-container.select2-dropdown-open .select2-choices{border-color:#ebccd1}.has-error .select2-container.select2-dropdown-open .select2-choice>span{color:#ebccd1}.has-success .select2-container .select2-choice,.has-success .select2-container .select2-choices,.has-success .select2-container.select2-dropdown-open .select2-choice,.has-success .select2-container.select2-dropdown-open .select2-choices{border-color:#d6e9c6}.has-success .select2-container.select2-dropdown-open .select2-choice>span{color:#d6e9c6}.modal-open .select2-drop-mask{z-index:10051}.modal-open .select2-drop{z-index:10052}.modal-open .select2-search{z-index:10053}.form-control.input-lg .select2-choice{height:46px;padding:10px 16px}.select2-container.input-lg .select2-choice .select2-arrow b{background-position:0 7px}.form-control.input-sm .select2-choice{height:30px;padding:1px 10px 5px}.select2-container.input-sm .select2-choice .select2-arrow b{background-position:0 0}.checker{margin-top:-2px!important;margin-right:2px!important}.checker input,.radio input{outline:0!important}.alert,.aside:focus,.btn[bs-select],.timepicker.dropdown-menu button,[tabindex="-1"]{outline:0}div.checker.disabled span,div.checker.disabled.active span{background-position:-152px -260px}div.checker.disabled:hover,div.radio.disabled:hover{cursor:not-allowed}div.checker,div.radio{margin-right:0;margin-left:3px}.portlet-body-morris-fit{margin-right:-20px;margin-left:-20px;margin-bottom:-15px}.portlet-body-morris-fit>svg{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.morris-hover.morris-default-style .morris-hover-row-label{text-align:left;font-weight:400;font-size:15px;color:#7D8C9D;font-family:"Open Sans",sans-serif}.morris-hover.morris-default-style .morris-hover-point{text-align:left;font-size:14px;font-weight:400;font-family:"Open Sans",sans-serif}.icheck-list>label{display:block;margin-bottom:8px}.icheck-list>label:last-child{margin-bottom:0}.form-horizontal .icheck-inline{margin-top:8px}.icheck-inline>label{display:inline-block;margin-left:15px}.icheck-inline>label:first-child{margin-left:0}div[class*=icheckbox_],div[class*=iradio_]{margin-right:5px;top:-1px!important}.icheck-colors{padding:0;margin:0;list-style:none}.icheck-colors>li{padding:0;margin:4px;float:left;display:inline-block;height:20px;width:20px;background:#000;opacity:.6;filter:alpha(opacity=60)}.icheck-colors>li:first-child{margin-left:0}.icheck-colors>li:hover{opacity:1;filter:alpha(opacity=100);cursor:pointer}.icheck-colors>li.active{height:26px;margin-top:0;opacity:.6;filter:alpha(opacity=60)}.icheck-colors>li.red{background:#d54e21}.icheck-colors>li.green{background:#78a300}.icheck-colors>li.blue{background:#0e76a8}.icheck-colors>li.aero{background:#9cc2cb}.icheck-colors>li.grey{background:#73716e}.icheck-colors>li.orange{background:#f70}.icheck-colors>li.yellow{background:#fc0}.icheck-colors>li.pink{background:#ff66b5}.icheck-colors>li.purple{background:#6a5a8c}.ui-select-match-close{margin-top:5px!important;margin-left:5px!important}.modal.disabled{-webkit-animation:noop!important;animation:noop!important}.modal.disabled.am-fade-and-slide-top .modal-dialog{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.modal.disabled.am-fade-and-scale .modal-dialog,.tab-pane.am-fade{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:backwards}.modal.disabled.am-fade-and-slide-top.ng-enter .modal-dialog{visibility:hidden;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.modal.disabled.am-fade-and-slide-top.ng-enter-active .modal-dialog,.modal.disabled.am-fade-and-slide-top.ng-leave-active .modal-dialog{visibility:visible}.modal.disabled.am-fade-and-slide-top.ng-leave .modal-dialog{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop}.modal.disabled.am-fade-and-scale .modal-dialog{animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;animation-fill-mode:backwards;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.modal.disabled.am-fade-and-scale.ng-enter .modal-dialog{visibility:hidden;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.modal.disabled.am-fade-and-scale.ng-enter-active .modal-dialog,.modal.disabled.am-fade-and-scale.ng-leave-active .modal-dialog{visibility:visible}.modal.disabled.am-fade-and-scale.ng-leave .modal-dialog{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut}@-webkit-keyframes noop{from,to{opacity:1}}@keyframes noop{from,to{opacity:1}}.bs-example{padding:45px 15px 15px;margin:0 -15px 15px;background-color:#fafafa;box-shadow:inset 0 3px 6px rgba(0,0,0,.05);border-color:#e5e5e5 #eee #eee;border-style:solid;border-width:1px 0}.bs-example:after{content:"Example";position:absolute;top:15px;font-size:12px;font-weight:700;color:#bbb}.bs-example+.highlight{margin:-15px -15px 15px;border-radius:0;border-width:0 0 1px}@media (min-width:768px){.bs-example,.bs-example+.highlight{margin-left:0;margin-right:0;border-width:1px}.bs-example{background-color:#fff;border-color:#ddd;border-radius:4px 4px 0 0;box-shadow:none}.bs-example+.highlight{margin-top:-16px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}}.bs-example .container{width:auto}.bs-example>.alert:last-child,.bs-example>.form-control:last-child,.bs-example>.jumbotron:last-child,.bs-example>.list-group:last-child,.bs-example>.navbar:last-child,.bs-example>.panel:last-child,.bs-example>.progress:last-child,.bs-example>.table-responsive:last-child>.table,.bs-example>.table:last-child,.bs-example>.well:last-child,.bs-example>blockquote:last-child,.bs-example>ol:last-child,.bs-example>p:last-child,.bs-example>ul:last-child{margin-bottom:0}.bs-example>p>.close{float:none}.bs-example .nav-tabs{margin-bottom:15px}.bs-footer{padding-top:40px;padding-bottom:30px;margin-top:100px;color:#787878;text-align:center;border-top:1px solid #e6e6e6}.bs-docs-nav .navbar-brand,.bs-masthead-links a{color:#fff}.bs-docs-nav,.bs-docs-nav .navbar-collapse{border-color:#a33f3e}.footer-links{margin:10px 0;padding-left:0}.footer-links li{display:inline;padding:0 2px}.footer-links li:first-child{padding-left:0}@media (min-width:768px){.bs-footer{text-align:left}.bs-footer p{margin-bottom:0}}.bs-masthead{position:relative;padding:30px 15px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.15)}.bs-masthead h1{font-size:50px;line-height:1;color:#fff}.bs-masthead .btn-outline-inverse{margin:10px}.bs-masthead-links{margin-top:20px;margin-bottom:40px;padding:0 15px;list-style:none;text-align:center}.bs-masthead-links li{display:inline}.bs-masthead-links li+li{margin-left:20px}@media (min-width:768px){.bs-masthead{text-align:left;padding-top:140px;padding-bottom:140px}.bs-masthead h1{font-size:100px}.bs-masthead .lead{margin-right:25%;font-size:30px}.bs-masthead .btn-outline-inverse{width:auto;margin:20px 5px 20px 0;padding:18px 24px;font-size:21px}.bs-masthead-links{padding:0;text-align:left}}.bs-docs-nav{background-color:#b94846;box-shadow:0 1px 0 rgba(255,255,255,.1);text-shadow:0 -1px 0 rgba(0,0,0,.15)}.bs-docs-nav .navbar-nav>li>a{-webkit-transition:color .15s linear;transition:color .15s linear;color:#f9f1f1}.bs-docs-nav .navbar-nav>li>a:hover{color:#fff}.bs-docs-nav .navbar-nav>.active>a,.bs-docs-nav .navbar-nav>.active>a:hover{background-color:#a33f3e;color:#fff}.bs-docs-nav .navbar-toggle{border-color:#b94846}.bs-docs-nav .navbar-toggle:hover{border-color:#a33f3e;background-color:#a33f3e}.bs-old-docs{padding:15px 20px;color:#787878;background-color:#fafafa;border-top:1px solid #fff;border-bottom:1px solid #e6e6e6}.bs-old-docs strong{color:#545454}@media (max-width:991px){.navbar-toggle{margin-left:15px;display:block!important;float:left}.bs-sidebar.affix{position:static!important}}.bs-header .container,.select.dropdown-menu.select-multiple li{position:relative}.bs-sidenav{margin-top:40px;margin-bottom:20px;width:124px}.bs-sidebar .nav>li>a{display:block;font-size:13px;font-weight:500;color:#999;padding:4px 15px;text-align:right}.bs-sidebar .nav>li>a:focus,.bs-sidebar .nav>li>a:hover{padding-right:14px;color:#b94846;text-decoration:none;background-color:transparent;border-right:1px solid #b94846}.bs-sidebar .nav>.active:focus>a,.bs-sidebar .nav>.active:hover>a,.bs-sidebar .nav>.active>a{padding-right:13px;font-weight:700;color:#b94846;background-color:transparent;border-right:2px solid #b94846}.bs-sidebar .nav .nav{display:none;padding-bottom:10px}.bs-sidebar .nav .nav>li>a{padding-top:2px;padding-bottom:2px;padding-right:30px;font-size:12px;font-weight:400}.bs-sidebar .nav .nav>li>a:focus,.bs-sidebar .nav .nav>li>a:hover{padding-right:29px}.bs-sidebar .nav .nav>.active:focus>a,.bs-sidebar .nav .nav>.active:hover>a,.bs-sidebar .nav .nav>.active>a{font-weight:500;padding-right:28px}@media (min-width:992px){.bs-sidebar .nav>.active>ul{display:block}.bs-sidebar.affix .bs-sidenav,.bs-sidebar.affix-bottom .bs-sidenav{margin-top:0;margin-bottom:0}}h1[id],h2[id]{margin-top:-45px}@media (min-width:1200px){.bs-sidebar{margin-right:30px}}.am-fade.aside-backdrop,.am-fade.modal-backdrop{background-color:rgba(0,0,0,.5)}.bs-docs-aside{min-width:200px}h1[id]{padding-top:80px}h2[id]{padding-top:60px}.bs-header{padding:30px 15px 40px;font-size:16px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.15)}.bs-header h1{color:#fff}.bs-header p{font-weight:300;line-height:1.5}@media (min-width:768px){.bs-header{font-size:21px;text-align:left}.bs-header h1{font-size:60px;line-height:1}}@media (min-width:992px){.bs-header h1,.bs-header p{margin-right:300px}}.highlight{display:none;padding:9px 14px;margin-bottom:14px;background-color:#f6f6f8;border:1px solid #e2e2e9;border-radius:4px}.highlight pre{padding:0;margin-top:0;margin-bottom:0;background-color:transparent;border:0;white-space:nowrap}.highlight pre code{font-size:inherit;color:#333}.highlight pre .lineno{display:inline-block;width:22px;padding-right:5px;margin-right:10px;text-align:right;color:#bebec5}@media (min-width:481px){.highlight{display:block}}input.ng-dirty.ng-invalid,select.ng-dirty.ng-invalid,textarea.ng-dirty.ng-invalid{color:#b94a48;border-color:#ee5f5b}input.ng-dirty.ng-invalid:focus,select.ng-dirty.ng-invalid:focus,textarea.ng-dirty.ng-invalid:focus{border-color:#e9322d;box-shadow:0 0 6px #f8b9b7}input:focus.ng-pristine.ng-invalid,select:focus.ng-pristine.ng-invalid,textarea:focus.ng-pristine.ng-invalid{color:#555;border:1px solid #ccc;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}input:focus.ng-pristine.ng-invalid:focus,select:focus.ng-pristine.ng-invalid:focus,textarea:focus.ng-pristine.ng-invalid:focus{border-color:rgba(82,168,236,.8);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}body .modal{overflow-y:hidden}body.modal-open{overflow-y:visible!important}.lt-ie9 .bs-sidebar{display:none!important}.modal-backdrop{z-index:1040;bottom:0}.select.dropdown-menu.select-multiple li>i{color:#fff;display:none;position:absolute;top:5px;right:10px}.bs-example+.highlight,body{position:relative}.alert.bottom-right,.alert.top,.alert.top-right{right:0}.select.dropdown-menu.select-multiple li.active>i{display:block}body{padding-top:50px}.bs-example-scope{font-size:85%}.bs-example-scope+.bs-example{margin:-15px -15px 15px}.bs-example-scope+.bs-example+.highlight>pre{border-radius:0 0 4px 4px}.aside.bs-docs-aside .aside-header{background:#b94846}.aside.bs-docs-aside .nav{margin:0}.bs-docs-social{max-height:200px}.bs-docs-social ul{list-style:none;padding:1em 0 0}.bs-docs-social ul li{height:30px}@media (max-width:991px){.bs-docs-social ul li{display:inline-block}}.bs-docs-home,.bs-header{color:#fff;background:url(../assets/images/triangular-red.png) #b94846;padding-bottom:20px}pre>code{background:0 0}.bs-example+.highlight code{padding:2.5em .5em 1em}.alert.bottom-right .close,.alert.top-right .close{padding-left:10px}.alert.bottom-left .close,.alert.top-left .close{padding-right:10px}.bs-example+.highlight:after{content:"Source";position:absolute;top:15px;font-size:12px;font-weight:700;color:#bbb}.edit-plunkr,.panel-heading[role=tab] .panel-title a,a[ng-click],input[type=checkbox]{cursor:pointer}.twitter-follow-button{position:relative;top:5px;margin-left:10px}.tab-pane.am-fade{animation-duration:.3s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards;opacity:1}.am-collapse,.panel-collapse.am-collapse{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:backwards;overflow:hidden}.panel-collapse.am-collapse{animation-duration:.3s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards}.am-collapse,.am-flip-x{-webkit-animation-timing-function:ease}.panel-collapse.am-collapse2{-webkit-transition:.3s ease max-height;transition:.3s ease max-height;max-height:100px;overflow:hidden}.panel-collapse.am-collapse2.in-remove{max-height:100px;display:block}.panel-collapse.am-collapse2.in-add{max-height:0}@-webkit-keyframes expand{from{max-height:0}to{max-height:100px}}@keyframes expand{from{max-height:0}to{max-height:100px}}@-webkit-keyframes collapse{from{max-height:100px}to{max-height:0}}@keyframes collapse{from{max-height:100px}to{max-height:0}}.am-collapse{animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:backwards;opacity:1}.am-fade,.am-flip-x{-webkit-animation-fill-mode:backwards}.am-collapse.am-collapse-add,.am-collapse.ng-hide-remove,.am-collapse.ng-move{-webkit-animation-name:expand;animation-name:expand}.am-collapse.am-collapse-remove,.am-collapse.ng-hide{-webkit-animation-name:collapse;animation-name:collapse}.am-collapse.ng-enter{visibility:hidden;-webkit-animation-name:expand;animation-name:expand;-webkit-animation-play-state:paused;animation-play-state:paused}.am-collapse.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-collapse.ng-leave{-webkit-animation-name:collapse;animation-name:collapse;-webkit-animation-play-state:paused;animation-play-state:paused}.am-collapse.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes expand{from{max-height:0}to{max-height:500px}}@keyframes expand{from{max-height:0}to{max-height:500px}}@-webkit-keyframes collapse{from{max-height:500px}to{max-height:0}}@keyframes collapse{from{max-height:500px}to{max-height:0}}.panel-collapse.am-collapse.in-remove{-webkit-animation-name:collapse;animation-name:collapse;display:block}.panel-collapse.am-collapse.in-add{-webkit-animation-name:expand;animation-name:expand}.am-fade{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;animation-fill-mode:backwards;opacity:1}.am-fade.am-fade-add,.am-fade.ng-hide-remove,.am-fade.ng-move{-webkit-animation-name:fadeIn;animation-name:fadeIn}.am-fade.am-fade-remove,.am-fade.ng-hide{-webkit-animation-name:fadeOut;animation-name:fadeOut}.am-fade.ng-enter{visibility:hidden;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade.ng-leave{-webkit-animation-name:fadeOut;animation-name:fadeOut;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}.tab-pane.am-fade.active-remove{display:none!important}.tab-pane.am-fade.active-add{-webkit-animation-name:fadeIn;animation-name:fadeIn}.aside-backdrop.am-fade,.modal-backdrop.am-fade{background:rgba(0,0,0,.5);-webkit-animation-duration:.15s;animation-duration:.15s}.aside-backdrop.am-fade.ng-leave,.modal-backdrop.am-fade.ng-leave{-webkit-animation-delay:.3s;animation-delay:.3s}.am-flip-x{-webkit-animation-duration:.4s;animation-duration:.4s;animation-timing-function:ease;animation-fill-mode:backwards}.am-flip-x-linear,.am-slide-top{-webkit-animation-fill-mode:backwards}.am-flip-x.am-flip-x-add,.am-flip-x.ng-hide-remove,.am-flip-x.ng-move{-webkit-animation-name:flipInXBounce;animation-name:flipInXBounce}.am-flip-x.am-flip-x-remove,.am-flip-x.ng-hide{-webkit-animation-name:flipOutX;animation-name:flipOutX}.am-flip-x.ng-enter{visibility:hidden;-webkit-animation-name:flipInXBounce;animation-name:flipInXBounce;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x.ng-leave{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x-linear{-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards}.am-slide-right,.am-slide-top{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-flip-x-linear.am-flip-x-add,.am-flip-x-linear.ng-hide-remove,.am-flip-x-linear.ng-move{-webkit-animation-name:flipInX;animation-name:flipInX}.am-flip-x-linear.am-flip-x-remove,.am-flip-x-linear.ng-hide{-webkit-animation-name:flipOutX;animation-name:flipOutX}.am-flip-x-linear.ng-enter{visibility:hidden;-webkit-animation-name:flipInX;animation-name:flipInX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x-linear.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x-linear.ng-leave{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x-linear.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes flipInX{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@keyframes flipInX{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@-webkit-keyframes flipInXBounce{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-transform:perspective(400px) rotateX(-10deg);transform:perspective(400px) rotateX(-10deg)}70%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@keyframes flipInXBounce{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-transform:perspective(400px) rotateX(-10deg);transform:perspective(400px) rotateX(-10deg)}70%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@-webkit-keyframes flipOutX{from{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}@keyframes flipOutX{from{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}.am-slide-top{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-slide-bottom,.am-slide-right{-webkit-animation-fill-mode:backwards}.am-slide-top.am-slide-top-add,.am-slide-top.ng-hide-remove,.am-slide-top.ng-move{-webkit-animation-name:slideFromTop;animation-name:slideFromTop}.am-slide-top.am-slide-top-remove,.am-slide-top.ng-hide{-webkit-animation-name:slideToTop;animation-name:slideToTop}.am-slide-top.ng-enter{visibility:hidden;-webkit-animation-name:slideFromTop;animation-name:slideFromTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-top.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-top.ng-leave{-webkit-animation-name:slideToTop;animation-name:slideToTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-top.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-right{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-slide-bottom,.am-slide-left{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-slide-right.am-slide-right-add,.am-slide-right.ng-hide-remove,.am-slide-right.ng-move{-webkit-animation-name:slideFromRight;animation-name:slideFromRight}.am-slide-right.am-slide-right-remove,.am-slide-right.ng-hide{-webkit-animation-name:slideToRight;animation-name:slideToRight}.am-slide-right.ng-enter{visibility:hidden;-webkit-animation-name:slideFromRight;animation-name:slideFromRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-right.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-right.ng-leave{-webkit-animation-name:slideToRight;animation-name:slideToRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-right.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-bottom{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-top,.am-slide-left{-webkit-animation-fill-mode:backwards}.am-slide-bottom.am-slide-bottom-add,.am-slide-bottom.ng-hide-remove,.am-slide-bottom.ng-move{-webkit-animation-name:slideFromBottom;animation-name:slideFromBottom}.am-slide-bottom.am-slide-bottom-remove,.am-slide-bottom.ng-hide{-webkit-animation-name:slideToBottom;animation-name:slideToBottom}.am-slide-bottom.ng-enter{visibility:hidden;-webkit-animation-name:slideFromBottom;animation-name:slideFromBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-bottom.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-bottom.ng-leave{-webkit-animation-name:slideToBottom;animation-name:slideToBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-bottom.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-left{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-right,.am-fade-and-slide-top{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-slide-left.am-slide-left-add,.am-slide-left.ng-hide-remove,.am-slide-left.ng-move{-webkit-animation-name:slideFromLeft;animation-name:slideFromLeft}.am-slide-left.am-slide-left-remove,.am-slide-left.ng-hide{-webkit-animation-name:slideToLeft;animation-name:slideToLeft}.am-slide-left.ng-enter{visibility:hidden;-webkit-animation-name:slideFromLeft;animation-name:slideFromLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-left.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-left.ng-leave{-webkit-animation-name:slideToLeft;animation-name:slideToLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-left.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes slideFromTop{from{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes slideFromTop{from{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@-webkit-keyframes slideToTop{to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes slideToTop{to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@-webkit-keyframes slideFromRight{from{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes slideFromRight{from{-webkit-transform:translateX(100%);transform:translateX(100%)}}@-webkit-keyframes slideToRight{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes slideToRight{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@-webkit-keyframes slideFromBottom{from{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes slideFromBottom{from{-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes slideToBottom{to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes slideToBottom{to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes slideFromLeft{from{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes slideFromLeft{from{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@-webkit-keyframes slideToLeft{to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes slideToLeft{to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.am-fade-and-slide-top{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-top.am-fade-and-slide-top-add,.am-fade-and-slide-top.ng-hide-remove,.am-fade-and-slide-top.ng-move{-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.am-fade-and-slide-top.am-fade-and-slide-top-remove,.am-fade-and-slide-top.ng-hide{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop}.am-fade-and-slide-top.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-top.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-top.ng-leave{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-top.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-right{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-bottom,.am-fade-and-slide-left{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-fade-and-slide-right.am-fade-and-slide-right-add,.am-fade-and-slide-right.ng-hide-remove,.am-fade-and-slide-right.ng-move{-webkit-animation-name:fadeAndSlideFromRight;animation-name:fadeAndSlideFromRight}.am-fade-and-slide-right.am-fade-and-slide-right-remove,.am-fade-and-slide-right.ng-hide{-webkit-animation-name:fadeAndSlideToRight;animation-name:fadeAndSlideToRight}.am-fade-and-slide-right.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromRight;animation-name:fadeAndSlideFromRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-right.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-right.ng-leave{-webkit-animation-name:fadeAndSlideToRight;animation-name:fadeAndSlideToRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-right.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-bottom{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-bottom.am-fade-and-slide-bottom-add,.am-fade-and-slide-bottom.ng-hide-remove,.am-fade-and-slide-bottom.ng-move{-webkit-animation-name:fadeAndSlideFromBottom;animation-name:fadeAndSlideFromBottom}.am-fade-and-slide-bottom.am-fade-and-slide-bottom-remove,.am-fade-and-slide-bottom.ng-hide{-webkit-animation-name:fadeAndSlideToBottom;animation-name:fadeAndSlideToBottom}.am-fade-and-slide-bottom.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromBottom;animation-name:fadeAndSlideFromBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-bottom.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-bottom.ng-leave{-webkit-animation-name:fadeAndSlideToBottom;animation-name:fadeAndSlideToBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-bottom.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-left{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-left.am-fade-and-slide-left-add,.am-fade-and-slide-left.ng-hide-remove,.am-fade-and-slide-left.ng-move{-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-name:fadeAndSlideFromLeft;animation-name:fadeAndSlideFromLeft}.am-fade-and-slide-left.am-fade-and-slide-left-remove,.am-fade-and-slide-left.ng-hide{-webkit-animation-name:fadeAndSlideToLeft;animation-name:fadeAndSlideToLeft}.am-fade-and-slide-left.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromLeft;animation-name:fadeAndSlideFromLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-left.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-left.ng-leave{-webkit-animation-name:fadeAndSlideToLeft;animation-name:fadeAndSlideToLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-left.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeAndSlideFromTop{from{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}to{opacity:1}}@keyframes fadeAndSlideFromTop{from{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToTop{from{opacity:1}to{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}}@keyframes fadeAndSlideToTop{from{opacity:1}to{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}}@-webkit-keyframes fadeAndSlideFromRight{from{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}to{opacity:1}}@keyframes fadeAndSlideFromRight{from{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToRight{from{opacity:1}to{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}}@keyframes fadeAndSlideToRight{from{opacity:1}to{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}}@-webkit-keyframes fadeAndSlideFromBottom{from{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}to{opacity:1}}@keyframes fadeAndSlideFromBottom{from{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToBottom{from{opacity:1}to{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}}@keyframes fadeAndSlideToBottom{from{opacity:1}to{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}}@-webkit-keyframes fadeAndSlideFromLeft{from{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}to{opacity:1}}@keyframes fadeAndSlideFromLeft{from{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToLeft{from{opacity:1}to{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}}@keyframes fadeAndSlideToLeft{from{opacity:1}to{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}}.am-fade-and-scale{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-scale.am-fade-and-scale-add,.am-fade-and-scale.ng-enter,.am-fade-and-scale.ng-hide-remove,.am-fade-and-scale.ng-move{-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.am-fade-and-scale.am-fade-and-scale-remove,.am-fade-and-scale.ng-hide,.am-fade-and-scale.ng-leave{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut}.am-fade-and-scale.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-scale.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-scale.ng-leave{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-scale.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeAndScaleIn{from{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}to{opacity:1}}@keyframes fadeAndScaleIn{from{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}to{opacity:1}}@-webkit-keyframes fadeAndScaleOut{from{opacity:1}to{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}}@keyframes fadeAndScaleOut{from{opacity:1}to{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}}.alert.bottom,.alert.bottom-left,.alert.bottom-right,.alert.top,.alert.top-left,.alert.top-right{position:fixed;z-index:1050;margin:20px}.alert.top,.alert.top-left,.alert.top-right{top:50px}.alert.top{left:0}.alert.top-left{left:0}.alert.bottom,.alert.bottom-left,.alert.bottom-right{bottom:0}.alert.bottom{right:0;left:0}.alert.bottom-left{left:0}.aside .aside-dialog .aside-footer:after,.aside .aside-dialog .aside-footer:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.aside{position:fixed;top:0;bottom:0;z-index:1049;overflow:auto;min-width:320px;background:#fff}@media (max-width:991px){.aside{min-width:240px}}.aside.left{right:auto;left:0}.aside.right{right:0;left:auto}.aside .aside-dialog .aside-header{border-bottom:1px solid #e5e5e5;min-height:16.43px;padding:6px 15px;background:#337ab7;color:#fff}.aside .aside-dialog .aside-header .close{margin-right:-8px;padding:4px 8px;color:#fff;font-size:25px;opacity:.8}.aside .aside-dialog .aside-body{position:relative;padding:15px}.aside .aside-dialog .aside-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.aside .aside-dialog .aside-footer .btn+.btn{margin-left:5px;margin-bottom:0}.aside .aside-dialog .aside-footer .btn-group .btn+.btn{margin-left:-1px}.aside .aside-dialog .aside-footer .btn-block+.btn-block{margin-left:0}.aside-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.aside-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.aside-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.datepicker.dropdown-menu{width:250px;height:270px}.datepicker.dropdown-menu button{outline:0;border:0}.datepicker.dropdown-menu tbody{height:180px}.datepicker.dropdown-menu tbody button{padding:6px}.datepicker.dropdown-menu.datepicker-mode-1 tbody button,.datepicker.dropdown-menu.datepicker-mode-2 tbody button{height:65px}.callout{margin:20px 0;padding:20px;border-left:3px solid #eee}.callout h4{margin-top:0;margin-bottom:5px}.popover.top-left,.popover.top-right{margin-top:-10px}.callout p:last-child{margin-bottom:0}.callout-danger{border-color:#eed3d7;background-color:#fdf7f7}.callout-danger h4{color:#b94a48}.callout-warning{border-color:#faebcc;background-color:#faf8f0}.callout-warning h4{color:#8a6d3b}.callout-info{border-color:#bce8f1;background-color:#f4f8fa}.callout-info h4{color:#34789a}.modal.center .modal-dialog{position:fixed;top:40%;left:50%;min-width:320px;max-width:630px;width:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.popover.top-left .arrow{margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px;left:10%}.popover.top-left .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.bottom-left,.popover.bottom-right{margin-top:10px}.popover.top-right .arrow{margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px;left:90%}.popover.top-right .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.bottom-left .arrow{margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px;left:10%}.popover.bottom-left .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.bottom-right .arrow{margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px;left:90%}.popover.bottom-right .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.timepicker.dropdown-menu{padding:0 4px}.timepicker.dropdown-menu button{border:0}.timepicker.dropdown-menu tbody button{padding:6px}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-group-xs>.btn{font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px}.btn-group-xs>.btn{padding:1px 5px}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.tooltip.tooltip-info.top .tooltip-arrow,.tooltip.tooltip-info.top-left .tooltip-arrow,.tooltip.tooltip-info.top-right .tooltip-arrow{border-top-color:#d9edf7}.tooltip.tooltip-info.right .tooltip-arrow{border-right-color:#d9edf7}.tooltip.tooltip-info.bottom .tooltip-arrow,.tooltip.tooltip-info.bottom-left .tooltip-arrow,.tooltip.tooltip-info.bottom-right .tooltip-arrow{border-bottom-color:#d9edf7}.tooltip.tooltip-info.left .tooltip-arrow{border-left-color:#d9edf7}.tooltip.tooltip-info .tooltip-inner{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.tooltip.tooltip-info .tooltip-inner hr{border-top-color:#a6e1ec}.tooltip.tooltip-info .tooltip-inner .alert-link{color:#245269}.tooltip.tooltip-success.top .tooltip-arrow,.tooltip.tooltip-success.top-left .tooltip-arrow,.tooltip.tooltip-success.top-right .tooltip-arrow{border-top-color:#dff0d8}.tooltip.tooltip-success.right .tooltip-arrow{border-right-color:#dff0d8}.tooltip.tooltip-success.bottom .tooltip-arrow,.tooltip.tooltip-success.bottom-left .tooltip-arrow,.tooltip.tooltip-success.bottom-right .tooltip-arrow{border-bottom-color:#dff0d8}.tooltip.tooltip-success.left .tooltip-arrow{border-left-color:#dff0d8}.tooltip.tooltip-success .tooltip-inner{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.tooltip.tooltip-success .tooltip-inner hr{border-top-color:#c9e2b3}.tooltip.tooltip-success .tooltip-inner .alert-link{color:#2b542c}.tooltip.tooltip-danger.top .tooltip-arrow,.tooltip.tooltip-danger.top-left .tooltip-arrow,.tooltip.tooltip-danger.top-right .tooltip-arrow{border-top-color:#f2dede}.tooltip.tooltip-danger.right .tooltip-arrow{border-right-color:#f2dede}.tooltip.tooltip-danger.bottom .tooltip-arrow,.tooltip.tooltip-danger.bottom-left .tooltip-arrow,.tooltip.tooltip-danger.bottom-right .tooltip-arrow{border-bottom-color:#f2dede}.tooltip.tooltip-danger.left .tooltip-arrow{border-left-color:#f2dede}.tooltip.tooltip-danger .tooltip-inner{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.tooltip.tooltip-danger .tooltip-inner hr{border-top-color:#e4b9c0}.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000;margin-left:-5px}.tooltip.tooltip-danger .tooltip-inner .alert-link{color:#843534}.tooltip.top-left{margin-top:-3px;padding:5px 0}.tooltip.top-left .tooltip-arrow{left:10%}.tooltip.top-right{margin-top:-3px;padding:5px 0}.tooltip.bottom-left,.tooltip.bottom-right{margin-top:3px;padding:5px 0}.tooltip.top-right .tooltip-arrow{left:90%}.tooltip.bottom-left .tooltip-arrow{top:0;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000;left:10%}.tooltip.bottom-right .tooltip-arrow{top:0;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000;left:90%}
\ No newline at end of file
+.badge,.btn-arrow-link,.btn-lg{vertical-align:middle}.chart-tooltip,.chart-tooltip .label,.chat-form,.dashboard-stat .more,.dashboard-stat2 .display:after,.dashboard-stat2 .progress-info,.dashboard-stat2 .progress-info .progress,.dashboard-stat:after,.dropdown-menu li>a,.feeds li .col1,.feeds li:after,.form .form-actions:after,.general-item-list>.item>.item-head:after,.portlet>.portlet-title:after,.social-icons:after,.tabbable:after,.table-toolbar:after,.tiles .tile .tile-object:after,.tiles:after{clear:both}.animate-enter{-webkit-transition:1s linear all;transition:1s linear all;opacity:0}.animate-enter.animate-enter-active{opacity:1}#faxMessages::-webkit-scrollbar-track{background-color:#fff!important}#faxMessages::-webkit-scrollbar{width:5px}.interval-to{min-height:34px;padding:9px 12px}.inbox{margin-bottom:20px}.inbox .inbox{margin-bottom:0}.inbox .tab-content{overflow:inherit}.inbox .inbox-loading{display:none;font-size:22px;font-weight:300}.inbox .inbox-nav{margin:0;padding:0;list-style:none}.inbox .inbox-nav li{position:relative}.inbox .inbox-nav li a{color:#4d82a3;display:block;font-size:15px;border-left:none;text-align:left!important;padding:8px 14px;margin-bottom:1px;background:#f4f9fd}.inbox .inbox-nav li.active a,.inbox .inbox-nav li.active:hover a{color:#fff;border-left:none;background:#169ef4!important;text-decoration:none}.inbox .inbox-nav li.active b{top:12px;right:-6px;width:6px;position:absolute;display:inline-block;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #169ef4}.inbox .inbox-nav li:hover a{color:#4d82a3;background:#eef4f7!important;text-decoration:none}.inbox .inbox-nav li.compose-btn a{color:#fff;text-shadow:none;text-align:center;margin-bottom:18px;background:#35aa47}.inbox .pagination-control,.inbox th.text-right{text-align:right}.inbox .inbox-nav li.compose-btn i,.inbox .inbox-nav li.compose-btn:hover i{top:1px;color:#fff;font-size:15px;position:relative;background:0 0!important}.inbox .inbox-nav li.compose-btn a:hover{background-color:#1d943b!important}.inbox .inbox-header{overflow:hidden}.inbox .inbox-header h1{margin:0 0 10px;color:#666}.inbox tr label,.inbox ul.inbox-nav{margin-bottom:0}.inbox .pagination-control .pagination-info{display:inline-block;padding-right:10px;font-size:14px;line-height:14px}.inbox tr{color:#777;font-size:13px}.inbox tr label{display:inline-block}.inbox tr.unread td{font-weight:600}.audio-portlet .audio-portlet-title,h1,h2,h3,h4,h5,h6{font-family:"Open Sans",sans-serif;font-weight:300}.inbox td i.icon-paper-clip{top:2px;color:#d8e0e5;font-size:17px;position:relative}.inbox tr i.icon-star,.inbox tr i.icon-trash{cursor:pointer}.inbox tr i.icon-star{color:#eceef0}.inbox tr i.icon-star:hover,.inbox tr i.inbox-started{color:#fd7b12}.inbox .table td,.inbox .table th{border:none}.inbox .table th{background:#eef4f7;border-bottom:solid 5px #fff}.inbox .inbox-drafts,.inbox-view-info{border-top:solid 1px #eee;border-bottom:solid 1px #eee}.inbox th label.inbox-select-all{color:#828f97;font-size:13px;padding:1px 4px 0}.inbox ul.inbox-nav li{padding:0}.inbox ul.inbox-nav li span{color:#828f97;font-size:12px;margin-right:10px}.inbox ul.inbox-nav i{color:#fff;padding:1px 0;font-size:15px;cursor:pointer;background:#d0dde4!important}.inbox ul.inbox-nav i:hover{background:#169ef4!important}.inbox td.text-right{width:100px;text-align:right}.inbox td.inbox-small-cells,.small-cells{width:10px}.inbox .table-hover tbody tr:hover>td,.inbox .table-hover tbody tr:hover>th,.inbox .table-striped tbody>tr:nth-child(odd)>td,.inbox .table-striped tbody>tr:nth-child(odd)>th{background:#f8fbfd;cursor:pointer}.inbox .table-hover tbody tr:hover>td,.inbox .table-hover tbody tr:hover>th{background:#eef4f7}.inbox .inbox-drafts{padding:8px 0;text-align:center}.inbox-view-header{margin-bottom:20px}.inbox-view-header h1{color:#666;font-size:22px;line-height:24px;margin-bottom:0!important}.inbox-view-header h1 a{top:-2px;color:#fff;cursor:pointer;font-size:13px;padding:2px 7px;line-height:16px;position:relative;background:#b0bcc4;display:inline-block}.inbox-view-header h1 a:hover{background:#aab5bc;text-decoration:none}.inbox-view-header i.icon-print{color:#94a4ab;cursor:pointer;font-size:14px;display:inline-block;padding:6px 8px!important;background:#edf1f4!important}.inbox-view-header i.icon-print:hover{background:#e7ebef!important}.inbox-view-info{color:#666;padding:5px 0;margin-bottom:10px}.inbox-view-info strong{color:#666;margin:0 10px 0 5px}.inbox-view-info .inbox-info-btn{text-align:right}.inbox-view-info .inbox-info-btn ul{text-align:left}.inbox-view-info button{top:2px;color:#94a4ab;font-size:13px;margin-left:4px;padding:3px 10px;position:relative;background:#edf1f4}.inbox-view-info button:hover{color:#94a4ab;background:#e7ebef}.inbox-view{color:#666;padding:15px 0 0}.inbox-view a{color:#169ce9}.inbox-attached{line-height:16px}.inbox-attached a{margin:0 2px}.inbox-attached span,.inbox-compose-btn button i{margin-right:3px}.inbox-attached img{height:auto;max-width:250px;margin-bottom:5px}.inbox-attached strong{color:#555;display:block;font-size:13px}.inbox-attached .margin-bottom-25{margin-bottom:25px}.inbox-attached .margin-bottom-15{margin-bottom:15px}.inbox-compose{margin-top:1px;border:1px solid #eee}.inbox-compose-btn{padding:8px 4px;background:#f0f6fa}.inbox-compose-attachment{padding:8px}.inbox-compose-attachment .btn{padding:4px 10px}.inbox-compose-btn button{color:#fff;font-size:14px;margin-left:4px;padding:4px 10px;background:#c0cfdd}.inbox-compose-btn button:hover{color:#fff;background:#4d90fe}.inbox-compose .inbox-form-group{margin-bottom:0;position:relative;border-bottom:solid 1px #eee}.inbox-compose .controls{margin-left:85px}.inbox-compose .inbox-form-group>label{width:80px;float:left;color:#979797;text-align:right}.inbox-compose .controls>input{border:none!important}.inbox-compose .controls-to{padding-right:55px}.inbox-compose .controls-bcc,.inbox-compose .controls-cc{padding-right:20px}.inbox-compose .inbox-form-group a.close{top:13px;right:10px;position:absolute}.inbox-compose .mail-to .inbox-cc-bcc{display:inline-block;top:7px;right:10px;color:#979797;font-size:14px;cursor:pointer;position:absolute}.inbox-compose .mail-to .inbox-bcc{margin-left:5px}.inbox-compose .mail-to inbox-bcc:hover,.inbox-compose .mail-to inbox-cc:hover{color:#777}.inbox-compose .wysihtml5{padding:0!important;margin:0!important;border:0!important}.inbox-compose .wysihtml5-sandbox{padding:0!important;margin:5px 0 0!important;display:block!important;border:0!important;width:100%!important;border-left:none;border-right:none}.inbox-compose .wysihtml5-toolbar{border:0;border-bottom:1px solid #eee}.inbox-compose .wysihtml5-toolbar>li{height:34px;margin-right:0;margin-bottom:0}.inbox-compose .wysihtml5-toolbar>li>a,.inbox-compose .wysihtml5-toolbar>li>div>a{background:#fff}.inbox-compose .wysihtml5-toolbar>li>a:hover,.inbox-compose .wysihtml5-toolbar>li>div>a:hover{background:#f1f1f1;border-radius:0}.inbox-compose .wysihtml5-toolbar .dropdown.open .dropdown-toggle,ul.wysihtml5-toolbar a.btn.wysihtml5-command-active{background:#eee!important}@media (max-width:480px){.inbox-compose .inbox-form-group>label{margin-top:7px}}#mailMessages::-webkit-scrollbar-track{background-color:#fff!important}#mailMessages::-webkit-scrollbar{width:5px}.inbox-editor{padding:10px;margin:0!important}blockquote{margin-top:20px;margin-left:10px;margin-bottom:20px;border-left:1px solid #666!important;padding-left:5px;display:block;opacity:.7;filter:alpha(opacity=70)}.wysiwyg-color-black{color:#000}.wysiwyg-color-silver{color:silver}.wysiwyg-color-gray{color:gray}.wysiwyg-color-white{color:#fff}.wysiwyg-color-maroon{color:maroon}.wysiwyg-color-red{color:red}.wysiwyg-color-purple{color:purple}.wysiwyg-color-fuchsia{color:#f0f}.wysiwyg-color-green{color:green}.wysiwyg-color-lime{color:#0f0}.wysiwyg-color-olive{color:olive}.wysiwyg-color-yellow{color:#ff0}.wysiwyg-color-navy{color:navy}.wysiwyg-color-blue{color:#00f}.wysiwyg-color-teal{color:teal}.wysiwyg-color-aqua{color:#0ff}.wysiwyg-color-orange{color:orange}.our-integrations h3{margin-bottom:0;padding:10px;background:#f9f9f9}.our-integrations small{display:block;font-size:12px;color:#999;margin-top:5px}.our-integrations .integration-info{padding:10px;overflow:hidden;background:#f5f5f5}.audio-portlet .audio-portlet-title{margin-bottom:0;padding:10px;background:#f9f9f9;font-size:17px;word-wrap:break-word;margin-top:20px;line-height:1.1;color:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.audio-portlet .audio-portlet-title a{display:block;word-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.audio-portlet .file-info{padding:10px;overflow:hidden;background:#f5f5f5;height:105px}.audio-portlet-wrapper{float:left;margin:0 0 0 20px;-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s;-moz-transition:all .5s linear;-webkit-transition:all .5s linear;transition:all .5s linear}.animate-repeat{list-style:none;box-sizing:border-box}.animate-repeat.ng-enter,.animate-repeat.ng-leave,.animate-repeat.ng-move{-webkit-transition:all linear .5s;transition:all linear .5s}.animate-repeat.ng-enter,.animate-repeat.ng-leave.ng-leave-active,.animate-repeat.ng-move{opacity:0;max-height:0}.animate-repeat.ng-enter.ng-enter-active,.animate-repeat.ng-leave,.animate-repeat.ng-move.ng-move-active{opacity:1;max-height:600px}audio{-moz-transition:all .5s linear;-webkit-transition:all .5s linear;transition:all .5s linear;border-radius:0}@media (min-width:502px){.audio-portlet-wrapper{width:240px}.editable-error,audio{width:220px}}@media (max-width:501px){.audio-portlet-wrapper{width:320px}.editable-error,audio{width:300px}}.editable-error{white-space:pre-line}#description_div,.table-scrollable>.table>tbody>tr>th,.table-scrollable>.table>tfoot>tr>td,.table-scrollable>.table>tfoot>tr>th,.table-scrollable>.table>thead>tr>th{white-space:nowrap}#description_div{text-overflow:ellipsis;overflow:hidden;word-wrap:break-word}.portlet-title.collapsible{cursor:pointer}.group{background-color:#fff;padding:15px;border-radius:5px;border:1px solid #666}.group-conditions{margin-left:20px}.alert-group{margin-top:10px;margin-bottom:10px;border-color:#dcc896}.condition,.group{margin-top:15px;margin-bottom:15px}.ui-padding{padding-bottom:200px}div[contenteditable]{max-height:100px;overflow:auto;display:block;width:100%;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}a,button,code,div,img,input,label,li,p,pre,select,span,table,td,textarea,th,ul{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.img-circle{border-radius:50%!important}.img-rounded{border-radius:6px!important}body{color:#333;font-family:"Open Sans",sans-serif;padding:0!important;margin:0!important;font-size:13px;direction:ltr}@-ms-viewport{width:device-width}@-o-viewport{width:device-width}@viewport{width:device-width}@-ms-viewport{width:auto!important}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background-color:#eaeaea;border-radius:0;box-shadow:none;border:0}::-webkit-scrollbar-thumb{background-color:#cecece;border-radius:0;box-shadow:none;border:0}::-webkit-scrollbar-thumb:hover{background-color:#aaa}.bars,.chart,.pie,.primary-font{font-family:"Open Sans",sans-serif!important}h1{font-size:33px}h2{font-size:27px}h3{font-size:23px}h4{font-size:17px}h5{font-size:13px}h6{font-size:12px}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#444}h1.block,h2.block,h3.block,h4.block,h5.block,h6.block{padding-top:10px;padding-bottom:10px}a{text-shadow:none;color:#5b9bd1}a:active,a:focus,a:hover{outline:0}hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:0}.list-unstyled li>.list-unstyled{margin-left:25px}code{border:1px solid #e1e1e1;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px rgba(0,0,0,.1);box-shadow:0 1px 4px rgba(0,0,0,.1)}.disabled-link .disable-target{opacity:.5!important;filter:alpha(opacity=50)!important}.disabled-link .disable-target:hover,.disabled-link:hover{cursor:not-allowed!important}a:hover{color:#3175af;cursor:pointer}.primary-link{color:#65A0D0;font-weight:600}.primary-link:hover{color:#5194ca}.rounded-2{border-radius:2px!important}.rounded-3{border-radius:3px!important}.rounded-4{border-radius:4px!important}.circle{border-radius:25px!important}.circle-right{border-radius:0 25px 25px 0!important}.circle-left{border-radius:25px 0 0 25px!important}.circle-bottom{border-radius:0 0 25px 25px!important}.circle-top{border-radius:25px 25px 0 0!important}.display-hide,.display-none{display:none}.hidden{display:none!important}.bold{font-weight:700!important}.thin{font-weight:300!important}.uppercase{text-transform:uppercase!important}.fix-margin{margin-left:0!important}.border{border:1px solid red}.font-hg{font-size:23px}.font-lg{font-size:18px}.font-md{font-size:14px}.font-sm{font-size:13px}.font-xs{font-size:11px}.inline{display:inline}.inline-block{display:inline-block}.text-align-reverse{text-align:right}.top-news a,.top-news span{text-align:left;display:block}.no-space{margin:0!important;padding:0!important}.no-margin{margin:0}.margin-bottom-5{margin-bottom:5px}.margin-bottom-10{margin-bottom:10px!important}.margin-top-10{margin-top:10px!important}.margin-top-15{margin-top:15px!important}.margin-bottom-15{margin-bottom:15px!important}.margin-bottom-20{margin-bottom:20px!important}.margin-top-20{margin-top:20px!important}.margin-bottom-25{margin-bottom:25px!important}.margin-bottom-30{margin-bottom:30px!important}.margin-right-10{margin-right:10px!important}.visible-ie8{display:none}.ie8 .visible-ie8{display:inherit!important}.visible-ie9{display:none}.ie9 .visible-ie9{display:inherit!important}.hidden-ie8{display:inherit}.ie8 .hidden-ie8{display:none!important}.hidden-ie9{display:inherit}.ie9 .hidden-ie9{display:none!important}@media (max-width:1024px){.hidden-1024{display:none}}@media (max-width:480px){.hidden-480{display:none}}@media (max-width:320px){.hidden-320{display:none}}.scrollspy-example{position:relative;height:200px;margin-top:10px;overflow:auto}.util-btn-group-margin-bottom-5 .btn-group,.util-btn-margin-bottom-5 .btn{margin-bottom:5px!important}.user-info{margin-bottom:10px!important}.user-info img{float:left;margin-right:5px}.number-stats .stat-left,.number-stats .stat-left .stat-chart{float:right}.user-info .details{display:inline-block}.user-info .label{font-weight:300;font-size:11px}.top-news{color:#fff;margin:8px 0}.top-news em{font-size:13px;margin-bottom:0;font-style:normal;display:block}.top-news em i{font-size:14px}.top-news span{font-size:18px;margin-bottom:5px}.top-news a{padding:10px;position:relative;margin-bottom:10px}.top-news a .top-news-icon{right:8px;bottom:15px;opacity:.3;font-size:35px;position:absolute;filter:alpha(opacity=30)}.blog-images{margin-bottom:0}.blog-images li{padding:0;margin:0;display:inline}.blog-images li a:hover{text-decoration:none}.blog-images li img{width:50px;height:50px;opacity:.6;margin:0 2px 8px}.blog-images li img:hover{opacity:1;box-shadow:0 0 0 4px #72c02c;transition:all .4s ease-in-out 0s;-moz-transition:all .4s ease-in-out 0s;-webkit-transition:all .4s ease-in-out 0s}.sidebar-tags li{padding:0}.sidebar-tags li a{color:#555;font-size:12px;padding:3px 5px;background:#f7f7f7;margin:0 2px 5px 0;display:inline-block}.sidebar-tags li a:hover,.sidebar-tags li a:hover i{background:#EEE;text-decoration:none;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.sidebar-tags li a i{color:#777}.ver-inline-menu{padding:0;margin:0;list-style:none}.ver-inline-menu li{position:relative;margin-bottom:1px}.ver-inline-menu li i{width:37px;height:37px;display:inline-block;color:#b9cbd5;font-size:15px;padding:12px 10px 10px 8px;margin:0 8px 0 0;text-align:center;background:#e0eaf0!important}.ver-inline-menu li a{font-size:14px;font-weight:300;color:#557386;display:block;background:#f0f6fa;border-left:solid 2px #c4d5df}.ver-inline-menu li:hover a{background:#e0eaf0;text-decoration:none}.ver-inline-menu li:hover i{color:#fff;background:#c4d5df!important}.ver-inline-menu li.active a{border-left:solid 2px #0c91e5}.ver-inline-menu li.active i{background:#0c91e5!important}.ver-inline-menu li.active a,.ver-inline-menu li.active i{color:#fff;background:#169ef4;text-decoration:none}.ver-inline-menu li.active a,.ver-inline-menu li:hover a{font-size:14px}.ver-inline-menu li.active:after{content:'';display:inline-block;border-bottom:6px solid transparent;border-top:6px solid transparent;border-left:6px solid #169ef4;position:absolute;top:12px;right:-5px}.list-separated{margin-top:10px;margin-bottom:15px}.list-separated>div{border-right1:1px solid #f5f5f5}.list-separated>div:last-child{border-right:0}@media (max-width:767px){.ver-inline-menu>li.active:after{display:none}.list-separated>div{margin-bottom:20px}}.number-stats{margin:10px 0}.number-stats .stat-number{display:inline-block;margin:0 5px}.number-stats .stat-number .title{font-size:13px;margin-bottom:3px;color:#B8C3C7}.number-stats .stat-number .number{font-size:27px;line-height:27px;color:#7D8C9D}.number-stats>div{border-right:1px solid #f5f5f5}.number-stats>div:last-child{border-right:0}.number-stats .stat-left .stat-number{float:right;text-align:right}.number-stats .stat-right{float:left!important}.number-stats .stat-right .stat-number{float:left;text-align:left}.number-stats .stat-right .stat-chart{float:left}.number-stats .stat-number{float:left;text-align:left}.number-stats .stat-chart{display:inline-block;margin:0 5px;float:left}.general-item-list>.item{padding:10px 0;border-bottom:1px solid #F1F4F7}.general-item-list>.item:last-child{border-bottom:0}.general-item-list>.item>.item-head{margin-bottom:5px}.general-item-list>.item>.item-head:after,.general-item-list>.item>.item-head:before{content:" ";display:table}.general-item-list>.item>.item-head>.item-details{display:inline-block;float:left}.general-item-list>.item>.item-head>.item-details>.item-pic{height:35px;margin-right:10px;-webkit-border-radius:100%;-moz-border-radius:100%;-ms-border-radius:100%;-o-border-radius:100%;border-radius:100%}.general-item-list>.item>.item-head>.item-details>.item-name{display:inline-block;margin-right:10px}.general-item-list>.item>.item-head>.item-details>.item-label{color:#C0C9CC}.general-item-list>.item>.item-head>.item-status{color:#C0C9CC;top:10px;position:relative;display:inline-block;float:right}.general-item-list>.item>.item-head>.item-status>.badge{margin-top:-2px}.general-item-list>.item>.item-body{color:#96a5aa}.file-drop-zone{border:2px dashed #ddd;padding:30px;text-align:center}.file-drop-zone.file-drop-zone-over{border-color:#aaa}[class*=" fa-"],[class*=" glyphicon-"],[class*=" icon-"],[class^=fa-],[class^=glyphicon-],[class^=icon-]{display:inline-block;margin-top:1px;font-size:14px;line-height:14px;-webkit-font-smoothing:antialiased}li [class*=" fa-"],li [class*=" glyphicon-"],li [class*=" icon-"],li [class^=fa-],li [class^=glyphicon-],li [class^=icon-]{display:inline-block;width:1.25em;text-align:center}li [class*=" glyphicon-"],li [class^=glyphicon-]{top:2px}li [class*=" icon-"],li [class^=icon-]{top:1px;position:relative}li [class*=" fa-"].icon-large,li [class*=" glyphicon-"].icon-large,li [class*=" icon-"].icon-large,li [class^=fa-].icon-large,li [class^=glyphicon-].icon-large,li [class^=icon-].icon-large{width:1.5625em}.fa-sm,.icon-sm{font-size:12px}.fa-lg,.icon-lg{font-size:16px!important}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.icon-state-default{color:#c6c6c6}.icon-state-success{color:#45B6AF}.icon-state-info{color:#89C4F4}.icon-state-warning{color:#dfba49}.icon-state-danger{color:#F3565D}.fa-item{font-size:14px;padding:10px 10px 10px 20px}.fa-item i{font-size:16px;display:inline-block;width:20px;color:#333}.fa-item:hover{cursor:pointer;background:#eee}.badge-danger,.badge-default,.badge-info,.badge-primary,.badge-success,.badge-warning{background-image:none}.simplelineicons-demo .item-box{display:inline-block;font-size:16px;margin:0 -.22em 1em 0;padding-left:1em;width:100%}.simplelineicons-demo .item-box .item{background-color:#fff;color:#33383e;border-radius:8px;display:inline-block;padding:10px;width:100%}.bs-glyphicons,.glyphicons-demo ul{padding-left:0;padding-bottom:1px;margin-bottom:20px;overflow:hidden;list-style:none}.simplelineicons-demo .item-box .item span{font-size:22px}@media only screen and (min-width:768px){.simplelineicons-demo .item-box{width:33.333%}}.bs-glyphicon-class{text-align:center}.glyphicons-demo ul li{float:left;width:25%;height:115px;padding:10px;margin:0 -1px -1px 0;font-size:14px;line-height:1.4;text-align:center;border:1px solid #ddd}.glyphicons-demo .glyphicon{display:block;margin:5px auto 10px;font-size:24px;color:#444}.glyphicons-demo ul li:hover{background-color:rgba(86,61,124,.1)}.badge-default,.label-default{background-color:#c6c6c6}@media (min-width:768px){.glyphicons-demo ul li{width:12.5%}}.alert.alert-borderless{border:0}.badge{font-size:11px!important;font-weight:300;height:18px;padding:3px 6px;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important;text-shadow:none!important;text-align:center}.badge.badge-roundless{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.badge.badge-empty{display:inline-block;padding:0;min-width:8px;height:8px;width:8px}.badge-primary{background-color:#428bca}.badge-info{background-color:#89C4F4}.badge-success{background-color:#45B6AF}.badge-danger{background-color:#F3565D}.badge-warning{background-color:#dfba49}.nav.nav-pills>li>a>.badge,.nav.nav-stacked>li>a>.badge{margin-top:-2px}.dropdown-menu>li>a>.badge{position:absolute;margin-top:1px;right:3px;display:inline;font-size:11px;font-weight:300;text-shadow:none;height:18px;padding:3px 6px;text-align:center;vertical-align:middle;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important}.btn,.btn>i{font-size:14px}.dropdown-menu.badge-roundless{-webkit-border-radius:0!important;-moz-border-radius:0!important;border-radius:0!important}.btn{border-width:0;padding:7px 14px;outline:0!important;background-image:none!important;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-shadow:none}.btn-group .btn.dropdown-toggle,.btn.active,.btn.dropdown-toggle,.btn:active,.btn:disabled,.btn:focus,.btn:hover,.btn[disabled]{outline:0!important;background-image:none!important;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-shadow:none}.btn-default{border-width:1px;padding:6px 13px;color:#333;background-color:#fff;border-color:#ccc}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open .btn-default.dropdown-toggle{color:#333;background-color:#ededed;border-color:#b3b3b3}.btn-default.active,.btn-default:active{background-image:none;background-color:#e0e0e0}.btn-default.active:hover,.btn-default:active:hover{background-color:#e6e6e6}.open .btn-default.dropdown-toggle{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-default>i{color:#aaa}.btn-default>i[class*=icon-],.btn-default>i[class^=icon-]{color:#8c8c8c}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open .btn-primary.dropdown-toggle{color:#fff;background-color:#3379b5;border-color:#2a6496}.btn-primary.active,.btn-primary:active{background-image:none;background-color:#2d6ca2}.btn-primary.active:hover,.btn-primary:active:hover{background-color:#3071a9}.open .btn-primary.dropdown-toggle{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#45B6AF;border-color:#3ea49d}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .btn-success.dropdown-toggle{color:#fff;background-color:#3b9c96;border-color:#307f7a}.btn-success.active,.btn-success:active{background-image:none;background-color:#348a84}.btn-success.active:hover,.btn-success:active:hover{background-color:#37918b}.open .btn-success.dropdown-toggle{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#45B6AF;border-color:#3ea49d}.btn-success .badge{color:#45B6AF;background-color:#fff}.btn-info{color:#fff;background-color:#89C4F4;border-color:#72b8f2}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open .btn-info.dropdown-toggle{color:#fff;background-color:#68b4f1;border-color:#43a1ed}.btn-info.active,.btn-info:active{background-image:none;background-color:#51a8ef}.btn-info.active:hover,.btn-info:active:hover{background-color:#5aadf0}.open .btn-info.dropdown-toggle{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#89C4F4;border-color:#72b8f2}.btn-info .badge{color:#89C4F4;background-color:#fff}.btn-warning{color:#fff;background-color:#dfba49;border-color:#dbb233}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open .btn-warning.dropdown-toggle{color:#fff;background-color:#daae2b;border-color:#bb9521}.btn-warning.active,.btn-warning:active{background-image:none;background-color:#c89f23}.btn-warning.active:hover,.btn-warning:active:hover{background-color:#d0a625}.open .btn-warning.dropdown-toggle{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#dfba49;border-color:#dbb233}.btn-warning .badge{color:#dfba49;background-color:#fff}.btn-danger{color:#fff;background-color:#F3565D;border-color:#f13e46}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open .btn-danger.dropdown-toggle{color:#fff;background-color:#f1353d;border-color:#ec111b}.btn-danger.active,.btn-danger:active{background-image:none;background-color:#ef1d26}.btn-danger.active:hover,.btn-danger:active:hover{background-color:#f0262f}.open .btn-danger.dropdown-toggle{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#F3565D;border-color:#f13e46}.btn-danger .badge{color:#F3565D;background-color:#fff}.btn-lg,.btn-lg>i{font-size:18px}.btn-lg{padding:10px 16px;line-height:1.33}.btn-sm,.btn-xs{padding:4px 10px 5px;font-size:13px;line-height:1.5}.btn-sm>i,.btn-xs>i{font-size:13px}.btn-xs{padding:1px 5px}.btn-group .input-sm .btn-default{padding-top:3px;padding-bottom:3px}.btn-arrow-link{display:inline-block;font-size:13px}.btn-arrow-link>i{font-size:14px;line-height:14px;vertical-align:top;margin:2px 3px;color:#999}.btn-arrow-link.btn-arrow-link-lg{font-size:14px}.btn-arrow-link.btn-arrow-link-lg>i{font-size:16px;line-height:16px;margin:2px 3px 1px}.btn-circle{border-radius:25px!important}.btn-circle-right{border-radius:0 25px 25px 0!important}.btn-circle-left{border-radius:25px 0 0 25px!important}.btn-circle-bottom{border-radius:0 0 25px 25px!important}.btn-circle-top{border-radius:25px 25px 0 0!important}.btn-icon-only{height:34px;width:34px;text-align:center;padding-left:0;padding-right:0}.btn-icon-only>[class^=icon-],.btn-icon-only>i{text-align:center;margin-top:2px}.btn-sm>[class*=" glyphicon-"],.btn-sm>[class^=glyphicon-],.btn-sm>i{font-size:13px}.btn-xs>[class*=" glyphicon-"],.btn-xs>[class^=glyphicon-],.btn-xs>i{font-size:11px}.btn-group.btn-group-circle>.btn:first-child{border-radius:25px 0 0 25px!important}.btn-group.btn-group-circle>.btn:last-child{border-radius:0 25px 25px 0!important}.btn-group.btn-group-devided>.btn{margin-right:5px}.btn-group.btn-group-devided>.btn:last-child{margin-right:0}.btn-group-vertical.btn-group-vertical-circle>.btn:first-child{border-radius:25px 25px 0 0!important}.btn-group-vertical.btn-group-vertical-circle>.btn:last-child{border-radius:0 0 25px 25px!important}.carousel.image-carousel .carousel-inner{padding-top:0;padding-bottom:0}.carousel.image-carousel .carousel-control i{position:absolute;top:40%}.carousel.image-carousel.image-carousel-hoverable .carousel-control i{display:none}.carousel.image-carousel.image-carousel-hoverable:hover .carousel-control i{display:inline-block}.carousel.image-carousel .carousel-control.left i{left:10px}.carousel.image-carousel .carousel-control.right i{right:10px}.carousel.image-carousel .carousel-indicators{margin-top:10px;bottom:-7px}.carousel.image-carousel .carousel-indicators li,.carousel.image-carousel .carousel-indicators li.active{background-color:#666}.carousel.image-carousel .carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:15px 15px 25px;background:#333;background:rgba(0,0,0,.75)}.carousel.image-carousel .carousel-caption h2,.carousel.image-carousel .carousel-caption h3,.carousel.image-carousel .carousel-caption h4,.carousel.image-carousel .carousel-caption p{text-align:left;line-height:20px;color:#fff}.carousel.image-carousel .carousel-caption h2,.carousel.image-carousel .carousel-caption h3,.carousel.image-carousel .carousel-caption h4{margin:0 0 5px}.carousel.image-carousel .carousel-caption h2 a,.carousel.image-carousel .carousel-caption h3 a,.carousel.image-carousel .carousel-caption h4 a{color:#aaa}.carousel.image-carousel .carousel-caption p{margin-bottom:0}.carousel.image-carousel .carousel-caption .item{margin:0}.bars,.chart,.pie{overflow:hidden;height:300px;width:100%;font-size:14px}.item-list.table .percent{width:30px;float:right;margin-right:10px;margin-top:3px}.chart-tooltip{z-index:100;background-color:#736e6e!important;padding:5px!important;color:#fff}.chart-tooltip .label{display:block;margin-bottom:2px}.bar-chart,.line-chart{display:none}.chats{margin:-15px 0 0;padding:0}.chats li{list-style:none;padding:5px 0;margin:10px auto;font-size:12px}.chats li .body{display:block}.chats li .avatar{height:45px;width:45px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;border-radius:50%!important}.chats li.in .avatar{float:left;margin-right:10px}.chats li.out .avatar{float:right;margin-left:10px}.chats li .name{color:#3590c1;font-size:13px;font-weight:400}.chats li .datetime{color:#333;font-size:13px;font-weight:400}.chats li .message{border-radius:5px!important;-webkit-border-readius:5px!important;-moz-border-radius:5px!important;display:block;padding:5px 20px;position:relative}.chats li.in .message{text-align:left;border:2px solid #E9E9E9;margin-left:65px;box-shadow:0 5px 10px #777}.chats li.in .message .arrow{display:block;position:absolute;top:15px;left:-8px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #e9e9e9}.chats li.out .message{border:2px solid #DFEECF;margin-right:65px;margin-left:5px;box-shadow:0 5px 10px #777}.chats li.out .message .arrow{display:block;position:absolute;top:15px;right:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:8px solid #DFEECF}.chats li.out .datetime,.chats li.out .name{text-align:right}.chat-form{margin-top:15px;padding:10px;background-color:#e9eff3;overflow:hidden}.chat-form .input-cont{margin-right:40px}.chat-form .input-cont .form-control{border:1px solid #ddd;width:100%!important;margin-top:0;background-color:#fff!important}.chat-form .input-cont .form-control:focus{border:1px solid #4b8df9!important}.chat-form .btn-cont{margin-top:-42px;position:relative;float:right;width:44px}.chat-form .btn-cont .arrow{position:absolute;top:17px;right:43px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #4d90fe;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.chat-form .btn-cont .btn{margin-top:8px}.chat-form .btn-cont:hover .arrow{border-right-color:#0362fd}.chat-form .btn-cont:hover .btn{background-color:#0362fd}.close{display:inline-block;margin-top:0;margin-right:0;width:9px;height:9px;background-repeat:no-repeat!important;text-indent:-10000px;outline:0;background-image:url(../../assets/images/remove-icon-small.png)!important}.dropdown.open>.dropdown-toggle,.dropup.open>.dropdown-toggle{border-color:#ddd}.dropdown-menu{min-width:175px;position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;list-style:none;text-shadow:none;padding:0;margin:10px 0 0;background-color:#fffff;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #eee;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.dropdown-menu li.divider{background:#f1f3f6}.dropdown-menu li>a{padding:8px 14px;color:#555;text-decoration:none;display:block;font-weight:300;line-height:18px;white-space:nowrap}.dropdown-menu li>a>[class*=" fa-"],.dropdown-menu li>a>[class^=fa-]{color:#888}.dropdown-menu li>a>[class*=" icon-"],.dropdown-menu li>a>[class^=icon-]{color:#666}.dropdown-menu li>a>[class*=" glyphicon-"],.dropdown-menu li>a>[class^=glyphicon-]{color:#888}.dropdown-menu .active>a,.dropdown-menu .active>a:hover,.dropdown-menu li>a:hover{text-decoration:none;background-image:none;background-color:#f6f6f6;color:#555;filter:none}.dropdown-menu.bottom-up{top:auto;bottom:100%;margin-bottom:2px}.btn-group>.dropdown-menu,.dropdown-toggle>.dropdown-menu,.dropdown>.dropdown-menu{margin-top:10px}.btn-group>.dropdown-menu:before,.dropdown-toggle>.dropdown-menu:before,.dropdown>.dropdown-menu:before{position:absolute;top:-8px;left:9px;right:auto;display:inline-block!important;border-right:8px solid transparent;border-bottom:8px solid #e0e0e0;border-left:8px solid transparent;content:''}.btn-group>.dropdown-menu:after,.dropdown-toggle>.dropdown-menu:after,.dropdown>.dropdown-menu:after{position:absolute;top:-7px;left:10px;right:auto;display:inline-block!important;border-right:7px solid transparent;border-bottom:7px solid #fff;border-left:7px solid transparent;content:''}.btn-group>.dropdown-menu.pull-left:before,.dropdown-toggle>.dropdown-menu.pull-left:before,.dropdown>.dropdown-menu.pull-left:before{left:auto;right:9px}.btn-group>.dropdown-menu.pull-left:after,.dropdown-toggle>.dropdown-menu.pull-left:after,.dropdown>.dropdown-menu.pull-left:after{left:auto;right:10px}.btn-group>.dropdown-menu.pull-right:before,.dropdown-toggle>.dropdown-menu.pull-right:before,.dropdown>.dropdown-menu.pull-right:before{left:auto;right:9px}.btn-group>.dropdown-menu.pull-right:after,.dropdown-toggle>.dropdown-menu.pull-right:after,.dropdown>.dropdown-menu.pull-right:after{left:auto;right:10px}.btn-group.dropup>.dropdown-menu,.dropdown-toggle.dropup>.dropdown-menu,.dropdown.dropup>.dropdown-menu{margin-top:0;margin-bottom:10px}.btn-group.dropup>.dropdown-menu:after,.btn-group.dropup>.dropdown-menu:before,.dropdown-toggle.dropup>.dropdown-menu:after,.dropdown-toggle.dropup>.dropdown-menu:before,.dropdown.dropup>.dropdown-menu:after,.dropdown.dropup>.dropdown-menu:before{display:none!important}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:5px;left:100%;margin-top:-6px;margin-left:-1px}.dropdown-submenu>a:after{position:absolute;display:inline-block;font-size:14px;right:7px;top:7px;font-family:FontAwesome;height:auto;content:"\f105";font-weight:300}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px}.dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px}.nav.pull-right>li>.dropdown-menu,.nav>li>.dropdown-menu.pull-right{right:0;left:auto}.nav.pull-right>li>.dropdown-menu:before,.nav>li>.dropdown-menu.pull-right:before{right:12px;left:auto}.nav.pull-right>li>.dropdown-menu:after,.nav>li>.dropdown-menu.pull-right:after{right:13px;left:auto}.nav.pull-right>li>.dropdown-menu .dropdown-menu,.nav>li>.dropdown-menu.pull-right .dropdown-menu{right:100%;left:auto;margin-right:-1px;margin-left:0}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:absolute;float:left;width:auto;margin-top:0;background-color:#fff;border:1px solid #efefef;box-shadow:5px 5px rgba(102,102,102,.1)}.navbar-nav .open .dropdown-menu>li>a{padding:6px 0 6px 13px;color:#333}.navbar-nav .open .dropdown-menu>li>a:active,.navbar-nav .open .dropdown-menu>li>a:hover{ackground-color:#eee}}.feeds li .col1,.feeds li .col1>.cont>.cont-col2{width:100%;float:left}.dropdown-checkboxes,.dropdown-content,.dropdown-radiobuttons{padding:5px}.dropdown-content form{margin:0}.dropdown.inline .dropdown-menu{display:inline-block;position:relative}.dropdown-checkboxes label,.dropdown-radiobuttons label{display:block;font-weight:300;color:#333;margin-bottom:4px;margin-top:4px}.dropdown-checkboxes label .radio,.dropdown-radiobuttons label .radio{margin-right:3px}.feeds{margin:0;padding:0;list-style:none}.feeds li{background-color:#fafafa;color:#82949a;margin-bottom:7px}.feeds li:after,.feeds li:before{display:table;line-height:0;content:""}.feeds li:last-child{margin-bottom:0}.feeds li .col1>.cont{float:left;margin-right:75px;overflow:hidden}.feeds li .col1>.cont>.cont-col1{float:left;margin-right:-100%}.feeds li .col1>.cont>.cont-col1>.label{display:inline-block;padding:5px 4px 6px 5px;vertical-align:middle;text-align:center}.feeds li .col1>.cont>.cont-col1>.label>i{text-align:center;font-size:14px}.feeds li .col1>.cont>.cont-col2>.desc{margin-left:35px;padding-top:4px;padding-bottom:5px;overflow:hidden}.modal,.modal-open{overflow-y:auto!important}.feeds li .col2{float:left;width:75px;margin-left:-75px}.feeds li .col2>.date{padding:4px 9px 5px 4px;text-align:right;font-style:italic;color:#c1cbd0}.static-info{margin-bottom:10px}.static-info .name{font-size:14px}.static-info .value{font-size:14px;font-weight:600}.static-info.align-reverse .name,.static-info.align-reverse .value{text-align:right}.help-block{margin-top:5px;margin-bottom:5px}.help-inline{font-size:13px;color:#737373;display:inline-block;padding:5px}.form-inline input{margin-bottom:0!important}.control-label{margin-top:1px}.control-label .required{color:#e02222;font-size:12px;padding-left:2px}.form{padding:0!important}.form .form-body{padding:10px}.portlet.light .form .form-body{padding-left:0;padding-right:0}.form .form-actions{padding:20px 10px;margin:0;background-color:#f5f5f5;border-top:1px solid #e5e5e5}.portlet.light .form .form-actions{background:0 0;padding-left:0;padding-right:0}.portlet .form .form-actions{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.form .form-actions:after,.form .form-actions:before{content:" ";display:table}.form .form-actions.right{padding-left:0;padding-right:10px;text-align:right}.portlet.light .form .form-actions.right{padding-right:0}.form .form-actions.left{padding-left:10px;padding-right:0;text-align:left}.checkbox-list>label.checkbox-inline:first-child,.checkbox>label,.form-horizontal .checkbox>label,.portlet.light .form .form-actions.left,.radio-list>label.radio-inline:first-child{padding-left:0}.form .form-actions.nobg{background-color:transparent}.form .form-actions.top{margin-top:0;margin-bottom:20px;border-top:0;border-bottom:1px solid #e5e5e5}.portlet.light .form .form-actions.top{background:0 0}.form .form-actions .btn-set{display:inline-block}@media (max-width:767px){.form .form-actions .btn-set{margin-bottom:3px;margin-top:3px;float:left!important}}.form .form-section{margin:30px 0 25px;padding-bottom:5px;border-bottom:1px solid #eee}.form .form-bordered .form-group .help-block,.form .form-row-seperated .form-group .help-block,.form-horizontal .radio-list>label{margin-bottom:0}.form .form-section:first-child{margin-top:5px}.checkbox,.form-horizontal .checkbox{padding:0}.checkbox-list>label{display:block}.checkbox-list>label.checkbox-inline{display:inline-block}.input-icon>i,.radio-list>label{display:block}.form-control-static,.icon-btn,.input-inline,.radio-list>label.radio-inline{display:inline-block}.form-horizontal .radio-list .radio{padding-top:1px}.form-horizontal .radio>span{margin-top:2px}.form .form-row-seperated .portlet-body{padding:0}.form .form-row-seperated .form-group{margin:0;border-bottom:1px solid #efefef;padding:15px 0}.form .form-row-seperated .form-group.last{border-bottom:0;margin-bottom:0;padding-bottom:13px}.form .form-row-seperated .form-body{padding:0}.form .form-row-seperated .form-actions{padding-left:15px!important;padding-right:15px!important}.form .form-bordered .form-group{margin:0;border-bottom:1px solid #efefef}.form .form-bordered .form-group>div{padding:15px;border-left:1px solid #efefef}.form .form-bordered .form-group.last{border-bottom:0}.form .form-bordered .form-group .control-label{padding-top:20px}@media (max-width:991px){.form .form-bordered .form-group>div{border-left:0}.form .form-bordered .form-group .control-label{padding-top:10px}}.form .form-bordered .form-group .form-control{margin:0}.form .form-bordered .form-body{margin:0;padding:0}.form .form-bordered .form-actions{margin-top:0;padding-left:16px!important;padding-right:16px!important}@media (max-width:991px){.form .form-bordered .form-actions{padding-left:15px!important;padding-right:15px!important}}.form .form-horizontal.form-bordered.form-row-stripped .form-group:nth-child(even){background-color:#fcfcfc}.form .form-horizontal.form-bordered.form-row-stripped .form-control{background:#fff!important}.form .form-horizontal.form-bordered.form-label-stripped .form-group:nth-child(even)>div{background-color:#fff}.form .form-horizontal.form-bordered.form-label-stripped .form-group:nth-child(even){background-color:#fcfcfc}.form-control::-moz-placeholder{color:#b3b3b3;opacity:1}.form-control:-ms-input-placeholder{color:#b3b3b3}.form-control::-webkit-input-placeholder{color:#b3b3b3}.form-control{font-size:14px;font-weight:400;color:#333;background-color:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#999;outline:0;-webkit-box-shadow:none;box-shadow:none}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}.form-control.height-auto{height:auto}.form-control.form-control-solid{background-color:#F1F3F8;border-color:#F1F3F8;color:#A6B2BA}.note .highlight,.note code,.uneditable-input{background-color:#fff}.form-control.form-control-solid:focus{border-color:#e3e7f1}.form-control.form-control-solid::-moz-placeholder{color:#acb7be;opacity:1}.form-control.form-control-solid:-ms-input-placeholder{color:#acb7be}.form-control.form-control-solid::-webkit-input-placeholder{color:#acb7be}.uneditable-input{padding:6px 12px;min-width:206px;font-size:14px;font-weight:400;height:34px;color:#333;border:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.icon-btn,.icon-btn:hover{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.input-mini{width:45px!important}.input-xsmall{width:80px!important}.input-small{width:145px!important}.input-medium{width:240px!important}.input-large{width:320px!important}.input-xlarge{width:420px!important}.input-inline{width:auto;vertical-align:middle}.form-group .input-inline{margin-right:5px}.input-sm{height:28px;padding:5px 10px;font-size:13px}select.input-sm{height:28px;line-height:28px;padding:2px 10px}@media (max-width:768px){.input-large{width:250px!important}.input-xlarge{width:300px!important}}.input-group .btn-default{border-color:#e5e5e5}.input-group .input-group-addon{border-color:#e5e5e5;background:#e5e5e5;min-width:39px}.input-group .input-group-addon>i{color:#999}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .form-control-feedback,.has-success .help-block,.has-success .help-inline,.has-success .radio,.has-success .radio-inline{color:#3c763d}input[type=text].spinner,input[type=password].spinner,input[type=datetime].spinner,input[type=datetime-local].spinner,input[type=date].spinner,input[type=month].spinner,input[type=time].spinner,input[type=week].spinner,input[type=number].spinner,input[type=email].spinner,input[type=url].spinner,input[type=search].spinner,input[type=tel].spinner,input[type=color].spinner{background-image:url(../../assets/images/input-spinner.gif)!important;background-repeat:no-repeat;background-position:right 8px}label{font-weight:400;font-size:14px}.form-control-static{margin:2px 0}.has-success .form-control{border-color:#d6e9c6;-webkit-box-shadow:none;box-shadow:none}.has-success .form-control:focus{border-color:#bbdba1;-webkit-box-shadow:none;box-shadow:none}.has-success .input-group-addon{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .form-control-feedback,.has-warning .help-block,.has-warning .help-inline,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#faebcc;-webkit-box-shadow:none;box-shadow:none}.has-warning .form-control:focus{border-color:#f5d89e;-webkit-box-shadow:none;box-shadow:none}.has-warning .input-group-addon{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .form-control-feedback,.has-error .help-block,.has-error .help-inline,.has-error .radio,.has-error .radio-inline{color:#a94442}.has-error .form-control{border-color:#ebccd1;-webkit-box-shadow:none;box-shadow:none}.has-error .form-control:focus{border-color:#dca7b0;-webkit-box-shadow:none;box-shadow:none}.has-error .input-group-addon{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.input-circle{border-radius:25px!important}.input-circle-right{border-radius:0 25px 25px 0!important}.input-circle-left{border-radius:25px 0 0 25px!important}.input-circle-bottom{border-radius:0 0 25px 25px!important}.input-circle-top{border-radius:25px 25px 0 0!important}.icon-btn{height:60px;min-width:80px;margin:5px 5px 0 0;border:1px solid #ddd;padding:12px 0 0;background-color:#fafafa;background-image:none;filter:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;color:#646464;text-shadow:none;text-align:center;cursor:pointer;position:relative;transition:all .3s ease}.loading-message,.page-loading{min-width:125px;vertical-align:middle}[class^=m-icon-],[class^=m-icon-big-]{background-image:url(../../assets/images/syncfusion-icons.png);background-position:0 0;background-repeat:no-repeat}.icon-btn:hover,.icon-btn:hover>.badge{-webkit-box-shadow:none;-moz-box-shadow:none}.close,.icon-btn:hover{text-shadow:0 1px 0 #fff}.icon-btn:hover{text-decoration:none;border-color:#999;color:#444;transition:all .3s ease;box-shadow:none}.icon-btn:hover>.badge{-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;box-shadow:none}.icon-btn>div{margin-top:5px;margin-bottom:20px;color:#000;font-size:12px;font-weight:300}.icon-btn>.badge{position:absolute;font-size:11px;font-weight:300;top:-5px;right:-5px;padding:3px 6px;color:#fff;text-shadow:none;border-width:0;border-style:solid;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.input-group .input-icon>.form-control,.tabs-left.nav-tabs>li>a:focus,.tabs-left.nav-tabs>li>a:hover{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;-ms-border-radius:4px 0 0 4px;-o-border-radius:4px 0 0 4px}.icon-btn>i{font-size:18px}.ie8 .icon-btn:hover{filter:none}.input-icon{position:relative}.input-icon>.form-control{padding-left:33px}.input-group .input-icon>.form-control{border-radius:4px 0 0 4px}.input-icon>i{color:#ccc;position:absolute;margin:11px 2px 4px 10px;z-index:3;width:16px;height:16px;font-size:16px;text-align:center}.modal .input-icon>i{z-index:10055}.has-success .input-icon>i{color:#45B6AF}.has-warning .input-icon>i{color:#dfba49}.has-info .input-icon>i{color:#89C4F4}.has-error .input-icon>i{color:#F3565D}.input-icon.right>.form-control{padding-right:33px;padding-left:12px}.input-group .input-icon.right>.form-control{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.input-icon.right>i{right:8px;float:right}.input-icon.input-icon-lg>i{margin-top:16px}.input-icon.input-icon-sm>i{margin-top:8px;font-size:13px}.label{text-shadow:none!important;font-size:13px;font-weight:300;padding:3px 6px;color:#fff;font-family:"Open Sans",sans-serif}.label.label-sm{font-size:12px;padding:0 4px 1px}h1 .label,h2 .label,h3 .label,h4 .label,h5 .label,h6 .label{font-size:75%}.label-default[href]:focus,.label-default[href]:hover{background-color:#adadad}.label-primary{background-color:#428bca}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#3071a9}.label-success{background-color:#45B6AF}.label-success[href]:focus,.label-success[href]:hover{background-color:#37918b}.label-info{background-color:#89C4F4}.label-info[href]:focus,.label-info[href]:hover{background-color:#5aadf0}.label-warning{background-color:#dfba49}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#d0a625}.label-danger{background-color:#F3565D}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#f0262f}.label.label-icon{padding:4px 0 4px 4px;margin-right:2px;text-align:center!important}.label.label-icon>i{font-size:12px;text-align:center!important}.note p,.page-loading,.panel .panel-body{font-size:13px}.ie8 .label.label-icon,.ie9 .label.label-icon{padding:3px 0 3px 3px}.text-default{color:#c6c6c6}.text-primary{color:#428bca}.text-success{color:#45B6AF}.text-info{color:#89C4F4}.text-warning{color:#dfba49}.text-danger{color:#F3565D}.list-group .list-group-item-success{color:#3c763d;background-color:#dff0d8}.list-group a.list-group-item-success{color:#3c763d}.list-group a.list-group-item-success .list-group-item-heading{color:inherit}.list-group a.list-group-item-success:focus,.list-group a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}.list-group a.list-group-item-success.active,.list-group a.list-group-item-success.active:focus,.list-group a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group .list-group-item-info{color:#31708f;background-color:#d9edf7}.list-group a.list-group-item-info{color:#31708f}.list-group a.list-group-item-info .list-group-item-heading{color:inherit}.list-group a.list-group-item-info:focus,.list-group a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}.list-group a.list-group-item-info.active,.list-group a.list-group-item-info.active:focus,.list-group a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group .list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}.list-group a.list-group-item-warning{color:#8a6d3b}.list-group a.list-group-item-warning .list-group-item-heading{color:inherit}.list-group a.list-group-item-warning:focus,.list-group a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}.list-group a.list-group-item-warning.active,.list-group a.list-group-item-warning.active:focus,.list-group a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group .list-group-item-danger{color:#a94442;background-color:#f2dede}.list-group a.list-group-item-danger{color:#a94442}.list-group a.list-group-item-danger .list-group-item-heading{color:inherit}.list-group a.list-group-item-danger:focus,.list-group a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}.list-group a.list-group-item-danger.active,.list-group a.list-group-item-danger.active:focus,.list-group a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.loading-message{display:inline-block;padding:10px;margin:0 auto;color:#000!important;font-size:13px;font-weight:400;text-align:center}.loading-message.loading-message-boxed{border:1px solid #ddd;background-color:#eee;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.loading-message>span{line-height:20px;vertical-align:middle}.page-loading{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;position:fixed;top:50%;left:50%;margin-left:-60px;margin-top:-30px;padding:7px;text-align:center;color:#333;border:1px solid #ddd;background-color:#eee;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.block-spinner-bar>div,.page-spinner-bar>div{border-radius:100%!important;display:inline-block}.panel,.well{-webkit-box-shadow:none!important}.page-loading>span{line-height:20px;vertical-align:middle}.page-spinner-bar{position:fixed;z-index:10051;width:100px;top:40%;left:50%;margin-left:-55px;text-align:center}.page-spinner-bar>div{margin:0 5px;width:18px;height:18px;-webkit-animation:bounceDelay 1.4s infinite ease-in-out;animation:bounceDelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.page-spinner-bar .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.page-spinner-bar .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}.block-spinner-bar{display:inline-block;width:80px;text-align:center}.block-spinner-bar>div{margin:0 2px;width:15px;height:15px;-webkit-animation:bounceDelay 1.4s infinite ease-in-out;animation:bounceDelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.note,.tabs-right.nav-tabs>li>a:focus,.tabs-right.nav-tabs>li>a:hover{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0}.block-spinner-bar .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.block-spinner-bar .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}[class^=m-icon-]{display:inline-block;width:14px;height:14px;margin-top:3px;line-height:14px;vertical-align:top}[class^=m-icon-big-]{display:inline-block;width:30px;height:30px;margin:6px;vertical-align:middle}.btn.m-icon-big{padding:9px 16px 8px}.btn.m-icon-big.m-icon-only{padding:9px 8px 8px 0}.btn.m-icon-big [class^=m-icon-big-]{margin:0 0 0 10px}.btn.m-icon-ony>i{margin-left:0}.btn.m-icon{padding:7px 14px}.btn.m-icon [class^=m-icon-]{margin:4px 0 0 5px}.btn.m-icon.m-icon-only{padding:7px 10px 7px 6px}.m-icon-white{background-image:url(../../assets/images/syncfusion-icons-white.png)}.m-icon-swapright{background-position:-27px -10px}.m-icon-swapdown{background-position:-68px -10px}.m-icon-swapleft{background-position:-8px -10px}.m-icon-swapup{background-position:-46px -10px}.m-icon-big-swapright{background-position:-42px -28px}.m-icon-big-swapdown{background-position:-115px -28px}.m-icon-big-swapleft{background-position:-6px -28px}.m-icon-big-swapup{background-position:-78px -28px}.modal{z-index:10050;outline:0}.modal .modal-header{border-bottom:1px solid #EFEFEF}.modal .modal-header h3{font-weight:300}.modal .modal-header .close{margin-top:0!important}.modal .modal-dialog{z-index:10051}.modal>.loading{position:absolute;top:50%;left:50%;margin-top:-22px;margin-left:-22px}.modal.in .page-loading{display:none}.modal-open-noscroll{overflow-y:hidden!important}.modal-full.modal-dialog{width:99%}@media (max-width:768px){.modal-full.modal-dialog{width:auto}}.note{margin:0 0 20px;padding:15px 30px 15px 15px;border-left:5px solid #eee;border-radius:0 4px 4px 0}.note h1,.note h2,.note h3,.note h4,.note h5,.note h6{margin-top:0}.note h1 .close,.note h2 .close,.note h3 .close,.note h4 .close,.note h5 .close,.note h6 .close{margin-right:-10px}.note p:last-child{margin-bottom:0}.note.note-default{background-color:#d3d3d3;border-color:#a0a0a0;color:#333,80%}.note.note-default.note-bordered{background-color:#c9c9c9;border-color:#a5a5a5}.note.note-primary{background-color:#5697d0;border-color:#2a7696;color:#D8E3F2,80%}.note.note-primary.note-bordered{background-color:#468dcb;border-color:#2c7c9e}.note.note-success{background-color:#eef7ea;border-color:#bbdba1;color:#3c763d,80%}.note.note-success.note-bordered{background-color:#e2f1dc;border-color:#c1dea8}.note.note-info{background-color:#eef7fb;border-color:#91d9e8;color:#31708f,80%}.note.note-info.note-bordered{background-color:#ddeff8;border-color:#9adcea}.note.note-warning{background-color:#fcf8e3;border-color:#f2cf87;color:#8a6d3b,80%}.note.note-warning.note-bordered{background-color:#faf3d1;border-color:#f3d390}.note.note-danger{background-color:#f9f0f0;border-color:#dca7b0;color:#a94442,80%}.note.note-danger.note-bordered{background-color:#f3e2e2;border-color:#dfaeb7}.pagination{margin:10px 0}.pagination.pagination-circle>li:first-child>a{border-radius:25px 0 0 25px!important}.pagination.pagination-circle>li:last-child>a{border-radius:0 25px 25px 0!important}.dashboard-stat,.portlet{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px}.pagination .active>a,.pagination .active>a:hover{background:#eee;border-color:#ddd;color:#333}.panel{-moz-box-shadow:none!important;box-shadow:none!important}.panel-group .panel{overflow:visible}.panel .panel-title>a:hover{text-decoration:none}.accordion .panel .panel-heading,.accordion .panel .panel-title{padding:0}.accordion .panel .panel-title .accordion-toggle{display:block;padding:10px 15px}.accordion .panel .panel-title .accordion-toggle.accordion-toggle-styled{background:url(../../assets/images/accordion-plusminus.png) right -19px no-repeat;margin-right:15px}.accordion .panel .panel-title .accordion-toggle.accordion-toggle-styled.collapsed{background-position:right 12px}.panel-default{border-color:#e0e0e0}.panel-default>.panel-heading{color:#333;background-color:#f9f9f9;border-color:#e0e0e0}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#e0e0e0}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#e0e0e0}.panel-primary{border-color:#3595bd}.panel-primary>.panel-heading{color:#D8E3F2;background-color:#428bca;border-color:#3595bd}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#3595bd}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#3595bd}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.accordion-heading{background:#eee}.accordion-heading a,.accordion-heading a:hover{text-decoration:none}.popover{box-shadow:5px 5px rgba(102,102,102,.1);padding:0}.portlet.calendar .fc-button,.progress{-webkit-box-shadow:none;-moz-box-shadow:none}.popover .popover-title{margin:0!important}.popover.name .popover-content,.popover.name .popover-title,name .popover .popover-content{color:#F3565D}.popovers.yellow+.popover,.popovers.yellow+.popover .popover-content,.popovers.yellow+.popover .popover-title{background:#ff0}.page-portlet-fullscreen{overflow:hidden}.portlet{margin-top:0;margin-bottom:25px;padding:0;border-radius:4px}.portlet.portlet-fullscreen{z-index:10060;margin:0;position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:#fff}.portlet.portlet-fullscreen>.portlet-body{overflow-y:auto;overflow-x:hidden;padding:0 10px}.portlet.portlet-fullscreen>.portlet-title{padding:0 10px}.portlet>.portlet-title{border-bottom:1px solid #eee;padding:0;margin-bottom:10px;min-height:41px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.portlet>.portlet-title:after,.portlet>.portlet-title:before{content:" ";display:table}.portlet>.portlet-title>.caption{float:left;display:inline-block;font-size:18px;line-height:18px;font-weight:300;padding:10px 0}.portlet>.portlet-title>.caption.bold{font-weight:400}.portlet>.portlet-title>.caption>i{float:left;margin-top:4px;display:inline-block;font-size:13px;margin-right:5px;color:#666}.portlet>.portlet-title>.caption>i.glyphicon{margin-top:2px}.portlet>.portlet-title>.caption>.caption-helper{padding:0;margin:0;line-height:13px;color:#9eacb4;font-size:13px;font-weight:400}.portlet>.portlet-title>.actions{float:right;display:inline-block;padding:6px 0}.portlet>.portlet-title>.actions>.dropdown-menu i{color:#555}.portlet>.portlet-title>.actions>.btn,.portlet>.portlet-title>.actions>.btn-group>.btn,.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm,.portlet>.portlet-title>.actions>.btn.btn-sm{padding:4px 10px;font-size:13px;line-height:1.5}.portlet>.portlet-title>.actions>.btn-group>.btn.btn-default,.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm.btn-default,.portlet>.portlet-title>.actions>.btn.btn-default,.portlet>.portlet-title>.actions>.btn.btn-sm.btn-default{padding:3px 9px}.portlet>.portlet-title>.actions>.btn-group>.btn.btn-sm>i,.portlet>.portlet-title>.actions>.btn-group>.btn>i,.portlet>.portlet-title>.actions>.btn.btn-sm>i,.portlet>.portlet-title>.actions>.btn>i{font-size:13px}.portlet>.portlet-title>.actions .btn-icon-only{padding:5px 7px 3px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default{padding:4px 6px 2px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default>i{font-size:14px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen{font-family:FontAwesome;color:#a0a0a0;padding-top:3px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen.btn-sm{padding:3px!important;height:27px;width:27px}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen:before{content:"\f065"}.portlet>.portlet-title>.actions .btn-icon-only.btn-default.fullscreen.on:before{content:"\f066"}.portlet>.portlet-title>.tools{float:right;display:inline-block;padding:12px 0 8px}.portlet>.portlet-title>.tools>a{display:inline-block;height:16px;margin-left:5px;opacity:1;filter:alpha(opacity=100)}.portlet>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon.png);background-repeat:no-repeat;width:11px}.portlet>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon.png);background-repeat:no-repeat;width:12px}.portlet>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon.png);width:13px}.portlet>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon.png);width:14px;visibility:visible}.portlet>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon.png);width:14px;visibility:visible}.portlet>.portlet-title>.tools>a.fullscreen{display:inline-block;top:-3px;position:relative;font-size:13px;font-family:FontAwesome;color:#ACACAC}.portlet>.portlet-title>.tools>a.fullscreen:before{content:"\f065"}.portlet>.portlet-title>.tools>a.fullscreen.on:before{content:"\f066"}.portlet>.portlet-title>.tools>a:hover{text-decoration:none;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;transition:all .1s ease-in-out;opacity:.8;filter:alpha(opacity=80)}.portlet>.portlet-title>.pagination{float:right;display:inline-block;margin:2px 0 0;border:0;padding:4px 0}.portlet>.portlet-title>.nav-tabs{background:0 0;margin:0;float:right;display:inline-block;border:0}.portlet>.portlet-title>.nav-tabs>li{background:0 0;margin:0;border:0}.portlet>.portlet-title>.nav-tabs>li>a{background:0 0;margin:5px 0 0 1px;border:0;padding:8px 10px;color:#fff}.portlet>.portlet-title>.nav-tabs>li.active>a,.portlet>.portlet-title>.nav-tabs>li:hover>a{color:#333;background:#fff;border:0}.portlet>.portlet-body{clear:both;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.portlet>.portlet-empty{min-height:125px}.portlet.full-height-content{margin-bottom:0}.portlet.bordered{border-left:2px solid #e6e9ec!important}.portlet.bordered>.portlet-title{border-bottom:0}.portlet.solid{padding:0 10px 10px;border:0}.portlet.solid>.portlet-title{border-bottom:0;margin-bottom:10px}.portlet.solid>.portlet-title>.caption{padding:16px 0 2px}.portlet.solid>.portlet-title>.actions{padding:12px 0 6px}.portlet.solid>.portlet-title>.tools{padding:14px 0 6px}.portlet.solid.bordered>.portlet-title{margin-bottom:10px}.portlet.box{padding:0!important}.portlet.box>.portlet-title{border-bottom:0;padding:0 10px;margin-bottom:0;color:#fff}.portlet.box>.portlet-title>.caption{padding:11px 0 9px}.portlet.box>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.box>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.box>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.box>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.box>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.box>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box>.portlet-title>.actions{padding:7px 0 5px}.portlet.box>.portlet-body{background-color:#fff;padding:10px}.portlet.box.portlet-fullscreen>.portlet-body{padding:10px}.portlet.light{padding:12px 20px 15px;background-color:#fff}.portlet.light.bordered{border:1px solid #e1e1e1!important}.portlet.light.bordered>.portlet-title{border-bottom:1px solid #eee}.portlet.light.bg-inverse{background:#F7F7F7}.portlet.light>.portlet-title{padding:0;min-height:48px}.portlet.light>.portlet-title>.caption{color:#666;padding:10px 0}.portlet.light>.portlet-title>.caption>.caption-subject{font-size:16px}.portlet.light>.portlet-title>.caption>i{color:#777;font-size:15px;font-weight:300;margin-top:3px}.portlet.light>.portlet-title>.caption.caption-md>.caption-subject{font-size:15px}.portlet.light>.portlet-title>.caption.caption-md>i{font-size:14px}.portlet.light>.portlet-title>.actions{padding:6px 0 14px}.portlet.light>.portlet-title>.actions .btn-default{color:#666}.portlet.light>.portlet-title>.actions .btn-icon-only{height:27px;width:27px}.portlet.light>.portlet-title>.actions .dropdown-menu li>a{color:#555}.portlet.light>.portlet-title>.inputs{float:right;display:inline-block;padding:4px 0}.portlet.light>.portlet-title>.inputs>.portlet-input .input-icon>i{font-size:14px;margin-top:9px}.portlet.light>.portlet-title>.inputs>.portlet-input .input-icon>.form-control{height:30px;padding:2px 26px 3px 10px;font-size:13px}.portlet.light>.portlet-title>.inputs>.portlet-input>.form-control{height:30px;padding:3px 10px;font-size:13px}.portlet.light>.portlet-title>.pagination{padding:2px 0 13px}.portlet.light>.portlet-title>.tools{padding:10px 0 13px;margin-top:2px}.portlet.light>.portlet-title>.nav-tabs>li{margin:0;padding:0}.portlet.light>.portlet-title>.nav-tabs>li>a{margin:0;padding:12px 13px 13px;font-size:13px;color:#666}.portlet.light>.portlet-title>.nav-tabs>li.active>a,.portlet.light>.portlet-title>.nav-tabs>li:hover>a{margin:0;background:0 0;color:#333}.blue.btn.active,.blue.btn:active,.btn.default.active,.btn.default:active,.open .blue.btn.dropdown-toggle,.open .btn.default.dropdown-toggle,.progress,.progress-striped .progress>.progress-bar-default,.progress-striped .progress>.progress-bar-info,.progress-striped .progress>.progress-bar-success,.progress-striped .progress>.progress-bar-warning{background-image:none}.portlet.light.form-fit{padding:0}.portlet.light.form-fit>.portlet-title{padding:17px 20px 10px;margin-bottom:0}.portlet.light .portlet-body{padding-top:8px}.portlet.light.portlet-fullscreen>.portlet-body{padding:8px 0}.tab-pane>p:last-child{margin-bottom:0}.tabs-reversed>li{float:right;margin-right:0}.tabs-reversed>li>a{margin-right:0}.portlet-sortable:not(.portlet-fullscreen)>.portlet-title{cursor:move}.portlet-sortable-placeholder{border:2px dashed #eee;margin-bottom:25px}.portlet-sortable-empty{height:45px}.progress{border:0;filter:none;box-shadow:none}.progress.progress-sm{height:12px}.progress>.progress-bar-default{background-color:#c6c6c6}.progress>.progress-bar-success{background-color:#45B6AF}.progress>.progress-bar-info{background-color:#89C4F4}.progress>.progress-bar-danger{background-color:#F3565D}.progress-striped .progress>.progress-bar-danger{background-image:none}.progress>.progress-bar-warning{background-color:#dfba49}.dashboard-stat{display:block;margin-bottom:25px;overflow:hidden;border-radius:4px}.dashboard-stat:after,.dashboard-stat:before{content:" ";display:table}.portlet .dashboard-stat:last-child{margin-bottom:0}.dashboard-stat .visual{width:80px;height:80px;display:block;float:left;padding-top:10px;padding-left:15px;margin-bottom:15px;font-size:35px;line-height:35px}.dashboard-stat .visual>i{margin-left:-35px;font-size:110px;line-height:110px}.dashboard-stat .details{position:absolute;right:15px;padding-right:15px}.dashboard-stat .details .number{padding-top:25px;text-align:right;font-size:34px;line-height:36px;letter-spacing:-1px;margin-bottom:0;font-weight:300}.dashboard-stat .details .desc{text-align:right;font-size:16px;letter-spacing:0;font-weight:300}.dashboard-stat .more{display:block;padding:6px 10px;position:relative;text-transform:uppercase;font-weight:300;font-size:11px;opacity:.7;filter:alpha(opacity=70)}.dashboard-stat .more:hover{text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.dashboard-stat .more>i{display:inline-block;margin-top:1px;float:right}.dashboard-stat-light{padding-bottom:20px;margin-bottom:20px}.dashboard-stat-light .details{margin-bottom:5px}.dashboard-stat-light .details .number{font-weight:300;margin-bottom:0}.dashboard-stat2,.dashboard-stat2 .display{margin-bottom:20px}.dashboard-stat2{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background:#fff;padding:15px 15px 30px}.dashboard-stat2 .display:after,.dashboard-stat2 .display:before{content:" ";display:table}.dashboard-stat2 .display .number{float:left;display:inline-block}.dashboard-stat2 .display .number h3{margin:0 0 2px;padding:0;font-size:30px;font-weight:400}.dashboard-stat2 .display .number h3>small{font-size:23px}.dashboard-stat2 .display .number small{font-size:14px;color:#AAB5BC;font-weight:600;text-transform:uppercase}.dashboard-stat2 .display .icon{display:inline-block;float:right;padding:7px 0 0}.dashboard-stat2 .display .icon>i{color:#cbd4e0;font-size:26px}.dashboard-stat2 .progress-info .progress{margin:0;height:4px;display:block}.dashboard-stat2 .progress-info .status{margin-top:5px;font-size:11px;color:#AAB5BC;font-weight:600;text-transform:uppercase}.dashboard-stat2 .progress-info .status .status-title{float:left;display:inline-block}.dashboard-stat2 .progress-info .status .status-number{float:right;display:inline-block}.text-stat h3{margin-top:5px;margin-bottom:0;font-size:18px}.text-stat span{font-size:13px!important}@media (max-width:767px){.text-stat{margin-top:20px}}.social-icons{padding:0;margin:0}.social-icons:after,.social-icons:before{content:" ";display:table}.social-icons li{float:left;display:inline;list-style:none;margin-right:5px;margin-bottom:5px;text-indent:-9999px}.social-icons li>a{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;width:28px;height:28px;display:block;background-position:0 0;background-repeat:no-repeat;transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out}.social-icons li:hover>a{background-position:0 -38px}.social-icons li .amazon{background:url(../../assets/images/social/amazon.png) no-repeat}.social-icons li .behance{background:url(../../assets/images/social/behance.png) no-repeat}.social-icons li .blogger{background:url(../../assets/images/social/blogger.png) no-repeat}.social-icons li .deviantart{background:url(../../assets/images/social/deviantart.png) no-repeat}.social-icons li .dribbble{background:url(../../assets/images/social/dribbble.png) no-repeat}.social-icons li .dropbox{background:url(../../assets/images/social/dropbox.png) no-repeat}.social-icons li .evernote{background:url(../../assets/images/social/evernote.png) no-repeat}.social-icons li .facebook{background:url(../../assets/images/social/facebook.png) no-repeat}.social-icons li .forrst{background:url(../../assets/images/social/forrst.png) no-repeat}.social-icons li .github{background:url(../../assets/images/social/github.png) no-repeat}.social-icons li .googleplus{background:url(../../assets/images/social/googleplus.png) no-repeat}.social-icons li .jolicloud{background:url(../../assets/images/social/jolicloud.png) no-repeat}.social-icons li .last-fm{background:url(../../assets/images/social/last-fm.png) no-repeat}.social-icons li .linkedin{background:url(../../assets/images/social/linkedin.png) no-repeat}.social-icons li .picasa{background:url(../../assets/images/social/picasa.png) no-repeat}.social-icons li .pintrest{background:url(../../assets/images/social/pintrest.png) no-repeat}.social-icons li .rss{background:url(../../assets/images/social/rss.png) no-repeat}.social-icons li .skype{background:url(../../assets/images/social/skype.png) no-repeat}.social-icons li .spotify{background:url(../../assets/images/social/spotify.png) no-repeat}.social-icons li .stumbleupon{background:url(../../assets/images/social/stumbleupon.png) no-repeat}.social-icons li .tumblr{background:url(../../assets/images/social/tumblr.png) no-repeat}.social-icons li .twitter{background:url(../../assets/images/social/twitter.png) no-repeat}.social-icons li .vimeo{background:url(../../assets/images/social/vimeo.png) no-repeat}.social-icons li .wordpress{background:url(../../assets/images/social/wordpress.png) no-repeat}.social-icons li .xing{background:url(../../assets/images/social/xing.png) no-repeat}.social-icons li .yahoo{background:url(../../assets/images/social/yahoo.png) no-repeat}.social-icons li .youtube{background:url(../../assets/images/social/youtube.png) no-repeat}.social-icons li .vk{background:url(../../assets/images/social/vk.png) no-repeat}.social-icons li .instagram{background:url(../../assets/images/social/instagram.png) no-repeat}.social-icons li .reddit{background:url(../../assets/images/social/reddit.png) no-repeat}.social-icons li .aboutme{background:url(../../assets/images/social/aboutme.png) no-repeat}.social-icons li .flickr{background:url(../../assets/images/social/flickr.png) no-repeat}.social-icons li .foursquare{background:url(../../assets/images/social/foursquare.png) no-repeat}.social-icons li .gravatar{background:url(../../assets/images/social/gravatar.png) no-repeat}.social-icons li .klout{background:url(../../assets/images/social/klout.png) no-repeat}.social-icons li .myspace{background:url(../../assets/images/social/myspace.png) no-repeat}.social-icons li .quora{background:url(../../assets/images/social/quora.png) no-repeat}.social-icons.social-icons-color>li>a{opacity:.7;background-position:0 -38px!important}.social-icons.social-icons-color>li>a:hover{opacity:1}.social-icons.social-icons-circle>li>a{border-radius:25px!important}.social-icon{display:inline-block!important;width:28px;height:28px;background-position:0 0;background-repeat:no-repeat;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out}.social-icon.social-icon-circle{border-radius:25px!important}.social-icon.amazon{background:url(../../assets/images/social/amazon.png) no-repeat}.social-icon.behance{background:url(../../assets/images/social/behance.png) no-repeat}.social-icon.blogger{background:url(../../assets/images/social/blogger.png) no-repeat}.social-icon.deviantart{background:url(../../assets/images/social/deviantart.png) no-repeat}.social-icon.dribbble{background:url(../../assets/images/social/dribbble.png) no-repeat}.social-icon.dropbox{background:url(../../assets/images/social/dropbox.png) no-repeat}.social-icon.evernote{background:url(../../assets/images/social/evernote.png) no-repeat}.social-icon.facebook{background:url(../../assets/images/social/facebook.png) no-repeat}.social-icon.forrst{background:url(../../assets/images/social/forrst.png) no-repeat}.social-icon.github{background:url(../../assets/images/social/github.png) no-repeat}.social-icon.googleplus{background:url(../../assets/images/social/googleplus.png) no-repeat}.social-icon.jolicloud{background:url(../../assets/images/social/jolicloud.png) no-repeat}.social-icon.last-fm{background:url(../../assets/images/social/last-fm.png) no-repeat}.social-icon.linkedin{background:url(../../assets/images/social/linkedin.png) no-repeat}.social-icon.picasa{background:url(../../assets/images/social/picasa.png) no-repeat}.social-icon.pintrest{background:url(../../assets/images/social/pintrest.png) no-repeat}.social-icon.rss{background:url(../../assets/images/social/rss.png) no-repeat}.social-icon.skype{background:url(../../assets/images/social/skype.png) no-repeat}.social-icon.spotify{background:url(../../assets/images/social/spotify.png) no-repeat}.social-icon.stumbleupon{background:url(../../assets/images/social/stumbleupon.png) no-repeat}.social-icon.tumblr{background:url(../../assets/images/social/tumblr.png) no-repeat}.social-icon.twitter{background:url(../../assets/images/social/twitter.png) no-repeat}.social-icon.vimeo{background:url(../../assets/images/social/vimeo.png) no-repeat}.social-icon.wordpress{background:url(../../assets/images/social/wordpress.png) no-repeat}.social-icon.xing{background:url(../../assets/images/social/xing.png) no-repeat}.social-icon.yahoo{background:url(../../assets/images/social/yahoo.png) no-repeat}.social-icon.youtube{background:url(../../assets/images/social/youtube.png) no-repeat}.social-icon.vk{background:url(../../assets/images/social/vk.png) no-repeat}.social-icon.instagram{background:url(../../assets/images/social/instagram.png) no-repeat}.social-icon.reddit{background:url(../../assets/images/social/reddit.png) no-repeat}.social-icon.aboutme{background:url(../../assets/images/social/aboutme.png) no-repeat}.social-icon.flickr{background:url(../../assets/images/social/flickr.png) no-repeat}.social-icon.foursquare{background:url(../../assets/images/social/foursquare.png) no-repeat}.social-icon.gravatar{background:url(../../assets/images/social/gravatar.png) no-repeat}.social-icon.klout{background:url(../../assets/images/social/klout.png) no-repeat}.social-icon.myspace{background:url(../../assets/images/social/myspace.png) no-repeat}.social-icon.quora{background:url(../../assets/images/social/quora.png) no-repeat}.social-icon:hover{background-position:0 -38px}.social-icon-color{opacity:.7;background-position:0 -38px!important}.social-icon-color:hover{opacity:1}.table.table-bordered thead>tr>th{border-bottom:0}.table tr.heading>th{background-color:#eee!important}.table td .img-responsive{width:100%}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background:#a6c8e6;color:#132339}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background:#92bce0}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background:#dff0d8;color:#3c763d}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background:#d9edf7;color:#31708f}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background:#fcf8e3;color:#8a6d3b}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background:#f2dede;color:#a94442}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background:#ebcccc}.table-scrollable{width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #ddd;margin:10px 0!important}.table-scrollable.table-scrollable-borderless,.table-scrollable>.table-bordered{border:0}.table-scrollable>.table{width:100%!important;margin:0!important;background-color:#fff}.table-scrollable>.table-bordered>tbody>tr>td:first-child,.table-scrollable>.table-bordered>tbody>tr>th:first-child,.table-scrollable>.table-bordered>tfoot>tr>td:first-child,.table-scrollable>.table-bordered>tfoot>tr>th:first-child,.table-scrollable>.table-bordered>thead>tr>td:first-child,.table-scrollable>.table-bordered>thead>tr>th:first-child{border-left:0}.table-scrollable>.table-bordered>tbody>tr>td:last-child,.table-scrollable>.table-bordered>tbody>tr>th:last-child,.table-scrollable>.table-bordered>tfoot>tr>td:last-child,.table-scrollable>.table-bordered>tfoot>tr>th:last-child,.table-scrollable>.table-bordered>thead>tr>td:last-child,.table-scrollable>.table-bordered>thead>tr>th:last-child{border-right:0}.table-scrollable>.table-bordered>tbody>tr:last-child>td,.table-scrollable>.table-bordered>tbody>tr:last-child>th,.table-scrollable>.table-bordered>tfoot>tr:last-child>td,.table-scrollable>.table-bordered>tfoot>tr:last-child>th,.table-scrollable>.table-bordered>thead>tr:last-child>td,.table-scrollable>.table-bordered>thead>tr:last-child>th{border-bottom:0}.flip-scroll table{width:100%}@media only screen and (max-width:768px){.flip-scroll .flip-content:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.flip-scroll * html .flip-content{zoom:1}.flip-scroll td,.flip-scroll th{margin:0;vertical-align:top}.flip-scroll th{border:0!important;border-bottom:1px solid #ddd!important;border-right:1px solid #ddd!important;font-size:13px!important;padding:5px;width:auto!important;display:block;text-align:right}.flip-scroll table{border-collapse:collapse;border-spacing:0;display:block;position:relative;width:100%}.flip-scroll thead{display:block;float:left}.flip-scroll tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap}.flip-scroll thead tr{display:block}.flip-scroll tbody tr{display:inline-block;vertical-align:top;margin-left:-5px}.flip-scroll td{display:block;min-height:1.25em;text-align:left;border-top:0!important;border-left:0!important;border-right:0!important;border-bottom:0}.flip-scroll th{border-left:0}.flip-scroll tbody tr{border-left:1px solid #ddd}.flip-scroll td:last-child,.flip-scroll th:last-child{border-bottom:1px solid #ddd}}.centered-td,.page-404,.tiles .tile .tile-body>i{text-align:center}.table-toolbar{margin-bottom:15px}.table-toolbar:after,.table-toolbar:before{content:" ";display:table}.table.table-full-width{width:100%!important}.table .btn{margin-top:0;margin-left:0;margin-right:5px}.table thead tr th{font-size:14px;font-weight:600}.table-advance{margin-bottom:10px!important}.table-advance thead{color:#999}.table-advance thead tr th{background-color:#DDD;font-size:14px;font-weight:400;color:#666}.table-advance div.danger,.table-advance div.important,.table-advance div.info,.table-advance div.success,.table-advance div.warning{position:absolute;margin-top:-5px;float:left;width:2px;height:30px;margin-right:20px!important}.table-advance tr td{border-left-width:0}.table-advance tr td:first-child{border-left-width:1px!important}.table-advance tr td.highlight:first-child a{margin-left:15px}.table-advance td.highlight div.primary{border-left:2px solid #428bca}.table-advance td.highlight div.success{border-left:2px solid #45B6AF}.table-advance td.highlight div.info{border-left:2px solid #89C4F4}.table-advance td.highlight div.warning{border-left:2px solid #dfba49}.table-advance td.highlight div.danger{border-left:2px solid #F3565D}@media (max-width:767px){.table-advance tr>td.highlight:first-child a{margin-left:8px}}.table.table-light{border:0!important}.table.table-light>thead>tr:hover>th{background:0 0}.table.table-light>thead>tr.uppercase{text-transform:uppercase}.table.table-light>thead>tr>th{font-weight:600;font-size:13px;color:#a7b3b9;font-family:"Open Sans",sans-serif;border:0;border-bottom:1px solid #F2F5F8}.table.table-light>tbody>tr:last-child>td{border:0}.table.table-light>tbody>tr>td{border:0;border-bottom:1px solid #F2F5F8;color:#9ca8b0;vertical-align:middle}.table.table-light>tbody>tr>td.fit{width:1px;padding-right:3px}.table.table-light>tbody>tr>td .user-pic{display:inline-block;vertical-align:middle;height:30px;-webkit-border-radius:100%;-moz-border-radius:100%;-ms-border-radius:100%;-o-border-radius:100%;border-radius:100%}.table.table-light.table-hover>tbody>tr:hover>td,.table.table-light.table-hover>tbody>tr:hover>th,.table.table-light.table-hover>tbody>tr>td:hover,.table.table-light.table-hover>tbody>tr>th:hover{background:#f9fafb}.nav-pills,.nav-tabs{margin-bottom:10px}.nav-pills>li>a,.nav-tabs>li>a{font-size:14px}.nav-pills>li>a>.badge,.nav-tabs>li>a>.badge{margin-top:-3px}.nav-pills>li .dropdown-menu:after,.nav-pills>li .dropdown-menu:before,.nav-tabs>li .dropdown-menu:after,.nav-tabs>li .dropdown-menu:before{display:none}.nav-pills.nav-pills-sm>li>a,.nav-pills.nav-tabs-sm>li>a,.nav-tabs.nav-pills-sm>li>a,.nav-tabs.nav-tabs-sm>li>a{font-size:13px}.nav-pills .dropdown.open>.dropdown-toggle,.nav-tabs .dropdown.open>.dropdown-toggle{background:#eee;color:#0d638f;border-color:transparent}.tabs-left.nav-tabs,.tabs-right.nav-tabs{border-bottom:0}.tabs-left.nav-tabs>li,.tabs-right.nav-tabs>li{float:none}.tabs-left.nav-tabs>li>a,.tabs-right.nav-tabs>li>a{margin-right:0;margin-bottom:3px}.tabs-left.nav-tabs{border-right:1px solid #ddd}.tabs-left.nav-tabs>li>a{display:block;margin-right:-1px}.tabs-left.nav-tabs>li>a:focus,.tabs-left.nav-tabs>li>a:hover{border-radius:4px 0 0 4px;border-color:#eee #ddd #eee #eee}.tabs-left.nav-tabs>li.active>a,.tabs-left.nav-tabs>li.active>a:hover>li.active>a:focus{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;-ms-border-radius:4px 0 0 4px;-o-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;border-color:#ddd transparent #ddd #ddd}.tabs-right.nav-tabs{border-left:1px solid #ddd}.tabs-right.nav-tabs>li>a{display:block;margin-left:-1px}.tabbable:after,.tabbable:before,.tiles:after,.tiles:before{display:table;content:" "}.tabs-right.nav-tabs>li>a:focus,.tabs-right.nav-tabs>li>a:hover{border-radius:0 4px 4px 0;border-color:#eee #eee #eee #ddd}.tabs-right.nav-tabs>li.active>a,.tabs-right.nav-tabs>li.active>a:hover>li.active>a:focus{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;border-color:#ddd #ddd #ddd transparent}.tabs-below>.nav-pills,.tabs-below>.nav-tabs{border-bottom:0;margin-bottom:0;margin-top:10px}.tabs-below>.nav-tabs{border-top:1px solid #ddd;margin-bottom:0;margin-top:10px}.tabs-below>.nav-tabs>li>a{margin-top:-1px;margin-bottom:0}.tabs-below>.nav-tabs>li>a:focus,.tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>li>a .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.tabs-below>.nav-tabs .active a,.tabs-below>.nav-tabs .active a:hover .active a:focus{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;border-color:transparent #ddd #ddd}.tabbable-custom{margin-bottom:15px;padding:0;overflow:hidden}.tabbable-custom>.nav-tabs{border:none;margin:0}.tabbable-custom>.nav-tabs>li.active>a,.tabbable-custom>.nav-tabs>li>a{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0}.tabbable-custom>.nav-tabs>li{margin-right:2px;border-top:2px solid transparent}.tabbable-custom>.nav-tabs>li>a{margin-right:0;border-radius:0}.tabbable-custom>.nav-tabs>li>a:hover{background:0 0;border-color:transparent}.tabbable-custom>.nav-tabs>li.active{border-top:3px solid #F3565D;margin-top:0;position:relative}.tabbable-custom>.nav-tabs>li.active>a{border-top:none;font-weight:400;border-radius:0}.tabbable-custom>.nav-tabs>li.active>a:hover{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;border-top:none;background:#fff;border-color:#d4d4d4 #d4d4d4 transparent}.tabbable-custom>.tab-content{background-color:#fff;border:1px solid #ddd;padding:10px;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.tabbable-custom.nav-justified>.tab-content{margin-top:-1px}.tabbable-custom.boxless>.tab-content{padding:15px 0;border-left:none;border-right:none;border-bottom:none}.tabbable-custom.tabs-below.nav-justified .tab-content{margin-top:0;margin-bottom:-2px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.tabbable-custom.tabbable-full-width>.nav-tabs>li>a{color:#424242;font-size:15px;padding:9px 15px}.tabbable-custom.tabbable-full-width>.tab-content{padding:15px 0;border-left:none;border-right:none;border-bottom:none}.tabbable-custom.tabs-below .nav-tabs>li>a{border-top:none;border-bottom:2px solid transparent;margin-top:-1px}.tabbable-custom.tabs-below .nav-tabs>li.active{border-top:none;border-bottom:3px solid #d12610;margin-bottom:0;position:relative}.tabbable-custom.tabs-below .nav-tabs>li.active>a{border-bottom:none}.tabbable-custom.tabs-below .nav-tabs>li.active>a:hover{background:#fff;border-color:#d4d4d4 #d4d4d4 transparent}.tabbable-custom.tabbable-noborder .tab-content,.tabbable-custom.tabbable-noborder>.nav-tabs>li>a{border:0}.tabbable-line>.nav-tabs{border:none;margin:0}.tabbable-line>.nav-tabs>li{margin-right:2px}.tabbable-line>.nav-tabs>li>a{border:0;margin-right:0;color:#737373}.tabbable-line>.nav-tabs>li>a>i{color:#a6a6a6}.tabbable-line>.nav-tabs>li.open,.tabbable-line>.nav-tabs>li:hover{border-bottom:4px solid #fbcdcf}.tabbable-line>.nav-tabs>li.open>a,.tabbable-line>.nav-tabs>li:hover>a{border:0;background:0 0!important;color:#333}.tabbable-line>.nav-tabs>li.open>a>i,.tabbable-line>.nav-tabs>li:hover>a>i{color:#a6a6a6}.tabbable-line>.nav-tabs>li.open .dropdown-menu,.tabbable-line>.nav-tabs>li:hover .dropdown-menu{margin-top:0}.tabbable-line>.nav-tabs>li.active{border-bottom:4px solid #F3565D;position:relative}.tabbable-line>.nav-tabs>li.active>a{border:0;color:#333}.tabbable-line>.nav-tabs>li.active>a>i{color:#404040}.tabbable-line>.tab-content{margin-top:-3px;background-color:#fff;border:0;border-top:1px solid #eee;padding:15px 0}.portlet .tabbable-line>.tab-content{padding-bottom:0}.tabbable-line.tabs-below>.nav-tabs>li{border-top:4px solid transparent}.tabbable-line.tabs-below>.nav-tabs>li>a{margin-top:0}.tabbable-line.tabs-below>.nav-tabs>li:hover{border-bottom:0;border-top:4px solid #fbcdcf}.tabbable-line.tabs-below>.nav-tabs>li.active{margin-bottom:-2px;border-bottom:0;border-top:4px solid #F3565D}.tabbable-line.tabs-below>.tab-content{margin-top:-10px;border-top:0;border-bottom:1px solid #eee;padding-bottom:15px}.tiles{margin-right:-10px}.tiles .tile{display:block;float:left;height:135px;width:135px!important;cursor:pointer;text-decoration:none;color:#fff;position:relative;font-weight:300;font-size:12px;letter-spacing:.02em;line-height:20px;overflow:hidden;border:4px solid transparent;margin:0 10px 10px 0}.tiles .tile .tile-body>.content,.tiles .tile.image .tile-body h3,.tiles .tile.selected .check:after{display:inline-block}.tiles .tile:after,.tiles .tile:before{content:"";float:left}.tiles .tile.double{width:280px!important}.tiles .tile.double-down{height:280px!important}.tiles .tile.double-down i{margin-top:95px}.tiles .tile:hover{border-color:#aaa!important}.tiles .tile.selected,.tiles .tile:active{border-color:#ccc!important}.tiles .tile.selected .corner:after{content:"";display:inline-block;border-left:40px solid transparent;border-bottom:40px solid transparent;border-right:40px solid #ccc;position:absolute;top:-3px;right:-3px}.tiles .tile.selected .check:after{font-family:FontAwesome;font-size:13px;content:"\f00c";position:absolute;top:2px;right:2px}.tiles .tile.icon{padding:0}.tiles .tile.image .tile-body{padding:0!important}.tiles .tile.image .tile-body>img{width:100%;height:auto;min-height:100%;max-width:100%}.tiles .tile .tile-body{height:100%;vertical-align:top;padding:10px;overflow:hidden;position:relative;font-weight:400;font-size:12px;color:#fff;margin-bottom:10px}.tiles .tile .tile-body p{font-weight:400;font-size:13px;color:#fff;overflow:hidden}.tiles .tile .tile-body p:active{color:rgba(0,0,0,.4)}.tiles .tile .tile-body p:hover{color:#fff}.tiles .tile .tile-body img{float:left;margin-right:10px}.tiles .tile .tile-body img.pull-right{float:right!important;margin-left:10px;margin-right:0}.tiles .tile .tile-body>i{margin-top:17px;display:block;font-size:56px;line-height:56px}.tiles .tile .tile-body h1,.tiles .tile .tile-body h2,.tiles .tile .tile-body h3,.tiles .tile .tile-body h4,.tiles .tile .tile-body h5,.tiles .tile .tile-body h6,.tiles .tile .tile-body p{padding:0;margin:0;line-height:14px}.tiles .tile .tile-body h1:hover,.tiles .tile .tile-body h2:hover,.tiles .tile .tile-body h3:hover,.tiles .tile .tile-body h4:hover,.tiles .tile .tile-body h5:hover,.tiles .tile .tile-body h6:hover,.tiles .tile .tile-body p:hover{color:#fff}.tiles .tile .tile-body h3,.tiles .tile .tile-body h4{margin-bottom:5px}.tiles .tile .tile-object{position:absolute;bottom:0;left:0;right:0;min-height:30px;background-color:transparent}.tiles .tile .tile-object:after,.tiles .tile .tile-object:before{display:table;content:""}.tiles .tile .tile-object>.name{position:absolute;bottom:0;left:0;margin-bottom:5px;margin-left:10px;margin-right:15px;font-weight:400;font-size:13px;color:#fff}.tiles .tile .tile-object>.name>i{vertical-align:middle;display:block;font-size:24px;height:18px;width:24px}.tiles .tile .tile-object>.number{position:absolute;bottom:0;right:0;color:#fff;text-align:center;font-weight:600;font-size:14px;letter-spacing:.01em;line-height:14px;margin-bottom:8px;margin-right:10px}.well{background-color:#eee;border:0;-moz-box-shadow:none!important;box-shadow:none!important}.blue.btn,.btn.default{border-color:""}@-webkit-keyframes fadeInUpm{0%{opacity:0;-webkit-transform:translateY(15px)}100%{opacity:1;-webkit-transform:translateY(0)}}@-moz-keyframes fadeInUpm{0%{opacity:0;-moz-transform:translateY(15px)}100%{opacity:1;-moz-transform:translateY(0)}}@-o-keyframes fadeInUpm{0%{opacity:0;-o-transform:translateY(15px)}100%{opacity:1;-o-transform:translateY(0)}}@keyframes fadeInUpm{0%{opacity:0;transform:translateY(15px)}100%{opacity:1;transform:translateY(0)}}.fade-in-up{-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s}@-webkit-keyframes bounceDelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes bounceDelay{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.btn.default{color:#333;background-color:#E5E5E5}.btn.default.active,.btn.default:active,.btn.default:focus,.btn.default:hover,.open .btn.default.dropdown-toggle{color:#333;background-color:#d3d3d3}.btn.default.active,.btn.default:active{background-color:#c6c6c6}.btn.default.active:hover,.btn.default:active:hover{background-color:#ccc}.btn.default.disabled,.btn.default.disabled.active,.btn.default.disabled:active,.btn.default.disabled:focus,.btn.default.disabled:hover,.btn.default[disabled],.btn.default[disabled].active,.btn.default[disabled]:active,.btn.default[disabled]:focus,.btn.default[disabled]:hover,fieldset[disabled] .btn.default,fieldset[disabled] .btn.default.active,fieldset[disabled] .btn.default:active,fieldset[disabled] .btn.default:focus,fieldset[disabled] .btn.default:hover{background-color:#E5E5E5}.btn.default .badge{color:#E5E5E5;background-color:#333}.blue.btn{color:#FFF;background-color:#4B8DF8}.blue.btn.active,.blue.btn:active,.blue.btn:focus,.blue.btn:hover,.open .blue.btn.dropdown-toggle{color:#FFF;background-color:#2977f7}.blue.btn.active,.blue.btn:active{background-color:#1068f6}.blue.btn.active:hover,.blue.btn:active:hover{background-color:#1a6ef6}.blue.btn.disabled,.blue.btn.disabled.active,.blue.btn.disabled:active,.blue.btn.disabled:focus,.blue.btn.disabled:hover,.blue.btn[disabled],.blue.btn[disabled].active,.blue.btn[disabled]:active,.blue.btn[disabled]:focus,.blue.btn[disabled]:hover,fieldset[disabled] .blue.btn,fieldset[disabled] .blue.btn.active,fieldset[disabled] .blue.btn:active,fieldset[disabled] .blue.btn:focus,fieldset[disabled] .blue.btn:hover{background-color:#4B8DF8}.blue.btn .badge{color:#4B8DF8;background-color:#FFF}.portlet.blue,.portlet.box.blue>.portlet-title,.portlet>.portlet-body.blue{background-color:#4B8DF8}.btn.blue-stripe{border-left:3px solid #4B8DF8}.portlet.solid.blue>.portlet-body,.portlet.solid.blue>.portlet-title{border:0;color:#FFF}.portlet.solid.blue>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue{border:1px solid #7cacfa;border-top:0}.portlet.box.blue>.portlet-title>.caption,.portlet.box.blue>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b7d1fc;color:#d0e1fd}.portlet.box.blue>.portlet-title>.actions .btn-default>i{color:#deeafe}.portlet.box.blue>.portlet-title>.actions .btn-default.active,.portlet.box.blue>.portlet-title>.actions .btn-default:active,.portlet.box.blue>.portlet-title>.actions .btn-default:focus,.portlet.box.blue>.portlet-title>.actions .btn-default:hover{border:1px solid #e8f0fe;color:#fff}.dashboard-stat.blue{background-color:#4B8DF8}.dashboard-stat.blue.dashboard-stat-light:hover{background-color:#3781f7}.dashboard-stat.blue .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue .details .number{color:#FFF}.dashboard-stat.blue .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue .more{color:#FFF;background-color:#3781f7}.bg-blue{border-color:#4B8DF8!important;background-image:none!important;background-color:#4B8DF8!important;color:#FFF!important}.font-blue{color:#4B8DF8!important}.progress-bar.blue{background:#4B8DF8!important;color:#FFF!important}.blue-madison.btn{color:#FFF;background-color:#578ebe;border-color:""}.blue-madison.btn.active,.blue-madison.btn:active,.blue-madison.btn:focus,.blue-madison.btn:hover,.open .blue-madison.btn.dropdown-toggle{color:#FFF;background-color:#437cae}.blue-madison.btn.active,.blue-madison.btn:active{background-image:none;background-color:#3c6f9c}.blue-madison.btn.active:hover,.blue-madison.btn:active:hover{background-color:#3f74a3}.open .blue-madison.btn.dropdown-toggle{background-image:none}.blue-madison.btn.disabled,.blue-madison.btn.disabled.active,.blue-madison.btn.disabled:active,.blue-madison.btn.disabled:focus,.blue-madison.btn.disabled:hover,.blue-madison.btn[disabled],.blue-madison.btn[disabled].active,.blue-madison.btn[disabled]:active,.blue-madison.btn[disabled]:focus,.blue-madison.btn[disabled]:hover,fieldset[disabled] .blue-madison.btn,fieldset[disabled] .blue-madison.btn.active,fieldset[disabled] .blue-madison.btn:active,fieldset[disabled] .blue-madison.btn:focus,fieldset[disabled] .blue-madison.btn:hover{background-color:#578ebe}.blue-madison.btn .badge{color:#578ebe;background-color:#FFF}.portlet.blue-madison,.portlet.box.blue-madison>.portlet-title,.portlet>.portlet-body.blue-madison{background-color:#578ebe}.btn.blue-madison-stripe{border-left:3px solid #578ebe}.portlet.solid.blue-madison>.portlet-body,.portlet.solid.blue-madison>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-madison>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-madison>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-madison>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-madison{border:1px solid #7ca7cc;border-top:0}.portlet.box.blue-madison>.portlet-title>.caption,.portlet.box.blue-madison>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-madison>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #a8c4dd;color:#bad1e4}.portlet.box.blue-madison>.portlet-title>.actions .btn-default>i{color:#c5d8e9}.portlet.box.blue-madison>.portlet-title>.actions .btn-default.active,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:active,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-madison>.portlet-title>.actions .btn-default:hover{border:1px solid #cdddec;color:#dfeaf3}.dashboard-stat.blue-madison{background-color:#578ebe}.dashboard-stat.blue-madison.dashboard-stat-light:hover{background-color:#4884b8}.dashboard-stat.blue-madison .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-madison .details .number{color:#FFF}.dashboard-stat.blue-madison .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-madison .more{color:#FFF;background-color:#4884b8}.bg-blue-madison{border-color:#578ebe!important;background-image:none!important;background-color:#578ebe!important;color:#FFF!important}.font-blue-madison{color:#578ebe!important}.progress-bar.blue-madison{background:#578ebe!important;color:#FFF!important}.blue-chambray.btn{color:#FFF;background-color:#2C3E50;border-color:""}.blue-chambray.btn.active,.blue-chambray.btn:active,.blue-chambray.btn:focus,.blue-chambray.btn:hover,.open .blue-chambray.btn.dropdown-toggle{color:#FFF;background-color:#1f2c39}.blue-chambray.btn.active,.blue-chambray.btn:active{background-image:none;background-color:#161f29}.blue-chambray.btn.active:hover,.blue-chambray.btn:active:hover{background-color:#1a242f}.open .blue-chambray.btn.dropdown-toggle{background-image:none}.blue-chambray.btn.disabled,.blue-chambray.btn.disabled.active,.blue-chambray.btn.disabled:active,.blue-chambray.btn.disabled:focus,.blue-chambray.btn.disabled:hover,.blue-chambray.btn[disabled],.blue-chambray.btn[disabled].active,.blue-chambray.btn[disabled]:active,.blue-chambray.btn[disabled]:focus,.blue-chambray.btn[disabled]:hover,fieldset[disabled] .blue-chambray.btn,fieldset[disabled] .blue-chambray.btn.active,fieldset[disabled] .blue-chambray.btn:active,fieldset[disabled] .blue-chambray.btn:focus,fieldset[disabled] .blue-chambray.btn:hover{background-color:#2C3E50}.blue-chambray.btn .badge{color:#2C3E50;background-color:#FFF}.portlet.blue-chambray,.portlet.box.blue-chambray>.portlet-title,.portlet>.portlet-body.blue-chambray{background-color:#2C3E50}.btn.blue-chambray-stripe{border-left:3px solid #2C3E50}.portlet.solid.blue-chambray>.portlet-body,.portlet.solid.blue-chambray>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-chambray>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-chambray>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-chambray>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-chambray{border:1px solid #3e5771;border-top:0}.portlet.box.blue-chambray>.portlet-title>.caption,.portlet.box.blue-chambray>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #547698;color:#5f83a7}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default>i{color:#698aac}.portlet.box.blue-chambray>.portlet-title>.actions .btn-default.active,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:active,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-chambray>.portlet-title>.actions .btn-default:hover{border:1px solid #6f90b0;color:#809cb9}.dashboard-stat.blue-chambray{background-color:#2C3E50}.dashboard-stat.blue-chambray.dashboard-stat-light:hover{background-color:#253443}.dashboard-stat.blue-chambray .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-chambray .details .number{color:#FFF}.dashboard-stat.blue-chambray .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-chambray .more{color:#FFF;background-color:#253443}.bg-blue-chambray{border-color:#2C3E50!important;background-image:none!important;background-color:#2C3E50!important;color:#FFF!important}.font-blue-chambray{color:#2C3E50!important}.progress-bar.blue-chambray{background:#2C3E50!important;color:#FFF!important}.blue-ebonyclay.btn{color:#FFF;background-color:#22313F;border-color:""}.blue-ebonyclay.btn.active,.blue-ebonyclay.btn:active,.blue-ebonyclay.btn:focus,.blue-ebonyclay.btn:hover,.open .blue-ebonyclay.btn.dropdown-toggle{color:#FFF;background-color:#151f28}.blue-ebonyclay.btn.active,.blue-ebonyclay.btn:active{background-image:none;background-color:#0d1217}.blue-ebonyclay.btn.active:hover,.blue-ebonyclay.btn:active:hover{background-color:#10171e}.open .blue-ebonyclay.btn.dropdown-toggle{background-image:none}.blue-ebonyclay.btn.disabled,.blue-ebonyclay.btn.disabled.active,.blue-ebonyclay.btn.disabled:active,.blue-ebonyclay.btn.disabled:focus,.blue-ebonyclay.btn.disabled:hover,.blue-ebonyclay.btn[disabled],.blue-ebonyclay.btn[disabled].active,.blue-ebonyclay.btn[disabled]:active,.blue-ebonyclay.btn[disabled]:focus,.blue-ebonyclay.btn[disabled]:hover,fieldset[disabled] .blue-ebonyclay.btn,fieldset[disabled] .blue-ebonyclay.btn.active,fieldset[disabled] .blue-ebonyclay.btn:active,fieldset[disabled] .blue-ebonyclay.btn:focus,fieldset[disabled] .blue-ebonyclay.btn:hover{background-color:#22313F}.blue-ebonyclay.btn .badge{color:#22313F;background-color:#FFF}.portlet.blue-ebonyclay,.portlet.box.blue-ebonyclay>.portlet-title,.portlet>.portlet-body.blue-ebonyclay{background-color:#22313F}.btn.blue-ebonyclay-stripe{border-left:3px solid #22313F}.portlet.solid.blue-ebonyclay>.portlet-body,.portlet.solid.blue-ebonyclay>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-ebonyclay>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-ebonyclay>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-ebonyclay{border:1px solid #344b60;border-top:0}.portlet.box.blue-ebonyclay>.portlet-title>.caption,.portlet.box.blue-ebonyclay>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #496a88;color:#527798}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default>i{color:#587ea2}.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default.active,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:active,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-ebonyclay>.portlet-title>.actions .btn-default:hover{border:1px solid #5d83a7;color:#6d90b0}.dashboard-stat.blue-ebonyclay{background-color:#22313F}.dashboard-stat.blue-ebonyclay.dashboard-stat-light:hover{background-color:#1b2732}.dashboard-stat.blue-ebonyclay .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-ebonyclay .details .number{color:#FFF}.dashboard-stat.blue-ebonyclay .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-ebonyclay .more{color:#FFF;background-color:#1b2732}.bg-blue-ebonyclay{border-color:#22313F!important;background-image:none!important;background-color:#22313F!important;color:#FFF!important}.font-blue-ebonyclay{color:#22313F!important}.progress-bar.blue-ebonyclay{background:#22313F!important;color:#FFF!important}.blue-hoki.btn{color:#FFF;background-color:#67809F;border-color:""}.blue-hoki.btn.active,.blue-hoki.btn:active,.blue-hoki.btn:focus,.blue-hoki.btn:hover,.open .blue-hoki.btn.dropdown-toggle{color:#FFF;background-color:#586e8b}.blue-hoki.btn.active,.blue-hoki.btn:active{background-image:none;background-color:#4e627b}.blue-hoki.btn.active:hover,.blue-hoki.btn:active:hover{background-color:#526781}.open .blue-hoki.btn.dropdown-toggle{background-image:none}.blue-hoki.btn.disabled,.blue-hoki.btn.disabled.active,.blue-hoki.btn.disabled:active,.blue-hoki.btn.disabled:focus,.blue-hoki.btn.disabled:hover,.blue-hoki.btn[disabled],.blue-hoki.btn[disabled].active,.blue-hoki.btn[disabled]:active,.blue-hoki.btn[disabled]:focus,.blue-hoki.btn[disabled]:hover,fieldset[disabled] .blue-hoki.btn,fieldset[disabled] .blue-hoki.btn.active,fieldset[disabled] .blue-hoki.btn:active,fieldset[disabled] .blue-hoki.btn:focus,fieldset[disabled] .blue-hoki.btn:hover{background-color:#67809F}.blue-hoki.btn .badge{color:#67809F;background-color:#FFF}.portlet.blue-hoki,.portlet.box.blue-hoki>.portlet-title,.portlet>.portlet-body.blue-hoki{background-color:#67809F}.btn.blue-hoki-stripe{border-left:3px solid #67809F}.portlet.solid.blue-hoki>.portlet-body,.portlet.solid.blue-hoki>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-hoki>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-hoki>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-hoki>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-hoki{border:1px solid #869ab3;border-top:0}.portlet.box.blue-hoki>.portlet-title>.caption,.portlet.box.blue-hoki>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #acb9ca;color:#bbc7d4}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default>i{color:#c5ceda}.portlet.box.blue-hoki>.portlet-title>.actions .btn-default.active,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:active,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-hoki>.portlet-title>.actions .btn-default:hover{border:1px solid #cbd4de;color:#dbe1e8}.dashboard-stat.blue-hoki{background-color:#67809F}.dashboard-stat.blue-hoki.dashboard-stat-light:hover{background-color:#5e7694}.dashboard-stat.blue-hoki .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-hoki .details .number{color:#FFF}.dashboard-stat.blue-hoki .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-hoki .more{color:#FFF;background-color:#5e7694}.bg-blue-hoki{border-color:#67809F!important;background-image:none!important;background-color:#67809F!important;color:#FFF!important}.font-blue-hoki{color:#67809F!important}.progress-bar.blue-hoki{background:#67809F!important;color:#FFF!important}.blue-steel.btn{color:#FFF;background-color:#4B77BE;border-color:""}.blue-steel.btn.active,.blue-steel.btn:active,.blue-steel.btn:focus,.blue-steel.btn:hover,.open .blue-steel.btn.dropdown-toggle{color:#FFF;background-color:#3d66a8}.blue-steel.btn.active,.blue-steel.btn:active{background-image:none;background-color:#365b96}.blue-steel.btn.active:hover,.blue-steel.btn:active:hover{background-color:#395f9d}.open .blue-steel.btn.dropdown-toggle{background-image:none}.blue-steel.btn.disabled,.blue-steel.btn.disabled.active,.blue-steel.btn.disabled:active,.blue-steel.btn.disabled:focus,.blue-steel.btn.disabled:hover,.blue-steel.btn[disabled],.blue-steel.btn[disabled].active,.blue-steel.btn[disabled]:active,.blue-steel.btn[disabled]:focus,.blue-steel.btn[disabled]:hover,fieldset[disabled] .blue-steel.btn,fieldset[disabled] .blue-steel.btn.active,fieldset[disabled] .blue-steel.btn:active,fieldset[disabled] .blue-steel.btn:focus,fieldset[disabled] .blue-steel.btn:hover{background-color:#4B77BE}.blue-steel.btn .badge{color:#4B77BE;background-color:#FFF}.portlet.blue-steel,.portlet.box.blue-steel>.portlet-title,.portlet>.portlet-body.blue-steel{background-color:#4B77BE}.btn.blue-steel-stripe{border-left:3px solid #4B77BE}.portlet.solid.blue-steel>.portlet-body,.portlet.solid.blue-steel>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-steel>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-steel>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.collapse{background-image:url(../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-steel>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-steel{border:1px solid #7093cc;border-top:0}.portlet.box.blue-steel>.portlet-title>.caption,.portlet.box.blue-steel>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-steel>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9db5dc;color:#b0c3e3}.portlet.box.blue-steel>.portlet-title>.actions .btn-default>i{color:#bbcce7}.portlet.box.blue-steel>.portlet-title>.actions .btn-default.active,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:active,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-steel>.portlet-title>.actions .btn-default:hover{border:1px solid #c3d2e9;color:#d6e0f0}.dashboard-stat.blue-steel{background-color:#4B77BE}.dashboard-stat.blue-steel.dashboard-stat-light:hover{background-color:#416db4}.dashboard-stat.blue-steel .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-steel .details .number{color:#FFF}.dashboard-stat.blue-steel .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-steel .more{color:#FFF;background-color:#416db4}.bg-blue-steel{border-color:#4B77BE!important;background-image:none!important;background-color:#4B77BE!important;color:#FFF!important}.font-blue-steel{color:#4B77BE!important}.progress-bar.blue-steel{background:#4B77BE!important;color:#FFF!important}.blue-soft.btn{color:#FFF;background-color:#4c87b9;border-color:""}.blue-soft.btn.active,.blue-soft.btn:active,.blue-soft.btn:focus,.blue-soft.btn:hover,.open .blue-soft.btn.dropdown-toggle{color:#FFF;background-color:#3f75a2}.blue-soft.btn.active,.blue-soft.btn:active{background-image:none;background-color:#386890}.blue-soft.btn.active:hover,.blue-soft.btn:active:hover{background-color:#3b6d97}.open .blue-soft.btn.dropdown-toggle{background-image:none}.blue-soft.btn.disabled,.blue-soft.btn.disabled.active,.blue-soft.btn.disabled:active,.blue-soft.btn.disabled:focus,.blue-soft.btn.disabled:hover,.blue-soft.btn[disabled],.blue-soft.btn[disabled].active,.blue-soft.btn[disabled]:active,.blue-soft.btn[disabled]:focus,.blue-soft.btn[disabled]:hover,fieldset[disabled] .blue-soft.btn,fieldset[disabled] .blue-soft.btn.active,fieldset[disabled] .blue-soft.btn:active,fieldset[disabled] .blue-soft.btn:focus,fieldset[disabled] .blue-soft.btn:hover{background-color:#4c87b9}.blue-soft.btn .badge{color:#4c87b9;background-color:#FFF}.portlet.blue-soft,.portlet.box.blue-soft>.portlet-title,.portlet>.portlet-body.blue-soft{background-color:#4c87b9}.btn.blue-soft-stripe{border-left:3px solid #4c87b9}.portlet.solid.blue-soft>.portlet-body,.portlet.solid.blue-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-soft{border:1px solid #71a0c7;border-top:0}.portlet.box.blue-soft>.portlet-title>.caption,.portlet.box.blue-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9dbdd9;color:#afc9e0}.portlet.box.blue-soft>.portlet-title>.actions .btn-default>i{color:#bad1e4}.portlet.box.blue-soft>.portlet-title>.actions .btn-default.active,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:active,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #c1d6e7;color:#d4e2ee}.dashboard-stat.blue-soft{background-color:#4c87b9}.dashboard-stat.blue-soft.dashboard-stat-light:hover{background-color:#447dad}.dashboard-stat.blue-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-soft .details .number{color:#FFF}.dashboard-stat.blue-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-soft .more{color:#FFF;background-color:#447dad}.bg-blue-soft{border-color:#4c87b9!important;background-image:none!important;background-color:#4c87b9!important;color:#FFF!important}.font-blue-soft{color:#4c87b9!important}.progress-bar.blue-soft{background:#4c87b9!important;color:#FFF!important}.blue-dark.btn{color:#FFF;background-color:#5e738b;border-color:""}.blue-dark.btn.active,.blue-dark.btn:active,.blue-dark.btn:focus,.blue-dark.btn:hover,.open .blue-dark.btn.dropdown-toggle{color:#FFF;background-color:#506176}.blue-dark.btn.active,.blue-dark.btn:active{background-image:none;background-color:#455566}.blue-dark.btn.active:hover,.blue-dark.btn:active:hover{background-color:#495a6d}.open .blue-dark.btn.dropdown-toggle{background-image:none}.blue-dark.btn.disabled,.blue-dark.btn.disabled.active,.blue-dark.btn.disabled:active,.blue-dark.btn.disabled:focus,.blue-dark.btn.disabled:hover,.blue-dark.btn[disabled],.blue-dark.btn[disabled].active,.blue-dark.btn[disabled]:active,.blue-dark.btn[disabled]:focus,.blue-dark.btn[disabled]:hover,fieldset[disabled] .blue-dark.btn,fieldset[disabled] .blue-dark.btn.active,fieldset[disabled] .blue-dark.btn:active,fieldset[disabled] .blue-dark.btn:focus,fieldset[disabled] .blue-dark.btn:hover{background-color:#5e738b}.blue-dark.btn .badge{color:#5e738b;background-color:#FFF}.portlet.blue-dark,.portlet.box.blue-dark>.portlet-title,.portlet>.portlet-body.blue-dark{background-color:#5e738b}.btn.blue-dark-stripe{border-left:3px solid #5e738b}.portlet.solid.blue-dark>.portlet-body,.portlet.solid.blue-dark>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-dark>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-dark>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-dark>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-dark{border:1px solid #788da4;border-top:0}.portlet.box.blue-dark>.portlet-title>.caption,.portlet.box.blue-dark>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-dark>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9dacbd;color:#acb8c7}.portlet.box.blue-dark>.portlet-title>.actions .btn-default>i{color:#b5c0cd}.portlet.box.blue-dark>.portlet-title>.actions .btn-default.active,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:active,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-dark>.portlet-title>.actions .btn-default:hover{border:1px solid #bbc5d1;color:#cad2db}.dashboard-stat.blue-dark{background-color:#5e738b}.dashboard-stat.blue-dark.dashboard-stat-light:hover{background-color:#56697f}.dashboard-stat.blue-dark .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-dark .details .number{color:#FFF}.dashboard-stat.blue-dark .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-dark .more{color:#FFF;background-color:#56697f}.bg-blue-dark{border-color:#5e738b!important;background-image:none!important;background-color:#5e738b!important;color:#FFF!important}.font-blue-dark{color:#5e738b!important}.progress-bar.blue-dark{background:#5e738b!important;color:#FFF!important}.blue-sharp.btn{color:#FFF;background-color:#5C9BD1;border-color:""}.blue-sharp.btn.active,.blue-sharp.btn:active,.blue-sharp.btn:focus,.blue-sharp.btn:hover,.open .blue-sharp.btn.dropdown-toggle{color:#FFF;background-color:#408ac9}.blue-sharp.btn.active,.blue-sharp.btn:active{background-image:none;background-color:#357dbb}.blue-sharp.btn.active:hover,.blue-sharp.btn:active:hover{background-color:#3782c3}.open .blue-sharp.btn.dropdown-toggle{background-image:none}.blue-sharp.btn.disabled,.blue-sharp.btn.disabled.active,.blue-sharp.btn.disabled:active,.blue-sharp.btn.disabled:focus,.blue-sharp.btn.disabled:hover,.blue-sharp.btn[disabled],.blue-sharp.btn[disabled].active,.blue-sharp.btn[disabled]:active,.blue-sharp.btn[disabled]:focus,.blue-sharp.btn[disabled]:hover,fieldset[disabled] .blue-sharp.btn,fieldset[disabled] .blue-sharp.btn.active,fieldset[disabled] .blue-sharp.btn:active,fieldset[disabled] .blue-sharp.btn:focus,fieldset[disabled] .blue-sharp.btn:hover{background-color:#5C9BD1}.blue-sharp.btn .badge{color:#5C9BD1;background-color:#FFF}.portlet.blue-sharp,.portlet.box.blue-sharp>.portlet-title,.portlet>.portlet-body.blue-sharp{background-color:#5C9BD1}.btn.blue-sharp-stripe{border-left:3px solid #5C9BD1}.portlet.solid.blue-sharp>.portlet-body,.portlet.solid.blue-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.blue-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.blue-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.blue-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.blue-sharp{border:1px solid #84b3dc;border-top:0}.portlet.box.blue-sharp>.portlet-title>.caption,.portlet.box.blue-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b4d1ea;color:#c7ddef}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default>i{color:#d3e4f3}.portlet.box.blue-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.blue-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #dbe9f5;color:#eff5fb}.dashboard-stat.blue-sharp{background-color:#5C9BD1}.dashboard-stat.blue-sharp.dashboard-stat-light:hover{background-color:#4c91cd}.dashboard-stat.blue-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.blue-sharp .details .number{color:#FFF}.dashboard-stat.blue-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.blue-sharp .more{color:#FFF;background-color:#4c91cd}.bg-blue-sharp{border-color:#5C9BD1!important;background-image:none!important;background-color:#5C9BD1!important;color:#FFF!important}.font-blue-sharp{color:#5C9BD1!important}.progress-bar.blue-sharp{background:#5C9BD1!important;color:#FFF!important}.green.btn{color:#FFF;background-color:#35aa47;border-color:""}.green.btn.active,.green.btn:active,.green.btn:focus,.green.btn:hover,.open .green.btn.dropdown-toggle{color:#FFF;background-color:#2d8f3c}.green.btn.active,.green.btn:active{background-image:none;background-color:#267b34}.green.btn.active:hover,.green.btn:active:hover{background-color:#298337}.open .green.btn.dropdown-toggle{background-image:none}.green.btn.disabled,.green.btn.disabled.active,.green.btn.disabled:active,.green.btn.disabled:focus,.green.btn.disabled:hover,.green.btn[disabled],.green.btn[disabled].active,.green.btn[disabled]:active,.green.btn[disabled]:focus,.green.btn[disabled]:hover,fieldset[disabled] .green.btn,fieldset[disabled] .green.btn.active,fieldset[disabled] .green.btn:active,fieldset[disabled] .green.btn:focus,fieldset[disabled] .green.btn:hover{background-color:#35aa47}.green.btn .badge{color:#35aa47;background-color:#FFF}.portlet.box.green>.portlet-title,.portlet.green,.portlet>.portlet-body.green{background-color:#35aa47}.btn.green-stripe{border-left:3px solid #35aa47}.portlet.solid.green>.portlet-body,.portlet.solid.green>.portlet-title{border:0;color:#FFF}.portlet.solid.green>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green{border:1px solid #4bc75e;border-top:0}.portlet.box.green>.portlet-title>.caption,.portlet.box.green>.portlet-title>.caption>i{color:#FFF}.portlet.box.green>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #7ad588;color:#8ddc99}.portlet.box.green>.portlet-title>.actions .btn-default>i{color:#99dfa4}.portlet.box.green>.portlet-title>.actions .btn-default.active,.portlet.box.green>.portlet-title>.actions .btn-default:active,.portlet.box.green>.portlet-title>.actions .btn-default:focus,.portlet.box.green>.portlet-title>.actions .btn-default:hover{border:1px solid #a1e2ab;color:#b4e8bc}.dashboard-stat.green{background-color:#35aa47}.dashboard-stat.green.dashboard-stat-light:hover{background-color:#309a41}.dashboard-stat.green .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green .details .number{color:#FFF}.dashboard-stat.green .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green .more{color:#FFF;background-color:#309a41}.bg-green{border-color:#35aa47!important;background-image:none!important;background-color:#35aa47!important;color:#FFF!important}.font-green{color:#35aa47!important}.progress-bar.green{background:#35aa47!important;color:#FFF!important}.green-meadow.btn{color:#FFF;background-color:#1BBC9B;border-color:""}.green-meadow.btn.active,.green-meadow.btn:active,.green-meadow.btn:focus,.green-meadow.btn:hover,.open .green-meadow.btn.dropdown-toggle{color:#FFF;background-color:#179d81}.green-meadow.btn.active,.green-meadow.btn:active{background-image:none;background-color:#13866f}.green-meadow.btn.active:hover,.green-meadow.btn:active:hover{background-color:#158f76}.open .green-meadow.btn.dropdown-toggle{background-image:none}.green-meadow.btn.disabled,.green-meadow.btn.disabled.active,.green-meadow.btn.disabled:active,.green-meadow.btn.disabled:focus,.green-meadow.btn.disabled:hover,.green-meadow.btn[disabled],.green-meadow.btn[disabled].active,.green-meadow.btn[disabled]:active,.green-meadow.btn[disabled]:focus,.green-meadow.btn[disabled]:hover,fieldset[disabled] .green-meadow.btn,fieldset[disabled] .green-meadow.btn.active,fieldset[disabled] .green-meadow.btn:active,fieldset[disabled] .green-meadow.btn:focus,fieldset[disabled] .green-meadow.btn:hover{background-color:#1BBC9B}.green-meadow.btn .badge{color:#1BBC9B;background-color:#FFF}.portlet.box.green-meadow>.portlet-title,.portlet.green-meadow,.portlet>.portlet-body.green-meadow{background-color:#1BBC9B}.btn.green-meadow-stripe{border-left:3px solid #1BBC9B}.portlet.solid.green-meadow>.portlet-body,.portlet.solid.green-meadow>.portlet-title{border:0;color:#FFF}.portlet.solid.green-meadow>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-meadow>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-meadow>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-meadow{border:1px solid #2ae0bb;border-top:0}.portlet.box.green-meadow>.portlet-title>.caption,.portlet.box.green-meadow>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-meadow>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #5fe8cc;color:#75ebd3}.portlet.box.green-meadow>.portlet-title>.actions .btn-default>i{color:#83edd7}.portlet.box.green-meadow>.portlet-title>.actions .btn-default.active,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:active,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:focus,.portlet.box.green-meadow>.portlet-title>.actions .btn-default:hover{border:1px solid #8ceeda;color:#a2f2e1}.dashboard-stat.green-meadow{background-color:#1BBC9B}.dashboard-stat.green-meadow.dashboard-stat-light:hover{background-color:#18aa8c}.dashboard-stat.green-meadow .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-meadow .details .number{color:#FFF}.dashboard-stat.green-meadow .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-meadow .more{color:#FFF;background-color:#18aa8c}.bg-green-meadow{border-color:#1BBC9B!important;background-image:none!important;background-color:#1BBC9B!important;color:#FFF!important}.font-green-meadow{color:#1BBC9B!important}.progress-bar.green-meadow{background:#1BBC9B!important;color:#FFF!important}.green-seagreen.btn{color:#FFF;background-color:#1BA39C;border-color:""}.green-seagreen.btn.active,.green-seagreen.btn:active,.green-seagreen.btn:focus,.green-seagreen.btn:hover,.open .green-seagreen.btn.dropdown-toggle{color:#FFF;background-color:#16847f}.green-seagreen.btn.active,.green-seagreen.btn:active{background-image:none;background-color:#126e6a}.green-seagreen.btn.active:hover,.green-seagreen.btn:active:hover{background-color:#147772}.open .green-seagreen.btn.dropdown-toggle{background-image:none}.green-seagreen.btn.disabled,.green-seagreen.btn.disabled.active,.green-seagreen.btn.disabled:active,.green-seagreen.btn.disabled:focus,.green-seagreen.btn.disabled:hover,.green-seagreen.btn[disabled],.green-seagreen.btn[disabled].active,.green-seagreen.btn[disabled]:active,.green-seagreen.btn[disabled]:focus,.green-seagreen.btn[disabled]:hover,fieldset[disabled] .green-seagreen.btn,fieldset[disabled] .green-seagreen.btn.active,fieldset[disabled] .green-seagreen.btn:active,fieldset[disabled] .green-seagreen.btn:focus,fieldset[disabled] .green-seagreen.btn:hover{background-color:#1BA39C}.green-seagreen.btn .badge{color:#1BA39C;background-color:#FFF}.portlet.box.green-seagreen>.portlet-title,.portlet.green-seagreen,.portlet>.portlet-body.green-seagreen{background-color:#1BA39C}.btn.green-seagreen-stripe{border-left:3px solid #1BA39C}.portlet.solid.green-seagreen>.portlet-body,.portlet.solid.green-seagreen>.portlet-title{border:0;color:#FFF}.portlet.solid.green-seagreen>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-seagreen>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-seagreen>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-seagreen{border:1px solid #22cfc6;border-top:0}.portlet.box.green-seagreen>.portlet-title>.caption,.portlet.box.green-seagreen>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #4de1da;color:#63e5de}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default>i{color:#70e7e1}.portlet.box.green-seagreen>.portlet-title>.actions .btn-default.active,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:active,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:focus,.portlet.box.green-seagreen>.portlet-title>.actions .btn-default:hover{border:1px solid #78e9e3;color:#8eece8}.dashboard-stat.green-seagreen{background-color:#1BA39C}.dashboard-stat.green-seagreen.dashboard-stat-light:hover{background-color:#18918b}.dashboard-stat.green-seagreen .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-seagreen .details .number{color:#FFF}.dashboard-stat.green-seagreen .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-seagreen .more{color:#FFF;background-color:#18918b}.bg-green-seagreen{border-color:#1BA39C!important;background-image:none!important;background-color:#1BA39C!important;color:#FFF!important}.font-green-seagreen{color:#1BA39C!important}.progress-bar.green-seagreen{background:#1BA39C!important;color:#FFF!important}.green-turquoise.btn{color:#FFF;background-color:#36D7B7;border-color:""}.green-turquoise.btn.active,.green-turquoise.btn:active,.green-turquoise.btn:focus,.green-turquoise.btn:hover,.open .green-turquoise.btn.dropdown-toggle{color:#FFF;background-color:#27c3a4}.green-turquoise.btn.active,.green-turquoise.btn:active{background-image:none;background-color:#22ad92}.green-turquoise.btn.active:hover,.green-turquoise.btn:active:hover{background-color:#24b699}.open .green-turquoise.btn.dropdown-toggle{background-image:none}.green-turquoise.btn.disabled,.green-turquoise.btn.disabled.active,.green-turquoise.btn.disabled:active,.green-turquoise.btn.disabled:focus,.green-turquoise.btn.disabled:hover,.green-turquoise.btn[disabled],.green-turquoise.btn[disabled].active,.green-turquoise.btn[disabled]:active,.green-turquoise.btn[disabled]:focus,.green-turquoise.btn[disabled]:hover,fieldset[disabled] .green-turquoise.btn,fieldset[disabled] .green-turquoise.btn.active,fieldset[disabled] .green-turquoise.btn:active,fieldset[disabled] .green-turquoise.btn:focus,fieldset[disabled] .green-turquoise.btn:hover{background-color:#36D7B7}.green-turquoise.btn .badge{color:#36D7B7;background-color:#FFF}.portlet.box.green-turquoise>.portlet-title,.portlet.green-turquoise,.portlet>.portlet-body.green-turquoise{background-color:#36D7B7}.btn.green-turquoise-stripe{border-left:3px solid #36D7B7}.portlet.solid.green-turquoise>.portlet-body,.portlet.solid.green-turquoise>.portlet-title{border:0;color:#FFF}.portlet.solid.green-turquoise>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-turquoise>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-turquoise>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-turquoise{border:1px solid #61dfc6;border-top:0}.portlet.box.green-turquoise>.portlet-title>.caption,.portlet.box.green-turquoise>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #94ead9;color:#a9eee0}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default>i{color:#b6f0e5}.portlet.box.green-turquoise>.portlet-title>.actions .btn-default.active,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:active,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:focus,.portlet.box.green-turquoise>.portlet-title>.actions .btn-default:hover{border:1px solid #bef2e8;color:#d3f6ef}.dashboard-stat.green-turquoise{background-color:#36D7B7}.dashboard-stat.green-turquoise.dashboard-stat-light:hover{background-color:#29cfae}.dashboard-stat.green-turquoise .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-turquoise .details .number{color:#FFF}.dashboard-stat.green-turquoise .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-turquoise .more{color:#FFF;background-color:#29cfae}.bg-green-turquoise{border-color:#36D7B7!important;background-image:none!important;background-color:#36D7B7!important;color:#FFF!important}.font-green-turquoise{color:#36D7B7!important}.progress-bar.green-turquoise{background:#36D7B7!important;color:#FFF!important}.green-haze.btn{color:#FFF;background-color:#44b6ae;border-color:""}.green-haze.btn.active,.green-haze.btn:active,.green-haze.btn:focus,.green-haze.btn:hover,.open .green-haze.btn.dropdown-toggle{color:#FFF;background-color:#3a9c95}.green-haze.btn.active,.green-haze.btn:active{background-image:none;background-color:#338983}.green-haze.btn.active:hover,.green-haze.btn:active:hover{background-color:#36918b}.open .green-haze.btn.dropdown-toggle{background-image:none}.green-haze.btn.disabled,.green-haze.btn.disabled.active,.green-haze.btn.disabled:active,.green-haze.btn.disabled:focus,.green-haze.btn.disabled:hover,.green-haze.btn[disabled],.green-haze.btn[disabled].active,.green-haze.btn[disabled]:active,.green-haze.btn[disabled]:focus,.green-haze.btn[disabled]:hover,fieldset[disabled] .green-haze.btn,fieldset[disabled] .green-haze.btn.active,fieldset[disabled] .green-haze.btn:active,fieldset[disabled] .green-haze.btn:focus,fieldset[disabled] .green-haze.btn:hover{background-color:#44b6ae}.green-haze.btn .badge{color:#44b6ae;background-color:#FFF}.portlet.box.green-haze>.portlet-title,.portlet.green-haze,.portlet>.portlet-body.green-haze{background-color:#44b6ae}.btn.green-haze-stripe{border-left:3px solid #44b6ae}.portlet.solid.green-haze>.portlet-body,.portlet.solid.green-haze>.portlet-title{border:0;color:#FFF}.portlet.solid.green-haze>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-haze>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-haze>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-haze{border:1px solid #67c6bf;border-top:0}.portlet.box.green-haze>.portlet-title>.caption,.portlet.box.green-haze>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-haze>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #93d7d2;color:#a6deda}.portlet.box.green-haze>.portlet-title>.actions .btn-default>i{color:#b1e2de}.portlet.box.green-haze>.portlet-title>.actions .btn-default.active,.portlet.box.green-haze>.portlet-title>.actions .btn-default:active,.portlet.box.green-haze>.portlet-title>.actions .btn-default:focus,.portlet.box.green-haze>.portlet-title>.actions .btn-default:hover{border:1px solid #b9e5e2;color:#cbece9}.dashboard-stat.green-haze{background-color:#44b6ae}.dashboard-stat.green-haze.dashboard-stat-light:hover{background-color:#3ea7a0}.dashboard-stat.green-haze .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-haze .details .number{color:#FFF}.dashboard-stat.green-haze .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-haze .more{color:#FFF;background-color:#3ea7a0}.bg-green-haze{border-color:#44b6ae!important;background-image:none!important;background-color:#44b6ae!important;color:#FFF!important}.font-green-haze{color:#44b6ae!important}.progress-bar.green-haze{background:#44b6ae!important;color:#FFF!important}.green-jungle.btn{color:#FFF;background-color:#26C281;border-color:""}.green-jungle.btn.active,.green-jungle.btn:active,.green-jungle.btn:focus,.green-jungle.btn:hover,.open .green-jungle.btn.dropdown-toggle{color:#FFF;background-color:#20a46d}.green-jungle.btn.active,.green-jungle.btn:active{background-image:none;background-color:#1c8f5f}.green-jungle.btn.active:hover,.green-jungle.btn:active:hover{background-color:#1e9765}.open .green-jungle.btn.dropdown-toggle{background-image:none}.green-jungle.btn.disabled,.green-jungle.btn.disabled.active,.green-jungle.btn.disabled:active,.green-jungle.btn.disabled:focus,.green-jungle.btn.disabled:hover,.green-jungle.btn[disabled],.green-jungle.btn[disabled].active,.green-jungle.btn[disabled]:active,.green-jungle.btn[disabled]:focus,.green-jungle.btn[disabled]:hover,fieldset[disabled] .green-jungle.btn,fieldset[disabled] .green-jungle.btn.active,fieldset[disabled] .green-jungle.btn:active,fieldset[disabled] .green-jungle.btn:focus,fieldset[disabled] .green-jungle.btn:hover{background-color:#26C281}.green-jungle.btn .badge{color:#26C281;background-color:#FFF}.portlet.box.green-jungle>.portlet-title,.portlet.green-jungle,.portlet>.portlet-body.green-jungle{background-color:#26C281}.btn.green-jungle-stripe{border-left:3px solid #26C281}.portlet.solid.green-jungle>.portlet-body,.portlet.solid.green-jungle>.portlet-title{border:0;color:#FFF}.portlet.solid.green-jungle>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-jungle>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-jungle>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-jungle{border:1px solid #41da9a;border-top:0}.portlet.box.green-jungle>.portlet-title>.caption,.portlet.box.green-jungle>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-jungle>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #74e4b5;color:#8ae8c1}.portlet.box.green-jungle>.portlet-title>.actions .btn-default>i{color:#96ebc8}.portlet.box.green-jungle>.portlet-title>.actions .btn-default.active,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:active,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:focus,.portlet.box.green-jungle>.portlet-title>.actions .btn-default:hover{border:1px solid #9feccc;color:#b4f0d7}.dashboard-stat.green-jungle{background-color:#26C281}.dashboard-stat.green-jungle.dashboard-stat-light:hover{background-color:#23b176}.dashboard-stat.green-jungle .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-jungle .details .number{color:#FFF}.dashboard-stat.green-jungle .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-jungle .more{color:#FFF;background-color:#23b176}.bg-green-jungle{border-color:#26C281!important;background-image:none!important;background-color:#26C281!important;color:#FFF!important}.font-green-jungle{color:#26C281!important}.progress-bar.green-jungle{background:#26C281!important;color:#FFF!important}.green-sharp.btn{color:#FFF;background-color:#4DB3A2;border-color:""}.green-sharp.btn.active,.green-sharp.btn:active,.green-sharp.btn:focus,.green-sharp.btn:hover,.open .green-sharp.btn.dropdown-toggle{color:#FFF;background-color:#429a8c}.green-sharp.btn.active,.green-sharp.btn:active{background-image:none;background-color:#3a897b}.green-sharp.btn.active:hover,.green-sharp.btn:active:hover{background-color:#3d9082}.open .green-sharp.btn.dropdown-toggle{background-image:none}.green-sharp.btn.disabled,.green-sharp.btn.disabled.active,.green-sharp.btn.disabled:active,.green-sharp.btn.disabled:focus,.green-sharp.btn.disabled:hover,.green-sharp.btn[disabled],.green-sharp.btn[disabled].active,.green-sharp.btn[disabled]:active,.green-sharp.btn[disabled]:focus,.green-sharp.btn[disabled]:hover,fieldset[disabled] .green-sharp.btn,fieldset[disabled] .green-sharp.btn.active,fieldset[disabled] .green-sharp.btn:active,fieldset[disabled] .green-sharp.btn:focus,fieldset[disabled] .green-sharp.btn:hover{background-color:#4DB3A2}.green-sharp.btn .badge{color:#4DB3A2;background-color:#FFF}.portlet.box.green-sharp>.portlet-title,.portlet.green-sharp,.portlet>.portlet-body.green-sharp{background-color:#4DB3A2}.btn.green-sharp-stripe{border-left:3px solid #4DB3A2}.portlet.solid.green-sharp>.portlet-body,.portlet.solid.green-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.green-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-sharp{border:1px solid #71c2b5;border-top:0}.portlet.box.green-sharp>.portlet-title>.caption,.portlet.box.green-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #9cd5cb;color:#addcd4}.portlet.box.green-sharp>.portlet-title>.actions .btn-default>i{color:#b8e1da}.portlet.box.green-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.green-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #bfe4de;color:#d1ebe7}.dashboard-stat.green-sharp{background-color:#4DB3A2}.dashboard-stat.green-sharp.dashboard-stat-light:hover{background-color:#46a595}.dashboard-stat.green-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-sharp .details .number{color:#FFF}.dashboard-stat.green-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-sharp .more{color:#FFF;background-color:#46a595}.bg-green-sharp{border-color:#4DB3A2!important;background-image:none!important;background-color:#4DB3A2!important;color:#FFF!important}.font-green-sharp{color:#4DB3A2!important}.progress-bar.green-sharp{background:#4DB3A2!important;color:#FFF!important}.green-soft.btn{color:#FFF;background-color:#3faba4;border-color:""}.green-soft.btn.active,.green-soft.btn:active,.green-soft.btn:focus,.green-soft.btn:hover,.open .green-soft.btn.dropdown-toggle{color:#FFF;background-color:#35918b}.green-soft.btn.active,.green-soft.btn:active{background-image:none;background-color:#2f7e79}.green-soft.btn.active:hover,.green-soft.btn:active:hover{background-color:#318680}.open .green-soft.btn.dropdown-toggle{background-image:none}.green-soft.btn.disabled,.green-soft.btn.disabled.active,.green-soft.btn.disabled:active,.green-soft.btn.disabled:focus,.green-soft.btn.disabled:hover,.green-soft.btn[disabled],.green-soft.btn[disabled].active,.green-soft.btn[disabled]:active,.green-soft.btn[disabled]:focus,.green-soft.btn[disabled]:hover,fieldset[disabled] .green-soft.btn,fieldset[disabled] .green-soft.btn.active,fieldset[disabled] .green-soft.btn:active,fieldset[disabled] .green-soft.btn:focus,fieldset[disabled] .green-soft.btn:hover{background-color:#3faba4}.green-soft.btn .badge{color:#3faba4;background-color:#FFF}.portlet.box.green-soft>.portlet-title,.portlet.green-soft,.portlet>.portlet-body.green-soft{background-color:#3faba4}.btn.green-soft-stripe{border-left:3px solid #3faba4}.portlet.solid.green-soft>.portlet-body,.portlet.solid.green-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.green-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.green-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.green-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.green-soft{border:1px solid #5bc2bc;border-top:0}.portlet.box.green-soft>.portlet-title>.caption,.portlet.box.green-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.green-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #87d3ce;color:#9adad6}.portlet.box.green-soft>.portlet-title>.actions .btn-default>i{color:#a5deda}.portlet.box.green-soft>.portlet-title>.actions .btn-default.active,.portlet.box.green-soft>.portlet-title>.actions .btn-default:active,.portlet.box.green-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.green-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #ade1dd;color:#bfe7e5}.dashboard-stat.green-soft{background-color:#3faba4}.dashboard-stat.green-soft.dashboard-stat-light:hover{background-color:#3a9c96}.dashboard-stat.green-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.green-soft .details .number{color:#FFF}.dashboard-stat.green-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.green-soft .more{color:#FFF;background-color:#3a9c96}.bg-green-soft{border-color:#3faba4!important;background-image:none!important;background-color:#3faba4!important;color:#FFF!important}.font-green-soft{color:#3faba4!important}.progress-bar.green-soft{background:#3faba4!important;color:#FFF!important}.grey.btn{color:#333;background-color:#E5E5E5;border-color:""}.grey.btn.active,.grey.btn:active,.grey.btn:focus,.grey.btn:hover,.open .grey.btn.dropdown-toggle{color:#333;background-color:#d3d3d3}.grey.btn.active,.grey.btn:active{background-image:none;background-color:#c6c6c6}.grey.btn.active:hover,.grey.btn:active:hover{background-color:#ccc}.open .grey.btn.dropdown-toggle{background-image:none}.grey.btn.disabled,.grey.btn.disabled.active,.grey.btn.disabled:active,.grey.btn.disabled:focus,.grey.btn.disabled:hover,.grey.btn[disabled],.grey.btn[disabled].active,.grey.btn[disabled]:active,.grey.btn[disabled]:focus,.grey.btn[disabled]:hover,fieldset[disabled] .grey.btn,fieldset[disabled] .grey.btn.active,fieldset[disabled] .grey.btn:active,fieldset[disabled] .grey.btn:focus,fieldset[disabled] .grey.btn:hover{background-color:#E5E5E5}.grey.btn .badge{color:#E5E5E5;background-color:#333}.portlet.box.grey>.portlet-title,.portlet.grey,.portlet>.portlet-body.grey{background-color:#E5E5E5}.btn.grey-stripe{border-left:3px solid #E5E5E5}.portlet.solid.grey>.portlet-body,.portlet.solid.grey>.portlet-title{border:0;color:#333}.portlet.solid.grey>.portlet-title>.caption>i{color:#333}.portlet.solid.grey>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey{border:1px solid #fff;border-top:0}.portlet.box.grey>.portlet-title>.caption,.portlet.box.grey>.portlet-title>.caption>i{color:#333}.portlet.box.grey>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey>.portlet-title>.actions .btn-default.active,.portlet.box.grey>.portlet-title>.actions .btn-default:active,.portlet.box.grey>.portlet-title>.actions .btn-default:focus,.portlet.box.grey>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey{background-color:#E5E5E5}.dashboard-stat.grey.dashboard-stat-light:hover{background-color:#dbdbdb}.dashboard-stat.grey .visual>i{color:#333;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey .details .number{color:#333}.dashboard-stat.grey .details .desc{color:#333;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey .more{color:#333;background-color:#dbdbdb}.bg-grey{border-color:#E5E5E5!important;background-image:none!important;background-color:#E5E5E5!important;color:#333!important}.font-grey{color:#E5E5E5!important}.progress-bar.grey{background:#E5E5E5!important;color:#333!important}.grey-steel.btn{color:#80898e;background-color:#e9edef;border-color:""}.grey-steel.btn.active,.grey-steel.btn:active,.grey-steel.btn:focus,.grey-steel.btn:hover,.open .grey-steel.btn.dropdown-toggle{color:#80898e;background-color:#d4dce0}.grey-steel.btn.active,.grey-steel.btn:active{background-image:none;background-color:#c6d0d5}.grey-steel.btn.active:hover,.grey-steel.btn:active:hover{background-color:#cbd5da}.open .grey-steel.btn.dropdown-toggle{background-image:none}.grey-steel.btn.disabled,.grey-steel.btn.disabled.active,.grey-steel.btn.disabled:active,.grey-steel.btn.disabled:focus,.grey-steel.btn.disabled:hover,.grey-steel.btn[disabled],.grey-steel.btn[disabled].active,.grey-steel.btn[disabled]:active,.grey-steel.btn[disabled]:focus,.grey-steel.btn[disabled]:hover,fieldset[disabled] .grey-steel.btn,fieldset[disabled] .grey-steel.btn.active,fieldset[disabled] .grey-steel.btn:active,fieldset[disabled] .grey-steel.btn:focus,fieldset[disabled] .grey-steel.btn:hover{background-color:#e9edef}.grey-steel.btn .badge{color:#e9edef;background-color:#80898e}.portlet.box.grey-steel>.portlet-title,.portlet.grey-steel,.portlet>.portlet-body.grey-steel{background-color:#e9edef}.btn.grey-steel-stripe{border-left:3px solid #e9edef}.portlet.solid.grey-steel>.portlet-body,.portlet.solid.grey-steel>.portlet-title{border:0;color:#80898e}.portlet.solid.grey-steel>.portlet-title>.caption>i{color:#80898e}.portlet.solid.grey-steel>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-steel>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-steel{border:1px solid #fff;border-top:0}.portlet.box.grey-steel>.portlet-title>.caption,.portlet.box.grey-steel>.portlet-title>.caption>i{color:#80898e}.portlet.box.grey-steel>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-steel>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-steel>.portlet-title>.actions .btn-default.active,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:active,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-steel>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-steel{background-color:#e9edef}.dashboard-stat.grey-steel.dashboard-stat-light:hover{background-color:#dde3e6}.dashboard-stat.grey-steel .visual>i{color:#80898e;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-steel .details .number{color:#80898e}.dashboard-stat.grey-steel .details .desc{color:#80898e;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-steel .more{color:#80898e;background-color:#dde3e6}.bg-grey-steel{border-color:#e9edef!important;background-image:none!important;background-color:#e9edef!important;color:#80898e!important}.font-grey-steel{color:#e9edef!important}.progress-bar.grey-steel{background:#e9edef!important;color:#80898e!important}.grey-cararra.btn{color:#333;background-color:#fafafa;border-color:""}.grey-cararra.btn.active,.grey-cararra.btn:active,.grey-cararra.btn:focus,.grey-cararra.btn:hover,.open .grey-cararra.btn.dropdown-toggle{color:#333;background-color:#e8e8e8}.grey-cararra.btn.active,.grey-cararra.btn:active{background-image:none;background-color:#dbdbdb}.grey-cararra.btn.active:hover,.grey-cararra.btn:active:hover{background-color:#e1e1e1}.open .grey-cararra.btn.dropdown-toggle{background-image:none}.grey-cararra.btn.disabled,.grey-cararra.btn.disabled.active,.grey-cararra.btn.disabled:active,.grey-cararra.btn.disabled:focus,.grey-cararra.btn.disabled:hover,.grey-cararra.btn[disabled],.grey-cararra.btn[disabled].active,.grey-cararra.btn[disabled]:active,.grey-cararra.btn[disabled]:focus,.grey-cararra.btn[disabled]:hover,fieldset[disabled] .grey-cararra.btn,fieldset[disabled] .grey-cararra.btn.active,fieldset[disabled] .grey-cararra.btn:active,fieldset[disabled] .grey-cararra.btn:focus,fieldset[disabled] .grey-cararra.btn:hover{background-color:#fafafa}.grey-cararra.btn .badge{color:#fafafa;background-color:#333}.portlet.box.grey-cararra>.portlet-title,.portlet.grey-cararra,.portlet>.portlet-body.grey-cararra{background-color:#fafafa}.btn.grey-cararra-stripe{border-left:3px solid #fafafa}.portlet.solid.grey-cararra>.portlet-body,.portlet.solid.grey-cararra>.portlet-title{border:0;color:#333}.portlet.solid.grey-cararra>.portlet-title>.caption>i{color:#333}.portlet.solid.grey-cararra>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-cararra>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-cararra{border:1px solid #fff;border-top:0}.portlet.box.grey-cararra>.portlet-title>.caption,.portlet.box.grey-cararra>.portlet-title>.caption>i{color:#333}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-cararra>.portlet-title>.actions .btn-default.active,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:active,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-cararra>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-cararra{background-color:#fafafa}.dashboard-stat.grey-cararra.dashboard-stat-light:hover{background-color:#f0f0f0}.dashboard-stat.grey-cararra .visual>i{color:#333;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-cararra .details .number{color:#333}.dashboard-stat.grey-cararra .details .desc{color:#333;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-cararra .more{color:#333;background-color:#f0f0f0}.bg-grey-cararra{border-color:#fafafa!important;background-image:none!important;background-color:#fafafa!important;color:#333!important}.font-grey-cararra{color:#fafafa!important}.progress-bar.grey-cararra{background:#fafafa!important;color:#333!important}.grey-gallery.btn{color:#fff;background-color:#555;border-color:""}.grey-gallery.btn.active,.grey-gallery.btn:active,.grey-gallery.btn:focus,.grey-gallery.btn:hover,.open .grey-gallery.btn.dropdown-toggle{color:#fff;background-color:#434343}.grey-gallery.btn.active,.grey-gallery.btn:active{background-image:none;background-color:#363636}.grey-gallery.btn.active:hover,.grey-gallery.btn:active:hover{background-color:#3b3b3b}.open .grey-gallery.btn.dropdown-toggle{background-image:none}.grey-gallery.btn.disabled,.grey-gallery.btn.disabled.active,.grey-gallery.btn.disabled:active,.grey-gallery.btn.disabled:focus,.grey-gallery.btn.disabled:hover,.grey-gallery.btn[disabled],.grey-gallery.btn[disabled].active,.grey-gallery.btn[disabled]:active,.grey-gallery.btn[disabled]:focus,.grey-gallery.btn[disabled]:hover,fieldset[disabled] .grey-gallery.btn,fieldset[disabled] .grey-gallery.btn.active,fieldset[disabled] .grey-gallery.btn:active,fieldset[disabled] .grey-gallery.btn:focus,fieldset[disabled] .grey-gallery.btn:hover{background-color:#555}.grey-gallery.btn .badge{color:#555;background-color:#fff}.portlet.box.grey-gallery>.portlet-title,.portlet.grey-gallery,.portlet>.portlet-body.grey-gallery{background-color:#555}.btn.grey-gallery-stripe{border-left:3px solid #555}.portlet.solid.grey-gallery>.portlet-body,.portlet.solid.grey-gallery>.portlet-title{border:0;color:#fff}.portlet.solid.grey-gallery>.portlet-title>.caption>i{color:#fff}.portlet.solid.grey-gallery>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-gallery>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-gallery{border:1px solid #6e6e6e;border-top:0}.portlet.box.grey-gallery>.portlet-title>.caption,.portlet.box.grey-gallery>.portlet-title>.caption>i{color:#fff}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #8d8d8d;color:#9a9a9a}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default>i{color:#a2a2a2}.portlet.box.grey-gallery>.portlet-title>.actions .btn-default.active,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:active,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-gallery>.portlet-title>.actions .btn-default:hover{border:1px solid #a7a7a7;color:#b3b3b3}.dashboard-stat.grey-gallery{background-color:#555}.dashboard-stat.grey-gallery.dashboard-stat-light:hover{background-color:#4b4b4b}.dashboard-stat.grey-gallery .visual>i{color:#fff;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-gallery .details .number{color:#fff}.dashboard-stat.grey-gallery .details .desc{color:#fff;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-gallery .more{color:#fff;background-color:#4b4b4b}.bg-grey-gallery{border-color:#555!important;background-image:none!important;background-color:#555!important;color:#fff!important}.font-grey-gallery{color:#555!important}.progress-bar.grey-gallery{background:#555!important;color:#fff!important}.grey-cascade.btn{color:#FFF;background-color:#95A5A6;border-color:""}.grey-cascade.btn.active,.grey-cascade.btn:active,.grey-cascade.btn:focus,.grey-cascade.btn:hover,.open .grey-cascade.btn.dropdown-toggle{color:#FFF;background-color:#829596}.grey-cascade.btn.active,.grey-cascade.btn:active{background-image:none;background-color:#74898a}.grey-cascade.btn.active:hover,.grey-cascade.btn:active:hover{background-color:#798d8f}.open .grey-cascade.btn.dropdown-toggle{background-image:none}.grey-cascade.btn.disabled,.grey-cascade.btn.disabled.active,.grey-cascade.btn.disabled:active,.grey-cascade.btn.disabled:focus,.grey-cascade.btn.disabled:hover,.grey-cascade.btn[disabled],.grey-cascade.btn[disabled].active,.grey-cascade.btn[disabled]:active,.grey-cascade.btn[disabled]:focus,.grey-cascade.btn[disabled]:hover,fieldset[disabled] .grey-cascade.btn,fieldset[disabled] .grey-cascade.btn.active,fieldset[disabled] .grey-cascade.btn:active,fieldset[disabled] .grey-cascade.btn:focus,fieldset[disabled] .grey-cascade.btn:hover{background-color:#95A5A6}.grey-cascade.btn .badge{color:#95A5A6;background-color:#FFF}.portlet.box.grey-cascade>.portlet-title,.portlet.grey-cascade,.portlet>.portlet-body.grey-cascade{background-color:#95A5A6}.btn.grey-cascade-stripe{border-left:3px solid #95A5A6}.portlet.solid.grey-cascade>.portlet-body,.portlet.solid.grey-cascade>.portlet-title{border:0;color:#FFF}.portlet.solid.grey-cascade>.portlet-title>.caption>i{color:#FFF}.portlet.solid.grey-cascade>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-cascade>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-cascade{border:1px solid #b1bdbd;border-top:0}.portlet.box.grey-cascade>.portlet-title>.caption,.portlet.box.grey-cascade>.portlet-title>.caption>i{color:#FFF}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #d2d9d9;color:#e0e5e5}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default>i{color:#e8ecec}.portlet.box.grey-cascade>.portlet-title>.actions .btn-default.active,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:active,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-cascade>.portlet-title>.actions .btn-default:hover{border:1px solid #eef0f0;color:#fcfcfc}.dashboard-stat.grey-cascade{background-color:#95A5A6}.dashboard-stat.grey-cascade.dashboard-stat-light:hover{background-color:#8a9c9d}.dashboard-stat.grey-cascade .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-cascade .details .number{color:#FFF}.dashboard-stat.grey-cascade .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-cascade .more{color:#FFF;background-color:#8a9c9d}.bg-grey-cascade{border-color:#95A5A6!important;background-image:none!important;background-color:#95A5A6!important;color:#FFF!important}.font-grey-cascade{color:#95A5A6!important}.progress-bar.grey-cascade{background:#95A5A6!important;color:#FFF!important}.grey-silver.btn{color:#FAFCFB;background-color:#BFBFBF;border-color:""}.grey-silver.btn.active,.grey-silver.btn:active,.grey-silver.btn:focus,.grey-silver.btn:hover,.open .grey-silver.btn.dropdown-toggle{color:#FAFCFB;background-color:#adadad}.grey-silver.btn.active,.grey-silver.btn:active{background-image:none;background-color:#a0a0a0}.grey-silver.btn.active:hover,.grey-silver.btn:active:hover{background-color:#a6a6a6}.open .grey-silver.btn.dropdown-toggle{background-image:none}.grey-silver.btn.disabled,.grey-silver.btn.disabled.active,.grey-silver.btn.disabled:active,.grey-silver.btn.disabled:focus,.grey-silver.btn.disabled:hover,.grey-silver.btn[disabled],.grey-silver.btn[disabled].active,.grey-silver.btn[disabled]:active,.grey-silver.btn[disabled]:focus,.grey-silver.btn[disabled]:hover,fieldset[disabled] .grey-silver.btn,fieldset[disabled] .grey-silver.btn.active,fieldset[disabled] .grey-silver.btn:active,fieldset[disabled] .grey-silver.btn:focus,fieldset[disabled] .grey-silver.btn:hover{background-color:#BFBFBF}.grey-silver.btn .badge{color:#BFBFBF;background-color:#FAFCFB}.portlet.box.grey-silver>.portlet-title,.portlet.grey-silver,.portlet>.portlet-body.grey-silver{background-color:#BFBFBF}.btn.grey-silver-stripe{border-left:3px solid #BFBFBF}.portlet.solid.grey-silver>.portlet-body,.portlet.solid.grey-silver>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-silver>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-silver>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-silver>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-silver{border:1px solid #d9d9d9;border-top:0}.portlet.box.grey-silver>.portlet-title>.caption,.portlet.box.grey-silver>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-silver>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f7f7f7;color:#fff}.portlet.box.grey-silver>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-silver>.portlet-title>.actions .btn-default.active,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:active,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-silver>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-silver{background-color:#BFBFBF}.dashboard-stat.grey-silver.dashboard-stat-light:hover{background-color:#b5b5b5}.dashboard-stat.grey-silver .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-silver .details .number{color:#FAFCFB}.dashboard-stat.grey-silver .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-silver .more{color:#FAFCFB;background-color:#b5b5b5}.bg-grey-silver{border-color:#BFBFBF!important;background-image:none!important;background-color:#BFBFBF!important;color:#FAFCFB!important}.font-grey-silver{color:#BFBFBF!important}.progress-bar.grey-silver{background:#BFBFBF!important;color:#FAFCFB!important}.grey-salsa.btn{color:#FAFCFB;background-color:#ACB5C3;border-color:""}.grey-salsa.btn.active,.grey-salsa.btn:active,.grey-salsa.btn:focus,.grey-salsa.btn:hover,.open .grey-salsa.btn.dropdown-toggle{color:#FAFCFB;background-color:#97a3b4}.grey-salsa.btn.active,.grey-salsa.btn:active{background-image:none;background-color:#8895a9}.grey-salsa.btn.active:hover,.grey-salsa.btn:active:hover{background-color:#8e9bae}.open .grey-salsa.btn.dropdown-toggle{background-image:none}.grey-salsa.btn.disabled,.grey-salsa.btn.disabled.active,.grey-salsa.btn.disabled:active,.grey-salsa.btn.disabled:focus,.grey-salsa.btn.disabled:hover,.grey-salsa.btn[disabled],.grey-salsa.btn[disabled].active,.grey-salsa.btn[disabled]:active,.grey-salsa.btn[disabled]:focus,.grey-salsa.btn[disabled]:hover,fieldset[disabled] .grey-salsa.btn,fieldset[disabled] .grey-salsa.btn.active,fieldset[disabled] .grey-salsa.btn:active,fieldset[disabled] .grey-salsa.btn:focus,fieldset[disabled] .grey-salsa.btn:hover{background-color:#ACB5C3}.grey-salsa.btn .badge{color:#ACB5C3;background-color:#FAFCFB}.portlet.box.grey-salsa>.portlet-title,.portlet.grey-salsa,.portlet>.portlet-body.grey-salsa{background-color:#ACB5C3}.btn.grey-salsa-stripe{border-left:3px solid #ACB5C3}.portlet.solid.grey-salsa>.portlet-body,.portlet.solid.grey-salsa>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-salsa>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-salsa>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-salsa>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-salsa{border:1px solid #cacfd8;border-top:0}.portlet.box.grey-salsa>.portlet-title>.caption,.portlet.box.grey-salsa>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #edeff2;color:#fcfcfd}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-salsa>.portlet-title>.actions .btn-default.active,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:active,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-salsa>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-salsa{background-color:#ACB5C3}.dashboard-stat.grey-salsa.dashboard-stat-light:hover{background-color:#a0aaba}.dashboard-stat.grey-salsa .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-salsa .details .number{color:#FAFCFB}.dashboard-stat.grey-salsa .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-salsa .more{color:#FAFCFB;background-color:#a0aaba}.bg-grey-salsa{border-color:#ACB5C3!important;background-image:none!important;background-color:#ACB5C3!important;color:#FAFCFB!important}.font-grey-salsa{color:#ACB5C3!important}.progress-bar.grey-salsa{background:#ACB5C3!important;color:#FAFCFB!important}.grey-salt.btn{color:#FAFCFB;background-color:#bfcad1;border-color:""}.grey-salt.btn.active,.grey-salt.btn:active,.grey-salt.btn:focus,.grey-salt.btn:hover,.open .grey-salt.btn.dropdown-toggle{color:#FAFCFB;background-color:#aab9c2}.grey-salt.btn.active,.grey-salt.btn:active{background-image:none;background-color:#9badb7}.grey-salt.btn.active:hover,.grey-salt.btn:active:hover{background-color:#a1b1bc}.open .grey-salt.btn.dropdown-toggle{background-image:none}.grey-salt.btn.disabled,.grey-salt.btn.disabled.active,.grey-salt.btn.disabled:active,.grey-salt.btn.disabled:focus,.grey-salt.btn.disabled:hover,.grey-salt.btn[disabled],.grey-salt.btn[disabled].active,.grey-salt.btn[disabled]:active,.grey-salt.btn[disabled]:focus,.grey-salt.btn[disabled]:hover,fieldset[disabled] .grey-salt.btn,fieldset[disabled] .grey-salt.btn.active,fieldset[disabled] .grey-salt.btn:active,fieldset[disabled] .grey-salt.btn:focus,fieldset[disabled] .grey-salt.btn:hover{background-color:#bfcad1}.grey-salt.btn .badge{color:#bfcad1;background-color:#FAFCFB}.portlet.box.grey-salt>.portlet-title,.portlet.grey-salt,.portlet>.portlet-body.grey-salt{background-color:#bfcad1}.btn.grey-salt-stripe{border-left:3px solid #bfcad1}.portlet.solid.grey-salt>.portlet-body,.portlet.solid.grey-salt>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-salt>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-salt>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-salt>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-salt{border:1px solid #dde3e6;border-top:0}.portlet.box.grey-salt>.portlet-title>.caption,.portlet.box.grey-salt>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-salt>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fff;color:#fff}.portlet.box.grey-salt>.portlet-title>.actions .btn-default>i{color:#fff}.portlet.box.grey-salt>.portlet-title>.actions .btn-default.active,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:active,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-salt>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.grey-salt{background-color:#bfcad1}.dashboard-stat.grey-salt.dashboard-stat-light:hover{background-color:#b3c0c8}.dashboard-stat.grey-salt .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-salt .details .number{color:#FAFCFB}.dashboard-stat.grey-salt .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-salt .more{color:#FAFCFB;background-color:#b3c0c8}.bg-grey-salt{border-color:#bfcad1!important;background-image:none!important;background-color:#bfcad1!important;color:#FAFCFB!important}.font-grey-salt{color:#bfcad1!important}.progress-bar.grey-salt{background:#bfcad1!important;color:#FAFCFB!important}.grey-mint.btn{color:#FAFCFB;background-color:#9eacb4;border-color:""}.grey-mint.btn.active,.grey-mint.btn:active,.grey-mint.btn:focus,.grey-mint.btn:hover,.open .grey-mint.btn.dropdown-toggle{color:#FAFCFB;background-color:#8a9ba4}.grey-mint.btn.active,.grey-mint.btn:active{background-image:none;background-color:#7b8e99}.grey-mint.btn.active:hover,.grey-mint.btn:active:hover{background-color:#81939e}.open .grey-mint.btn.dropdown-toggle{background-image:none}.grey-mint.btn.disabled,.grey-mint.btn.disabled.active,.grey-mint.btn.disabled:active,.grey-mint.btn.disabled:focus,.grey-mint.btn.disabled:hover,.grey-mint.btn[disabled],.grey-mint.btn[disabled].active,.grey-mint.btn[disabled]:active,.grey-mint.btn[disabled]:focus,.grey-mint.btn[disabled]:hover,fieldset[disabled] .grey-mint.btn,fieldset[disabled] .grey-mint.btn.active,fieldset[disabled] .grey-mint.btn:active,fieldset[disabled] .grey-mint.btn:focus,fieldset[disabled] .grey-mint.btn:hover{background-color:#9eacb4}.grey-mint.btn .badge{color:#9eacb4;background-color:#FAFCFB}.portlet.box.grey-mint>.portlet-title,.portlet.grey-mint,.portlet>.portlet-body.grey-mint{background-color:#9eacb4}.btn.grey-mint-stripe{border-left:3px solid #9eacb4}.portlet.solid.grey-mint>.portlet-body,.portlet.solid.grey-mint>.portlet-title{border:0;color:#FAFCFB}.portlet.solid.grey-mint>.portlet-title>.caption>i{color:#FAFCFB}.portlet.solid.grey-mint>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.grey-mint>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.grey-mint{border:1px solid #bbc5ca;border-top:0}.portlet.box.grey-mint>.portlet-title>.caption,.portlet.box.grey-mint>.portlet-title>.caption>i{color:#FAFCFB}.portlet.box.grey-mint>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #dde2e5;color:#eceef0}.portlet.box.grey-mint>.portlet-title>.actions .btn-default>i{color:#f4f6f7}.portlet.box.grey-mint>.portlet-title>.actions .btn-default.active,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:active,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:focus,.portlet.box.grey-mint>.portlet-title>.actions .btn-default:hover{border:1px solid #fafbfb;color:#fff}.dashboard-stat.grey-mint{background-color:#9eacb4}.dashboard-stat.grey-mint.dashboard-stat-light:hover{background-color:#92a2ab}.dashboard-stat.grey-mint .visual>i{color:#FAFCFB;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.grey-mint .details .number{color:#FAFCFB}.dashboard-stat.grey-mint .details .desc{color:#FAFCFB;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.grey-mint .more{color:#FAFCFB;background-color:#92a2ab}.bg-grey-mint{border-color:#9eacb4!important;background-image:none!important;background-color:#9eacb4!important;color:#FAFCFB!important}.font-grey-mint{color:#9eacb4!important}.progress-bar.grey-mint{background:#9eacb4!important;color:#FAFCFB!important}.red.btn{color:#FFF;background-color:#d84a38;border-color:""}.open .red.btn.dropdown-toggle,.red.btn.active,.red.btn:active,.red.btn:focus,.red.btn:hover{color:#FFF;background-color:#c63927}.red.btn.active,.red.btn:active{background-image:none;background-color:#b03223}.red.btn.active:hover,.red.btn:active:hover{background-color:#b93524}.open .red.btn.dropdown-toggle{background-image:none}.red.btn.disabled,.red.btn.disabled.active,.red.btn.disabled:active,.red.btn.disabled:focus,.red.btn.disabled:hover,.red.btn[disabled],.red.btn[disabled].active,.red.btn[disabled]:active,.red.btn[disabled]:focus,.red.btn[disabled]:hover,fieldset[disabled] .red.btn,fieldset[disabled] .red.btn.active,fieldset[disabled] .red.btn:active,fieldset[disabled] .red.btn:focus,fieldset[disabled] .red.btn:hover{background-color:#d84a38}.red.btn .badge{color:#d84a38;background-color:#FFF}.portlet.box.red>.portlet-title,.portlet.red,.portlet>.portlet-body.red{background-color:#d84a38}.btn.red-stripe{border-left:3px solid #d84a38}.portlet.solid.red>.portlet-body,.portlet.solid.red>.portlet-title{border:0;color:#FFF}.portlet.solid.red>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red{border:1px solid #e07163;border-top:0}.portlet.box.red>.portlet-title>.caption,.portlet.box.red>.portlet-title>.caption>i{color:#FFF}.portlet.box.red>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ea9f96;color:#efb3ab}.portlet.box.red>.portlet-title>.actions .btn-default>i{color:#f1beb8}.portlet.box.red>.portlet-title>.actions .btn-default.active,.portlet.box.red>.portlet-title>.actions .btn-default:active,.portlet.box.red>.portlet-title>.actions .btn-default:focus,.portlet.box.red>.portlet-title>.actions .btn-default:hover{border:1px solid #f3c6c0;color:#f7dad6}.dashboard-stat.red{background-color:#d84a38}.dashboard-stat.red.dashboard-stat-light:hover{background-color:#d23c29}.dashboard-stat.red .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red .details .number{color:#FFF}.dashboard-stat.red .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red .more{color:#FFF;background-color:#d23c29}.bg-red{border-color:#d84a38!important;background-image:none!important;background-color:#d84a38!important;color:#FFF!important}.font-red{color:#d84a38!important}.progress-bar.red{background:#d84a38!important;color:#FFF!important}.red-pink.btn{color:#FFF;background-color:#E08283;border-color:""}.open .red-pink.btn.dropdown-toggle,.red-pink.btn.active,.red-pink.btn:active,.red-pink.btn:focus,.red-pink.btn:hover{color:#FFF;background-color:#d96567}.red-pink.btn.active,.red-pink.btn:active{background-image:none;background-color:#d45152}.red-pink.btn.active:hover,.red-pink.btn:active:hover{background-color:#d6595a}.open .red-pink.btn.dropdown-toggle{background-image:none}.red-pink.btn.disabled,.red-pink.btn.disabled.active,.red-pink.btn.disabled:active,.red-pink.btn.disabled:focus,.red-pink.btn.disabled:hover,.red-pink.btn[disabled],.red-pink.btn[disabled].active,.red-pink.btn[disabled]:active,.red-pink.btn[disabled]:focus,.red-pink.btn[disabled]:hover,fieldset[disabled] .red-pink.btn,fieldset[disabled] .red-pink.btn.active,fieldset[disabled] .red-pink.btn:active,fieldset[disabled] .red-pink.btn:focus,fieldset[disabled] .red-pink.btn:hover{background-color:#E08283}.red-pink.btn .badge{color:#E08283;background-color:#FFF}.portlet.box.red-pink>.portlet-title,.portlet.red-pink,.portlet>.portlet-body.red-pink{background-color:#E08283}.btn.red-pink-stripe{border-left:3px solid #E08283}.portlet.solid.red-pink>.portlet-body,.portlet.solid.red-pink>.portlet-title{border:0;color:#FFF}.portlet.solid.red-pink>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-pink>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-pink>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-pink{border:1px solid #eaabac;border-top:0}.portlet.box.red-pink>.portlet-title>.caption,.portlet.box.red-pink>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-pink>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f6dcdc;color:#fbf0f0}.portlet.box.red-pink>.portlet-title>.actions .btn-default>i{color:#fefdfd}.portlet.box.red-pink>.portlet-title>.actions .btn-default.active,.portlet.box.red-pink>.portlet-title>.actions .btn-default:active,.portlet.box.red-pink>.portlet-title>.actions .btn-default:focus,.portlet.box.red-pink>.portlet-title>.actions .btn-default:hover{border:1px solid #fff;color:#fff}.dashboard-stat.red-pink{background-color:#E08283}.dashboard-stat.red-pink.dashboard-stat-light:hover{background-color:#dc7273}.dashboard-stat.red-pink .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-pink .details .number{color:#FFF}.dashboard-stat.red-pink .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-pink .more{color:#FFF;background-color:#dc7273}.bg-red-pink{border-color:#E08283!important;background-image:none!important;background-color:#E08283!important;color:#FFF!important}.font-red-pink{color:#E08283!important}.progress-bar.red-pink{background:#E08283!important;color:#FFF!important}.red-sunglo.btn{color:#FFF;background-color:#E26A6A;border-color:""}.open .red-sunglo.btn.dropdown-toggle,.red-sunglo.btn.active,.red-sunglo.btn:active,.red-sunglo.btn:focus,.red-sunglo.btn:hover{color:#FFF;background-color:#dc4c4c}.red-sunglo.btn.active,.red-sunglo.btn:active{background-image:none;background-color:#d83737}.red-sunglo.btn.active:hover,.red-sunglo.btn:active:hover{background-color:#da3f3f}.open .red-sunglo.btn.dropdown-toggle{background-image:none}.red-sunglo.btn.disabled,.red-sunglo.btn.disabled.active,.red-sunglo.btn.disabled:active,.red-sunglo.btn.disabled:focus,.red-sunglo.btn.disabled:hover,.red-sunglo.btn[disabled],.red-sunglo.btn[disabled].active,.red-sunglo.btn[disabled]:active,.red-sunglo.btn[disabled]:focus,.red-sunglo.btn[disabled]:hover,fieldset[disabled] .red-sunglo.btn,fieldset[disabled] .red-sunglo.btn.active,fieldset[disabled] .red-sunglo.btn:active,fieldset[disabled] .red-sunglo.btn:focus,fieldset[disabled] .red-sunglo.btn:hover{background-color:#E26A6A}.red-sunglo.btn .badge{color:#E26A6A;background-color:#FFF}.portlet.box.red-sunglo>.portlet-title,.portlet.red-sunglo,.portlet>.portlet-body.red-sunglo{background-color:#E26A6A}.btn.red-sunglo-stripe{border-left:3px solid #E26A6A}.portlet.solid.red-sunglo>.portlet-body,.portlet.solid.red-sunglo>.portlet-title{border:0;color:#FFF}.portlet.solid.red-sunglo>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-sunglo>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-sunglo>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-sunglo{border:1px solid #ea9595;border-top:0}.portlet.box.red-sunglo>.portlet-title>.caption,.portlet.box.red-sunglo>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f4c8c8;color:#f8dddd}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default>i{color:#fbeaea}.portlet.box.red-sunglo>.portlet-title>.actions .btn-default.active,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:active,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:focus,.portlet.box.red-sunglo>.portlet-title>.actions .btn-default:hover{border:1px solid #fdf3f3;color:#fff}.dashboard-stat.red-sunglo{background-color:#E26A6A}.dashboard-stat.red-sunglo.dashboard-stat-light:hover{background-color:#df5959}.dashboard-stat.red-sunglo .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-sunglo .details .number{color:#FFF}.dashboard-stat.red-sunglo .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-sunglo .more{color:#FFF;background-color:#df5959}.bg-red-sunglo{border-color:#E26A6A!important;background-image:none!important;background-color:#E26A6A!important;color:#FFF!important}.font-red-sunglo{color:#E26A6A!important}.progress-bar.red-sunglo{background:#E26A6A!important;color:#FFF!important}.red-intense.btn{color:#FFF;background-color:#e35b5a;border-color:""}.open .red-intense.btn.dropdown-toggle,.red-intense.btn.active,.red-intense.btn:active,.red-intense.btn:focus,.red-intense.btn:hover{color:#FFF;background-color:#de3d3b}.red-intense.btn.active,.red-intense.btn:active{background-image:none;background-color:#da2726}.red-intense.btn.active:hover,.red-intense.btn:active:hover{background-color:#dc302e}.open .red-intense.btn.dropdown-toggle{background-image:none}.red-intense.btn.disabled,.red-intense.btn.disabled.active,.red-intense.btn.disabled:active,.red-intense.btn.disabled:focus,.red-intense.btn.disabled:hover,.red-intense.btn[disabled],.red-intense.btn[disabled].active,.red-intense.btn[disabled]:active,.red-intense.btn[disabled]:focus,.red-intense.btn[disabled]:hover,fieldset[disabled] .red-intense.btn,fieldset[disabled] .red-intense.btn.active,fieldset[disabled] .red-intense.btn:active,fieldset[disabled] .red-intense.btn:focus,fieldset[disabled] .red-intense.btn:hover{background-color:#e35b5a}.red-intense.btn .badge{color:#e35b5a;background-color:#FFF}.portlet.box.red-intense>.portlet-title,.portlet.red-intense,.portlet>.portlet-body.red-intense{background-color:#e35b5a}.btn.red-intense-stripe{border-left:3px solid #e35b5a}.portlet.solid.red-intense>.portlet-body,.portlet.solid.red-intense>.portlet-title{border:0;color:#FFF}.portlet.solid.red-intense>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-intense>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-intense>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-intense{border:1px solid #ea8686;border-top:0}.portlet.box.red-intense>.portlet-title>.caption,.portlet.box.red-intense>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-intense>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f3baba;color:#f7d0d0}.portlet.box.red-intense>.portlet-title>.actions .btn-default>i{color:#f9dddd}.portlet.box.red-intense>.portlet-title>.actions .btn-default.active,.portlet.box.red-intense>.portlet-title>.actions .btn-default:active,.portlet.box.red-intense>.portlet-title>.actions .btn-default:focus,.portlet.box.red-intense>.portlet-title>.actions .btn-default:hover{border:1px solid #fbe6e6;color:#fefbfb}.dashboard-stat.red-intense{background-color:#e35b5a}.dashboard-stat.red-intense.dashboard-stat-light:hover{background-color:#e04a49}.dashboard-stat.red-intense .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-intense .details .number{color:#FFF}.dashboard-stat.red-intense .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-intense .more{color:#FFF;background-color:#e04a49}.bg-red-intense{border-color:#e35b5a!important;background-image:none!important;background-color:#e35b5a!important;color:#FFF!important}.font-red-intense{color:#e35b5a!important}.progress-bar.red-intense{background:#e35b5a!important;color:#FFF!important}.red-thunderbird.btn{color:#FFF;background-color:#D91E18;border-color:""}.open .red-thunderbird.btn.dropdown-toggle,.red-thunderbird.btn.active,.red-thunderbird.btn:active,.red-thunderbird.btn:focus,.red-thunderbird.btn:hover{color:#FFF;background-color:#b91a14}.red-thunderbird.btn.active,.red-thunderbird.btn:active{background-image:none;background-color:#a21612}.red-thunderbird.btn.active:hover,.red-thunderbird.btn:active:hover{background-color:#ab1813}.open .red-thunderbird.btn.dropdown-toggle{background-image:none}.red-thunderbird.btn.disabled,.red-thunderbird.btn.disabled.active,.red-thunderbird.btn.disabled:active,.red-thunderbird.btn.disabled:focus,.red-thunderbird.btn.disabled:hover,.red-thunderbird.btn[disabled],.red-thunderbird.btn[disabled].active,.red-thunderbird.btn[disabled]:active,.red-thunderbird.btn[disabled]:focus,.red-thunderbird.btn[disabled]:hover,fieldset[disabled] .red-thunderbird.btn,fieldset[disabled] .red-thunderbird.btn.active,fieldset[disabled] .red-thunderbird.btn:active,fieldset[disabled] .red-thunderbird.btn:focus,fieldset[disabled] .red-thunderbird.btn:hover{background-color:#D91E18}.red-thunderbird.btn .badge{color:#D91E18;background-color:#FFF}.portlet.box.red-thunderbird>.portlet-title,.portlet.red-thunderbird,.portlet>.portlet-body.red-thunderbird{background-color:#D91E18}.btn.red-thunderbird-stripe{border-left:3px solid #D91E18}.portlet.solid.red-thunderbird>.portlet-body,.portlet.solid.red-thunderbird>.portlet-title{border:0;color:#FFF}.portlet.solid.red-thunderbird>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-thunderbird>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-thunderbird{border:1px solid #e9403b;border-top:0}.portlet.box.red-thunderbird>.portlet-title>.caption,.portlet.box.red-thunderbird>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ef7672;color:#f28c89}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default>i{color:#f39997}.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default.active,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:active,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:focus,.portlet.box.red-thunderbird>.portlet-title>.actions .btn-default:hover{border:1px solid #f4a2a0;color:#f7b9b7}.dashboard-stat.red-thunderbird{background-color:#D91E18}.dashboard-stat.red-thunderbird.dashboard-stat-light:hover{background-color:#c71b16}.dashboard-stat.red-thunderbird .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-thunderbird .details .number{color:#FFF}.dashboard-stat.red-thunderbird .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-thunderbird .more{color:#FFF;background-color:#c71b16}.bg-red-thunderbird{border-color:#D91E18!important;background-image:none!important;background-color:#D91E18!important;color:#FFF!important}.font-red-thunderbird{color:#D91E18!important}.progress-bar.red-thunderbird{background:#D91E18!important;color:#FFF!important}.red-flamingo.btn{color:#FFF;background-color:#EF4836;border-color:""}.open .red-flamingo.btn.dropdown-toggle,.red-flamingo.btn.active,.red-flamingo.btn:active,.red-flamingo.btn:focus,.red-flamingo.btn:hover{color:#FFF;background-color:#ec2a15}.red-flamingo.btn.active,.red-flamingo.btn:active{background-image:none;background-color:#d72411}.red-flamingo.btn.active:hover,.red-flamingo.btn:active:hover{background-color:#e02612}.open .red-flamingo.btn.dropdown-toggle{background-image:none}.red-flamingo.btn.disabled,.red-flamingo.btn.disabled.active,.red-flamingo.btn.disabled:active,.red-flamingo.btn.disabled:focus,.red-flamingo.btn.disabled:hover,.red-flamingo.btn[disabled],.red-flamingo.btn[disabled].active,.red-flamingo.btn[disabled]:active,.red-flamingo.btn[disabled]:focus,.red-flamingo.btn[disabled]:hover,fieldset[disabled] .red-flamingo.btn,fieldset[disabled] .red-flamingo.btn.active,fieldset[disabled] .red-flamingo.btn:active,fieldset[disabled] .red-flamingo.btn:focus,fieldset[disabled] .red-flamingo.btn:hover{background-color:#EF4836}.red-flamingo.btn .badge{color:#EF4836;background-color:#FFF}.portlet.box.red-flamingo>.portlet-title,.portlet.red-flamingo,.portlet>.portlet-body.red-flamingo{background-color:#EF4836}.btn.red-flamingo-stripe{border-left:3px solid #EF4836}.portlet.solid.red-flamingo>.portlet-body,.portlet.solid.red-flamingo>.portlet-title{border:0;color:#FFF}.portlet.solid.red-flamingo>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-flamingo>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-flamingo>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-flamingo{border:1px solid #f37365;border-top:0}.portlet.box.red-flamingo>.portlet-title>.caption,.portlet.box.red-flamingo>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #f7a79e;color:#f9bcb6}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default>i{color:#fac9c4}.portlet.box.red-flamingo>.portlet-title>.actions .btn-default.active,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:active,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:focus,.portlet.box.red-flamingo>.portlet-title>.actions .btn-default:hover{border:1px solid #fbd2cd;color:#fde7e5}.dashboard-stat.red-flamingo{background-color:#EF4836}.dashboard-stat.red-flamingo.dashboard-stat-light:hover{background-color:#ed3723}.dashboard-stat.red-flamingo .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-flamingo .details .number{color:#FFF}.dashboard-stat.red-flamingo .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-flamingo .more{color:#FFF;background-color:#ed3723}.bg-red-flamingo{border-color:#EF4836!important;background-image:none!important;background-color:#EF4836!important;color:#FFF!important}.font-red-flamingo{color:#EF4836!important}.progress-bar.red-flamingo{background:#EF4836!important;color:#FFF!important}.red-soft.btn{color:#FFF;background-color:#d05454;border-color:""}.open .red-soft.btn.dropdown-toggle,.red-soft.btn.active,.red-soft.btn:active,.red-soft.btn:focus,.red-soft.btn:hover{color:#FFF;background-color:#c83838}.red-soft.btn.active,.red-soft.btn:active{background-image:none;background-color:#b53232}.red-soft.btn.active:hover,.red-soft.btn:active:hover{background-color:#bd3434}.open .red-soft.btn.dropdown-toggle{background-image:none}.red-soft.btn.disabled,.red-soft.btn.disabled.active,.red-soft.btn.disabled:active,.red-soft.btn.disabled:focus,.red-soft.btn.disabled:hover,.red-soft.btn[disabled],.red-soft.btn[disabled].active,.red-soft.btn[disabled]:active,.red-soft.btn[disabled]:focus,.red-soft.btn[disabled]:hover,fieldset[disabled] .red-soft.btn,fieldset[disabled] .red-soft.btn.active,fieldset[disabled] .red-soft.btn:active,fieldset[disabled] .red-soft.btn:focus,fieldset[disabled] .red-soft.btn:hover{background-color:#d05454}.red-soft.btn .badge{color:#d05454;background-color:#FFF}.portlet.box.red-soft>.portlet-title,.portlet.red-soft,.portlet>.portlet-body.red-soft{background-color:#d05454}.btn.red-soft-stripe{border-left:3px solid #d05454}.portlet.solid.red-soft>.portlet-body,.portlet.solid.red-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.red-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-soft{border:1px solid #db7c7c;border-top:0}.portlet.box.red-soft>.portlet-title>.caption,.portlet.box.red-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #e8acac;color:#eec0c0}.portlet.box.red-soft>.portlet-title>.actions .btn-default>i{color:#f1cccc}.portlet.box.red-soft>.portlet-title>.actions .btn-default.active,.portlet.box.red-soft>.portlet-title>.actions .btn-default:active,.portlet.box.red-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.red-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #f3d4d4;color:#f9e8e8}.dashboard-stat.red-soft{background-color:#d05454}.dashboard-stat.red-soft.dashboard-stat-light:hover{background-color:#c44}.dashboard-stat.red-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-soft .details .number{color:#FFF}.dashboard-stat.red-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-soft .more{color:#FFF;background-color:#c44}.bg-red-soft{border-color:#d05454!important;background-image:none!important;background-color:#d05454!important;color:#FFF!important}.font-red-soft{color:#d05454!important}.progress-bar.red-soft{background:#d05454!important;color:#FFF!important}.red-haze.btn{color:#FFF;background-color:#f36a5a;border-color:""}.open .red-haze.btn.dropdown-toggle,.red-haze.btn.active,.red-haze.btn:active,.red-haze.btn:focus,.red-haze.btn:hover{color:#FFF;background-color:#f14c39}.red-haze.btn.active,.red-haze.btn:active{background-image:none;background-color:#ef3621}.red-haze.btn.active:hover,.red-haze.btn:active:hover{background-color:#f03f2a}.open .red-haze.btn.dropdown-toggle{background-image:none}.red-haze.btn.disabled,.red-haze.btn.disabled.active,.red-haze.btn.disabled:active,.red-haze.btn.disabled:focus,.red-haze.btn.disabled:hover,.red-haze.btn[disabled],.red-haze.btn[disabled].active,.red-haze.btn[disabled]:active,.red-haze.btn[disabled]:focus,.red-haze.btn[disabled]:hover,fieldset[disabled] .red-haze.btn,fieldset[disabled] .red-haze.btn.active,fieldset[disabled] .red-haze.btn:active,fieldset[disabled] .red-haze.btn:focus,fieldset[disabled] .red-haze.btn:hover{background-color:#f36a5a}.red-haze.btn .badge{color:#f36a5a;background-color:#FFF}.portlet.box.red-haze>.portlet-title,.portlet.red-haze,.portlet>.portlet-body.red-haze{background-color:#f36a5a}.btn.red-haze-stripe{border-left:3px solid #f36a5a}.portlet.solid.red-haze>.portlet-body,.portlet.solid.red-haze>.portlet-title{border:0;color:#FFF}.portlet.solid.red-haze>.portlet-title>.caption>i{color:#FFF}.portlet.solid.red-haze>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.red-haze>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.red-haze{border:1px solid #f6958a;border-top:0}.portlet.box.red-haze>.portlet-title>.caption,.portlet.box.red-haze>.portlet-title>.caption>i{color:#FFF}.portlet.box.red-haze>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fbc8c3;color:#fcdeda}.portlet.box.red-haze>.portlet-title>.actions .btn-default>i{color:#fdebe9}.portlet.box.red-haze>.portlet-title>.actions .btn-default.active,.portlet.box.red-haze>.portlet-title>.actions .btn-default:active,.portlet.box.red-haze>.portlet-title>.actions .btn-default:focus,.portlet.box.red-haze>.portlet-title>.actions .btn-default:hover{border:1px solid #fef3f2;color:#fff}.dashboard-stat.red-haze{background-color:#f36a5a}.dashboard-stat.red-haze.dashboard-stat-light:hover{background-color:#f25947}.dashboard-stat.red-haze .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.red-haze .details .number{color:#FFF}.dashboard-stat.red-haze .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.red-haze .more{color:#FFF;background-color:#f25947}.bg-red-haze{border-color:#f36a5a!important;background-image:none!important;background-color:#f36a5a!important;color:#FFF!important}.font-red-haze{color:#f36a5a!important}.progress-bar.red-haze{background:#f36a5a!important;color:#FFF!important}.yellow.btn{color:#FFF;background-color:#FFB848;border-color:""}.open .yellow.btn.dropdown-toggle,.yellow.btn.active,.yellow.btn:active,.yellow.btn:focus,.yellow.btn:hover{color:#FFF;background-color:#ffaa24}.yellow.btn.active,.yellow.btn:active{background-image:none;background-color:#ffa00b}.yellow.btn.active:hover,.yellow.btn:active:hover{background-color:#ffa415}.open .yellow.btn.dropdown-toggle{background-image:none}.yellow.btn.disabled,.yellow.btn.disabled.active,.yellow.btn.disabled:active,.yellow.btn.disabled:focus,.yellow.btn.disabled:hover,.yellow.btn[disabled],.yellow.btn[disabled].active,.yellow.btn[disabled]:active,.yellow.btn[disabled]:focus,.yellow.btn[disabled]:hover,fieldset[disabled] .yellow.btn,fieldset[disabled] .yellow.btn.active,fieldset[disabled] .yellow.btn:active,fieldset[disabled] .yellow.btn:focus,fieldset[disabled] .yellow.btn:hover{background-color:#FFB848}.yellow.btn .badge{color:#FFB848;background-color:#FFF}.portlet.box.yellow>.portlet-title,.portlet.yellow,.portlet>.portlet-body.yellow{background-color:#FFB848}.btn.yellow-stripe{border-left:3px solid #FFB848}.portlet.solid.yellow>.portlet-body,.portlet.solid.yellow>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow{border:1px solid #ffcc7b;border-top:0}.portlet.box.yellow>.portlet-title>.caption,.portlet.box.yellow>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ffe4b8;color:#ffedd2}.portlet.box.yellow>.portlet-title>.actions .btn-default>i{color:#fff3e1}.portlet.box.yellow>.portlet-title>.actions .btn-default.active,.portlet.box.yellow>.portlet-title>.actions .btn-default:active,.portlet.box.yellow>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow>.portlet-title>.actions .btn-default:hover{border:1px solid #fff7eb;color:#fff}.dashboard-stat.yellow{background-color:#FFB848}.dashboard-stat.yellow.dashboard-stat-light:hover{background-color:#ffb034}.dashboard-stat.yellow .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow .details .number{color:#FFF}.dashboard-stat.yellow .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow .more{color:#FFF;background-color:#ffb034}.bg-yellow{border-color:#FFB848!important;background-image:none!important;background-color:#FFB848!important;color:#FFF!important}.font-yellow{color:#FFB848!important}.progress-bar.yellow{background:#FFB848!important;color:#FFF!important}.yellow-gold.btn{color:#FFF;background-color:#E87E04;border-color:""}.open .yellow-gold.btn.dropdown-toggle,.yellow-gold.btn.active,.yellow-gold.btn:active,.yellow-gold.btn:focus,.yellow-gold.btn:hover{color:#FFF;background-color:#c56b03}.yellow-gold.btn.active,.yellow-gold.btn:active{background-image:none;background-color:#ac5d03}.yellow-gold.btn.active:hover,.yellow-gold.btn:active:hover{background-color:#b66303}.open .yellow-gold.btn.dropdown-toggle{background-image:none}.yellow-gold.btn.disabled,.yellow-gold.btn.disabled.active,.yellow-gold.btn.disabled:active,.yellow-gold.btn.disabled:focus,.yellow-gold.btn.disabled:hover,.yellow-gold.btn[disabled],.yellow-gold.btn[disabled].active,.yellow-gold.btn[disabled]:active,.yellow-gold.btn[disabled]:focus,.yellow-gold.btn[disabled]:hover,fieldset[disabled] .yellow-gold.btn,fieldset[disabled] .yellow-gold.btn.active,fieldset[disabled] .yellow-gold.btn:active,fieldset[disabled] .yellow-gold.btn:focus,fieldset[disabled] .yellow-gold.btn:hover{background-color:#E87E04}.yellow-gold.btn .badge{color:#E87E04;background-color:#FFF}.portlet.box.yellow-gold>.portlet-title,.portlet.yellow-gold,.portlet>.portlet-body.yellow-gold{background-color:#E87E04}.btn.yellow-gold-stripe{border-left:3px solid #E87E04}.portlet.solid.yellow-gold>.portlet-body,.portlet.solid.yellow-gold>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-gold>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-gold>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-gold>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-gold{border:1px solid #fb9724;border-top:0}.portlet.box.yellow-gold>.portlet-title>.caption,.portlet.box.yellow-gold>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fcb460;color:#fdbf79}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default>i{color:#fdc788}.portlet.box.yellow-gold>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-gold>.portlet-title>.actions .btn-default:hover{border:1px solid #fdcb92;color:#fed7ab}.dashboard-stat.yellow-gold{background-color:#E87E04}.dashboard-stat.yellow-gold.dashboard-stat-light:hover{background-color:#d47304}.dashboard-stat.yellow-gold .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-gold .details .number{color:#FFF}.dashboard-stat.yellow-gold .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-gold .more{color:#FFF;background-color:#d47304}.bg-yellow-gold{border-color:#E87E04!important;background-image:none!important;background-color:#E87E04!important;color:#FFF!important}.font-yellow-gold{color:#E87E04!important}.progress-bar.yellow-gold{background:#E87E04!important;color:#FFF!important}.yellow-casablanca.btn{color:#FFF;background-color:#f2784b;border-color:""}.open .yellow-casablanca.btn.dropdown-toggle,.yellow-casablanca.btn.active,.yellow-casablanca.btn:active,.yellow-casablanca.btn:focus,.yellow-casablanca.btn:hover{color:#FFF;background-color:#f05f2a}.yellow-casablanca.btn.active,.yellow-casablanca.btn:active{background-image:none;background-color:#ee4d12}.yellow-casablanca.btn.active:hover,.yellow-casablanca.btn:active:hover{background-color:#ef541b}.open .yellow-casablanca.btn.dropdown-toggle{background-image:none}.yellow-casablanca.btn.disabled,.yellow-casablanca.btn.disabled.active,.yellow-casablanca.btn.disabled:active,.yellow-casablanca.btn.disabled:focus,.yellow-casablanca.btn.disabled:hover,.yellow-casablanca.btn[disabled],.yellow-casablanca.btn[disabled].active,.yellow-casablanca.btn[disabled]:active,.yellow-casablanca.btn[disabled]:focus,.yellow-casablanca.btn[disabled]:hover,fieldset[disabled] .yellow-casablanca.btn,fieldset[disabled] .yellow-casablanca.btn.active,fieldset[disabled] .yellow-casablanca.btn:active,fieldset[disabled] .yellow-casablanca.btn:focus,fieldset[disabled] .yellow-casablanca.btn:hover{background-color:#f2784b}.yellow-casablanca.btn .badge{color:#f2784b;background-color:#FFF}.portlet.box.yellow-casablanca>.portlet-title,.portlet.yellow-casablanca,.portlet>.portlet-body.yellow-casablanca{background-color:#f2784b}.btn.yellow-casablanca-stripe{border-left:3px solid #f2784b}.portlet.solid.yellow-casablanca>.portlet-body,.portlet.solid.yellow-casablanca>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-casablanca>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-casablanca>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-casablanca{border:1px solid #f59c7b;border-top:0}.portlet.box.yellow-casablanca>.portlet-title>.caption,.portlet.box.yellow-casablanca>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fac6b4;color:#fbd8cb}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default>i{color:#fce3da}.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-casablanca>.portlet-title>.actions .btn-default:hover{border:1px solid #fdeae3;color:#fffcfb}.dashboard-stat.yellow-casablanca{background-color:#f2784b}.dashboard-stat.yellow-casablanca.dashboard-stat-light:hover{background-color:#f16a38}.dashboard-stat.yellow-casablanca .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-casablanca .details .number{color:#FFF}.dashboard-stat.yellow-casablanca .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-casablanca .more{color:#FFF;background-color:#f16a38}.bg-yellow-casablanca{border-color:#f2784b!important;background-image:none!important;background-color:#f2784b!important;color:#FFF!important}.font-yellow-casablanca{color:#f2784b!important}.progress-bar.yellow-casablanca{background:#f2784b!important;color:#FFF!important}.yellow-crusta.btn{color:#FFF;background-color:#f3c200;border-color:""}.open .yellow-crusta.btn.dropdown-toggle,.yellow-crusta.btn.active,.yellow-crusta.btn:active,.yellow-crusta.btn:focus,.yellow-crusta.btn:hover{color:#FFF;background-color:#cfa500}.yellow-crusta.btn.active,.yellow-crusta.btn:active{background-image:none;background-color:#b69100}.yellow-crusta.btn.active:hover,.yellow-crusta.btn:active:hover{background-color:#c09900}.open .yellow-crusta.btn.dropdown-toggle{background-image:none}.yellow-crusta.btn.disabled,.yellow-crusta.btn.disabled.active,.yellow-crusta.btn.disabled:active,.yellow-crusta.btn.disabled:focus,.yellow-crusta.btn.disabled:hover,.yellow-crusta.btn[disabled],.yellow-crusta.btn[disabled].active,.yellow-crusta.btn[disabled]:active,.yellow-crusta.btn[disabled]:focus,.yellow-crusta.btn[disabled]:hover,fieldset[disabled] .yellow-crusta.btn,fieldset[disabled] .yellow-crusta.btn.active,fieldset[disabled] .yellow-crusta.btn:active,fieldset[disabled] .yellow-crusta.btn:focus,fieldset[disabled] .yellow-crusta.btn:hover{background-color:#f3c200}.yellow-crusta.btn .badge{color:#f3c200;background-color:#FFF}.portlet.box.yellow-crusta>.portlet-title,.portlet.yellow-crusta,.portlet>.portlet-body.yellow-crusta{background-color:#f3c200}.btn.yellow-crusta-stripe{border-left:3px solid #f3c200}.portlet.solid.yellow-crusta>.portlet-body,.portlet.solid.yellow-crusta>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-crusta>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-crusta>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-crusta{border:1px solid #ffd327;border-top:0}.portlet.box.yellow-crusta>.portlet-title>.caption,.portlet.box.yellow-crusta>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #ffe064;color:#ffe57e}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default>i{color:#ffe88d}.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-crusta>.portlet-title>.actions .btn-default:hover{border:1px solid #ffea97;color:#ffefb1}.dashboard-stat.yellow-crusta{background-color:#f3c200}.dashboard-stat.yellow-crusta.dashboard-stat-light:hover{background-color:#dfb200}.dashboard-stat.yellow-crusta .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-crusta .details .number{color:#FFF}.dashboard-stat.yellow-crusta .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-crusta .more{color:#FFF;background-color:#dfb200}.bg-yellow-crusta{border-color:#f3c200!important;background-image:none!important;background-color:#f3c200!important;color:#FFF!important}.font-yellow-crusta{color:#f3c200!important}.progress-bar.yellow-crusta{background:#f3c200!important;color:#FFF!important}.yellow-lemon.btn{color:#FFF;background-color:#F7CA18;border-color:""}.open .yellow-lemon.btn.dropdown-toggle,.yellow-lemon.btn.active,.yellow-lemon.btn:active,.yellow-lemon.btn:focus,.yellow-lemon.btn:hover{color:#FFF;background-color:#e3b708}.yellow-lemon.btn.active,.yellow-lemon.btn:active{background-image:none;background-color:#cba307}.yellow-lemon.btn.active:hover,.yellow-lemon.btn:active:hover{background-color:#d5ab07}.open .yellow-lemon.btn.dropdown-toggle{background-image:none}.yellow-lemon.btn.disabled,.yellow-lemon.btn.disabled.active,.yellow-lemon.btn.disabled:active,.yellow-lemon.btn.disabled:focus,.yellow-lemon.btn.disabled:hover,.yellow-lemon.btn[disabled],.yellow-lemon.btn[disabled].active,.yellow-lemon.btn[disabled]:active,.yellow-lemon.btn[disabled]:focus,.yellow-lemon.btn[disabled]:hover,fieldset[disabled] .yellow-lemon.btn,fieldset[disabled] .yellow-lemon.btn.active,fieldset[disabled] .yellow-lemon.btn:active,fieldset[disabled] .yellow-lemon.btn:focus,fieldset[disabled] .yellow-lemon.btn:hover{background-color:#F7CA18}.yellow-lemon.btn .badge{color:#F7CA18;background-color:#FFF}.portlet.box.yellow-lemon>.portlet-title,.portlet.yellow-lemon,.portlet>.portlet-body.yellow-lemon{background-color:#F7CA18}.btn.yellow-lemon-stripe{border-left:3px solid #F7CA18}.portlet.solid.yellow-lemon>.portlet-body,.portlet.solid.yellow-lemon>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-lemon>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-lemon>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-lemon{border:1px solid #f9d549;border-top:0}.portlet.box.yellow-lemon>.portlet-title>.caption,.portlet.box.yellow-lemon>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #fbe384;color:#fce99d}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default>i{color:#fcecac}.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-lemon>.portlet-title>.actions .btn-default:hover{border:1px solid #fceeb6;color:#fdf4ce}.dashboard-stat.yellow-lemon{background-color:#F7CA18}.dashboard-stat.yellow-lemon.dashboard-stat-light:hover{background-color:#f2c308}.dashboard-stat.yellow-lemon .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-lemon .details .number{color:#FFF}.dashboard-stat.yellow-lemon .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-lemon .more{color:#FFF;background-color:#f2c308}.bg-yellow-lemon{border-color:#F7CA18!important;background-image:none!important;background-color:#F7CA18!important;color:#FFF!important}.font-yellow-lemon{color:#F7CA18!important}.progress-bar.yellow-lemon{background:#F7CA18!important;color:#FFF!important}.yellow-saffron.btn{color:#FFF;background-color:#F4D03F;border-color:""}.open .yellow-saffron.btn.dropdown-toggle,.yellow-saffron.btn.active,.yellow-saffron.btn:active,.yellow-saffron.btn:focus,.yellow-saffron.btn:hover{color:#FFF;background-color:#f2c81d}.yellow-saffron.btn.active,.yellow-saffron.btn:active{background-image:none;background-color:#e8bd0d}.yellow-saffron.btn.active:hover,.yellow-saffron.btn:active:hover{background-color:#f1c40f}.open .yellow-saffron.btn.dropdown-toggle{background-image:none}.yellow-saffron.btn.disabled,.yellow-saffron.btn.disabled.active,.yellow-saffron.btn.disabled:active,.yellow-saffron.btn.disabled:focus,.yellow-saffron.btn.disabled:hover,.yellow-saffron.btn[disabled],.yellow-saffron.btn[disabled].active,.yellow-saffron.btn[disabled]:active,.yellow-saffron.btn[disabled]:focus,.yellow-saffron.btn[disabled]:hover,fieldset[disabled] .yellow-saffron.btn,fieldset[disabled] .yellow-saffron.btn.active,fieldset[disabled] .yellow-saffron.btn:active,fieldset[disabled] .yellow-saffron.btn:focus,fieldset[disabled] .yellow-saffron.btn:hover{background-color:#F4D03F}.yellow-saffron.btn .badge{color:#F4D03F;background-color:#FFF}.portlet.box.yellow-saffron>.portlet-title,.portlet.yellow-saffron,.portlet>.portlet-body.yellow-saffron{background-color:#F4D03F}.btn.yellow-saffron-stripe{border-left:3px solid #F4D03F}.portlet.solid.yellow-saffron>.portlet-body,.portlet.solid.yellow-saffron>.portlet-title{border:0;color:#FFF}.portlet.solid.yellow-saffron>.portlet-title>.caption>i{color:#FFF}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.yellow-saffron>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.yellow-saffron{border:1px solid #f7dc6f;border-top:0}.portlet.box.yellow-saffron>.portlet-title>.caption,.portlet.box.yellow-saffron>.portlet-title>.caption>i{color:#FFF}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #faeaa9;color:#fbf0c1}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default>i{color:#fcf3d0}.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default.active,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:active,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:focus,.portlet.box.yellow-saffron>.portlet-title>.actions .btn-default:hover{border:1px solid #fdf6d9;color:#fefcf1}.dashboard-stat.yellow-saffron{background-color:#F4D03F}.dashboard-stat.yellow-saffron.dashboard-stat-light:hover{background-color:#f3cb2c}.dashboard-stat.yellow-saffron .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.yellow-saffron .details .number{color:#FFF}.dashboard-stat.yellow-saffron .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.yellow-saffron .more{color:#FFF;background-color:#f3cb2c}.bg-yellow-saffron{border-color:#F4D03F!important;background-image:none!important;background-color:#F4D03F!important;color:#FFF!important}.font-yellow-saffron{color:#F4D03F!important}.progress-bar.yellow-saffron{background:#F4D03F!important;color:#FFF!important}.purple.btn{color:#FFF;background-color:#8E44AD;border-color:""}.open .purple.btn.dropdown-toggle,.purple.btn.active,.purple.btn:active,.purple.btn:focus,.purple.btn:hover{color:#FFF;background-color:#793a93}.purple.btn.active,.purple.btn:active{background-image:none;background-color:#6a3381}.purple.btn.active:hover,.purple.btn:active:hover{background-color:#703688}.open .purple.btn.dropdown-toggle{background-image:none}.purple.btn.disabled,.purple.btn.disabled.active,.purple.btn.disabled:active,.purple.btn.disabled:focus,.purple.btn.disabled:hover,.purple.btn[disabled],.purple.btn[disabled].active,.purple.btn[disabled]:active,.purple.btn[disabled]:focus,.purple.btn[disabled]:hover,fieldset[disabled] .purple.btn,fieldset[disabled] .purple.btn.active,fieldset[disabled] .purple.btn:active,fieldset[disabled] .purple.btn:focus,fieldset[disabled] .purple.btn:hover{background-color:#8E44AD}.purple.btn .badge{color:#8E44AD;background-color:#FFF}.portlet.box.purple>.portlet-title,.portlet.purple,.portlet>.portlet-body.purple{background-color:#8E44AD}.btn.purple-stripe{border-left:3px solid #8E44AD}.portlet.solid.purple>.portlet-body,.portlet.solid.purple>.portlet-title{border:0;color:#FFF}.portlet.solid.purple>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple{border:1px solid #a563c1;border-top:0}.portlet.box.purple>.portlet-title>.caption,.portlet.box.purple>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #bf8ed3;color:#c9a1da}.portlet.box.purple>.portlet-title>.actions .btn-default>i{color:#cfacde}.portlet.box.purple>.portlet-title>.actions .btn-default.active,.portlet.box.purple>.portlet-title>.actions .btn-default:active,.portlet.box.purple>.portlet-title>.actions .btn-default:focus,.portlet.box.purple>.portlet-title>.actions .btn-default:hover{border:1px solid #d4b3e1;color:#dec5e8}.dashboard-stat.purple{background-color:#8E44AD}.dashboard-stat.purple.dashboard-stat-light:hover{background-color:#823e9e}.dashboard-stat.purple .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple .details .number{color:#FFF}.dashboard-stat.purple .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple .more{color:#FFF;background-color:#823e9e}.bg-purple{border-color:#8E44AD!important;background-image:none!important;background-color:#8E44AD!important;color:#FFF!important}.font-purple{color:#8E44AD!important}.progress-bar.purple{background:#8E44AD!important;color:#FFF!important}.purple-plum.btn{color:#FFF;background-color:#8775a7;border-color:""}.open .purple-plum.btn.dropdown-toggle,.purple-plum.btn.active,.purple-plum.btn:active,.purple-plum.btn:focus,.purple-plum.btn:hover{color:#FFF;background-color:#746198}.purple-plum.btn.active,.purple-plum.btn:active{background-image:none;background-color:#685788}.purple-plum.btn.active:hover,.purple-plum.btn:active:hover{background-color:#6d5b8e}.open .purple-plum.btn.dropdown-toggle{background-image:none}.purple-plum.btn.disabled,.purple-plum.btn.disabled.active,.purple-plum.btn.disabled:active,.purple-plum.btn.disabled:focus,.purple-plum.btn.disabled:hover,.purple-plum.btn[disabled],.purple-plum.btn[disabled].active,.purple-plum.btn[disabled]:active,.purple-plum.btn[disabled]:focus,.purple-plum.btn[disabled]:hover,fieldset[disabled] .purple-plum.btn,fieldset[disabled] .purple-plum.btn.active,fieldset[disabled] .purple-plum.btn:active,fieldset[disabled] .purple-plum.btn:focus,fieldset[disabled] .purple-plum.btn:hover{background-color:#8775a7}.purple-plum.btn .badge{color:#8775a7;background-color:#FFF}.portlet.box.purple-plum>.portlet-title,.portlet.purple-plum,.portlet>.portlet-body.purple-plum{background-color:#8775a7}.btn.purple-plum-stripe{border-left:3px solid #8775a7}.portlet.solid.purple-plum>.portlet-body,.portlet.solid.purple-plum>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-plum>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-plum>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-plum>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-plum{border:1px solid #a294bb;border-top:0}.portlet.box.purple-plum>.portlet-title>.caption,.portlet.box.purple-plum>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-plum>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c3bad3;color:#d0c9dd}.portlet.box.purple-plum>.portlet-title>.actions .btn-default>i{color:#d8d2e3}.portlet.box.purple-plum>.portlet-title>.actions .btn-default.active,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:active,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-plum>.portlet-title>.actions .btn-default:hover{border:1px solid #ded9e7;color:#ebe8f0}.dashboard-stat.purple-plum{background-color:#8775a7}.dashboard-stat.purple-plum.dashboard-stat-light:hover{background-color:#7c699f}.dashboard-stat.purple-plum .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-plum .details .number{color:#FFF}.dashboard-stat.purple-plum .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-plum .more{color:#FFF;background-color:#7c699f}.bg-purple-plum{border-color:#8775a7!important;background-image:none!important;background-color:#8775a7!important;color:#FFF!important}.font-purple-plum{color:#8775a7!important}.progress-bar.purple-plum{background:#8775a7!important;color:#FFF!important}.purple-medium.btn{color:#FFF;background-color:#BF55EC;border-color:""}.open .purple-medium.btn.dropdown-toggle,.purple-medium.btn.active,.purple-medium.btn:active,.purple-medium.btn:focus,.purple-medium.btn:hover{color:#FFF;background-color:#b335e8}.purple-medium.btn.active,.purple-medium.btn:active{background-image:none;background-color:#aa1ee6}.purple-medium.btn.active:hover,.purple-medium.btn:active:hover{background-color:#ae27e7}.open .purple-medium.btn.dropdown-toggle{background-image:none}.purple-medium.btn.disabled,.purple-medium.btn.disabled.active,.purple-medium.btn.disabled:active,.purple-medium.btn.disabled:focus,.purple-medium.btn.disabled:hover,.purple-medium.btn[disabled],.purple-medium.btn[disabled].active,.purple-medium.btn[disabled]:active,.purple-medium.btn[disabled]:focus,.purple-medium.btn[disabled]:hover,fieldset[disabled] .purple-medium.btn,fieldset[disabled] .purple-medium.btn.active,fieldset[disabled] .purple-medium.btn:active,fieldset[disabled] .purple-medium.btn:focus,fieldset[disabled] .purple-medium.btn:hover{background-color:#BF55EC}.purple-medium.btn .badge{color:#BF55EC;background-color:#FFF}.portlet.box.purple-medium>.portlet-title,.portlet.purple-medium,.portlet>.portlet-body.purple-medium{background-color:#BF55EC}.btn.purple-medium-stripe{border-left:3px solid #BF55EC}.portlet.solid.purple-medium>.portlet-body,.portlet.solid.purple-medium>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-medium>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-medium>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-medium>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-medium{border:1px solid #d083f1;border-top:0}.portlet.box.purple-medium>.portlet-title>.caption,.portlet.box.purple-medium>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-medium>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #e5baf7;color:#eed1fa}.portlet.box.purple-medium>.portlet-title>.actions .btn-default>i{color:#f3dffb}.portlet.box.purple-medium>.portlet-title>.actions .btn-default.active,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:active,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-medium>.portlet-title>.actions .btn-default:hover{border:1px solid #f6e8fc;color:#fff}.dashboard-stat.purple-medium{background-color:#BF55EC}.dashboard-stat.purple-medium.dashboard-stat-light:hover{background-color:#b843ea}.dashboard-stat.purple-medium .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-medium .details .number{color:#FFF}.dashboard-stat.purple-medium .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-medium .more{color:#FFF;background-color:#b843ea}.bg-purple-medium{border-color:#BF55EC!important;background-image:none!important;background-color:#BF55EC!important;color:#FFF!important}.font-purple-medium{color:#BF55EC!important}.progress-bar.purple-medium{background:#BF55EC!important;color:#FFF!important}.purple-studio.btn{color:#FFF;background-color:#8E44AD;border-color:""}.open .purple-studio.btn.dropdown-toggle,.purple-studio.btn.active,.purple-studio.btn:active,.purple-studio.btn:focus,.purple-studio.btn:hover{color:#FFF;background-color:#793a93}.purple-studio.btn.active,.purple-studio.btn:active{background-image:none;background-color:#6a3381}.purple-studio.btn.active:hover,.purple-studio.btn:active:hover{background-color:#703688}.open .purple-studio.btn.dropdown-toggle{background-image:none}.purple-studio.btn.disabled,.purple-studio.btn.disabled.active,.purple-studio.btn.disabled:active,.purple-studio.btn.disabled:focus,.purple-studio.btn.disabled:hover,.purple-studio.btn[disabled],.purple-studio.btn[disabled].active,.purple-studio.btn[disabled]:active,.purple-studio.btn[disabled]:focus,.purple-studio.btn[disabled]:hover,fieldset[disabled] .purple-studio.btn,fieldset[disabled] .purple-studio.btn.active,fieldset[disabled] .purple-studio.btn:active,fieldset[disabled] .purple-studio.btn:focus,fieldset[disabled] .purple-studio.btn:hover{background-color:#8E44AD}.purple-studio.btn .badge{color:#8E44AD;background-color:#FFF}.portlet.box.purple-studio>.portlet-title,.portlet.purple-studio,.portlet>.portlet-body.purple-studio{background-color:#8E44AD}.btn.purple-studio-stripe{border-left:3px solid #8E44AD}.portlet.solid.purple-studio>.portlet-body,.portlet.solid.purple-studio>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-studio>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-studio>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-studio>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-studio{border:1px solid #a563c1;border-top:0}.portlet.box.purple-studio>.portlet-title>.caption,.portlet.box.purple-studio>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-studio>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #bf8ed3;color:#c9a1da}.portlet.box.purple-studio>.portlet-title>.actions .btn-default>i{color:#cfacde}.portlet.box.purple-studio>.portlet-title>.actions .btn-default.active,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:active,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-studio>.portlet-title>.actions .btn-default:hover{border:1px solid #d4b3e1;color:#dec5e8}.dashboard-stat.purple-studio{background-color:#8E44AD}.dashboard-stat.purple-studio.dashboard-stat-light:hover{background-color:#823e9e}.dashboard-stat.purple-studio .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-studio .details .number{color:#FFF}.dashboard-stat.purple-studio .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-studio .more{color:#FFF;background-color:#823e9e}.bg-purple-studio{border-color:#8E44AD!important;background-image:none!important;background-color:#8E44AD!important;color:#FFF!important}.font-purple-studio{color:#8E44AD!important}.progress-bar.purple-studio{background:#8E44AD!important;color:#FFF!important}.purple-wisteria.btn{color:#FFF;background-color:#9B59B6;border-color:""}.open .purple-wisteria.btn.dropdown-toggle,.purple-wisteria.btn.active,.purple-wisteria.btn:active,.purple-wisteria.btn:focus,.purple-wisteria.btn:hover{color:#FFF;background-color:#8948a3}.purple-wisteria.btn.active,.purple-wisteria.btn:active{background-image:none;background-color:#7a4092}.purple-wisteria.btn.active:hover,.purple-wisteria.btn:active:hover{background-color:#804399}.open .purple-wisteria.btn.dropdown-toggle{background-image:none}.purple-wisteria.btn.disabled,.purple-wisteria.btn.disabled.active,.purple-wisteria.btn.disabled:active,.purple-wisteria.btn.disabled:focus,.purple-wisteria.btn.disabled:hover,.purple-wisteria.btn[disabled],.purple-wisteria.btn[disabled].active,.purple-wisteria.btn[disabled]:active,.purple-wisteria.btn[disabled]:focus,.purple-wisteria.btn[disabled]:hover,fieldset[disabled] .purple-wisteria.btn,fieldset[disabled] .purple-wisteria.btn.active,fieldset[disabled] .purple-wisteria.btn:active,fieldset[disabled] .purple-wisteria.btn:focus,fieldset[disabled] .purple-wisteria.btn:hover{background-color:#9B59B6}.purple-wisteria.btn .badge{color:#9B59B6;background-color:#FFF}.portlet.box.purple-wisteria>.portlet-title,.portlet.purple-wisteria,.portlet>.portlet-body.purple-wisteria{background-color:#9B59B6}.btn.purple-wisteria-stripe{border-left:3px solid #9B59B6}.portlet.solid.purple-wisteria>.portlet-body,.portlet.solid.purple-wisteria>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-wisteria>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-wisteria>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-wisteria{border:1px solid #b07cc6;border-top:0}.portlet.box.purple-wisteria>.portlet-title>.caption,.portlet.box.purple-wisteria>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #caa7d8;color:#d5b9e0}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default>i{color:#dbc3e5}.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default.active,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:active,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-wisteria>.portlet-title>.actions .btn-default:hover{border:1px solid #dfcae8;color:#eadcf0}.dashboard-stat.purple-wisteria{background-color:#9B59B6}.dashboard-stat.purple-wisteria.dashboard-stat-light:hover{background-color:#924dae}.dashboard-stat.purple-wisteria .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-wisteria .details .number{color:#FFF}.dashboard-stat.purple-wisteria .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-wisteria .more{color:#FFF;background-color:#924dae}.bg-purple-wisteria{border-color:#9B59B6!important;background-image:none!important;background-color:#9B59B6!important;color:#FFF!important}.font-purple-wisteria{color:#9B59B6!important}.progress-bar.purple-wisteria{background:#9B59B6!important;color:#FFF!important}.purple-seance.btn{color:#FFF;background-color:#9A12B3;border-color:""}.open .purple-seance.btn.dropdown-toggle,.purple-seance.btn.active,.purple-seance.btn:active,.purple-seance.btn:focus,.purple-seance.btn:hover{color:#FFF;background-color:#7e0f93}.purple-seance.btn.active,.purple-seance.btn:active{background-image:none;background-color:#6a0c7b}.purple-seance.btn.active:hover,.purple-seance.btn:active:hover{background-color:#720d85}.open .purple-seance.btn.dropdown-toggle{background-image:none}.purple-seance.btn.disabled,.purple-seance.btn.disabled.active,.purple-seance.btn.disabled:active,.purple-seance.btn.disabled:focus,.purple-seance.btn.disabled:hover,.purple-seance.btn[disabled],.purple-seance.btn[disabled].active,.purple-seance.btn[disabled]:active,.purple-seance.btn[disabled]:focus,.purple-seance.btn[disabled]:hover,fieldset[disabled] .purple-seance.btn,fieldset[disabled] .purple-seance.btn.active,fieldset[disabled] .purple-seance.btn:active,fieldset[disabled] .purple-seance.btn:focus,fieldset[disabled] .purple-seance.btn:hover{background-color:#9A12B3}.purple-seance.btn .badge{color:#9A12B3;background-color:#FFF}.portlet.box.purple-seance>.portlet-title,.portlet.purple-seance,.portlet>.portlet-body.purple-seance{background-color:#9A12B3}.btn.purple-seance-stripe{border-left:3px solid #9A12B3}.portlet.solid.purple-seance>.portlet-body,.portlet.solid.purple-seance>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-seance>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-seance>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-seance>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-seance{border:1px solid #c217e1;border-top:0}.portlet.box.purple-seance>.portlet-title>.caption,.portlet.box.purple-seance>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-seance>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #d349ed;color:#d960ef}.portlet.box.purple-seance>.portlet-title>.actions .btn-default>i{color:#dc6ef0}.portlet.box.purple-seance>.portlet-title>.actions .btn-default.active,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:active,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-seance>.portlet-title>.actions .btn-default:hover{border:1px solid #de77f1;color:#e48ef4}.dashboard-stat.purple-seance{background-color:#9A12B3}.dashboard-stat.purple-seance.dashboard-stat-light:hover{background-color:#8a10a0}.dashboard-stat.purple-seance .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-seance .details .number{color:#FFF}.dashboard-stat.purple-seance .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-seance .more{color:#FFF;background-color:#8a10a0}.bg-purple-seance{border-color:#9A12B3!important;background-image:none!important;background-color:#9A12B3!important;color:#FFF!important}.font-purple-seance{color:#9A12B3!important}.progress-bar.purple-seance{background:#9A12B3!important;color:#FFF!important}.purple-intense.btn{color:#FFF;background-color:#8775a7;border-color:""}.open .purple-intense.btn.dropdown-toggle,.purple-intense.btn.active,.purple-intense.btn:active,.purple-intense.btn:focus,.purple-intense.btn:hover{color:#FFF;background-color:#746198}.purple-intense.btn.active,.purple-intense.btn:active{background-image:none;background-color:#685788}.purple-intense.btn.active:hover,.purple-intense.btn:active:hover{background-color:#6d5b8e}.open .purple-intense.btn.dropdown-toggle{background-image:none}.purple-intense.btn.disabled,.purple-intense.btn.disabled.active,.purple-intense.btn.disabled:active,.purple-intense.btn.disabled:focus,.purple-intense.btn.disabled:hover,.purple-intense.btn[disabled],.purple-intense.btn[disabled].active,.purple-intense.btn[disabled]:active,.purple-intense.btn[disabled]:focus,.purple-intense.btn[disabled]:hover,fieldset[disabled] .purple-intense.btn,fieldset[disabled] .purple-intense.btn.active,fieldset[disabled] .purple-intense.btn:active,fieldset[disabled] .purple-intense.btn:focus,fieldset[disabled] .purple-intense.btn:hover{background-color:#8775a7}.purple-intense.btn .badge{color:#8775a7;background-color:#FFF}.portlet.box.purple-intense>.portlet-title,.portlet.purple-intense,.portlet>.portlet-body.purple-intense{background-color:#8775a7}.btn.purple-intense-stripe{border-left:3px solid #8775a7}.portlet.solid.purple-intense>.portlet-body,.portlet.solid.purple-intense>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-intense>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-intense>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-intense>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-intense{border:1px solid #a294bb;border-top:0}.portlet.box.purple-intense>.portlet-title>.caption,.portlet.box.purple-intense>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-intense>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c3bad3;color:#d0c9dd}.portlet.box.purple-intense>.portlet-title>.actions .btn-default>i{color:#d8d2e3}.portlet.box.purple-intense>.portlet-title>.actions .btn-default.active,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:active,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-intense>.portlet-title>.actions .btn-default:hover{border:1px solid #ded9e7;color:#ebe8f0}.dashboard-stat.purple-intense{background-color:#8775a7}.dashboard-stat.purple-intense.dashboard-stat-light:hover{background-color:#7c699f}.dashboard-stat.purple-intense .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-intense .details .number{color:#FFF}.dashboard-stat.purple-intense .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-intense .more{color:#FFF;background-color:#7c699f}.bg-purple-intense{border-color:#8775a7!important;background-image:none!important;background-color:#8775a7!important;color:#FFF!important}.font-purple-intense{color:#8775a7!important}.progress-bar.purple-intense{background:#8775a7!important;color:#FFF!important}.purple-sharp.btn{color:#FFF;background-color:#796799;border-color:""}.open .purple-sharp.btn.dropdown-toggle,.purple-sharp.btn.active,.purple-sharp.btn:active,.purple-sharp.btn:focus,.purple-sharp.btn:hover{color:#FFF;background-color:#685884}.purple-sharp.btn.active,.purple-sharp.btn:active{background-image:none;background-color:#5c4e75}.purple-sharp.btn.active:hover,.purple-sharp.btn:active:hover{background-color:#61527b}.open .purple-sharp.btn.dropdown-toggle{background-image:none}.purple-sharp.btn.disabled,.purple-sharp.btn.disabled.active,.purple-sharp.btn.disabled:active,.purple-sharp.btn.disabled:focus,.purple-sharp.btn.disabled:hover,.purple-sharp.btn[disabled],.purple-sharp.btn[disabled].active,.purple-sharp.btn[disabled]:active,.purple-sharp.btn[disabled]:focus,.purple-sharp.btn[disabled]:hover,fieldset[disabled] .purple-sharp.btn,fieldset[disabled] .purple-sharp.btn.active,fieldset[disabled] .purple-sharp.btn:active,fieldset[disabled] .purple-sharp.btn:focus,fieldset[disabled] .purple-sharp.btn:hover{background-color:#796799}.purple-sharp.btn .badge{color:#796799;background-color:#FFF}.portlet.box.purple-sharp>.portlet-title,.portlet.purple-sharp,.portlet>.portlet-body.purple-sharp{background-color:#796799}.btn.purple-sharp-stripe{border-left:3px solid #796799}.portlet.solid.purple-sharp>.portlet-body,.portlet.solid.purple-sharp>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-sharp>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-sharp>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-sharp{border:1px solid #9486ad;border-top:0}.portlet.box.purple-sharp>.portlet-title>.caption,.portlet.box.purple-sharp>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #b4aac6;color:#c2b9d0}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default>i{color:#cac3d6}.portlet.box.purple-sharp>.portlet-title>.actions .btn-default.active,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:active,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-sharp>.portlet-title>.actions .btn-default:hover{border:1px solid #cfc9db;color:#ddd8e5}.dashboard-stat.purple-sharp{background-color:#796799}.dashboard-stat.purple-sharp.dashboard-stat-light:hover{background-color:#6f5f8d}.dashboard-stat.purple-sharp .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-sharp .details .number{color:#FFF}.dashboard-stat.purple-sharp .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-sharp .more{color:#FFF;background-color:#6f5f8d}.bg-purple-sharp{border-color:#796799!important;background-image:none!important;background-color:#796799!important;color:#FFF!important}.font-purple-sharp{color:#796799!important}.progress-bar.purple-sharp{background:#796799!important;color:#FFF!important}.purple-soft.btn{color:#FFF;background-color:#8877a9;border-color:""}.open .purple-soft.btn.dropdown-toggle,.purple-soft.btn.active,.purple-soft.btn:active,.purple-soft.btn:focus,.purple-soft.btn:hover{color:#FFF;background-color:#75629b}.purple-soft.btn.active,.purple-soft.btn:active{background-image:none;background-color:#69588b}.purple-soft.btn.active:hover,.purple-soft.btn:active:hover{background-color:#6e5c91}.open .purple-soft.btn.dropdown-toggle{background-image:none}.purple-soft.btn.disabled,.purple-soft.btn.disabled.active,.purple-soft.btn.disabled:active,.purple-soft.btn.disabled:focus,.purple-soft.btn.disabled:hover,.purple-soft.btn[disabled],.purple-soft.btn[disabled].active,.purple-soft.btn[disabled]:active,.purple-soft.btn[disabled]:focus,.purple-soft.btn[disabled]:hover,fieldset[disabled] .purple-soft.btn,fieldset[disabled] .purple-soft.btn.active,fieldset[disabled] .purple-soft.btn:active,fieldset[disabled] .purple-soft.btn:focus,fieldset[disabled] .purple-soft.btn:hover{background-color:#8877a9}.purple-soft.btn .badge{color:#8877a9;background-color:#FFF}.portlet.box.purple-soft>.portlet-title,.portlet.purple-soft,.portlet>.portlet-body.purple-soft{background-color:#8877a9}.btn.purple-soft-stripe{border-left:3px solid #8877a9}.portlet.solid.purple-soft>.portlet-body,.portlet.solid.purple-soft>.portlet-title{border:0;color:#FFF}.portlet.solid.purple-soft>.portlet-title>.caption>i{color:#FFF}.portlet.solid.purple-soft>.portlet-title>.tools>a.remove{background-image:url(../../assets/images/portlet-remove-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.config{background-image:url(../../assets/images/portlet-config-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.reload{background-image:url(../../assets/images/portlet-reload-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.expand{background-image:url(../../assets/images/portlet-expand-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.collapse{background-image:url(../../assets/images/portlet-collapse-icon-white.png)}.portlet.solid.purple-soft>.portlet-title>.tools>a.fullscreen{color:#fdfdfd}.portlet.box.purple-soft{border:1px solid #a396bd;border-top:0}.portlet.box.purple-soft>.portlet-title>.caption,.portlet.box.purple-soft>.portlet-title>.caption>i{color:#FFF}.portlet.box.purple-soft>.portlet-title>.actions .btn-default{background:0 0!important;border:1px solid #c4bcd4;color:#d2cbde}.portlet.box.purple-soft>.portlet-title>.actions .btn-default>i{color:#dad5e4}.portlet.box.purple-soft>.portlet-title>.actions .btn-default.active,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:active,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:focus,.portlet.box.purple-soft>.portlet-title>.actions .btn-default:hover{border:1px solid #dfdbe8;color:#edebf2}.dashboard-stat.purple-soft{background-color:#8877a9}.dashboard-stat.purple-soft.dashboard-stat-light:hover{background-color:#7d6ba1}.dashboard-stat.purple-soft .visual>i{color:#FFF;opacity:.1;filter:alpha(opacity=10)}.dashboard-stat.purple-soft .details .number{color:#FFF}.dashboard-stat.purple-soft .details .desc{color:#FFF;opacity:1;filter:alpha(opacity=100)}.dashboard-stat.purple-soft .more{color:#FFF;background-color:#7d6ba1}.bg-purple-soft{border-color:#8877a9!important;background-image:none!important;background-color:#8877a9!important;color:#FFF!important}.font-purple-soft{color:#8877a9!important}.progress-bar.purple-soft{background:#8877a9!important;color:#FFF!important}.btn-transparent.btn{background:0 0;color:#888}@-moz-keyframes whirly-loader{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes whirly-loader{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes whirly-loader{0%{-moz-transform:rotate(0);-ms-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.whirly-loader:not(:required){overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;width:8px;height:8px;background:0 0;-moz-border-radius:100%;-webkit-border-radius:100%;border-radius:100%;-moz-box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;-webkit-box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;box-shadow:#FA4C61 0 26px 0 6px,#FA4C61 .91px 26.05px 0 5.93px,#FA4C61 1.82px 26.07px 0 5.87px,#FA4C61 2.74px 26.06px 0 5.8px,#FA4C61 3.66px 26.01px 0 5.73px,#FA4C61 4.57px 25.93px 0 5.67px,#FA4C61 5.49px 25.82px 0 5.6px,#FA4C61 6.4px 25.68px 0 5.53px,#FA4C61 7.31px 25.51px 0 5.47px,#FA4C61 8.22px 25.3px 0 5.4px,#FA4C61 9.12px 25.06px 0 5.33px,#FA4C61 10.01px 24.79px 0 5.27px,#FA4C61 10.9px 24.48px 0 5.2px,#FA4C61 11.78px 24.15px 0 5.13px,#FA4C61 12.64px 23.78px 0 5.07px,#FA4C61 13.5px 23.38px 0 5px,#FA4C61 14.34px 22.95px 0 4.93px,#FA4C61 15.17px 22.49px 0 4.87px,#FA4C61 15.99px 22.01px 0 4.8px,#FA4C61 16.79px 21.49px 0 4.73px,#FA4C61 17.57px 20.94px 0 4.67px,#FA4C61 18.33px 20.36px 0 4.6px,#FA4C61 19.08px 19.76px 0 4.53px,#FA4C61 19.81px 19.13px 0 4.47px,#FA4C61 20.51px 18.47px 0 4.4px,#FA4C61 21.19px 17.78px 0 4.33px,#FA4C61 21.85px 17.07px 0 4.27px,#FA4C61 22.49px 16.34px 0 4.2px,#FA4C61 23.1px 15.58px 0 4.13px,#FA4C61 23.69px 14.8px 0 4.07px,#FA4C61 24.25px 14px 0 4px,#FA4C61 24.78px 13.18px 0 3.93px,#FA4C61 25.29px 12.33px 0 3.87px,#FA4C61 25.76px 11.47px 0 3.8px,#FA4C61 26.21px 10.59px 0 3.73px,#FA4C61 26.62px 9.69px 0 3.67px,#FA4C61 27.01px 8.78px 0 3.6px,#FA4C61 27.36px 7.85px 0 3.53px,#FA4C61 27.69px 6.9px 0 3.47px,#FA4C61 27.98px 5.95px 0 3.4px,#FA4C61 28.23px 4.98px 0 3.33px,#FA4C61 28.45px 4px 0 3.27px,#FA4C61 28.64px 3.01px 0 3.2px,#FA4C61 28.8px 2.01px 0 3.13px,#FA4C61 28.92px 1.01px 0 3.07px,#FA4C61 29px 0 0 3px,#FA4C61 29.05px -1.01px 0 2.93px,#FA4C61 29.06px -2.03px 0 2.87px,#FA4C61 29.04px -3.05px 0 2.8px,#FA4C61 28.98px -4.07px 0 2.73px,#FA4C61 28.89px -5.09px 0 2.67px,#FA4C61 28.76px -6.11px 0 2.6px,#FA4C61 28.59px -7.13px 0 2.53px,#FA4C61 28.39px -8.14px 0 2.47px,#FA4C61 28.15px -9.15px 0 2.4px,#FA4C61 27.88px -10.15px 0 2.33px,#FA4C61 27.57px -11.14px 0 2.27px,#FA4C61 27.22px -12.12px 0 2.2px,#FA4C61 26.84px -13.09px 0 2.13px,#FA4C61 26.43px -14.05px 0 2.07px,#FA4C61 25.98px -15px 0 2px,#FA4C61 25.5px -15.93px 0 1.93px,#FA4C61 24.98px -16.85px 0 1.87px,#FA4C61 24.43px -17.75px 0 1.8px,#FA4C61 23.85px -18.63px 0 1.73px,#FA4C61 23.24px -19.5px 0 1.67px,#FA4C61 22.59px -20.34px 0 1.6px,#FA4C61 21.92px -21.16px 0 1.53px,#FA4C61 21.21px -21.96px 0 1.47px,#FA4C61 20.48px -22.74px 0 1.4px,#FA4C61 19.71px -23.49px 0 1.33px,#FA4C61 18.92px -24.22px 0 1.27px,#FA4C61 18.1px -24.92px 0 1.2px,#FA4C61 17.26px -25.59px 0 1.13px,#FA4C61 16.39px -26.23px 0 1.07px,#FA4C61 15.5px -26.85px 0 1px,#FA4C61 14.58px -27.43px 0 .93px,#FA4C61 13.65px -27.98px 0 .87px,#FA4C61 12.69px -28.5px 0 .8px,#FA4C61 11.71px -28.99px 0 .73px,#FA4C61 10.72px -29.44px 0 .67px,#FA4C61 9.7px -29.86px 0 .6px,#FA4C61 8.67px -30.25px 0 .53px,#FA4C61 7.63px -30.6px 0 .47px,#FA4C61 6.57px -30.91px 0 .4px,#FA4C61 5.5px -31.19px 0 .33px,#FA4C61 4.42px -31.42px 0 .27px,#FA4C61 3.32px -31.63px 0 .2px,#FA4C61 2.22px -31.79px 0 .13px,#FA4C61 1.11px -31.91px 0 .07px,#FA4C61 0 -32px 0 0,#FA4C61 -1.12px -32.05px 0 -.07px,#FA4C61 -2.24px -32.06px 0 -.13px,#FA4C61 -3.37px -32.02px 0 -.2px,#FA4C61 -4.49px -31.95px 0 -.27px,#FA4C61 -5.61px -31.84px 0 -.33px,#FA4C61 -6.74px -31.69px 0 -.4px,#FA4C61 -7.85px -31.5px 0 -.47px,#FA4C61 -8.97px -31.27px 0 -.53px,#FA4C61 -10.07px -31px 0 -.6px,#FA4C61 -11.17px -30.7px 0 -.67px,#FA4C61 -12.26px -30.35px 0 -.73px,#FA4C61 -13.34px -29.96px 0 -.8px,#FA4C61 -14.41px -29.54px 0 -.87px,#FA4C61 -15.46px -29.08px 0 -.93px,#FA4C61 -16.5px -28.58px 0 -1px,#FA4C61 -17.52px -28.04px 0 -1.07px,#FA4C61 -18.53px -27.47px 0 -1.13px,#FA4C61 -19.51px -26.86px 0 -1.2px,#FA4C61 -20.48px -26.21px 0 -1.27px,#FA4C61 -21.43px -25.53px 0 -1.33px,#FA4C61 -22.35px -24.82px 0 -1.4px,#FA4C61 -23.25px -24.07px 0 -1.47px,#FA4C61 -24.12px -23.29px 0 -1.53px,#FA4C61 -24.97px -22.48px 0 -1.6px,#FA4C61 -25.79px -21.64px 0 -1.67px,#FA4C61 -26.58px -20.77px 0 -1.73px,#FA4C61 -27.34px -19.87px 0 -1.8px,#FA4C61 -28.08px -18.94px 0 -1.87px,#FA4C61 -28.78px -17.98px 0 -1.93px,#FA4C61 -29.44px -17px 0 -2px,#FA4C61 -30.08px -15.99px 0 -2.07px,#FA4C61 -30.68px -14.96px 0 -2.13px,#FA4C61 -31.24px -13.91px 0 -2.2px,#FA4C61 -31.77px -12.84px 0 -2.27px,#FA4C61 -32.26px -11.74px 0 -2.33px,#FA4C61 -32.72px -10.63px 0 -2.4px,#FA4C61 -33.13px -9.5px 0 -2.47px,#FA4C61 -33.51px -8.35px 0 -2.53px,#FA4C61 -33.84px -7.19px 0 -2.6px,#FA4C61 -34.14px -6.02px 0 -2.67px,#FA4C61 -34.4px -4.83px 0 -2.73px,#FA4C61 -34.61px -3.64px 0 -2.8px,#FA4C61 -34.78px -2.43px 0 -2.87px,#FA4C61 -34.91px -1.22px 0 -2.93px,#FA4C61 -35px 0 0 -3px,#FA4C61 -35.05px 1.22px 0 -3.07px,#FA4C61 -35.05px 2.45px 0 -3.13px,#FA4C61 -35.01px 3.68px 0 -3.2px,#FA4C61 -34.92px 4.91px 0 -3.27px,#FA4C61 -34.8px 6.14px 0 -3.33px,#FA4C61 -34.63px 7.36px 0 -3.4px,#FA4C61 -34.41px 8.58px 0 -3.47px,#FA4C61 -34.16px 9.79px 0 -3.53px,#FA4C61 -33.86px 11px 0 -3.6px,#FA4C61 -33.52px 12.2px 0 -3.67px,#FA4C61 -33.13px 13.39px 0 -3.73px,#FA4C61 -32.7px 14.56px 0 -3.8px,#FA4C61 -32.24px 15.72px 0 -3.87px,#FA4C61 -31.73px 16.87px 0 -3.93px,#FA4C61 -31.18px 18px 0 -4px,#FA4C61 -30.59px 19.11px 0 -4.07px,#FA4C61 -29.96px 20.21px 0 -4.13px,#FA4C61 -29.29px 21.28px 0 -4.2px,#FA4C61 -28.58px 22.33px 0 -4.27px,#FA4C61 -27.83px 23.35px 0 -4.33px,#FA4C61 -27.05px 24.36px 0 -4.4px,#FA4C61 -26.23px 25.33px 0 -4.47px,#FA4C61 -25.38px 26.28px 0 -4.53px,#FA4C61 -24.49px 27.2px 0 -4.6px,#FA4C61 -23.57px 28.09px 0 -4.67px,#FA4C61 -22.62px 28.95px 0 -4.73px,#FA4C61 -21.63px 29.77px 0 -4.8px,#FA4C61 -20.62px 30.56px 0 -4.87px,#FA4C61 -19.57px 31.32px 0 -4.93px,#FA4C61 -18.5px 32.04px 0 -5px,#FA4C61 -17.4px 32.73px 0 -5.07px,#FA4C61 -16.28px 33.38px 0 -5.13px,#FA4C61 -15.13px 33.98px 0 -5.2px,#FA4C61 -13.96px 34.55px 0 -5.27px,#FA4C61 -12.77px 35.08px 0 -5.33px,#FA4C61 -11.56px 35.57px 0 -5.4px,#FA4C61 -10.33px 36.02px 0 -5.47px,#FA4C61 -9.08px 36.42px 0 -5.53px,#FA4C61 -7.82px 36.78px 0 -5.6px,#FA4C61 -6.54px 37.09px 0 -5.67px,#FA4C61 -5.25px 37.37px 0 -5.73px,#FA4C61 -3.95px 37.59px 0 -5.8px,#FA4C61 -2.64px 37.77px 0 -5.87px,#FA4C61 -1.32px 37.91px 0 -5.93px;-moz-animation:whirly-loader 1.25s infinite linear;-webkit-animation:whirly-loader 1.25s infinite linear;animation:whirly-loader 1.25s infinite linear;-moz-transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.float-right{float:right}.float-left{float:left}.checker{width:19px;height:19px}.collapse.am-collapse{animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:backwards;overflow:hidden}.message-info{float:right;color:#d3d3d3;margin-right:5px}[ui-view].ng-enter{-webkit-animation:fadeInUpm .5s;animation:fadeInUpm .5s}.steps,.steps-indicator{padding-bottom:20px!important}.ui-sortable,.ui-sortable-handle{cursor:move}.step .btn:not(.ui-select-toggle,.remove-condition){margin-bottom:10px}.mbottom20{margin-bottom:20px}.pbottom20{padding-bottom:20px}.break-overflow{overflow-wrap:break-word}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;opacity:.2;filter:alpha(opacity=20)}.alert{padding:15px!important;margin-bottom:20px!important;border:1px solid transparent!important;border-radius:4px!important}.alert h4{margin-top:0!important;color:inherit!important}.alert .alert-link{font-weight:700!important}.alert>p,.alert>ul{margin-bottom:0!important}.alert>p+p{margin-top:5px!important}.alert-dismissable,.alert-dismissible{padding-right:35px!important}.alert-dismissable .close,.alert-dismissible .close{position:relative!important;top:-2px!important;right:-21px!important;color:inherit!important}.alert-success{background-color:#dff0d8!important;border-color:#d6e9c6!important;color:#3c763d!important}.alert-success hr{border-top-color:#c9e2b3!important}.alert-success .alert-link{color:#2b542c!important}.alert-info{background-color:#d9edf7!important;border-color:#bce8f1!important;color:#31708f!important}.alert-info hr{border-top-color:#a6e1ec!important}.alert-info .alert-link{color:#245269!important}.alert-warning{background-color:#fcf8e3!important;border-color:#faebcc!important;color:#8a6d3b!important}.alert-warning hr{border-top-color:#f7e1b5!important}.alert-warning .alert-link{color:#66512c!important}.alert-danger{background-color:#f2dede!important;border-color:#ebccd1!important;color:#a94442!important}.alert-danger hr{border-top-color:#e4b9c0!important}.alert-danger .alert-link{color:#843534!important}.alert .close{text-indent:inherit!important;background-image:none!important;width:auto!important}.page-404 .number{position:relative;top:35px;display:inline-block;letter-spacing:-10px;margin-top:0;margin-bottom:10px;line-height:128px;font-size:128px;font-weight:300;color:#7bbbd6;text-align:right}.page-404 .details{margin-left:40px;display:inline-block;padding-top:0;text-align:left}.sounds-title-icon{font-size:17px}.ui-select-multiple input.ui-select-search{width:100%!important}.modal.fade,.over-topbar{z-index:9996!important}.list-group-item-custom{border:none}.pointer-cursor{cursor:pointer!important}.select-group-father{font-weight:700!important}.select-group-son{font-style:italic!important}@media (max-height:908px){.modal-body-scroll{max-height:325px;overflow-y:scroll}}.widget .dashboard-stat{margin-bottom:0!important}.widget .panel-body{padding:0}.left-margin{margin-left:20px}.contact-portlet{overflow-x:hidden;overflow-y:auto;height:337px}.contact-tab{background:#F1F3FA;padding-top:20px}.contact-tab-container{padding-left:20px;padding-right:20px}.col-fixed,.tree-row{float:left}.col-fixed{width:277px;margin-right:15px}.tree-row{width:calc(100% - 277px + 15px)}.tree-search{float:left;display:inline-block;line-height:18px;font-weight:300;padding:10px 0}.report-field-handle{width:66px;height:66px;background-image:url(../../assets/images/move.png);background-repeat:no-repeat;background-size:66px 66px}.ui-sortable-helper{display:table}.report-field-remove{width:66px;height:66px;text-align:center}.ui-select-choices-row-inner div,.ui-select-match-text{width:100%;text-overflow:ellipsis;overflow:hidden}.portlet.light .portlet-title{padding:0;min-height:48px}.portlet .portlet-title{border-bottom:1px solid #eee;padding:0;margin-bottom:10px;min-height:41px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.ui-select-match-text{padding-right:20px}.ui-select-toggle>.btn.btn-link{margin-right:10px;top:6px;position:absolute;right:10px}.page-header.navbar{background-color:#2b3643}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle>i{color:#79869a}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle .badge.badge-default{background-color:#EA4C61;color:#fff}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle{background-color:#3f4f62}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover>i,.page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle>i{color:#a4aebb}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu{border-color:#e7eaf0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu:after{border-bottom-color:#eaedf2}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external{background:#eaedf2}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>h3{color:#62878f}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a{color:#5b9bd1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a:hover{color:#3175af;text-decoration:underline}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a{border-bottom:1px solid #EFF2F6!important;color:#888}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a:hover{background:#f8f9fa}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li>a .time{background:#f1f1f1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li>a:hover .time{background:#e4e4e4}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-toggle>.circle{background-color:#EA4C61;color:#fff}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-toggle>.corner{border-color:transparent transparent transparent #EA4C61}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu .dropdown-menu-list .subject .from{color:#5b9bd1}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>.langname,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>.username,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>i{color:#c6cfda}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list .progress{background-color:#dfe2e9}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-menu{width:195px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu{background:#3f4f62;border:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu:after{border-bottom-color:#3f4f62}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external{background:#2f3b49}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external>h3{color:#adbaca}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu>li.external>a:hover{color:#87b6dd}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a{color:#bcc7d4;border-bottom:1px solid #4b5e75!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a>i,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a>i{color:#9dadc0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu .dropdown-menu-list>li a:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a:hover{background:#47596e}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li a{border-bottom:0!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-dark .dropdown-menu.dropdown-menu-default>li.divider{background:#4b5e75}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification.dropdown-dark .dropdown-menu .dropdown-menu-list>li>a .time{background:#354353}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification.dropdown-dark .dropdown-menu .dropdown-menu-list>li>a:hover .time{background:#2b3643}.page-header.navbar .search-form{background:#232c37}.page-header.navbar .search-form.open,.page-header.navbar .search-form:hover{background:#3f4f62}.page-header.navbar .search-form .input-group .form-control{color:#959fad}.page-header.navbar .search-form .input-group .form-control::-moz-placeholder{color:#929cab;opacity:1}.page-header.navbar .search-form .input-group .form-control:-ms-input-placeholder{color:#929cab}.page-header.navbar .search-form .input-group .form-control::-webkit-input-placeholder{color:#929cab}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit>i{color:#959fad}.page-header.navbar .menu-toggler{background-image:url(../../assets/images/sidebar_toggler_icon_darkblue.png)}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{box-shadow:5px 5px rgba(63,79,98,.2)}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3,.page-header.navbar .hor-menu .navbar-nav>li>a{color:#c6cfda}.page-header.navbar .hor-menu .navbar-nav>li>a>i{color:#788ea8}.page-header.navbar .hor-menu .navbar-nav>li.open>a,.page-header.navbar .hor-menu .navbar-nav>li>a:hover{color:#d5dce4;background:#3f4f62!important}.page-header.navbar .hor-menu .navbar-nav>li.open>a>i,.page-header.navbar .hor-menu .navbar-nav>li>a:hover>i{color:#889bb2}.page-header.navbar .hor-menu .navbar-nav>li.active>a,.page-header.navbar .hor-menu .navbar-nav>li.current>a{color:#fff;background:#EA4C61!important}.page-header.navbar .hor-menu .navbar-nav>li.active>a>i,.page-header.navbar .hor-menu .navbar-nav>li.current>a>i{color:#788ea8}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu{box-shadow:5px 5px rgba(63,79,98,.2);background:#3f4f62}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a>i{color:#c6cfda}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li:hover>a{color:#f1f3f6;background:#47596e}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li:hover>a>i{color:#f1f3f6}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a:hover,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a:hover{color:#f1f3f6;background:#47596e}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a:hover>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.active>a>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a:hover>i,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.current>a>i{color:#f1f3f6}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li.divider{background-color:#495c72}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>a:after{color:#c6cfda}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{box-shadow:5px 5px rgba(102,102,102,.1)}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a{color:#c6cfda}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a>i{color:#788ea8}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a:hover{color:#d5dce4;background:#3f4f62}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>a:hover>i{color:#889bb2}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.open>a{color:#333!important;background:#fff!important}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.open>a>i{color:#333!important}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a:hover,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a:hover{color:#fff;background:#EA4C61}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.active>a>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li.current>a>i{color:#788ea8}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu{box-shadow:5px 5px rgba(102,102,102,.1);background:#fff;border:1px solid #efeff5}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li>a{color:#000}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li>a>i{color:#888}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li:hover>a{color:#000;background:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li:hover>a>i{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a:hover,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a:hover{color:#000;background:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.active>a>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a:hover>i,.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.current>a>i{color:#666}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li .dropdown-menu li.divider{background-color:#f2f2f7}.page-header.navbar .hor-menu.hor-menu-light .navbar-nav>li>.dropdown-menu{border-top:0}.page-sidebar,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{background-color:#364150}.page-sidebar .page-sidebar-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{color:#b4bcc8}.page-sidebar .page-sidebar-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu>li>a>i[class*=icon-],.page-sidebar .page-sidebar-menu>li>a>i[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class*=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class^=icon-]{color:#6b788b}.page-sidebar .page-sidebar-menu>li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu>li.heading>h3,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading>h3{color:#708096}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar .page-sidebar-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a{background:#2C3542;color:#b4bcc8}.page-sidebar .page-sidebar-menu>li.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.open>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.open>a>i,.page-sidebar .page-sidebar-menu>li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li:hover>a>.arrow:before,.page-sidebar .page-sidebar-menu>li:hover>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:hover>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu>li.active.open>a,.page-sidebar .page-sidebar-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a{background:#EA4C61;border-top-color:transparent;color:#fff}.page-sidebar .page-sidebar-menu>li.active.open>a:hover,.page-sidebar .page-sidebar-menu>li.active>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a:hover{background:#EA4C61}.page-sidebar .page-sidebar-menu>li.active.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.active.open>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.active.open>a>i,.page-sidebar .page-sidebar-menu>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>i{color:#fff}.page-sidebar .page-sidebar-menu>li.active+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active+li>a{border-top-color:transparent}.page-sidebar .page-sidebar-menu>li.active.open+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active.open+li>a{border-top-color:#3d4957}.page-sidebar .page-sidebar-menu>li:last-child>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li:last-child>a{border-bottom:1px solid transparent!important}.page-sidebar .page-sidebar-menu li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li:hover>a>.arrow:before,.page-sidebar .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>a>.arrow:before{color:#fff}.page-sidebar-closed .page-sidebar .page-sidebar-menu:hover .sub-menu,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu:hover .sub-menu{background-color:#364150}.page-sidebar .page-sidebar-menu .sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a{color:#b4bcc8}.page-sidebar .page-sidebar-menu .sub-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i{color:#606C7D}.page-sidebar .page-sidebar-menu .sub-menu>li>a>i[class*=icon-],.page-sidebar .page-sidebar-menu .sub-menu>li>a>i[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i[class*=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>i[class^=icon-]{color:#6b788b}.page-sidebar .page-sidebar-menu .sub-menu>li>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a{background:#3e4b5c!important}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>i,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>i,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>i{color:#959fae}.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li.open>a>.arrow:before,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>.arrow.open:before,.page-sidebar .page-sidebar-menu .sub-menu>li:hover>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu>li:hover>a>.arrow:before{color:#606C7D}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li:hover>a{background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a{background:#3e4b5c;border-left:4px solid #EA4C61;color:#f1f1f1}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover{border-left:4px solid #EA4C61;background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow.open:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>i,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow.open:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow:before,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li.active>a>i{color:#eee}.page-sidebar .sidebar-search .input-group .input-group-btn .btn>i,.page-sidebar-closed .page-sidebar .sidebar-search.open .remove>i,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.open .remove>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn>i{color:#4e5c6f}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{background:#3a4656}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a{background:#3e4b5c!important}.page-sidebar .sidebar-toggler,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler{background:url(../assets/images/sidebar_inline_toggler_icon_darkblue.jpg)}.page-sidebar .sidebar-search .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group{border-bottom:1px solid #435060}.page-sidebar .sidebar-search .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control{background-color:#364150;color:#4e5c6f}.page-sidebar .sidebar-search .input-group .form-control::-moz-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control::-moz-placeholder{color:#4e5c6f;opacity:1}.page-sidebar .sidebar-search .input-group .form-control:-ms-input-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control:-ms-input-placeholder{color:#4e5c6f}.page-sidebar .sidebar-search .input-group .form-control::-webkit-input-placeholder,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control::-webkit-input-placeholder{color:#4e5c6f}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group{border:1px solid #435060}.page-sidebar-closed .page-sidebar .sidebar-search.open .input-group,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.open .input-group{background-color:#364150}.page-sidebar-closed .page-sidebar .sidebar-search.sidebar-search-solid .input-group,.page-sidebar-closed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group{background:0 0}.page-sidebar .sidebar-search.sidebar-search-solid .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group{border:1px solid #2c3541;background:#2c3541}.page-sidebar .sidebar-search.sidebar-search-solid .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid .input-group .form-control{background:#2c3541}.page-sidebar .sidebar-search.sidebar-search-solid.open .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid.open .input-group{border:1px solid #364150;background:#364150}.page-sidebar .sidebar-search.sidebar-search-solid.open .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-solid.open .input-group .form-control{background:#364150}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover{border-left:0;border-right:4px solid #EA4C61}.page-quick-sidebar-wrapper,.page-quick-sidebar-wrapper .page-quick-sidebar{background:#435468}.page-quick-sidebar-toggler{background:#576d87}.page-quick-sidebar-toggler:hover{background:#51667e}.page-quick-sidebar-toggler>i,.page-quick-sidebar-wrapper{color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a:hover{background:#4d6178}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li.open>a{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li.active>a{border:0;background:#435468}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu{border:0;background:#576d87;box-shadow:5px 5px rgba(142,160,182,.1)}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:after,.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:before{border-bottom:7px solid #576d87}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a{color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a>i{color:#ccd1d9}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a:hover{background:#5d7591;color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li>a:hover>i{color:#d4d9e0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li.active>a{background:#59708a;color:#d1d6de}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu>li.divider{background-color:#5d7591}.page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{color:#a5afbd}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{border-bottom-color:#495c72}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:hover{background:#495c72}.page-quick-sidebar-wrapper .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list{color:#c9ced7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group{border-bottom:1px solid #435060}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .form-control{background-color:#435468;color:#c9ced7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{color:#9ca7b7}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-small{color:#919cae}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .datetime,.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .name{color:#bdc4ce}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .message{color:#c9ced7;background:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message .arrow{border-right-color:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message .arrow{border-left-color:#576d87}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li a{color:#b7bfca}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li a .desc{text-decoration:underline}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .desc{color:#b1b9c6}.page-quick-sidebar-wrapper .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .date{color:#919cae}.page-footer .page-footer-inner{color:#98a6ba}.page-footer-fixed .page-footer{background-color:#28303b}@media (min-width:992px){.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-closed>li:hover{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-closed>li:hover.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-closed>li:hover.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu{box-shadow:5px 5px rgba(44,53,66,.2)}.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu.sidebar-search-wrapper,.page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu.sidebar-toggler-wrapper{box-shadow:none}.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li.heading{padding:0;margin-top:15px;margin-bottom:15px;border-top:1px solid #3d4957!important}.page-sidebar-fixed:not(.page-footer-fixed) .page-content{border-bottom:0}.page-sidebar-fixed:not(.page-footer-fixed) .page-footer{background-color:#fff}.page-sidebar-fixed:not(.page-footer-fixed) .page-footer .page-footer-inner{color:#333}.page-boxed{background-color:#303a47!important}.page-boxed .page-container{background-color:#364150;border-left:1px solid #3d4957;border-bottom:1px solid #3d4957}.page-boxed.page-sidebar-reversed .page-container{border-left:0;border-right:1px solid #3d4957}.page-boxed.page-sidebar-fixed .page-container{border-left:0;border-bottom:0}.page-boxed.page-sidebar-reversed.page-sidebar-fixed .page-container{border-left:0;border-right:0;border-bottom:0}.page-boxed.page-sidebar-fixed .page-sidebar{border-left:1px solid #3d4957}.page-boxed.page-sidebar-reversed.page-sidebar-fixed .page-sidebar{border-right:1px solid #3d4957;border-left:0}.page-boxed.page-sidebar-fixed.page-footer-fixed .page-footer{background-color:#303a47!important}.page-boxed.page-sidebar-fixed.page-footer-fixed .page-footer .page-footer-inner{color:#98a6ba}.page-sidebar-menu-hover-submenu li:hover a>.arrow{border-right:8px solid #323c4b}.page-sidebar-reversed .page-sidebar-menu-hover-submenu li:hover a>.arrow{border-left:8px solid #323c4b}.page-sidebar-menu-hover-submenu li:hover>.sub-menu{background:#323c4b!important}}.pace .pace-progress-inner,.page-header.navbar,.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .progress .progress-bar{box-shadow:none}@media (max-width:991px){.page-sidebar{background-color:#28303b}.page-sidebar .page-sidebar-menu>li>a{border-top:1px solid #364150}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar .page-sidebar-menu>li:hover>a{background:#2e3744}.page-sidebar .page-sidebar-menu>li:last-child>a{border-bottom:0!important}.page-sidebar .page-sidebar-menu .sidebar-search input,.page-sidebar .page-sidebar-menu>li .sub-menu{background-color:#28303b!important}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active.open>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.active>a:hover,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li:hover>a{background:#2e3744}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{background:#28303b!important}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.active>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li.open>a,.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu>li:hover>a{background:#2e3744!important}}@media (max-width:480px){.page-header.navbar .top-menu{background-color:#364150}.page-header-fixed-mobile .page-header.navbar .top-menu{background-color:#2b3643}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{background-color:#415265}.page-header-fixed-mobile .page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{background:0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle:hover{background-color:#3f4f62}}body{background-color:#364150}.block-spinner-bar>div,.page-spinner-bar>div{background:#20c5ad}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQ7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTSGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTZ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTYjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/TCmDhmS1RRL7aqhqZW19hwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/ttwNtsRpgsxVmgGGmiUOEoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans'),local('OpenSans'),url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSgzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSg7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSiGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSp6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSojoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans Semibold'),local('OpenSans-Semibold'),url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzAzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2')}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');unicode-range:U+0460-052F,U+20B4,U+2DE0-2DFF,U+A640-A69F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzCGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');unicode-range:U+02BC,U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200B-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');unicode-range:U+0102-0103,U+1EA0-1EF1,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2212,U+2215,U+E0FF,U+EFFD,U+F000}@media print{body{background-color:#fff!important}.hidden-print,.page-bar,.page-footer,.page-quick-sidebar-wrapper,.page-sidebar-wrapper,.theme-panel{display:none}.no-page-break{page-break-after:avoid}.page-container{margin:0!important;padding:0!important}.page-content{min-height:300px!important;padding:0 20px 20px!important;margin:0!important}}.page-header.navbar{width:100%;margin:0;border:0;padding:0;height:46px;min-height:46px;filter:none;background-image:none}.page-header.navbar.navbar-fixed-top,.page-header.navbar.navbar-static-top{z-index:9995}.page-header.navbar .page-logo{float:left;display:block;width:235px;height:46px;padding-left:20px;padding-right:20px}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo{padding:0}.page-header.navbar .page-logo>.logo-image,.page-header.navbar .page-logo>a{display:inline-block;float:left}.page-header.navbar .page-logo .logo-default{margin:16px 0 0}.page-header.navbar .page-logo .logo-mini{display:none;margin-left:5px}.page-header.navbar .page-logo .text-logo{padding-left:20px;padding-top:12px}.page-header.navbar .search-form{display:inline-block;width:46px;position:relative;float:left;transition:all .6s}.page-header.navbar .search-form .input-group .form-control{height:46px;border:0;background:0 0!important;font-size:13px;padding-left:0;margin-left:12px;text-indent:-150000px}.page-header.navbar .search-form .input-group .form-control:hover{cursor:pointer}.page-header.navbar .search-form .input-group .input-group-btn{height:46px}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit{margin-left:-24px;padding:0;width:46px;background:0 0;margin-top:4px;display:block}.page-header.navbar .search-form .input-group .input-group-btn .btn.submit>i{font-size:15px}.page-header.navbar .search-form.open{transition:all .6s;width:300px!important}.page-header.navbar .search-form.open .input-group .form-control{text-indent:0}.page-header.navbar .search-form.open .input-group .form-control:hover{cursor:text}.page-header.navbar .search-form.open .input-group .input-group-btn .btn.submit{margin-left:0}.page-header.navbar .menu-toggler{display:block;cursor:pointer;opacity:.7;filter:alpha(opacity=70);width:24px;height:24px;background-repeat:no-repeat;background-position:center center}.page-header.navbar .menu-toggler:hover,.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a:hover{opacity:1;filter:alpha(opacity=100)}.page-header.navbar .menu-toggler.sidebar-toggler{float:right;margin:11px 0 0}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .menu-toggler.sidebar-toggler{margin-right:10.5px}.page-header.navbar .menu-toggler.responsive-toggler{display:none;float:right;margin:11px 6px 0}.page-header.navbar .top-menu{margin:0;padding:0;float:right}.page-header.navbar .top-menu .navbar-nav{padding:0;margin-right:20px;display:block}.page-header.navbar .top-menu .navbar-nav>li.dropdown{margin:0;padding:0 4px;height:46px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown:last-child{padding-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle{margin:0;padding:17px 10px 9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle:last-child{padding-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>i{font-size:17px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>i.glyphicon{font-size:16px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle>.badge{font-family:"Open Sans",sans-serif;position:absolute;top:10px;right:20px;font-weight:300px;padding:3px 6px}.page-header.navbar .top-menu .navbar-nav>li.dropdown>.dropdown-toggle:focus{background:0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu{margin-top:3px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu:before{position:absolute;top:-7px;right:9px;display:inline-block!important;border-right:7px solid transparent;border-bottom:7px solid #eee;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu:after{position:absolute;top:-6px;right:10px;display:inline-block!important;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu>li>a{color:#555}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu{min-width:160px;max-width:275px;width:275px;z-index:9995}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external{display:block;overflow:hidden;padding:15px;letter-spacing:.5px;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>h3{margin:0;padding:0;float:left;font-size:13px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu>li.external>a{display:inline-block;padding:0;background:0 0;clear:inherit;font-size:13px;font-weight:300;position:absolute;right:10px;border:0;margin-top:-1px}.page-bar:after,.page-container:after,.page-footer:after,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:after,.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:after{clear:both}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list{padding-right:0!important;padding-left:0;list-style:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li>a{display:block;clear:both;font-weight:300;line-height:20px;white-space:normal;font-size:13px;padding:16px 15px 18px;text-shadow:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended .dropdown-menu .dropdown-menu-list>li:first-child a{border-top:none}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details{overflow:hidden}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon{margin-right:10px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon i{margin-right:2px;margin-left:1px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .details .label-icon .badge{right:15px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu .dropdown-menu-list>li a .time{float:right;max-width:75px;font-size:11px;font-weight:400;opacity:.7;filter:alpha(opacity=70);text-align:right;padding:1px 5px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .photo{float:left;margin:0 6px 6px 0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .photo img{height:40px;width:40px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;-ms-border-radius:50%!important;-o-border-radius:50%!important;border-radius:50%!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject{display:block;margin-left:46px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject .from{font-size:13px;font-weight:600}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .subject .time{font-size:12px;font-weight:400;opacity:.5;filter:alpha(opacity=50);float:right}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox>.dropdown-menu .dropdown-menu-list>li .message{display:block!important;font-size:12px;line-height:1.3;margin-left:46px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task{margin-bottom:5px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task .desc{font-size:13px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .task .percent{float:right;font-weight:600;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu .dropdown-menu-list>li .progress{display:block;height:8px;margin:8px 0 2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{padding:14px 6px 12px 8px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>.username{display:inline-block;font-size:13px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>img{float:left;margin-top:-5px;margin-right:5px;height:29px;display:inline-block}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle>i{display:inline-block;margin:0;font-size:13px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu{width:175px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a{font-size:14px;font-weight:300}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a i{width:15px;display:inline-block;margin-right:9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-menu>li>a .badge{margin-right:10px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language{padding-left:0;padding-right:0;margin:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle{padding:14px 3px 12px 7px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>img{margin-bottom:2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>i{font-size:14px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-menu>li>a{font-size:13px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-menu>li>a>img{margin-bottom:2px;margin-right:5px}.page-header.navbar .top-menu .navbar-nav li.dropdown-dark .dropdown-menu:before{border-left:none;border-right:none}.page-header.navbar .top-menu .navbar-nav li.dropdown-dark .dropdown-menu .dropdown-menu-list>li.external a{background:0 0!important;border:none!important}@media (min-width:768px){.page-header.navbar .search-form.search-form-expanded{width:200px}.page-header.navbar .search-form.search-form-expanded .input-group .form-control{text-indent:0}.page-header.navbar .search-form.search-form-expanded .input-group .form-control:hover{cursor:text}.page-header.navbar .search-form.search-form-expanded .input-group .input-group-btn .btn.submit{margin-left:0}}.page-header.navbar .container{position:relative}.page-header.navbar .hor-menu .navbar-nav,.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown{position:static}.page-header.navbar .hor-menu{margin:0;float:left}.page-header.navbar .hor-menu .navbar-nav.navbar-right .dropdown-menu{left:auto;right:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu{left:auto;width:auto}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content{font-family:"Open Sans",sans-serif;padding:15px;margin:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content.mega-menu-responsive-content{padding:10px 18px 10px 45px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu{padding:0;margin:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu:last-child{border-right:0}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li{padding:1px!important;margin:0!important;list-style:none}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>h3{margin-top:5px;padding-left:6px;font-size:15px;font-weight:400}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a{white-space:normal;font-family:"Open Sans",sans-serif;padding:7px;margin:0;font-size:14px;font-weight:300}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a.iconify{padding:7px 7px 7px 30px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a.iconify>i{position:absolute;top:auto!important;margin-left:-24px;font-size:15px;margin-top:3px!important}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a .badge,.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown>.dropdown-menu .mega-menu-content .mega-menu-submenu li>a .label{margin-left:5px}.page-header.navbar .hor-menu .navbar-nav>li.mega-menu-dropdown.mega-menu-full .dropdown-menu{left:20px;right:20px}.page-header.navbar .hor-menu .navbar-nav>li.menu-dropdown .dropdown-menu:after,.page-header.navbar .hor-menu .navbar-nav>li.menu-dropdown .dropdown-menu:before{display:none!important}.page-header.navbar .hor-menu .navbar-nav>li>a{font-size:14px;font-weight:400;padding:13px}.page-header.navbar .hor-menu .navbar-nav>li>a:focus{background:0 0!important}.page-header.navbar .hor-menu .navbar-nav>li.active .selected,.page-header.navbar .hor-menu .navbar-nav>li.current .selected{left:50%;bottom:0;position:absolute;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid transparent;display:inline-block;margin:0 0 -6px -7px;width:0;height:0}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu{margin-top:0;border:none}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:300;padding:9px 10px;white-space:normal}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a .badge,.page-header.navbar .hor-menu .navbar-nav>li .dropdown-menu li>a .label{font-weight:300}.page-header.navbar .hor-menu .navbar-nav>li.classic-menu-dropdown .dropdown-menu{min-width:195px;max-width:235px}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>.dropdown-menu{top:0}.page-header.navbar .hor-menu .navbar-nav>li .dropdown-submenu>a:after{top:9px;right:10px}@media (min-width:992px) and (max-width:1200px){.page-boxed .page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle .langname,.page-boxed .page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle .username.username-hide-on-mobile{display:none}}@media (min-width:992px){.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo{padding:0;width:45px}.page-sidebar-closed.page-sidebar-closed-hide-logo .page-header.navbar .page-logo .logo-default{display:none}.page-boxed .page-header.navbar .page-logo{width:236px}.page-boxed .page-header.navbar .top-menu .navbar-nav{margin-right:0}.page-sidebar-closed.page-sidebar-closed-hide-logo.page-boxed .page-header.navbar .page-logo{width:46px}.page-boxed.page-sidebar-fixed .page-header.navbar .page-logo{width:235px}}@media (max-width:991px){.page-header.navbar{padding:0 20px;position:relative;clear:both}.page-header.navbar .page-logo{width:auto;padding:0;margin-right:10px;margin-left:0!important;padding-left:0!important}.page-header.navbar .page-logo img{margin-left:4px!important}.page-header.navbar .menu-toggler.sidebar-toggler{display:none!important}.page-header.navbar .menu-toggler.responsive-toggler{display:inline-block}.page-header.navbar .top-menu .navbar-nav{display:inline-block;margin:0 10px 0 0}.page-header.navbar .top-menu .navbar-nav>li{float:left}.page-header.navbar .top-menu .navbar-nav .nav li.dropdown i{display:inline-block;position:relative;top:1px;right:0}.page-header.navbar .top-menu .navbar-nav .open .dropdown-menu{position:absolute}.page-header-fixed.page-header-fixed-mobile .navbar-fixed-top{position:fixed}.page-boxed .page-header.navbar>.container{max-width:none!important;margin:0!important;padding:0!important}}@media (min-width:768px) and (max-width:991px){.page-boxed .page-header.navbar{margin:auto!important;padding:0}.page-boxed .page-header.navbar>.container{margin:auto!important}}@media (max-width:767px){.page-header.navbar{padding:0 10px}.page-header.navbar .page-logo{width:auto}.page-header.navbar .search-form.open{z-index:3;left:10px;right:10px;position:absolute;width:auto!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-extended>.dropdown-menu{max-width:255px;width:255px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu{margin-right:-190px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-notification .dropdown-menu:before{margin-right:190px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu{margin-right:-150px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-inbox .dropdown-menu:before{margin-right:150px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu{margin-right:-110px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown-tasks .dropdown-menu:before{margin-right:110px}}@media (max-width:580px){.page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle .langname,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle .username.username-hide-on-mobile{display:none}}@media (max-width:480px){.page-header-fixed.page-header-fixed-mobile .page-header.navbar{height:92px}.page-header.navbar .top-menu{display:block;clear:both}.page-header.navbar .top-menu .navbar-nav{margin-right:0}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle{padding:17px 6px 9px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle{padding:14px 4px 12px 2px}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle{padding:14px 0 12px 2px}}.pace .pace-progress{z-index:10000;top:44px;height:2px}.pace .pace-activity{top:48px;right:22px;border-radius:10px!important}.page-container{margin:0;padding:0;position:relative}.page-container:after,.page-container:before{content:" ";display:table}.page-header-fixed .page-container{margin-top:46px}.page-footer-fixed.page-footer-fixed-mobile .page-container{margin-bottom:20px!important}@media (min-width:992px){.page-footer-fixed .page-container{margin-bottom:20px!important}}@media (max-width:991px){.page-container{margin:0!important;padding:0!important}.page-header-fixed.page-header-fixed-mobile .page-container{margin-top:46px!important}}@media (max-width:480px){.page-header-fixed .pace .pace-progress{top:92px}.page-header-fixed .pace .pace-activity{top:188px;right:15px}.page-header-fixed.page-header-fixed-mobile .page-container{margin-top:92px!important}}.ie8 .page-sidebar{width:235px;float:left;position:relative;margin-right:-100%}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover.navbar-collapse,.page-sidebar.navbar-collapse{padding:0;box-shadow:none}.page-sidebar .page-sidebar-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu{list-style:none;margin:0;padding:0}.page-sidebar .page-sidebar-menu>li,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li{display:block;margin:0;padding:0;border:0}.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper{border:0!important}.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-search-wrapper:before,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar .page-sidebar-menu>li.sidebar-toggler-wrapper:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-search-wrapper:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:after,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.sidebar-toggler-wrapper:before{content:" ";display:table}.page-sidebar .page-sidebar-menu>li.start>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.start>a{border-top-color:transparent!important}.page-sidebar .page-sidebar-menu>li.last>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.last>a{border-bottom-color:transparent!important}.page-sidebar .page-sidebar-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{display:block;position:relative;margin:0;border:0;padding:10px 15px;text-decoration:none;font-size:14px;font-weight:300}.page-sidebar .page-sidebar-menu>li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i{font-size:16px;margin-right:5px;text-shadow:none}.page-sidebar .page-sidebar-menu>li>a>i.glyphicon,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i.glyphicon{top:3px;margin-left:1px;margin-right:4px}.page-sidebar .page-sidebar-menu>li>a>[class^=icon-],.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>[class^=icon-]{top:2px;margin-left:1px;margin-right:4px}.page-sidebar-fixed .page-sidebar .page-sidebar-menu>li>a,.page-sidebar-fixed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{transition:all .2s ease}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar .page-sidebar-menu>li>a,.page-sidebar-reversed.page-sidebar-fixed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a{transition:none}.page-sidebar .page-sidebar-menu>li.heading,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading{padding:15px}.page-sidebar .page-sidebar-menu>li.heading>h3,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading>h3{margin:0;padding:0;font-size:14px;font-weight:300}.page-sidebar .page-sidebar-menu>li.heading+li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.heading+li>a{border-top:0}.page-sidebar .page-sidebar-menu>li.open>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.open>a{font-size:14px}.page-sidebar .page-sidebar-menu>li.active>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a{border:none;text-shadow:none;font-size:14px}.page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{display:block;float:right;position:absolute;right:0;top:8px;background:0 0;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #fff}.page-sidebar-reversed .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{right:auto;left:0;border-right:0;border-left:8px solid #fff}.page-container-bg-solid .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-container-bg-solid .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{border-color:transparent #F1F3FA transparent transparent}.page-container-bg-solid.page-sidebar-reversed .page-sidebar .page-sidebar-menu>li.active>a>.selected,.page-container-bg-solid.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li.active>a>.selected{border-color:transparent transparent transparent #F1F3FA}.page-sidebar .page-sidebar-menu li>a>.arrow:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow:before{float:right;width:10px;text-align:center;margin-top:-1px;margin-right:5px;margin-left:5px;display:inline;font-size:16px;font-family:FontAwesome;height:auto;content:"\f104";font-weight:300;text-shadow:none}.page-sidebar .page-sidebar-menu li>a>.arrow.open:before,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.arrow.open:before{content:"\f107"}.page-sidebar .page-sidebar-menu li>a>.badge,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.badge{float:right;margin-top:1px;margin-right:0}.page-sidebar .page-sidebar-menu .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu{list-style:none;display:none;padding:0;margin:8px 0}.page-sidebar .page-sidebar-menu .sub-menu li,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li{background:0 0;margin:0;padding:0;margin-top:1px!important}.page-sidebar .page-sidebar-menu .sub-menu li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>a{display:block;margin:0;padding:6px 15px 6px 43px;text-decoration:none;font-size:14px;font-weight:300;background:0 0}.page-sidebar .page-sidebar-menu .sub-menu li>a>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>a>i{font-size:14px}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu{margin:0}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>a{padding-left:60px}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu{margin:0}.page-sidebar .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .sub-menu li>.sub-menu>li>.sub-menu>li>a{padding-left:80px}.page-sidebar .page-sidebar-menu li.active>.sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li.active>.sub-menu{display:block}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li>a{border:0;margin:0;padding-left:11px;border-left:4px solid transparent}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu{margin:0;padding:1px 0}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li>a,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li>a{padding-top:8px;padding-bottom:8px}.page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li:first-child,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li .sub-menu li:first-child{margin-top:0!important}.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light>li>a,.page-sidebar-reversed .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light>li>a{padding-left:15px;padding-right:11px;border-left:0;border-right:4px solid transparent}.page-sidebar .sidebar-toggler,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler{display:block;cursor:pointer;opacity:.7;filter:alpha(opacity=70);width:30px;height:27px;margin-top:15px;margin-right:19px;float:right;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-toggler:hover,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-toggler:hover{filter:alpha(opacity=100);opacity:1}.page-sidebar .sidebar-search,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search{padding:0;margin:22px 18px}.page-sidebar .sidebar-search .remove,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .remove{display:none}.page-sidebar .sidebar-search .remove>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .remove>i{font-size:16px}.page-sidebar .sidebar-search .input-group,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-search .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .form-control{border:0;font-size:14px;padding:0;height:auto;line-height:auto;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar .sidebar-search .input-group .input-group-btn .btn,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn{padding:2px 0 0;background-color:transparent;background-repeat:no-repeat;background-position:100% 3px}.page-sidebar .sidebar-search .input-group .input-group-btn .btn>i,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search .input-group .input-group-btn .btn>i{font-size:15px}.page-sidebar .sidebar-search.sidebar-search-bordered,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered{margin:25px 18px}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group .form-control,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group .form-control{font-size:13px;padding:6px 8px}.page-sidebar .sidebar-search.sidebar-search-bordered .input-group .input-group-btn .btn,.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .sidebar-search.sidebar-search-bordered .input-group .input-group-btn .btn{margin-right:6px}@media (min-width:992px){.page-full-width .page-sidebar,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.open>.sub-menu,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>.sub-menu{display:none!important}.page-sidebar{width:235px;float:left;position:relative;margin-right:-100%}.page-sidebar.navbar-collapse{max-height:none!important}.page-sidebar-reversed .page-sidebar{float:right;margin-right:0;margin-left:-100%}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar{margin-left:-235px}.page-sidebar-reversed.page-sidebar-fixed .page-sidebar-wrapper{position:relative;float:right}.page-sidebar-fixed .page-sidebar{position:fixed!important;margin-left:0;top:46px}.page-sidebar-fixed .page-sidebar-menu>li.last{margin-bottom:15px!important}.page-sidebar-closed .page-sidebar,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed{width:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover{width:256px!important;position:relative!important;z-index:10000;display:block!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;-ms-border-radius:0 4px 0 0;-o-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>i{margin-right:10px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.title{display:inline!important;padding-left:15px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.badge{display:block!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.selected{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover.heading{width:45px!important;box-shadow:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu{width:210px;position:absolute;z-index:2000;left:46px;margin-top:0;top:100%;display:block!important;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>a{padding-left:15px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>.sub-menu>li>a{padding-left:30px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>.sub-menu>li>.sub-menu>li>.sub-menu>li>a{padding-left:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.heading>h3{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper .sidebar-toggler{margin-right:8px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-search-wrapper:hover,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper:hover{width:45px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a{padding-left:11px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a .selected{right:-3px!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.arrow,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.badge,.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>a>.title{display:none!important}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-toggler{margin-left:3px;margin-right:3px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group{border-color:transparent;margin-left:-4px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group .form-control{display:none}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search .input-group .input-group-btn .btn{display:block}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.sidebar-search-bordered .input-group{padding:5px 0 3px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open{height:39px;margin-top:14px;margin-bottom:14px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group{width:210px;position:relative;z-index:1;margin-left:24px;padding:0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .form-control{background:0 0;border:0;display:block;padding:8px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .input-group-btn .btn{display:block;margin-right:8px;margin-top:1px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .remove{background-repeat:no-repeat;width:11px;height:11px;margin:9px -5px 9px -7px;display:block;float:left}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open.sidebar-search-bordered{height:36px;margin-top:23px;margin-bottom:23px}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open.sidebar-search-bordered .input-group{padding:0}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li>a{padding-right:11px;padding-left:7px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar{margin-left:-45px;width:45px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li>.sub-menu{left:auto;right:46px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover{margin-left:-211px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a{-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;-ms-border-radius:4px 0 0 0;-o-border-radius:4px 0 0;border-radius:4px 0 0}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>.title{padding-left:0;padding-right:15px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li:hover>a>i{margin-right:0;margin-left:2px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-search-wrapper:hover,.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>li.sidebar-toggler-wrapper:hover{margin-left:0}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group{margin-left:-227px}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .input-group .input-group-btn .btn{margin-right:10px!important}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed .sidebar-search.open .remove{margin:9px 4px 12px -16px!important;float:right!important}.page-sidebar-closed.page-sidebar-reversed .page-sidebar .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed>li>a{padding-right:7px;padding-left:11px}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{width:235px!important;display:absolute;z-index:10000}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu{width:235px!important}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu .selected{display:none!important}.page-sidebar-closed.page-sidebar-fixed.page-sidebar-reversed .page-sidebar:hover{width:235px!important;display:absolute;z-index:10000;margin-left:-235px!important}.page-sidebar-closed.page-sidebar-fixed.page-sidebar-reversed .page-sidebar:hover .page-sidebar-menu{width:235px!important}.page-sidebar-closed.page-sidebar-hide .page-sidebar{display:none!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu li .sub-menu{display:none;width:210px;z-index:2000;position:absolute;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-sidebar-menu.page-sidebar-menu-hover-submenu li .sub-menu>li>a{margin:3px}.page-sidebar-menu.page-sidebar-menu-hover-submenu li.active .sub-menu,.page-sidebar-menu.page-sidebar-menu-hover-submenu li.open .sub-menu{display:none!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu li a>.arrow{display:none}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow{display:block;float:right;position:absolute;right:0;margin-top:-20px;background:0 0;width:0;height:0;border-style:solid;border-top:12px double transparent;border-bottom:12px double transparent;border-left:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow:after,.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow:before{display:none}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>a>.arrow{right:auto;left:0;border-right:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu li:hover>.sub-menu{display:inline-block!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>a>.arrow{z-index:1;right:0;margin-top:-23px}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>a>.selected{display:none}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:235px;margin-top:-40px}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:-210px!important}.page-sidebar-closed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu{margin-left:0}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li>a{padding-left:15px}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu{margin-left:210px;margin-top:-38px!important}.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu{margin-left:-210px!important}.page-sidebar-menu.page-sidebar-menu-hover-submenu>li:hover>.sub-menu>li .sub-menu>li>a{padding-left:10px;padding-right:10px}.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-hover-submenu li:hover>.sub-menu,.page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-hover-submenu li:hover>.sub-menu>li>.sub-menu{margin-top:-41px}}@media (max-width:991px){.page-sidebar,.page-sidebar.navbar-collapse.in{border-top:0!important;margin:20px}.page-sidebar .sidebar-toggler{display:none}.page-sidebar .selected,.page-sidebar.navbar-collapse.collapse{display:none!important}.page-sidebar.navbar-collapse{max-height:none}.page-sidebar.navbar-collapse.in{position:relative;overflow:hidden!important;overflow-y:auto!important;display:block!important}.page-sidebar.navbar-collapse.navbar-no-scroll{max-height:none!important}.page-sidebar .mega-menu-responsive-content{padding:10px 18px 10px 45px}.page-full-width .page-sidebar-menu{display:block}}@media (min-width:768px) and (max-width:991px){.page-sidebar .btn-navbar.collapsed .arrow{display:none}.page-sidebar .btn-navbar .arrow{position:absolute;right:25px;width:0;height:0;top:50px;border-bottom:15px solid #5f646b;border-left:15px solid transparent;border-right:15px solid transparent}}.page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle{padding:17px 10px 9px!important}.page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle i{top:0}.page-quick-sidebar-open .page-header .top-menu .dropdown-quick-sidebar-toggler>.dropdown-toggle i:before{content:"\e066"}.page-quick-sidebar-wrapper{transition:right .3s;z-index:9994;position:fixed;top:46px;bottom:0;right:-270px;width:270px;overflow:hidden}.page-quick-sidebar-wrapper.phonebar{top:0}.page-footer-fixed .page-quick-sidebar-wrapper{bottom:33px}.page-quick-sidebar-full-height .page-quick-sidebar-wrapper{top:0;bottom:0}.page-quick-sidebar-open .page-quick-sidebar-wrapper{transition:right .3s;right:0}.page-quick-sidebar-toggler{overflow:hidden;z-index:9994;display:none;width:28px;height:27px;position:fixed;top:19px;right:15px;text-align:center;padding-top:6px}.page-quick-sidebar-open .page-quick-sidebar-toggler{display:inline-block}.page-quick-sidebar-toggler>i{font-size:17px}@media (max-width:480px){.page-sidebar,.page-sidebar.in{margin:0 10px 10px!important}.page-header-fixed.page-header-fixed-mobile .page-sidebar,.page-header-fixed.page-header-fixed-mobile .page-sidebar.in{margin-top:10px!important}.page-quick-sidebar-wrapper{top:92px}.page-quick-sidebar-toggler{top:65px}}.page-content-wrapper,.page-footer,.page-header,.page-sidebar-wrapper{transition:margin .3s}.page-quick-sidebar-open.page-quick-sidebar-push-content .page-content-wrapper,.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{transition:margin-left .3s;margin-left:-270px}.page-quick-sidebar-open.page-quick-sidebar-push-content .page-footer{transition:margin-right .3s;margin-right:270px;margin-left:-270px}.page-sidebar-reversed.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{transition:margin-right .3s;margin-right:270px}.page-quick-sidebar-open.page-quick-sidebar-push-content.page-quick-sidebar-full-height .page-header{transition:margin-left .3s;margin-left:-270px}.page-quick-sidebar-open.page-quick-sidebar-push-content.page-footer-fixed:not(.page-quick-sidebar-full-height) .page-footer{margin-left:0;margin-right:0}.page-quick-sidebar-open.page-quick-sidebar-over-content-transparent .page-quick-sidebar-wrapper{opacity:.9;filter:alpha(opacity=90)}@media (max-width:991px){.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper{display:none}}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified{margin:0;padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li{display:table-cell!important;width:1%!important}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a{padding:15px;border:0;height:46px;font-size:13px;text-transform:uppercase;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a>.badge{position:absolute;top:12px;right:3px}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li>a:hover{border:0}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu{margin-top:8px;margin-right:20px}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:before{position:absolute;top:-7px;right:19px;display:inline-block!important;border-right:7px solid transparent;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>li .dropdown-menu:after{position:absolute;top:-6px;right:20px;display:inline-block!important;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-justified>.tab-content{margin:0;padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{font-size:16px;margin:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items{margin:0;padding:0;list-style:none}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{margin:0;padding:10px;background:0 0;border-bottom-width:1px;border-bottom-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:last-child{border-bottom:0}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items.borderless li{border:0}.page-quick-sidebar-wrapper .page-quick-sidebar .inner-content{margin:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-list{position:absolute!important;width:270px!important;transition:margin .3s}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item{position:absolute!important;width:270px!important;transition:margin .3s;margin-left:270px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav{padding:0 10px 5px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list{vertical-align:middle;display:inline-block;font-size:14px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list>i{font-size:17px;line-height:17px;vertical-align:top;margin-right:3px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list{transition:margin .3s;margin-left:-270px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list .slimScrollBar,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list .slimScrollRail{display:none!important}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-item{transition:margin .3s;margin-left:0}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media{padding:12px 10px 11px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object{border-radius:50%!important;width:38.57px;opacity:.8;filter:alpha(opacity=80);float:left;margin-right:10px}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search{padding:0;margin:10px 22px}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .form-control{border:0;font-size:14px;padding:0;height:auto}.page-quick-sidebar-wrapper .page-quick-sidebar-chat .page-quick-sidebar-chat-users .quicksidebar-search .input-group .input-group-btn .btn{padding:2px 0 0;background-color:transparent;background-repeat:no-repeat;background-position:100% 3px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:after,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-object:before{content:" ";display:table}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media:hover{cursor:pointer}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media:hover .media-object{opacity:1;filter:alpha(opacity=100)}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading{margin:5px 0 0;font-size:14px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{font-size:11px;text-transform:uppercase}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-small{font-size:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-status{margin-top:10px;right:10px;position:absolute;display:inline-block}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages{padding:0 10px;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post{transition:display .3s;padding:5px 0;margin:10px auto;font-size:12px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .body{display:block;word-wrap:break-word}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .avatar{width:38.57px;border-radius:50%!important}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .avatar{float:left;margin-right:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .avatar{float:right;margin-left:10px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .name{font-size:12px;font-weight:300}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .datetime{font-size:12px;font-weight:300;text-style:italic}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post .message{display:block;padding:5px;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message{text-align:left;margin-left:55px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.in .message .arrow{display:block;position:absolute;top:9px;left:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right-width:6px;border-right-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message{margin-right:55px;text-align:right}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .message .arrow{display:block;position:absolute;top:9px;right:-6px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left-width:6px;border-left-style:solid}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .datetime,.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-messages .post.out .name{text-align:right}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-form{padding:20px 10px 15px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-user .page-quick-sidebar-chat-user-form .input-group .form-control{font-size:13px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .label{margin-top:5px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-alerts .page-quick-sidebar-alerts-list .feeds li .desc{padding:0}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list{padding:10px 0;position:relative}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li .bootstrap-switch{margin-top:-3px;float:right;border:0;min-width:59px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li .form-control{width:75px!important;padding:4px!important;float:right;border:0;margin-top:-4px}.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-settings .page-quick-sidebar-settings-list .list-items li select.form-control{padding:4px 0!important}.page-title{padding:0;font-size:28px;letter-spacing:-1px;display:block;color:#666;margin:0 0 15px;font-weight:300;font-family:"Open Sans",sans-serif}.page-title small{font-size:14px;letter-spacing:0;font-weight:300;color:#888}.page-container-bg-solid .page-title{color:#666;margin-bottom:20px;margin-top:20px}.page-container-bg-solid .page-title small{color:#666}.page-bar{padding:0;background-color:#f7f7f7;margin-bottom:25px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.page-bar:after,.page-bar:before{content:" ";display:table}.page-bar .page-breadcrumb{display:inline-block;float:left;padding:8px;margin:0;list-style:none}.page-bar .page-breadcrumb>li{display:inline-block}.ie8 .page-bar .page-breadcrumb>li{margin-right:1px}.page-bar .page-breadcrumb>li>a,.page-bar .page-breadcrumb>li>span{color:#888;font-size:14px;text-shadow:none}.page-bar .page-breadcrumb>li>i{color:#aaa;font-size:14px;text-shadow:none}.page-bar .page-breadcrumb>li>i[class*=icon-],.page-bar .page-breadcrumb>li>i[class^=icon-]{color:gray}.page-bar .page-toolbar{display:inline-block;float:right;padding:0}.page-bar .page-toolbar .btn-fit-height{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;-ms-border-radius:0 4px 4px 0;-o-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;padding-top:8px;padding-bottom:8px}.page-container-bg-solid .page-bar{position:relative;padding:0 20px;background-color:#fff;margin:-25px -20px 0}.page-container-bg-solid .page-bar .page-breadcrumb{padding:11px 0}.page-container-bg-solid .page-bar .page-breadcrumb>li>a,.page-container-bg-solid .page-bar .page-breadcrumb>li>span{color:#888}.page-container-bg-solid .page-bar .page-breadcrumb>li>i{color:#aaa}.page-container-bg-solid .page-bar .page-breadcrumb>li>i[class*=icon-],.page-container-bg-solid .page-bar .page-breadcrumb>li>i[class^=icon-]{color:#8c8c8c}.page-container-bg-solid .page-bar .page-toolbar{padding:6px 0}.page-container-bg-solid .page-bar .page-toolbar .btn{margin-top:-2px}.page-container-bg-solid .page-bar .page-toolbar .btn.btn-sm{margin-top:0}.page-content{margin-top:0;padding:0;background-color:#fff}.page-container-bg-solid .page-content{background:#F1F3FA}.page-full-width .page-content{margin-left:0!important}@media (min-width:992px){.page-content-wrapper{float:left;width:100%}.page-content-wrapper .page-content{margin-left:235px;margin-top:0;min-height:600px;padding:25px 20px 10px}.page-content-wrapper .page-content.no-min-height{min-height:auto}.page-sidebar-fixed.page-sidebar-hover-on .page-content-wrapper .page-content{margin-left:45px}.page-sidebar-reversed .page-content-wrapper .page-content{margin-left:0!important;margin-right:235px!important}.page-sidebar-reversed.page-sidebar-fixed.page-sidebar-hover-on .page-content-wrapper .page-content{margin-left:0;margin-right:45px}.page-sidebar-reversed.page-sidebar-closed .page-content-wrapper .page-content{margin-left:0!important;margin-right:45px!important}.page-sidebar-closed .page-content-wrapper .page-content{margin-left:45px!important}.page-full-width .page-content-wrapper .page-content,.page-sidebar-closed.page-sidebar-hide .page-content-wrapper .page-content{margin-left:0!important}.page-sidebar-closed.page-sidebar-reversed.page-sidebar-hide .page-content-wrapper .page-content{margin-right:0!important}}@media (max-width:991px){.page-container-bg-solid .page-bar{margin-top:-20px}.page-boxed>.container{max-width:none!important;margin:0!important;padding:0!important}.page-content-wrapper .page-content{margin:0!important;padding:20px!important;min-height:280px}}@media (min-width:768px) and (max-width:991px){.page-boxed>.container{margin:auto!important}}@media (max-width:767px){.page-content-wrapper .page-content{padding:20px 10px 10px!important;overflow:hidden}.page-content-wrapper .page-content .page-title{margin-bottom:20px;font-size:18px}.page-content-wrapper .page-content .page-title small{font-size:13px;padding-top:3px}}@media (max-width:480px){.page-content-wrapper .page-content .page-title small{display:block;clear:both}}.page-footer{padding:8px 20px 5px;font-size:12px;height:33px}.page-footer:after,.page-footer:before{content:" ";display:table}.page-footer .page-footer-inner{float:left;display:inline-block}.page-footer-fixed.page-footer-fixed-mobile .page-footer{position:fixed;left:0;right:0;z-index:10000;bottom:0}.page-footer-fixed.page-footer-fixed-mobile.page-sidebar-fixed .page-footer{margin-left:0!important}@media (min-width:992px){.page-footer{clear:left}.page-footer-fixed .page-footer{position:fixed;left:0;right:0;z-index:10000;bottom:0}.page-sidebar-fixed.page-sidebar-closed .page-footer{margin-left:45px}.page-sidebar-fixed.page-footer-fixed .page-footer{margin-left:0!important}.page-sidebar-fixed .page-footer{margin-left:235px;padding:8px 20px 5px}.page-boxed .page-footer{padding:8px 0 5px}.page-boxed.page-sidebar-fixed .page-footer{padding-right:20px;padding-left:20px}.page-sidebar-reversed.page-sidebar-fixed .page-footer{margin-left:0;margin-right:235px;padding:8px 20px 5px}.page-sidebar-reversed.page-sidebar-fixed.page-footer-fixed .page-footer{margin-left:0;margin-right:0}.page-sidebar-reversed.page-sidebar-fixed.page-sidebar-closed .page-footer{margin-right:45px}}.aside .aside-dialog .aside-footer:after,.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.container-fluid:after,.container:after,.dataTable,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after,.scroller-footer:after{clear:both}@media (max-width:991px){.page-boxed .page-footer{padding-left:0;padding-right:0}}@media (max-width:767px){.page-boxed .page-footer,.page-footer{padding-left:10px;padding-right:10px}.page-footer-fixed .page-footer .container{padding-left:0;padding-right:0}}.scroll-to-top{padding:1px;text-align:center;position:fixed;bottom:10px;z-index:10001;display:none;right:10px}.theme-panel>.toggler,.theme-panel>.toggler-close{padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;top:4px;cursor:pointer}.scroll-to-top>i{display:inline-block;color:#687991;font-size:30px;opacity:.6;filter:alpha(opacity=60)}.scroll-to-top:hover{cursor:pointer}.scroll-to-top:hover>i{opacity:1;filter:alpha(opacity=100)}@media (min-width:992px){.scroll-to-top{right:20px}}@media (max-width:991px){.scroll-to-top{bottom:10px;right:10px}.scroll-to-top>i{font-size:28px}}.theme-panel{width:420px;margin-top:-13px;margin-right:0;z-index:100;float:right;position:relative}.theme-panel>.toggler{right:0;position:absolute;background:url(../img/icon-color.png) center no-repeat #d5dade;border-radius:4px}.theme-panel>.toggler:hover{background-color:#3d3d3d!important}.theme-panel>.toggler-close{display:none;right:0;z-index:101;position:absolute;background:url(../img/icon-color-close.png) center no-repeat #3d3d3d!important;border-radius:4px}.theme-panel>.toggler-close:hover{background-color:#222!important}.theme-panel>.theme-options{top:4px;right:0;display:none;position:absolute;z-index:100;background:#3d3d3d;box-shadow:5px 5px rgba(61,61,61,.1);-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.modal-open .colorpicker,.modal-open .datepicker,.modal-open .daterangepicker,.modal-open .datetimepicker{z-index:10055!important}.theme-panel>.theme-options>.theme-option{color:#cfcfcf;padding:10px;border-top:1px solid #444;margin-top:0;margin-bottom:0}.theme-panel>.theme-options>.theme-option>span{text-transform:uppercase;display:inline-block;width:145px;font-size:13px;font-weight:300}.theme-panel>.theme-options>.theme-option>select.form-control{display:inline;width:135px;padding:2px;text-transform:lowercase}.theme-panel>.theme-options>.theme-option.theme-colors{border-top:0}.theme-panel>.theme-options>.theme-option.theme-colors>span{display:block;width:auto}.theme-panel>.theme-options>.theme-option.theme-colors>ul{list-style:none;padding:0;display:block;margin-bottom:10px!important;margin-top:15px}.colorpicker.dropdown-menu,.daterangepicker.dropdown-menu,.datetimepicker.dropdown-menu{padding:5px}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li{width:40px;height:40px;margin:0 4px;cursor:pointer;list-style:none;float:left;border:1px solid #707070}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li:first-child{margin-left:0}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.current,.theme-panel>.theme-options>.theme-option.theme-colors>ul>li:hover{border:2px solid #d64635}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-default{background:#333438}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-darkblue{background:#2b3643}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-blue{background:#2D5F8B}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-grey{background:#697380}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-light{background:#F9FAFD}.theme-panel>.theme-options>.theme-option.theme-colors>ul>li.color-light2{background:#F1F1F1}.page-container-bg-solid .theme-panel{position:absolute;margin-top:30px;margin-right:20px;right:0}.page-container-bg-solid .theme-panel>.toggler{background:url(../img/icon-color.png) center no-repeat #BFCAD1}.page-container-bg-solid.page-sidebar-reversed .theme-panel{margin-right:255px}.page-on-load{background:#fefefe}.datepicker .active,.datepicker .active:hover,.datepicker .selected,.datepicker .today{background-image:none!important;filter:none!important}.page-on-load .page-container,.page-on-load .page-footer,.page-on-load .page-header,.page-on-load>.clearfix{display:none;transition:all 2s}.input-group.color .input-group-btn i{position:absolute;display:block;cursor:pointer;width:20px;height:20px;right:6px}.datepaginator a{font-family:'Open Sans';font-size:13px;font-weight:300}.datepicker table td,.datepicker table th,.datetimepicker table td,.datetimepicker table th{font-family:'Open Sans'!important}#dp-calendar{right:4px!important}.datepaginator .fa-angle-right:before{content:"\f105"}.datepaginator .fa-angle-left:before{content:"\f104"}.datepicker.dropdown-menu{padding:5px;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #efefef}.datepicker .selected{background-color:#909090!important}.datepicker .active{background-color:#4b8df8!important}.datepicker .active:hover{background-color:#2678FC!important}.datepicker .input-daterange input{text-align:left}.datepicker table td{color:#000;font-weight:300!important}.datepicker table th{color:#333;font-weight:400!important}.daterangepicker{margin-top:4px}.daterangepicker td{text-shadow:none}.daterangepicker td.active{background-color:#4b8df8;background-image:none;filter:none}.datetimepicker .active,.datetimepicker .active:hover{filter:none!important;background-image:none!important}.daterangepicker th{font-weight:400;font-size:14px}.daterangepicker .ranges input[type=text]{width:70px!important;font-size:11px;vertical-align:middle}.daterangepicker .ranges label{font-weight:300;display:block}.daterangepicker .ranges .btn{margin-top:10px}.daterangepicker .ranges li{color:#333}.daterangepicker .ranges li.active,.daterangepicker .ranges li:hover{background:#4b8df8!important;border:1px solid #4b8df8!important;color:#fff}.daterangepicker .range_inputs input{margin-bottom:0!important}.daterangepicker .fa-angle-right:before{content:"\f105"}.daterangepicker .fa-angle-left:before,.datetimepicker .fa-angle-left:before{content:"\f104"}.datetimepicker table td{color:#000;font-weight:300!important}.datetimepicker table th{font-weight:400!important}.datetimepicker .active{background-color:#4b8df8!important}.datetimepicker .active:hover{background-color:#2678FC!important}.datetimepicker .fa-angle-right:before{content:"\f105"}.editable-input table,.editable-input table td,.editable-input table th,.editable-input table tr{border:0!important}.editable-input .combodate select{margin-bottom:5px}.fileinput{margin-bottom:0}.fileinput .close{float:none}.fileinput .input-group{white-space:nowrap;overflow:hidden}.md-input{padding:5px!important;border-bottom:0!important;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.md-editor{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.md-editor .btn-toolbar{margin-left:0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.md-editor .btn-toolbar .btn-group .btn-sm.btn{padding-bottom:3px}.md-editor .btn-toolbar .btn-group .btn-primary{padding-top:5px;padding-bottom:7px}.md-editor.active{border:1px solid #999;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.has-error .md-editor{border:1px solid #ebccd1!important}.has-success .md-editor{border:1px solid #d6e9c6!important}.has-warning .md-editor{border:1px solid #faebcc!important}.modal-open.page-overflow .modal-scrollable,.modal-open.page-overflow .page-container,.modal-open.page-overflow .page-container .navbar-fixed-bottom,.modal-open.page-overflow .page-container .navbar-fixed-top{overflow-y:auto!important}.modal-scrollable{overflow:hidden!important}.modal-backdrop{position:fixed}.bootstrap-select .btn{border-color:#e5e5e5}.has-error .bootstrap-select .btn{border-color:#ebccd1}.has-success .bootstrap-select .btn{border-color:#d6e9c6}.has-warning .bootstrap-select .btn{border-color:#faebcc}.bootstrap-select.open .btn,.bootstrap-select.open.dropup .btn{border-color:#999}.bootstrap-select .btn:focus{outline:0!important;outline-offset:0}.bootstrap-select.btn-group .dropdown-menu{margin-top:1px}.bootstrap-select.btn-group .dropdown-menu>li>dt>.text{font-weight:600;font-family:'Open Sans';font-size:14px}.bootstrap-select.btn-group .dropdown-menu .text-muted{color:#999!important}.bootstrap-select .caret{border:0;width:auto;height:auto;margin-top:-10px!important}.bootstrap-select .caret:before{content:"\f107";display:inline-block;border:0;font-family:FontAwesome;font-style:normal;font-weight:400}.form-wizard .steps>li>a.step>.desc,.form-wizard .steps>li>a.step>.number{display:inline-block;font-size:16px;font-weight:300}.bootstrap-select .selected i{color:#aaa}.bootstrap-select .dropdown-menu{z-index:9999!important}.bootstrap-switch{border-color:#e5e5e5}.bootstrap-switch.bootstrap-switch-focused{box-shadow:none;border-color:#e5e5e5}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{color:#fff;background:#428bca}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info{color:#fff;background:#89C4F4}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{color:#fff;background:#45B6AF}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning{color:#fff;background:#dfba49}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:#fff;background:#F3565D}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default{color:#444;background:#ececec}.portlet>.portlet-title>.actions>.bootstrap-switch{border-color:transparent;margin-top:0}.bootstrap-timepicker-widget table td a{padding:4px 0}.bootstrap-timepicker-widget input,.bootstrap-timepicker-widget input:focus{outline:0!important;border:0}.modal-open .bootstrap-timepicker-widget{z-index:10055!important}.bootstrap-timepicker-widget.timepicker-orient-bottom:after,.bootstrap-timepicker-widget.timepicker-orient-bottom:before{top:auto}.toast{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}.toast .toast-close-button{display:inline-block;margin-top:0;margin-right:0;text-indent:-100000px;width:11px;height:16px;background-repeat:no-repeat!important;background-image:url(../../assets/images/portlet-remove-icon-white.png)!important}.form-wizard .steps,.form-wizard .steps>li>a.step{background-color:#fff;background-image:none;border:0;box-shadow:none;filter:none}.toast-top-center{top:12px;margin:0 auto 0 -150px;left:50%}.toast-bottom-center{bottom:12px;margin:0 auto 0 -150px;left:50%}.form-wizard .progress{margin-bottom:30px}.form-wizard .steps{padding:10px 0;margin-bottom:15px}.form-wizard .steps>li>a.step:hover{background:0 0}.form-wizard .steps>li>a.step>.number{background-color:#eee;text-align:center!important;padding:11px 15px 13px;margin-right:10px;height:45px;width:45px;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;border-radius:50%!important}.form-wizard .steps>li>a.step>.desc>i{display:none}.form-wizard .steps>li.active>a.step .number{background-color:#45B6AF;color:#fff}.form-wizard .steps>li.active>a.step .desc{color:#333}.form-wizard .steps>li.done>a.step .number{background-color:#dfba49;color:#fff}.form-wizard .steps>li.done>a.step .desc{color:#333}.form-wizard .steps>li.done>a.step .desc i{font-size:12px;font-weight:400;color:#999;display:inline-block}@media (min-width:768px) and (max-width:1200px){.form-wizard .step .desc{margin-top:10px;display:block}}.wysihtml5-sandbox{width:100%!important}.wysihtml5-toolbar li{margin:0;height:29px}.wysihtml5-toolbar li .dropdown-menu{margin-top:5px}.has-error .wysihtml5-sandbox{border:1px solid #ebccd1!important}.has-success .wysihtml5-sandbox{border:1px solid #d6e9c6!important}.has-warning .wysihtml5-sandbox{border:1px solid #faebcc!important}.note-editor{border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.note-editor .note-toolbar{border-bottom:1px solid #e5e5e5;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.note-editor .note-statusbar{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.note-editor .note-statusbar .note-resizebar{border-top:1px solid #e5e5e5}.note-editor.fullscreen{z-index:11000;width:100%!important}.note-editor .dropdown-menu:before{left:9px;right:auto}.note-editor .dropdown-menu:after{left:10px;right:auto}.note-link-dialog .checkbox{margin-left:20px}.has-error .note-editor{border:1px solid #ebccd1!important}.has-success .note-editor{border:1px solid #d6e9c6!important}.has-warning .note-editor{border:1px solid #faebcc!important}.bootbox .bootbox-close-button{margin-top:0!important}.cke{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.cke .cke-top{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.cke .cke-bottom{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.cke_bottom,.cke_dialog,.cke_dialog_footer,.cke_dialog_title,.cke_inner,.cke_reset,.cke_top{background-image:none!important;filter:none;border-top:0;border-bottom:0;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;text-shadow:none}.cke_dialog_tab,.cke_dialog_ui_button,.cke_dialog_ui_input_text{filter:none;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;background-image:none!important}.cke_dialog_tab,.cke_dialog_ui_button{box-shadow:none!important;text-shadow:none!important}.cke_dialog_tab:hover,.cke_dialog_ui_button:hover{text-decoration:none;text-shadow:none}.cke_dialog_ui_input_text{box-shadow:none!important}.cke_button,.cke_combo_button,.cke_toolbar,.cke_toolgroup{background-image:none!important;filter:none!important;border:0;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.cke_button,.cke_combo_button,.cke_hc.cke_panel_listItem a,.cke_panel_grouptitle{background-image:none!important;filter:none;text-shadow:none}.cke_button:hover,.cke_combo_button:hover{background-color:#ddd}.cke_toolbar_break{background-image:none!important;filter:none!important;border:0;box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-ms-box-shadow:none!important;-o-box-shadow:none!important}.has-error .cke{border:1px solid #ebccd1!important}.has-success .cke{border:1px solid #d6e9c6!important}.has-warning .cke{border:1px solid #faebcc!important}.modal-open .clockface{z-index:10055!important}.clockface .cell .inner.active,.clockface .cell .outer.active{background-color:#4b8df8!important;background-image:none;filter:none}.dataTable{width:100%;margin-top:5px}.dataTables_filter .form-control{margin-left:4px}.dataTables_filter label{line-height:32px}.dataTable .row-details{margin-top:3px;display:inline-block;cursor:pointer;width:14px;height:14px}.dataTable .row-details.row-details-close{background:url(../img/datatable-row-openclose.png) no-repeat}.dataTable .row-details.row-details-open{background:url(../img/datatable-row-openclose.png) 0 -23px no-repeat}.dataTable .details{background-color:#eee}.dataTable .details td,.dataTable .details th{padding:4px;background:0 0;border:0}.dataTable .details tr:hover td,.dataTable .details tr:hover th{background:0 0}.dataTable .details tr:nth-child(even) td,.dataTable .details tr:nth-child(even) th,.dataTable .details tr:nth-child(odd) td,.dataTable .details tr:nth-child(odd) th{background-color:#eee}.dataTable>thead>tr>th.sorting,.dataTable>thead>tr>th.sorting_asc,.dataTable>thead>tr>th.sorting_desc{padding-right:18px}.dataTable .table-checkbox{width:8px!important}@media (max-width:768px){.form-wizard .steps>li>a{text-align:left}.dataTables_wrapper .dataTables_filter .form-control,.dataTables_wrapper .dataTables_length .form-control{display:inline-block}.dataTables_wrapper .dataTables_info{top:17px}.dataTables_wrapper .dataTables_paginate{margin-top:-15px}}@media (max-width:480px){.dataTables_wrapper .dataTables_filter .form-control{width:175px!important}.dataTables_wrapper .dataTables_paginate{float:left;margin-top:20px}}.dataTables_processing{position:fixed;top:50%;left:50%;min-width:125px;margin-left:0;padding:7px;text-align:center;color:#333;font-size:13px;border:1px solid #ddd;background-color:#eee;vertical-align:middle;-webkit-box-shadow:0 1px 8px rgba(0,0,0,.1);-moz-box-shadow:0 1px 8px rgba(0,0,0,.1);box-shadow:0 1px 8px rgba(0,0,0,.1)}.dataTables_processing span{line-height:15px;vertical-align:middle}.dataTables_empty{text-align:center}.tabletools-btn-group{margin:0 0 10px}.tabletools-btn-group>.btn{margin-right:5px}.tabletools-btn-group>.btn:last-child{margin-right:0}.tabletools-dropdown-on-portlet{margin-top:-55px;float:right}.tabletools-dropdown-on-portlet>.btn{margin-right:5px}.tabletools-dropdown-on-portlet>.btn:last-child{margin-right:0}.DTTT_Print{background-color:#fff}.DTTT_Print .DTTT_PrintMessage{display:none}@media print{.DTTT_Print .DTTT_PrintMessage{display:inline-block}}.DTTT_Print .DTTT_Print_Info{display:block;position:fixed;top:35px;font-size:18px;width:700px;left:50%;margin-left:-350px;text-align:center}.DTTT_Print .page-footer,.DTTT_Print .page-header,.DTTT_Print .page-sidebar{display:none}.DTTT_Print .page-content-wrapper{float:none}.DTTT_Print .row,.DTTT_Print [class*=col-]{padding:0;margin:0}.DTTT_Print .page-content{margin:50px auto!important;border:0!important;width:800px!important;padding:0!important}.DTTT_Print .page-content .portlet{border:0;padding:0}.DTTT_Print .page-content .portlet .portlet-body{padding:0}.DTTT_Print .page-content .dataTables_wrapper{padding:0;margin:0;box-shadow:5px 5px rgba(102,102,102,.1)}@media print{.DTTT_Print .page-content .dataTables_wrapper{box-shadow:none}}.paging_bootstrap_extended{margin:0!important;padding:0!important;float:none!important;font-size:13px}.dataTables_extended_wrapper .seperator{padding:0 2px}.dataTables_extended_wrapper div.dataTables_info,.dataTables_extended_wrapper div.dataTables_length,.dataTables_extended_wrapper div.dataTables_paginate{display:inline-block;float:none!important;padding:0!important;margin:0!important;position:static!important}@media (max-width:480px){.dataTables_extended_wrapper div.dataTables_info,.dataTables_extended_wrapper div.dataTables_length,.dataTables_extended_wrapper div.dataTables_paginate{display:block;margin-bottom:10px!important}.dataTables_extended_wrapper .seperator{display:none!important}}.dataTables_extended_wrapper div.dataTables_length label{margin:0!important;padding:0!important;font-size:13px;float:none!important;display:inline-block!important}.table-container .table-actions-wrapper{display:none}.dataTables_scroll{margin-bottom:10px}.dataTables_scrollHead{border-bottom:2px solid #ddd!important}.dataTables_scrollHead thead th{border-bottom:0!important}.dataTables_scrollBody{border-bottom:1px solid #ddd!important}.dropzone{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.fancybox-overlay{z-index:100000}.fancybox-opened{z-index:100001}.spinner-buttons.btn-group-vertical .btn{text-align:center;margin:0;height:17px;width:22px;padding-left:6px;padding-right:6px;padding-top:0}.page-style-rounded .spinner-buttons.btn-group-vertical .btn.spinner-up{border-radius:0;border-top-right-radius:4px!important}.page-style-rounded .spinner-buttons.btn-group-vertical .btn.spinner-down{border-radius:0 0 4px}.external-event{display:inline-block;cursor:move;margin-bottom:5px;margin-left:5px}.fc-scroller{overflow-y:auto;overflow-x:hidden}.fc-month-view .fc-scroller{height:auto!important}.portlet .event-form-title{font-size:14px;margin-top:4px;font-weight:400;margin-bottom:10px}.portlet.calendar .fc-button{box-shadow:none;text-shadow:none;border:0 #ddd;height:35px;padding:6px 8px 7px;margin-left:2px;background:0 0;color:#fff;top:-45px;outline:0!important;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;border-style:none solid}.portlet.calendar .fc-toolbar{margin-bottom:0}.portlet.calendar .fc-toolbar h2{margin-top:3px;font-size:17px}.portlet.calendar .fc-button .fc-icon-left-single-arrow,.portlet.calendar .fc-button .fc-icon-right-single-arrow{font-family:FontAwesome;font-size:16px}.portlet.calendar .fc-header{margin-bottom:-21px}.portlet.calendar .fc-button-prev{padding-right:10px;padding-left:8px}.portlet.calendar .fc-button-next{padding-right:8px;padding-left:10px}.portlet.calendar .fc-button.fc-state-active,.portlet.calendar .fc-button.fc-state-hover{color:#666;background-color:#fff}.portlet.calendar .fc-button.fc-state-disabled{color:#ddd}.portlet.calendar .fc-button .fc-icon-left-single-arrow:after{content:""}.portlet.calendar .fc-button .fc-icon-left-single-arrow:before{content:"\f104"}.portlet.calendar .fc-button .fc-icon-right-single-arrow:after{content:""}.portlet.calendar .fc-button .fc-icon-right-single-arrow:before{content:"\f105"}.portlet.calendar .fc-text-arrow{font-size:22px;font-family:"Courier New",Courier,monospace;vertical-align:baseline}.portlet.calendar .fc-event .fc-time,.portlet.calendar .fc-event .fc-title{text-align:left;color:#fff;font-size:13px;font-weight:300;float:left}.portlet.calendar .fc-event{border:0;background-color:#69a4e0;color:#fff}.portlet.calendar .fc-event .fc-content{border:0}.portlet.calendar .fc-header-title h2{font-size:14px;line-height:20px;font-weight:400;color:#111}.portlet.calendar .fc-widget-header{background-image:none;filter:none;background-color:#eee;text-transform:uppercase;font-weight:300}.portlet.calendar.light .fc-button{top:-60px;color:#666;text-transform:uppercase;font-size:12px;padding-bottom:35px}.portlet.calendar.light .fc-button .fc-text-arrow{margin-top:-6px;display:inline-block}.portlet.calendar.light .fc-button.fc-state-active,.portlet.calendar.light .fc-button.fc-state-hover{color:#333;border-bottom:2px solid #45B6AF}.portlet.calendar.light .fc-button.fc-state-disabled{color:#aaa}.portlet.calendar .mobile .fc-button{padding:0 6px 20px;margin-left:2px;border:0;background-color:#ddd;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;color:#000;text-shadow:none;text-align:center}.portlet.calendar .mobile .fc-button.fc-state-active,.portlet.calendar .mobile .fc-button.fc-state-hover{background-color:#eee}.portlet.calendar .mobile .fc-button.fc-state-disabled{color:#bbb}.portlet.calendar .mobile .fc-button-prev{margin-right:5px;margin-top:-2px}.portlet.calendar .mobile .fc-button-next{margin-right:0;margin-top:-2px}.portlet.calendar .mobile .fc-header-space{margin:0;padding:0;width:0}.portlet.calendar .mobile .fc-header-left{position:absolute;z-index:10}.portlet.calendar .mobile .fc-header-left .fc-button{top:-2px}.portlet.calendar .mobile .fc-header-right{position:relative;right:0}.portlet.calendar .mobile .fc-header-right .fc-button{top:35px}.portlet.calendar .mobile .fc-content{margin-top:53px}.gmaps{height:300px;width:100%}.gmaps img{max-width:none}#gmap_static div{background-repeat:no-repeat;background-position:50% 50%;display:block;height:300px}#gmap_routes_instructions{margin-top:10px;margin-bottom:0}#gritter-notice-wrapper{right:1px!important}.gritter-close{left:auto!important;right:3px!important}.gritter-title{font-family:"Open Sans";font-size:18px;font-weight:300}.easy-pie-chart .number{font-size:14px!important;position:relative;text-align:center;height:75px;line-height:75px}.easy-pie-chart .number canvas{position:absolute;top:0;left:0}.bs-example,.sparkline-chart,.vmaps{position:relative}.blueimp-gallery .close{background-image:url(../../assets/images/portlet-remove-icon-white.png)!important;margin-top:-2px}.blueimp-gallery .next,.blueimp-gallery .prev{border-radius:23px!important}.ms-container .ms-list{border:1px solid #e5e5e5;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ms-container .ms-optgroup-label{font-size:14px}.jquery-notific8-message,.ms-container .ms-selectable li.ms-elem-selectable,.ms-container .ms-selection li.ms-elem-selection{font-size:13px}.ms-container .ms-list.ms-focus{border-color:#999;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ms-container .ms-selectable li.ms-hover,.ms-container .ms-selection li.ms-hover{color:#333;background-color:#eee}.ms-container .form-control{margin-bottom:5px}[class*=jquery-notific8],[class*=jquery-notific8]:after,[class*=jquery-notific8]:before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.left .jquery-notific8-close-sticky span,.right .jquery-notific8-close-sticky span{font-size:10px}.jquery-notific8-heading{font-weight:300;font-size:16px}.password-strength .password-verdict{display:inline-block;margin-top:6px;margin-left:5px}.password-strength .progress{margin-top:5px;margin-bottom:0}.password-strength .progress-bar{padding:2px}.scroller{padding:0 12px 0 0;margin:0;overflow:hidden}.scroller-footer{margin-top:10px}.scroller-footer:after,.scroller-footer:before{content:" ";display:table}.portlet-body .slimScrollBar{margin-right:0}.jqstooltip{width:auto!important;height:auto!important}.easy-pie-chart,.sparkline-chart{text-align:center}.sparkline-chart{margin-top:15px}.easy-pie-chart .number{font-weight:300;width:85px;margin:0 auto}.sparkline-chart .number{width:100px;margin:0 auto 10px}.easy-pie-chart .title,.sparkline-chart .title{display:block;text-align:center;color:#333;font-weight:300;font-size:16px;margin-top:5px;margin-bottom:10px}.easy-pie-chart .title:hover,.sparkline-chart .title:hover{color:#666;text-decoration:none}.easy-pie-chart .title>i,.sparkline-chart .title>i{margin-top:5px}div.tagsinput{min-height:35px;height:auto!important;margin:0;padding:5px 5px 0;overflow:auto}div.tagsinput span.tag{background:#aaa;color:#fff;border:0;padding:3px 6px;margin-top:0;margin-bottom:5px}div.tagsinput input{padding:3px 6px;width:75px!important}div.tagsinput span.tag a{color:#fff}div.tagsinput .not_valid{color:#fff;padding:3px 6px;background-color:#e02222}.slider{border:0;padding:0;display:block;margin:12px 5px;min-height:11px}.vakata-context li a .vakata-contextmenu-sep,.vakata-context li a i,iframe[src="about:blank"]{display:none}.ui-slider-vertical{width:11px}.ui-slider-horizontal .ui-slider-handle{top:-3px}.ui-slider-vertical .ui-slider-handle{left:-3px}.bs-example+.highlight:after,.bs-example:after{left:15px;text-transform:uppercase;letter-spacing:1px}.ui-slider-handle,.ui-slider-vertical{filter:none!important;background-image:none!important}.jqvmap-zoomin,.jqvmap-zoomout{height:16px;width:16px;background-color:#666}.vmaps{overflow:hidden;height:300px}.jstree-default .jstree-clicked{border:0;background-color:#e1e1e1;box-shadow:none}.jstree-default .jstree-hovered{border:0;background-color:#eee;box-shadow:none}.jstree-default .jstree-wholerow-clicked,.jstree-wholerow .jstree-wholerow-clicked{background:#e1e1e1;border:0;box-shadow:none}.jstree-default .jstree-wholerow-hovered,.jstree-wholerow .jstree-wholerow-hovered{border:0;background-color:#eee;box-shadow:none}.jstree-icon.icon-lg{margin-top:1px}.jstree-open>.jstree-anchor>.fa-folder:before{margin-left:2px;content:"\f07c"}.jstree-default.jstree-rtl .jstree-last{background:no-repeat}.vakata-context,.vakata-context ul{padding:0;min-width:125px;background-color:#fff;font-size:14px;font-family:"Segoe UI",Helvetica,Arial,sans-serif;box-shadow:5px 5px rgba(102,102,102,.1);border:1px solid #efefef}.vakata-context li{border:0}.vakata-context li a{padding:0 10px;border:0}.vakata-context .vakata-context-hover>a,.vakata-context li a:hover{background-color:#eee;color:#333;box-shadow:none;margin:0}.vakata-context .vakata-context-hover>a .ins,.vakata-context .vakata-context-hover>a .span,.vakata-context li a:hover .ins,.vakata-context li a:hover .span{border:0!important}.vakata-context li a ins,.vakata-context li a span{display:none;border:0!important}.vakata-context .vakata-context-separator a,.vakata-context-rtl .vakata-context-separator a{margin:0;border:0}.jstree-rename-input{background-color:#fff!important;border:1px solid #e5e5e5!important;outline:0!important;padding:2px 6px!important;margin-right:-4px!important}.noUi-control{margin:9px 0}.noUi-primary .noUi-connect,.noUi-primary.noUi-connect{background:#428bca}.noUi-info .noUi-connect,.noUi-info.noUi-connect{background:#89C4F4}.noUi-success .noUi-connect,.noUi-success.noUi-connect{background:#45B6AF}.noUi-warning .noUi-connect,.noUi-warning.noUi-connect{background:#dfba49}.noUi-danger .noUi-connect,.noUi-danger.noUi-connect{background:#F3565D}.noUi-default .noUi-connect,.noUi-default.noUi-connect{background:#c6c6c6}.form-recaptcha-img{margin-bottom:10px;clear:both;border:1px solid #e5e5e5;padding:5px}.form-control .select2-choice{border:1px solid #e5e5e5;background-color:#fff;background-image:none;filter:none;height:34px;padding:3px 0 0 12px}.select2-container.select2-drop-above .select2-choice{border-bottom-color:#e5e5e5;background-color:#fff;background-image:none;filter:none}.select2-drop{border:1px solid #e5e5e5;background-color:#fff;background-image:none;-webkit-box-shadow:none;box-shadow:none;filter:none;border-top:0}.select2-drop-auto-width{border-top:1px solid #e5e5e5}.select2-drop.select2-drop-above{border-top:1px solid #e5e5e5;-webkit-box-shadow:none;box-shadow:none}.select2-drop-active{border:1px solid #999;border-top:0}.select2-container .select2-choice .select2-arrow{background-image:none;background-color:#fff;filter:none;border-left:1px solid #e5e5e5}.select2-container.select2-container-active .select2-arrow,.select2-container.select2-dropdown-open .select2-arrow{border-left:0!important}.select2-container .select2-choice .select2-arrow b{background-position:0 1px}.select2-search input{background-color:#fff!important;filter:none;margin:5px 0 0;border:1px solid #e5e5e5;webkit-appearance:none!important;color:#333;outline:0;height:auto!important;min-height:26px;padding:6px!important;line-height:20px;font-size:14px;font-weight:400;vertical-align:top;-webkit-box-shadow:none;box-shadow:none}.form-control.select2-container{border:0;height:auto!important;padding:0}.select2-container-active .select2-choice,.select2-container-active .select2-choices{border:1px solid #999!important;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-dropdown-open .select2-choice{border-bottom:0!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices{border:1px solid #999!important;border-top:0!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-drop.select2-drop-above.select2-drop-active{border:1px solid #999!important;border-bottom:0!important}.select2-dropdown-open .select2-choice .select2-arrow b{background-position:-18px 1px}.select2-results{margin:5px 0}.select2-results .select2-highlighted{background:#eee;color:#333}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:0 0}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{padding:3px 7px 4px;background:#f4f4f4;display:list-item}.select2-container-multi,.select2-container-multi .select2-choices{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.select2-container-multi.select2-dropdown-open,.select2-container-multi.select2-dropdown-open .select2-choices{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-ms-border-radius:4px 4px 0 0;-o-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.select2-container-multi.select2-dropdown-open.select2-drop-above,.select2-container-multi.select2-dropdown-open.select2-drop-above .select2-choices{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.select2-container-multi .select2-choices{padding-left:6px;min-height:34px;border:1px solid #e5e5e5;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-container-multi.select2-container-active .select2-choices{border:1px solid #999!important;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.select2-container-multi .select2-choices .select2-search-choice{padding:3px 5px 3px 18px;margin:5px 0 3px 5px;border:1px solid #e5e5e5;background-image:none;background-color:#fff;filter:none;-webkit-box-shadow:none!important;box-shadow:none!important}.has-warning .select2-container .select2-choice,.has-warning .select2-container .select2-choices,.has-warning .select2-container.select2-dropdown-open .select2-choice,.has-warning .select2-container.select2-dropdown-open .select2-choices{border-color:#faebcc}.has-warning .select2-container.select2-dropdown-open .select2-choice>span{color:#faebcc}.has-error .select2-container .select2-choice,.has-error .select2-container .select2-choices,.has-error .select2-container.select2-dropdown-open .select2-choice,.has-error .select2-container.select2-dropdown-open .select2-choices{border-color:#ebccd1}.has-error .select2-container.select2-dropdown-open .select2-choice>span{color:#ebccd1}.has-success .select2-container .select2-choice,.has-success .select2-container .select2-choices,.has-success .select2-container.select2-dropdown-open .select2-choice,.has-success .select2-container.select2-dropdown-open .select2-choices{border-color:#d6e9c6}.has-success .select2-container.select2-dropdown-open .select2-choice>span{color:#d6e9c6}.modal-open .select2-drop-mask{z-index:10051}.modal-open .select2-drop{z-index:10052}.modal-open .select2-search{z-index:10053}.form-control.input-lg .select2-choice{height:46px;padding:10px 16px}.select2-container.input-lg .select2-choice .select2-arrow b{background-position:0 7px}.form-control.input-sm .select2-choice{height:30px;padding:1px 10px 5px}.select2-container.input-sm .select2-choice .select2-arrow b{background-position:0 0}.checker{margin-top:-2px!important;margin-right:2px!important}.checker input,.radio input{outline:0!important}.alert,.aside:focus,.btn[bs-select],.timepicker.dropdown-menu button,[tabindex="-1"]{outline:0}div.checker.disabled span,div.checker.disabled.active span{background-position:-152px -260px}div.checker.disabled:hover,div.radio.disabled:hover{cursor:not-allowed}div.checker,div.radio{margin-right:0;margin-left:3px}.portlet-body-morris-fit{margin-right:-20px;margin-left:-20px;margin-bottom:-15px}.portlet-body-morris-fit>svg{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-ms-border-radius:0 0 4px 4px;-o-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.morris-hover.morris-default-style .morris-hover-row-label{text-align:left;font-weight:400;font-size:15px;color:#7D8C9D;font-family:"Open Sans",sans-serif}.morris-hover.morris-default-style .morris-hover-point{text-align:left;font-size:14px;font-weight:400;font-family:"Open Sans",sans-serif}.icheck-list>label{display:block;margin-bottom:8px}.icheck-list>label:last-child{margin-bottom:0}.form-horizontal .icheck-inline{margin-top:8px}.icheck-inline>label{display:inline-block;margin-left:15px}.icheck-inline>label:first-child{margin-left:0}div[class*=icheckbox_],div[class*=iradio_]{margin-right:5px;top:-1px!important}.icheck-colors{padding:0;margin:0;list-style:none}.icheck-colors>li{padding:0;margin:4px;float:left;display:inline-block;height:20px;width:20px;background:#000;opacity:.6;filter:alpha(opacity=60)}.icheck-colors>li:first-child{margin-left:0}.icheck-colors>li:hover{opacity:1;filter:alpha(opacity=100);cursor:pointer}.icheck-colors>li.active{height:26px;margin-top:0;opacity:.6;filter:alpha(opacity=60)}.icheck-colors>li.red{background:#d54e21}.icheck-colors>li.green{background:#78a300}.icheck-colors>li.blue{background:#0e76a8}.icheck-colors>li.aero{background:#9cc2cb}.icheck-colors>li.grey{background:#73716e}.icheck-colors>li.orange{background:#f70}.icheck-colors>li.yellow{background:#fc0}.icheck-colors>li.pink{background:#ff66b5}.icheck-colors>li.purple{background:#6a5a8c}.ui-select-match-close{margin-top:5px!important;margin-left:5px!important}.modal.disabled{-webkit-animation:noop!important;animation:noop!important}.modal.disabled.am-fade-and-slide-top .modal-dialog{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.modal.disabled.am-fade-and-scale .modal-dialog,.tab-pane.am-fade{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:backwards}.modal.disabled.am-fade-and-slide-top.ng-enter .modal-dialog{visibility:hidden;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.modal.disabled.am-fade-and-slide-top.ng-enter-active .modal-dialog,.modal.disabled.am-fade-and-slide-top.ng-leave-active .modal-dialog{visibility:visible}.modal.disabled.am-fade-and-slide-top.ng-leave .modal-dialog{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop}.modal.disabled.am-fade-and-scale .modal-dialog{animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;animation-fill-mode:backwards;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.modal.disabled.am-fade-and-scale.ng-enter .modal-dialog{visibility:hidden;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.modal.disabled.am-fade-and-scale.ng-enter-active .modal-dialog,.modal.disabled.am-fade-and-scale.ng-leave-active .modal-dialog{visibility:visible}.modal.disabled.am-fade-and-scale.ng-leave .modal-dialog{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut}@-webkit-keyframes noop{from,to{opacity:1}}@keyframes noop{from,to{opacity:1}}.bs-example{padding:45px 15px 15px;margin:0 -15px 15px;background-color:#fafafa;box-shadow:inset 0 3px 6px rgba(0,0,0,.05);border-color:#e5e5e5 #eee #eee;border-style:solid;border-width:1px 0}.bs-example:after{content:"Example";position:absolute;top:15px;font-size:12px;font-weight:700;color:#bbb}.bs-example+.highlight{margin:-15px -15px 15px;border-radius:0;border-width:0 0 1px}@media (min-width:768px){.bs-example,.bs-example+.highlight{margin-left:0;margin-right:0;border-width:1px}.bs-example{background-color:#fff;border-color:#ddd;border-radius:4px 4px 0 0;box-shadow:none}.bs-example+.highlight{margin-top:-16px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}}.bs-example .container{width:auto}.bs-example>.alert:last-child,.bs-example>.form-control:last-child,.bs-example>.jumbotron:last-child,.bs-example>.list-group:last-child,.bs-example>.navbar:last-child,.bs-example>.panel:last-child,.bs-example>.progress:last-child,.bs-example>.table-responsive:last-child>.table,.bs-example>.table:last-child,.bs-example>.well:last-child,.bs-example>blockquote:last-child,.bs-example>ol:last-child,.bs-example>p:last-child,.bs-example>ul:last-child{margin-bottom:0}.bs-example>p>.close{float:none}.bs-example .nav-tabs{margin-bottom:15px}.bs-footer{padding-top:40px;padding-bottom:30px;margin-top:100px;color:#787878;text-align:center;border-top:1px solid #e6e6e6}.bs-docs-nav .navbar-brand,.bs-masthead-links a{color:#fff}.bs-docs-nav,.bs-docs-nav .navbar-collapse{border-color:#a33f3e}.footer-links{margin:10px 0;padding-left:0}.footer-links li{display:inline;padding:0 2px}.footer-links li:first-child{padding-left:0}@media (min-width:768px){.bs-footer{text-align:left}.bs-footer p{margin-bottom:0}}.bs-masthead{position:relative;padding:30px 15px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.15)}.bs-masthead h1{font-size:50px;line-height:1;color:#fff}.bs-masthead .btn-outline-inverse{margin:10px}.bs-masthead-links{margin-top:20px;margin-bottom:40px;padding:0 15px;list-style:none;text-align:center}.bs-masthead-links li{display:inline}.bs-masthead-links li+li{margin-left:20px}@media (min-width:768px){.bs-masthead{text-align:left;padding-top:140px;padding-bottom:140px}.bs-masthead h1{font-size:100px}.bs-masthead .lead{margin-right:25%;font-size:30px}.bs-masthead .btn-outline-inverse{width:auto;margin:20px 5px 20px 0;padding:18px 24px;font-size:21px}.bs-masthead-links{padding:0;text-align:left}}.bs-docs-nav{background-color:#b94846;box-shadow:0 1px 0 rgba(255,255,255,.1);text-shadow:0 -1px 0 rgba(0,0,0,.15)}.bs-docs-nav .navbar-nav>li>a{-webkit-transition:color .15s linear;transition:color .15s linear;color:#f9f1f1}.bs-docs-nav .navbar-nav>li>a:hover{color:#fff}.bs-docs-nav .navbar-nav>.active>a,.bs-docs-nav .navbar-nav>.active>a:hover{background-color:#a33f3e;color:#fff}.bs-docs-nav .navbar-toggle{border-color:#b94846}.bs-docs-nav .navbar-toggle:hover{border-color:#a33f3e;background-color:#a33f3e}.bs-old-docs{padding:15px 20px;color:#787878;background-color:#fafafa;border-top:1px solid #fff;border-bottom:1px solid #e6e6e6}.bs-old-docs strong{color:#545454}@media (max-width:991px){.navbar-toggle{margin-left:15px;display:block!important;float:left}.bs-sidebar.affix{position:static!important}}.bs-header .container,.select.dropdown-menu.select-multiple li{position:relative}.bs-sidenav{margin-top:40px;margin-bottom:20px;width:124px}.bs-sidebar .nav>li>a{display:block;font-size:13px;font-weight:500;color:#999;padding:4px 15px;text-align:right}.bs-sidebar .nav>li>a:focus,.bs-sidebar .nav>li>a:hover{padding-right:14px;color:#b94846;text-decoration:none;background-color:transparent;border-right:1px solid #b94846}.bs-sidebar .nav>.active:focus>a,.bs-sidebar .nav>.active:hover>a,.bs-sidebar .nav>.active>a{padding-right:13px;font-weight:700;color:#b94846;background-color:transparent;border-right:2px solid #b94846}.bs-sidebar .nav .nav{display:none;padding-bottom:10px}.bs-sidebar .nav .nav>li>a{padding-top:2px;padding-bottom:2px;padding-right:30px;font-size:12px;font-weight:400}.bs-sidebar .nav .nav>li>a:focus,.bs-sidebar .nav .nav>li>a:hover{padding-right:29px}.bs-sidebar .nav .nav>.active:focus>a,.bs-sidebar .nav .nav>.active:hover>a,.bs-sidebar .nav .nav>.active>a{font-weight:500;padding-right:28px}@media (min-width:992px){.bs-sidebar .nav>.active>ul{display:block}.bs-sidebar.affix .bs-sidenav,.bs-sidebar.affix-bottom .bs-sidenav{margin-top:0;margin-bottom:0}}h1[id],h2[id]{margin-top:-45px}@media (min-width:1200px){.bs-sidebar{margin-right:30px}}.am-fade.aside-backdrop,.am-fade.modal-backdrop{background-color:rgba(0,0,0,.5)}.bs-docs-aside{min-width:200px}h1[id]{padding-top:80px}h2[id]{padding-top:60px}.bs-header{padding:30px 15px 40px;font-size:16px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.15)}.bs-header h1{color:#fff}.bs-header p{font-weight:300;line-height:1.5}@media (min-width:768px){.bs-header{font-size:21px;text-align:left}.bs-header h1{font-size:60px;line-height:1}}@media (min-width:992px){.bs-header h1,.bs-header p{margin-right:300px}}.highlight{display:none;padding:9px 14px;margin-bottom:14px;background-color:#f6f6f8;border:1px solid #e2e2e9;border-radius:4px}.highlight pre{padding:0;margin-top:0;margin-bottom:0;background-color:transparent;border:0;white-space:nowrap}.highlight pre code{font-size:inherit;color:#333}.highlight pre .lineno{display:inline-block;width:22px;padding-right:5px;margin-right:10px;text-align:right;color:#bebec5}@media (min-width:481px){.highlight{display:block}}input.ng-dirty.ng-invalid,select.ng-dirty.ng-invalid,textarea.ng-dirty.ng-invalid{color:#b94a48;border-color:#ee5f5b}input.ng-dirty.ng-invalid:focus,select.ng-dirty.ng-invalid:focus,textarea.ng-dirty.ng-invalid:focus{border-color:#e9322d;box-shadow:0 0 6px #f8b9b7}input:focus.ng-pristine.ng-invalid,select:focus.ng-pristine.ng-invalid,textarea:focus.ng-pristine.ng-invalid{color:#555;border:1px solid #ccc;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}input:focus.ng-pristine.ng-invalid:focus,select:focus.ng-pristine.ng-invalid:focus,textarea:focus.ng-pristine.ng-invalid:focus{border-color:rgba(82,168,236,.8);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}body .modal{overflow-y:hidden}body.modal-open{overflow-y:visible!important}.lt-ie9 .bs-sidebar{display:none!important}.modal-backdrop{z-index:1040;bottom:0}.select.dropdown-menu.select-multiple li>i{color:#fff;display:none;position:absolute;top:5px;right:10px}.bs-example+.highlight,body{position:relative}.alert.bottom-right,.alert.top,.alert.top-right{right:0}.select.dropdown-menu.select-multiple li.active>i{display:block}body{padding-top:50px}.bs-example-scope{font-size:85%}.bs-example-scope+.bs-example{margin:-15px -15px 15px}.bs-example-scope+.bs-example+.highlight>pre{border-radius:0 0 4px 4px}.aside.bs-docs-aside .aside-header{background:#b94846}.aside.bs-docs-aside .nav{margin:0}.bs-docs-social{max-height:200px}.bs-docs-social ul{list-style:none;padding:1em 0 0}.bs-docs-social ul li{height:30px}@media (max-width:991px){.bs-docs-social ul li{display:inline-block}}.bs-docs-home,.bs-header{color:#fff;background:url(../assets/images/triangular-red.png) #b94846;padding-bottom:20px}pre>code{background:0 0}.bs-example+.highlight code{padding:2.5em .5em 1em}.alert.bottom-right .close,.alert.top-right .close{padding-left:10px}.alert.bottom-left .close,.alert.top-left .close{padding-right:10px}.bs-example+.highlight:after{content:"Source";position:absolute;top:15px;font-size:12px;font-weight:700;color:#bbb}.edit-plunkr,.panel-heading[role=tab] .panel-title a,a[ng-click],input[type=checkbox]{cursor:pointer}.twitter-follow-button{position:relative;top:5px;margin-left:10px}.tab-pane.am-fade{animation-duration:.3s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards;opacity:1}.am-collapse,.panel-collapse.am-collapse{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:backwards;overflow:hidden}.panel-collapse.am-collapse{animation-duration:.3s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards}.am-collapse,.am-flip-x{-webkit-animation-timing-function:ease}.panel-collapse.am-collapse2{-webkit-transition:.3s ease max-height;transition:.3s ease max-height;max-height:100px;overflow:hidden}.panel-collapse.am-collapse2.in-remove{max-height:100px;display:block}.panel-collapse.am-collapse2.in-add{max-height:0}@-webkit-keyframes expand{from{max-height:0}to{max-height:100px}}@keyframes expand{from{max-height:0}to{max-height:100px}}@-webkit-keyframes collapse{from{max-height:100px}to{max-height:0}}@keyframes collapse{from{max-height:100px}to{max-height:0}}.am-collapse{animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:backwards;opacity:1}.am-fade,.am-flip-x{-webkit-animation-fill-mode:backwards}.am-collapse.am-collapse-add,.am-collapse.ng-hide-remove,.am-collapse.ng-move{-webkit-animation-name:expand;animation-name:expand}.am-collapse.am-collapse-remove,.am-collapse.ng-hide{-webkit-animation-name:collapse;animation-name:collapse}.am-collapse.ng-enter{visibility:hidden;-webkit-animation-name:expand;animation-name:expand;-webkit-animation-play-state:paused;animation-play-state:paused}.am-collapse.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-collapse.ng-leave{-webkit-animation-name:collapse;animation-name:collapse;-webkit-animation-play-state:paused;animation-play-state:paused}.am-collapse.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes expand{from{max-height:0}to{max-height:500px}}@keyframes expand{from{max-height:0}to{max-height:500px}}@-webkit-keyframes collapse{from{max-height:500px}to{max-height:0}}@keyframes collapse{from{max-height:500px}to{max-height:0}}.panel-collapse.am-collapse.in-remove{-webkit-animation-name:collapse;animation-name:collapse;display:block}.panel-collapse.am-collapse.in-add{-webkit-animation-name:expand;animation-name:expand}.am-fade{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:linear;animation-timing-function:linear;animation-fill-mode:backwards;opacity:1}.am-fade.am-fade-add,.am-fade.ng-hide-remove,.am-fade.ng-move{-webkit-animation-name:fadeIn;animation-name:fadeIn}.am-fade.am-fade-remove,.am-fade.ng-hide{-webkit-animation-name:fadeOut;animation-name:fadeOut}.am-fade.ng-enter{visibility:hidden;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade.ng-leave{-webkit-animation-name:fadeOut;animation-name:fadeOut;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}.tab-pane.am-fade.active-remove{display:none!important}.tab-pane.am-fade.active-add{-webkit-animation-name:fadeIn;animation-name:fadeIn}.aside-backdrop.am-fade,.modal-backdrop.am-fade{background:rgba(0,0,0,.5);-webkit-animation-duration:.15s;animation-duration:.15s}.aside-backdrop.am-fade.ng-leave,.modal-backdrop.am-fade.ng-leave{-webkit-animation-delay:.3s;animation-delay:.3s}.am-flip-x{-webkit-animation-duration:.4s;animation-duration:.4s;animation-timing-function:ease;animation-fill-mode:backwards}.am-flip-x-linear,.am-slide-top{-webkit-animation-fill-mode:backwards}.am-flip-x.am-flip-x-add,.am-flip-x.ng-hide-remove,.am-flip-x.ng-move{-webkit-animation-name:flipInXBounce;animation-name:flipInXBounce}.am-flip-x.am-flip-x-remove,.am-flip-x.ng-hide{-webkit-animation-name:flipOutX;animation-name:flipOutX}.am-flip-x.ng-enter{visibility:hidden;-webkit-animation-name:flipInXBounce;animation-name:flipInXBounce;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x.ng-leave{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x-linear{-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-timing-function:ease;animation-timing-function:ease;animation-fill-mode:backwards}.am-slide-right,.am-slide-top{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-flip-x-linear.am-flip-x-add,.am-flip-x-linear.ng-hide-remove,.am-flip-x-linear.ng-move{-webkit-animation-name:flipInX;animation-name:flipInX}.am-flip-x-linear.am-flip-x-remove,.am-flip-x-linear.ng-hide{-webkit-animation-name:flipOutX;animation-name:flipOutX}.am-flip-x-linear.ng-enter{visibility:hidden;-webkit-animation-name:flipInX;animation-name:flipInX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x-linear.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-flip-x-linear.ng-leave{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-play-state:paused;animation-play-state:paused}.am-flip-x-linear.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes flipInX{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@keyframes flipInX{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@-webkit-keyframes flipInXBounce{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-transform:perspective(400px) rotateX(-10deg);transform:perspective(400px) rotateX(-10deg)}70%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@keyframes flipInXBounce{from{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}40%{-webkit-transform:perspective(400px) rotateX(-10deg);transform:perspective(400px) rotateX(-10deg)}70%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg)}to{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}}@-webkit-keyframes flipOutX{from{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}@keyframes flipOutX{from{opacity:1;-webkit-transform:perspective(400px) rotateX(0);transform:perspective(400px) rotateX(0)}to{opacity:0;-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg)}}.am-slide-top{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-slide-bottom,.am-slide-right{-webkit-animation-fill-mode:backwards}.am-slide-top.am-slide-top-add,.am-slide-top.ng-hide-remove,.am-slide-top.ng-move{-webkit-animation-name:slideFromTop;animation-name:slideFromTop}.am-slide-top.am-slide-top-remove,.am-slide-top.ng-hide{-webkit-animation-name:slideToTop;animation-name:slideToTop}.am-slide-top.ng-enter{visibility:hidden;-webkit-animation-name:slideFromTop;animation-name:slideFromTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-top.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-top.ng-leave{-webkit-animation-name:slideToTop;animation-name:slideToTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-top.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-right{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-slide-bottom,.am-slide-left{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-slide-right.am-slide-right-add,.am-slide-right.ng-hide-remove,.am-slide-right.ng-move{-webkit-animation-name:slideFromRight;animation-name:slideFromRight}.am-slide-right.am-slide-right-remove,.am-slide-right.ng-hide{-webkit-animation-name:slideToRight;animation-name:slideToRight}.am-slide-right.ng-enter{visibility:hidden;-webkit-animation-name:slideFromRight;animation-name:slideFromRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-right.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-right.ng-leave{-webkit-animation-name:slideToRight;animation-name:slideToRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-right.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-bottom{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-top,.am-slide-left{-webkit-animation-fill-mode:backwards}.am-slide-bottom.am-slide-bottom-add,.am-slide-bottom.ng-hide-remove,.am-slide-bottom.ng-move{-webkit-animation-name:slideFromBottom;animation-name:slideFromBottom}.am-slide-bottom.am-slide-bottom-remove,.am-slide-bottom.ng-hide{-webkit-animation-name:slideToBottom;animation-name:slideToBottom}.am-slide-bottom.ng-enter{visibility:hidden;-webkit-animation-name:slideFromBottom;animation-name:slideFromBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-bottom.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-bottom.ng-leave{-webkit-animation-name:slideToBottom;animation-name:slideToBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-bottom.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-slide-left{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-right,.am-fade-and-slide-top{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-slide-left.am-slide-left-add,.am-slide-left.ng-hide-remove,.am-slide-left.ng-move{-webkit-animation-name:slideFromLeft;animation-name:slideFromLeft}.am-slide-left.am-slide-left-remove,.am-slide-left.ng-hide{-webkit-animation-name:slideToLeft;animation-name:slideToLeft}.am-slide-left.ng-enter{visibility:hidden;-webkit-animation-name:slideFromLeft;animation-name:slideFromLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-left.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-left.ng-leave{-webkit-animation-name:slideToLeft;animation-name:slideToLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-left.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes slideFromTop{from{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes slideFromTop{from{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@-webkit-keyframes slideToTop{to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes slideToTop{to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@-webkit-keyframes slideFromRight{from{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes slideFromRight{from{-webkit-transform:translateX(100%);transform:translateX(100%)}}@-webkit-keyframes slideToRight{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes slideToRight{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@-webkit-keyframes slideFromBottom{from{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes slideFromBottom{from{-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes slideToBottom{to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes slideToBottom{to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes slideFromLeft{from{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes slideFromLeft{from{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@-webkit-keyframes slideToLeft{to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes slideToLeft{to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.am-fade-and-slide-top{animation-duration:.3s;animation-timing-function:ease-in-out;animation-fill-mode:backwards}.am-fade-and-slide-top.am-fade-and-slide-top-add,.am-fade-and-slide-top.ng-hide-remove,.am-fade-and-slide-top.ng-move{-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop}.am-fade-and-slide-top.am-fade-and-slide-top-remove,.am-fade-and-slide-top.ng-hide{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop}.am-fade-and-slide-top.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromTop;animation-name:fadeAndSlideFromTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-top.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-top.ng-leave{-webkit-animation-name:fadeAndSlideToTop;animation-name:fadeAndSlideToTop;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-top.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-right{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-bottom,.am-fade-and-slide-left{-webkit-animation-duration:.3s;-webkit-animation-timing-function:ease-in-out}.am-fade-and-slide-right.am-fade-and-slide-right-add,.am-fade-and-slide-right.ng-hide-remove,.am-fade-and-slide-right.ng-move{-webkit-animation-name:fadeAndSlideFromRight;animation-name:fadeAndSlideFromRight}.am-fade-and-slide-right.am-fade-and-slide-right-remove,.am-fade-and-slide-right.ng-hide{-webkit-animation-name:fadeAndSlideToRight;animation-name:fadeAndSlideToRight}.am-fade-and-slide-right.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromRight;animation-name:fadeAndSlideFromRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-right.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-right.ng-leave{-webkit-animation-name:fadeAndSlideToRight;animation-name:fadeAndSlideToRight;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-right.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-bottom{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-bottom.am-fade-and-slide-bottom-add,.am-fade-and-slide-bottom.ng-hide-remove,.am-fade-and-slide-bottom.ng-move{-webkit-animation-name:fadeAndSlideFromBottom;animation-name:fadeAndSlideFromBottom}.am-fade-and-slide-bottom.am-fade-and-slide-bottom-remove,.am-fade-and-slide-bottom.ng-hide{-webkit-animation-name:fadeAndSlideToBottom;animation-name:fadeAndSlideToBottom}.am-fade-and-slide-bottom.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromBottom;animation-name:fadeAndSlideFromBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-bottom.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-bottom.ng-leave{-webkit-animation-name:fadeAndSlideToBottom;animation-name:fadeAndSlideToBottom;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-bottom.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-left{animation-duration:.3s;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-slide-left.am-fade-and-slide-left-add,.am-fade-and-slide-left.ng-hide-remove,.am-fade-and-slide-left.ng-move{-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-name:fadeAndSlideFromLeft;animation-name:fadeAndSlideFromLeft}.am-fade-and-slide-left.am-fade-and-slide-left-remove,.am-fade-and-slide-left.ng-hide{-webkit-animation-name:fadeAndSlideToLeft;animation-name:fadeAndSlideToLeft}.am-fade-and-slide-left.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndSlideFromLeft;animation-name:fadeAndSlideFromLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-left.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-slide-left.ng-leave{-webkit-animation-name:fadeAndSlideToLeft;animation-name:fadeAndSlideToLeft;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-slide-left.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeAndSlideFromTop{from{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}to{opacity:1}}@keyframes fadeAndSlideFromTop{from{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToTop{from{opacity:1}to{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}}@keyframes fadeAndSlideToTop{from{opacity:1}to{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}}@-webkit-keyframes fadeAndSlideFromRight{from{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}to{opacity:1}}@keyframes fadeAndSlideFromRight{from{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToRight{from{opacity:1}to{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}}@keyframes fadeAndSlideToRight{from{opacity:1}to{opacity:0;-webkit-transform:translateX(20%);transform:translateX(20%)}}@-webkit-keyframes fadeAndSlideFromBottom{from{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}to{opacity:1}}@keyframes fadeAndSlideFromBottom{from{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToBottom{from{opacity:1}to{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}}@keyframes fadeAndSlideToBottom{from{opacity:1}to{opacity:0;-webkit-transform:translateY(20%);transform:translateY(20%)}}@-webkit-keyframes fadeAndSlideFromLeft{from{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}to{opacity:1}}@keyframes fadeAndSlideFromLeft{from{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}to{opacity:1}}@-webkit-keyframes fadeAndSlideToLeft{from{opacity:1}to{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}}@keyframes fadeAndSlideToLeft{from{opacity:1}to{opacity:0;-webkit-transform:translateX(-20%);transform:translateX(-20%)}}.am-fade-and-scale{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards}.am-fade-and-scale.am-fade-and-scale-add,.am-fade-and-scale.ng-enter,.am-fade-and-scale.ng-hide-remove,.am-fade-and-scale.ng-move{-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn}.am-fade-and-scale.am-fade-and-scale-remove,.am-fade-and-scale.ng-hide,.am-fade-and-scale.ng-leave{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut}.am-fade-and-scale.ng-enter{visibility:hidden;-webkit-animation-name:fadeAndScaleIn;animation-name:fadeAndScaleIn;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-scale.ng-enter.ng-enter-active{visibility:visible;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-and-scale.ng-leave{-webkit-animation-name:fadeAndScaleOut;animation-name:fadeAndScaleOut;-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-and-scale.ng-leave.ng-leave-active{-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes fadeAndScaleIn{from{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}to{opacity:1}}@keyframes fadeAndScaleIn{from{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}to{opacity:1}}@-webkit-keyframes fadeAndScaleOut{from{opacity:1}to{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}}@keyframes fadeAndScaleOut{from{opacity:1}to{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}}.alert.bottom,.alert.bottom-left,.alert.bottom-right,.alert.top,.alert.top-left,.alert.top-right{position:fixed;z-index:1050;margin:20px}.alert.top,.alert.top-left,.alert.top-right{top:50px}.alert.top{left:0}.alert.top-left{left:0}.alert.bottom,.alert.bottom-left,.alert.bottom-right{bottom:0}.alert.bottom{right:0;left:0}.alert.bottom-left{left:0}.aside .aside-dialog .aside-footer:after,.aside .aside-dialog .aside-footer:before,.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.aside{position:fixed;top:0;bottom:0;z-index:1049;overflow:auto;min-width:320px;background:#fff}@media (max-width:991px){.aside{min-width:240px}}.aside.left{right:auto;left:0}.aside.right{right:0;left:auto}.aside .aside-dialog .aside-header{border-bottom:1px solid #e5e5e5;min-height:16.43px;padding:6px 15px;background:#337ab7;color:#fff}.aside .aside-dialog .aside-header .close{margin-right:-8px;padding:4px 8px;color:#fff;font-size:25px;opacity:.8}.aside .aside-dialog .aside-body{position:relative;padding:15px}.aside .aside-dialog .aside-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.aside .aside-dialog .aside-footer .btn+.btn{margin-left:5px;margin-bottom:0}.aside .aside-dialog .aside-footer .btn-group .btn+.btn{margin-left:-1px}.aside .aside-dialog .aside-footer .btn-block+.btn-block{margin-left:0}.aside-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.aside-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.aside-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.datepicker.dropdown-menu{width:250px;height:270px}.datepicker.dropdown-menu button{outline:0;border:0}.datepicker.dropdown-menu tbody{height:180px}.datepicker.dropdown-menu tbody button{padding:6px}.datepicker.dropdown-menu.datepicker-mode-1 tbody button,.datepicker.dropdown-menu.datepicker-mode-2 tbody button{height:65px}.callout{margin:20px 0;padding:20px;border-left:3px solid #eee}.callout h4{margin-top:0;margin-bottom:5px}.popover.top-left,.popover.top-right{margin-top:-10px}.callout p:last-child{margin-bottom:0}.callout-danger{border-color:#eed3d7;background-color:#fdf7f7}.callout-danger h4{color:#b94a48}.callout-warning{border-color:#faebcc;background-color:#faf8f0}.callout-warning h4{color:#8a6d3b}.callout-info{border-color:#bce8f1;background-color:#f4f8fa}.callout-info h4{color:#34789a}.modal.center .modal-dialog{position:fixed;top:40%;left:50%;min-width:320px;max-width:630px;width:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.popover.top-left .arrow{margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px;left:10%}.popover.top-left .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.bottom-left,.popover.bottom-right{margin-top:10px}.popover.top-right .arrow{margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px;left:90%}.popover.top-right .arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.bottom-left .arrow{margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px;left:10%}.popover.bottom-left .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.bottom-right .arrow{margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px;left:90%}.popover.bottom-right .arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.timepicker.dropdown-menu{padding:0 4px}.timepicker.dropdown-menu button{border:0}.timepicker.dropdown-menu tbody button{padding:6px}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-group-xs>.btn{font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px}.btn-group-xs>.btn{padding:1px 5px}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.tooltip.tooltip-info.top .tooltip-arrow,.tooltip.tooltip-info.top-left .tooltip-arrow,.tooltip.tooltip-info.top-right .tooltip-arrow{border-top-color:#d9edf7}.tooltip.tooltip-info.right .tooltip-arrow{border-right-color:#d9edf7}.tooltip.tooltip-info.bottom .tooltip-arrow,.tooltip.tooltip-info.bottom-left .tooltip-arrow,.tooltip.tooltip-info.bottom-right .tooltip-arrow{border-bottom-color:#d9edf7}.tooltip.tooltip-info.left .tooltip-arrow{border-left-color:#d9edf7}.tooltip.tooltip-info .tooltip-inner{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.tooltip.tooltip-info .tooltip-inner hr{border-top-color:#a6e1ec}.tooltip.tooltip-info .tooltip-inner .alert-link{color:#245269}.tooltip.tooltip-success.top .tooltip-arrow,.tooltip.tooltip-success.top-left .tooltip-arrow,.tooltip.tooltip-success.top-right .tooltip-arrow{border-top-color:#dff0d8}.tooltip.tooltip-success.right .tooltip-arrow{border-right-color:#dff0d8}.tooltip.tooltip-success.bottom .tooltip-arrow,.tooltip.tooltip-success.bottom-left .tooltip-arrow,.tooltip.tooltip-success.bottom-right .tooltip-arrow{border-bottom-color:#dff0d8}.tooltip.tooltip-success.left .tooltip-arrow{border-left-color:#dff0d8}.tooltip.tooltip-success .tooltip-inner{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.tooltip.tooltip-success .tooltip-inner hr{border-top-color:#c9e2b3}.tooltip.tooltip-success .tooltip-inner .alert-link{color:#2b542c}.tooltip.tooltip-danger.top .tooltip-arrow,.tooltip.tooltip-danger.top-left .tooltip-arrow,.tooltip.tooltip-danger.top-right .tooltip-arrow{border-top-color:#f2dede}.tooltip.tooltip-danger.right .tooltip-arrow{border-right-color:#f2dede}.tooltip.tooltip-danger.bottom .tooltip-arrow,.tooltip.tooltip-danger.bottom-left .tooltip-arrow,.tooltip.tooltip-danger.bottom-right .tooltip-arrow{border-bottom-color:#f2dede}.tooltip.tooltip-danger.left .tooltip-arrow{border-left-color:#f2dede}.tooltip.tooltip-danger .tooltip-inner{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.tooltip.tooltip-danger .tooltip-inner hr{border-top-color:#e4b9c0}.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000;margin-left:-5px}.tooltip.tooltip-danger .tooltip-inner .alert-link{color:#843534}.tooltip.top-left{margin-top:-3px;padding:5px 0}.tooltip.top-left .tooltip-arrow{left:10%}.tooltip.top-right{margin-top:-3px;padding:5px 0}.tooltip.bottom-left,.tooltip.bottom-right{margin-top:3px;padding:5px 0}.tooltip.top-right .tooltip-arrow{left:90%}.tooltip.bottom-left .tooltip-arrow{top:0;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000;left:10%}.tooltip.bottom-right .tooltip-arrow{top:0;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000;left:90%}
\ No newline at end of file
return null!==d?a(d):b.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(b,c){var d;if(b=this.get_node(b,!0),b[0]===this.element[0]){for(d=this.get_container_ul()[0].lastChild;d&&0===d.offsetHeight;)d=this._previousSibling(d);return d?a(d):!1}if(!b||!b.length)return!1;if(c){d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);return d?a(d):!1}d=b[0];do d=this._previousSibling(d);while(d&&0===d.offsetHeight);if(null!==d){for(b=a(d);b.hasClass("jstree-open");)b=b.children(".jstree-children").first().children(".jstree-node:visible:last");return b}return d=b[0].parentNode.parentNode,d&&d.className&&-1!==d.className.indexOf("jstree-node")?a(d):!1},get_parent:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.parent:!1},get_children_dom:function(a){return a=this.get_node(a,!0),a[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):a&&a.length?a.children(".jstree-children").children(".jstree-node"):!1},is_parent:function(a){return a=this.get_node(a),a&&(a.state.loaded===!1||a.children.length>0)},is_loaded:function(a){return a=this.get_node(a),a&&a.state.loaded},is_loading:function(a){return a=this.get_node(a),a&&a.state&&a.state.loading},is_open:function(a){return a=this.get_node(a),a&&a.state.opened},is_closed:function(a){return a=this.get_node(a),a&&this.is_parent(a)&&!a.state.opened},is_leaf:function(a){return!this.is_parent(a)},load_node:function(b,c){var d,e,f,g,h;if(a.isArray(b))return this._load_nodes(b.slice(),c),!0;if(b=this.get_node(b),!b)return c&&c.call(this,b,!1),!1;if(b.state.loaded){for(b.state.loaded=!1,d=0,e=b.children_d.length;e>d;d++){for(f=0,g=b.parents.length;g>f;f++)this._model.data[b.parents[f]].children_d=a.vakata.array_remove_item(this._model.data[b.parents[f]].children_d,b.children_d[d]);this._model.data[b.children_d[d]].state.selected&&(h=!0,this._data.core.selected=a.vakata.array_remove_item(this._data.core.selected,b.children_d[d])),delete this._model.data[b.children_d[d]]}b.children=[],b.children_d=[],h&&this.trigger("changed",{action:"load_node",node:b,selected:this._data.core.selected})}return b.state.failed=!1,b.state.loading=!0,this.get_node(b,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(b,a.proxy(function(a){b=this._model.data[b.id],b.state.loading=!1,b.state.loaded=a,b.state.failed=!b.state.loaded;var d=this.get_node(b,!0),e=0,f=0,g=this._model.data,h=!1;for(e=0,f=b.children.length;f>e;e++)if(g[b.children[e]]&&!g[b.children[e]].state.hidden){h=!0;break}b.state.loaded&&!h&&d&&d.length&&!d.hasClass("jstree-leaf")&&d.removeClass("jstree-closed jstree-open").addClass("jstree-leaf"),d.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:b,status:a}),c&&c.call(this,b,a)},this)),!0},_load_nodes:function(a,b,c){var d,e,f=!0,g=function(){this._load_nodes(a,b,!0)},h=this._model.data,i=[];for(d=0,e=a.length;e>d;d++)!h[a[d]]||(h[a[d]].state.loaded||h[a[d]].state.failed)&&c||(this.is_loading(a[d])||this.load_node(a[d],g),f=!1);if(f){for(d=0,e=a.length;e>d;d++)h[a[d]]&&h[a[d]].state.loaded&&i.push(a[d]);b&&!b.done&&(b.call(this,i),b.done=!0)}},load_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d,e,f=[],g=this._model.data,h=g[b.id].children_d;for(b.state&&!b.state.loaded&&f.push(b.id),d=0,e=h.length;e>d;d++)g[h[d]]&&g[h[d]].state&&!g[h[d]].state.loaded&&f.push(h[d]);f.length?this._load_nodes(f,function(){this.load_all(b,c)}):(c&&c.call(this,b),this.trigger("load_all",{node:b}))},_load_node:function(b,c){var d,e=this.settings.core.data;return e?a.isFunction(e)?e.call(this,b,a.proxy(function(d){d===!1&&c.call(this,!1),this["string"==typeof d?"_append_html_data":"_append_json_data"](b,"string"==typeof d?a(a.parseHTML(d)).filter(function(){return 3!==this.nodeType}):d,function(a){c.call(this,a)})},this)):"object"==typeof e?e.url?(e=a.extend(!0,{},e),a.isFunction(e.url)&&(e.url=e.url.call(this,b)),a.isFunction(e.data)&&(e.data=e.data.call(this,b)),a.ajax(e).done(a.proxy(function(d,e,f){var g=f.getResponseHeader("Content-Type");return g&&-1!==g.indexOf("json")||"object"==typeof d?this._append_json_data(b,d,function(a){c.call(this,a)}):g&&-1!==g.indexOf("html")||"string"==typeof d?this._append_html_data(b,a(a.parseHTML(d)).filter(function(){return 3!==this.nodeType}),function(a){c.call(this,a)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:f})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))},this)).fail(a.proxy(function(a){c.call(this,!1),this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:b.id,xhr:a})},this.settings.core.error.call(this,this._data.core.last_error)},this))):(d=a.isArray(e)||a.isPlainObject(e)?JSON.parse(JSON.stringify(e)):e,b.id===a.jstree.root?this._append_json_data(b,d,function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1))):"string"==typeof e?b.id===a.jstree.root?this._append_html_data(b,a(a.parseHTML(e)).filter(function(){return 3!==this.nodeType}),function(a){c.call(this,a)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:b.id})},this.settings.core.error.call(this,this._data.core.last_error),c.call(this,!1)):c.call(this,!1):b.id===a.jstree.root?this._append_html_data(b,this._data.core.original_container_html.clone(!0),function(a){c.call(this,a)}):c.call(this,!1)},_node_changed:function(a){a=this.get_node(a),a&&this._model.changed.push(a.id)},_append_html_data:function(b,c,d){b=this.get_node(b),b.children=[],b.children_d=[];var e,f,g,h=c.is("ul")?c.children():c,i=b.id,j=[],k=[],l=this._model.data,m=l[i],n=this._data.core.selected.length;for(h.each(a.proxy(function(b,c){e=this._parse_model_from_html(a(c),i,m.parents.concat()),e&&(j.push(e),k.push(e),l[e].children_d.length&&(k=k.concat(l[e].children_d)))},this)),m.children=j,m.children_d=k,f=0,g=m.parents.length;g>f;f++)l[m.parents[f]].children_d=l[m.parents[f]].children_d.concat(k);this.trigger("model",{nodes:k,parent:i}),i!==a.jstree.root?(this._node_changed(i),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==n&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),d.call(this,!0)},_append_json_data:function(b,c,d,e){if(null!==this.element){b=this.get_node(b),b.children=[],b.children_d=[],c.d&&(c=c.d,"string"==typeof c&&(c=JSON.parse(c))),a.isArray(c)||(c=[c]);var f=null,g={df:this._model.default_state,dat:c,par:b.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},h=function(a,b){a.data&&(a=a.data);var c,d,e,f,g=a.dat,h=a.par,i=[],j=[],k=[],l=a.df,m=a.t_id,n=a.t_cnt,o=a.m,p=o[h],q=a.sel,r=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e,f,g,h,i=a.id.toString(),j={id:i,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in l)l.hasOwnProperty(e)&&(j.state[e]=l[e]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(j.icon=a.data.jstree.icon),(j.icon===b||null===j.icon||""===j.icon)&&(j.icon=!0),a&&a.data&&(j.data=a.data,a.data.jstree))for(e in a.data.jstree)a.data.jstree.hasOwnProperty(e)&&(j.state[e]=a.data.jstree[e]);if(a&&"object"==typeof a.state)for(e in a.state)a.state.hasOwnProperty(e)&&(j.state[e]=a.state[e]);if(a&&"object"==typeof a.li_attr)for(e in a.li_attr)a.li_attr.hasOwnProperty(e)&&(j.li_attr[e]=a.li_attr[e]);if(j.li_attr.id||(j.li_attr.id=i),a&&"object"==typeof a.a_attr)for(e in a.a_attr)a.a_attr.hasOwnProperty(e)&&(j.a_attr[e]=a.a_attr[e]);for(a&&a.children&&a.children===!0&&(j.state.loaded=!1,j.children=[],j.children_d=[]),o[j.id]=j,e=0,f=j.children.length;f>e;e++)g=r(o[j.children[e]],j.id,d),h=o[g],j.children_d.push(g),h.children_d.length&&(j.children_d=j.children_d.concat(h.children_d));return delete a.data,delete a.children,o[j.id].original=a,j.state.selected&&k.push(j.id),j.id},s=function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e,f,g,h,i,j=!1;do j="j"+m+"_"+ ++n;while(o[j]);i={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in l)l.hasOwnProperty(e)&&(i.state[e]=l[e]);if(a&&a.id&&(i.id=a.id.toString()),a&&a.text&&(i.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(i.icon=a.data.jstree.icon),(i.icon===b||null===i.icon||""===i.icon)&&(i.icon=!0),a&&a.data&&(i.data=a.data,a.data.jstree))for(e in a.data.jstree)a.data.jstree.hasOwnProperty(e)&&(i.state[e]=a.data.jstree[e]);if(a&&"object"==typeof a.state)for(e in a.state)a.state.hasOwnProperty(e)&&(i.state[e]=a.state[e]);if(a&&"object"==typeof a.li_attr)for(e in a.li_attr)a.li_attr.hasOwnProperty(e)&&(i.li_attr[e]=a.li_attr[e]);if(i.li_attr.id&&!i.id&&(i.id=i.li_attr.id.toString()),i.id||(i.id=j),i.li_attr.id||(i.li_attr.id=i.id),a&&"object"==typeof a.a_attr)for(e in a.a_attr)a.a_attr.hasOwnProperty(e)&&(i.a_attr[e]=a.a_attr[e]);if(a&&a.children&&a.children.length){for(e=0,f=a.children.length;f>e;e++)g=s(a.children[e],i.id,d),h=o[g],i.children.push(g),h.children_d.length&&(i.children_d=i.children_d.concat(h.children_d));i.children_d=i.children_d.concat(i.children)}return a&&a.children&&a.children===!0&&(i.state.loaded=!1,i.children=[],i.children_d=[]),delete a.data,delete a.children,i.original=a,o[i.id]=i,i.state.selected&&k.push(i.id),i.id};if(g.length&&g[0].id!==b&&g[0].parent!==b){for(d=0,e=g.length;e>d;d++)g[d].children||(g[d].children=[]),o[g[d].id.toString()]=g[d];for(d=0,e=g.length;e>d;d++)o[g[d].parent.toString()].children.push(g[d].id.toString()),p.children_d.push(g[d].id.toString());for(d=0,e=p.children.length;e>d;d++)c=r(o[p.children[d]],h,p.parents.concat()),j.push(c),o[c].children_d.length&&(j=j.concat(o[c].children_d));for(d=0,e=p.parents.length;e>d;d++)o[p.parents[d]].children_d=o[p.parents[d]].children_d.concat(j);f={cnt:n,mod:o,sel:q,par:h,dpc:j,add:k}}else{for(d=0,e=g.length;e>d;d++)c=s(g[d],h,p.parents.concat()),c&&(i.push(c),j.push(c),o[c].children_d.length&&(j=j.concat(o[c].children_d)));for(p.children=i,p.children_d=j,d=0,e=p.parents.length;e>d;d++)o[p.parents[d]].children_d=o[p.parents[d]].children_d.concat(j);f={cnt:n,mod:o,sel:q,par:h,dpc:j,add:k}}return"undefined"!=typeof window&&"undefined"!=typeof window.document?f:void postMessage(f)},i=function(b,c){if(null!==this.element){if(this._cnt=b.cnt,this._model.data=b.mod,c){var e,f,g=b.add,h=b.sel,i=this._data.core.selected.slice(),j=this._model.data;if(h.length!==i.length||a.vakata.array_unique(h.concat(i)).length!==h.length){for(e=0,f=h.length;f>e;e++)-1===a.inArray(h[e],g)&&-1===a.inArray(h[e],i)&&(j[h[e]].state.selected=!1);for(e=0,f=i.length;f>e;e++)-1===a.inArray(i[e],h)&&(j[i[e]].state.selected=!0)}}b.add.length&&(this._data.core.selected=this._data.core.selected.concat(b.add)),this.trigger("model",{nodes:b.dpc,parent:b.par}),b.par!==a.jstree.root?(this._node_changed(b.par),this.redraw()):this.redraw(!0),b.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),d.call(this,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+h.toString()],{type:"text/javascript"}))),!this._data.core.working||e?(this._data.core.working=!0,f=new window.Worker(this._wrk),f.onmessage=a.proxy(function(a){i.call(this,a.data,!0);try{f.terminate(),f=null}catch(b){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1},this),g.par?f.postMessage(g):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([b,c,d,!0])}catch(j){i.call(this,h(g),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else i.call(this,h(g),!1)}},_parse_model_from_html:function(c,d,e){e=e?[].concat(e):[],d&&e.unshift(d);var f,g,h,i,j,k=this._model.data,l={id:!1,text:!1,icon:!0,parent:d,parents:e,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(h in this._model.default_state)this._model.default_state.hasOwnProperty(h)&&(l.state[h]=this._model.default_state[h]);if(i=a.vakata.attributes(c,!0),a.each(i,function(b,c){return c=a.trim(c),c.length?(l.li_attr[b]=c,void("id"===b&&(l.id=c.toString()))):!0}),i=c.children("a").first(),i.length&&(i=a.vakata.attributes(i,!0),a.each(i,function(b,c){c=a.trim(c),c.length&&(l.a_attr[b]=c)})),i=c.children("a").first().length?c.children("a").first().clone():c.clone(),i.children("ins, i, ul").remove(),i=i.html(),i=a("<div />").html(i),l.text=this.settings.core.force_text?i.text():i.html(),i=c.data(),l.data=i?a.extend(!0,{},i):null,l.state.opened=c.hasClass("jstree-open"),l.state.selected=c.children("a").hasClass("jstree-clicked"),l.state.disabled=c.children("a").hasClass("jstree-disabled"),l.data&&l.data.jstree)for(h in l.data.jstree)l.data.jstree.hasOwnProperty(h)&&(l.state[h]=l.data.jstree[h]);i=c.children("a").children(".jstree-themeicon"),i.length&&(l.icon=i.hasClass("jstree-themeicon-hidden")?!1:i.attr("rel")),l.state.icon!==b&&(l.icon=l.state.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),i=c.children("ul").children("li");do j="j"+this._id+"_"+ ++this._cnt;while(k[j]);return l.id=l.li_attr.id?l.li_attr.id.toString():j,i.length?(i.each(a.proxy(function(b,c){f=this._parse_model_from_html(a(c),l.id,e),g=this._model.data[f],l.children.push(f),g.children_d.length&&(l.children_d=l.children_d.concat(g.children_d))},this)),l.children_d=l.children_d.concat(l.children)):c.hasClass("jstree-closed")&&(l.state.loaded=!1),l.li_attr["class"]&&(l.li_attr["class"]=l.li_attr["class"].replace("jstree-closed","").replace("jstree-open","")),l.a_attr["class"]&&(l.a_attr["class"]=l.a_attr["class"].replace("jstree-clicked","").replace("jstree-disabled","")),k[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_parse_model_from_flat_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e,f,g,h,i=a.id.toString(),j=this._model.data,k=this._model.default_state,l={id:i,text:a.text||"",icon:a.icon!==b?a.icon:!0,parent:c,parents:d,children:a.children||[],children_d:a.children_d||[],data:a.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in k)k.hasOwnProperty(e)&&(l.state[e]=k[e]);if(a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(l.icon=a.data.jstree.icon),(l.icon===b||null===l.icon||""===l.icon)&&(l.icon=!0),a&&a.data&&(l.data=a.data,a.data.jstree))for(e in a.data.jstree)a.data.jstree.hasOwnProperty(e)&&(l.state[e]=a.data.jstree[e]);if(a&&"object"==typeof a.state)for(e in a.state)a.state.hasOwnProperty(e)&&(l.state[e]=a.state[e]);if(a&&"object"==typeof a.li_attr)for(e in a.li_attr)a.li_attr.hasOwnProperty(e)&&(l.li_attr[e]=a.li_attr[e]);if(l.li_attr.id||(l.li_attr.id=i),a&&"object"==typeof a.a_attr)for(e in a.a_attr)a.a_attr.hasOwnProperty(e)&&(l.a_attr[e]=a.a_attr[e]);for(a&&a.children&&a.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),j[l.id]=l,e=0,f=l.children.length;f>e;e++)g=this._parse_model_from_flat_json(j[l.children[e]],l.id,d),h=j[g],l.children_d.push(g),h.children_d.length&&(l.children_d=l.children_d.concat(h.children_d));return delete a.data,delete a.children,j[l.id].original=a,l.state.selected&&this._data.core.selected.push(l.id),l.id},_parse_model_from_json:function(a,c,d){d=d?d.concat():[],c&&d.unshift(c);var e,f,g,h,i,j=!1,k=this._model.data,l=this._model.default_state;do j="j"+this._id+"_"+ ++this._cnt;while(k[j]);i={id:!1,text:"string"==typeof a?a:"",icon:"object"==typeof a&&a.icon!==b?a.icon:!0,parent:c,parents:d,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(e in l)l.hasOwnProperty(e)&&(i.state[e]=l[e]);if(a&&a.id&&(i.id=a.id.toString()),a&&a.text&&(i.text=a.text),a&&a.data&&a.data.jstree&&a.data.jstree.icon&&(i.icon=a.data.jstree.icon),(i.icon===b||null===i.icon||""===i.icon)&&(i.icon=!0),a&&a.data&&(i.data=a.data,a.data.jstree))for(e in a.data.jstree)a.data.jstree.hasOwnProperty(e)&&(i.state[e]=a.data.jstree[e]);if(a&&"object"==typeof a.state)for(e in a.state)a.state.hasOwnProperty(e)&&(i.state[e]=a.state[e]);if(a&&"object"==typeof a.li_attr)for(e in a.li_attr)a.li_attr.hasOwnProperty(e)&&(i.li_attr[e]=a.li_attr[e]);if(i.li_attr.id&&!i.id&&(i.id=i.li_attr.id.toString()),i.id||(i.id=j),i.li_attr.id||(i.li_attr.id=i.id),a&&"object"==typeof a.a_attr)for(e in a.a_attr)a.a_attr.hasOwnProperty(e)&&(i.a_attr[e]=a.a_attr[e]);if(a&&a.children&&a.children.length){for(e=0,f=a.children.length;f>e;e++)g=this._parse_model_from_json(a.children[e],i.id,d),h=k[g],i.children.push(g),h.children_d.length&&(i.children_d=i.children_d.concat(h.children_d));i.children_d=i.children_d.concat(i.children)}return a&&a.children&&a.children===!0&&(i.state.loaded=!1,i.children=[],i.children_d=[]),delete a.data,delete a.children,i.original=a,k[i.id]=i,i.state.selected&&this._data.core.selected.push(i.id),i.id},_redraw:function(){var b,c,d,e=this._model.force_full_redraw?this._model.data[a.jstree.root].children.concat([]):this._model.changed.concat([]),f=k.createElement("UL"),g=this._data.core.focused;for(c=0,d=e.length;d>c;c++)b=this.redraw_node(e[c],!0,this._model.force_full_redraw),b&&this._model.force_full_redraw&&f.appendChild(b);this._model.force_full_redraw&&(f.className=this.get_container_ul()[0].className,f.setAttribute("role","group"),this.element.empty().append(f)),null!==g&&(b=this.get_node(g,!0),b&&b.length&&b.children(".jstree-anchor")[0]!==k.activeElement?b.children(".jstree-anchor").focus():this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:e})},redraw:function(a){a&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(b){var c=this.get_node(b),d=!1,e=!1,f=!1,g=k;if(!c)return!1;if(c.id===a.jstree.root)return this.redraw(!0);if(b=this.get_node(b,!0),!b||!b.length)return!1;if(b.children(".jstree-children").remove(),b=b[0],c.children.length&&c.state.loaded){for(f=g.createElement("UL"),f.setAttribute("role","group"),f.className="jstree-children",d=0,e=c.children.length;e>d;d++)f.appendChild(this.redraw_node(c.children[d],!0,!0));b.appendChild(f)}},redraw_node:function(b,c,d,e){var f=this.get_node(b),g=!1,h=!1,i=!1,j=!1,m=!1,n=!1,o="",p=k,q=this._model.data,r=!1,s=null,t=0,u=0,v=!1,w=!1;if(!f)return!1;if(f.id===a.jstree.root)return this.redraw(!0);if(c=c||0===f.children.length,b=k.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(f.id[0])?"\\3"+f.id[0]+" "+f.id.substr(1).replace(a.jstree.idregex,"\\$&"):f.id.replace(a.jstree.idregex,"\\$&"))):k.getElementById(f.id))b=a(b),d||(g=b.parent().parent()[0],g===this.element[0]&&(g=null),h=b.index()),c||!f.children.length||b.children(".jstree-children").length||(c=!0),c||(i=b.children(".jstree-children")[0]),r=b.children(".jstree-anchor")[0]===k.activeElement,b.remove();else if(c=!0,!d){if(g=f.parent!==a.jstree.root?a("#"+f.parent.replace(a.jstree.idregex,"\\$&"),this.element)[0]:null,!(null===g||g&&q[f.parent].state.opened))return!1;h=a.inArray(f.id,null===g?q[a.jstree.root].children:q[f.parent].children)}b=l.cloneNode(!0),o="jstree-node ";for(j in f.li_attr)if(f.li_attr.hasOwnProperty(j)){if("id"===j)continue;"class"!==j?b.setAttribute(j,f.li_attr[j]):o+=f.li_attr[j]}for(f.a_attr.id||(f.a_attr.id=f.id+"_anchor"),b.setAttribute("aria-selected",!!f.state.selected),b.setAttribute("aria-level",f.parents.length),b.setAttribute("aria-labelledby",f.a_attr.id),f.state.disabled&&b.setAttribute("aria-disabled",!0),j=0,m=f.children.length;m>j;j++)if(!q[f.children[j]].state.hidden){v=!0;break}if(null!==f.parent&&q[f.parent]&&!f.state.hidden&&(j=a.inArray(f.id,q[f.parent].children),w=f.id,-1!==j))for(j++,m=q[f.parent].children.length;m>j&&(q[q[f.parent].children[j]].state.hidden||(w=q[f.parent].children[j]),w===f.id);j++);f.state.hidden&&(o+=" jstree-hidden"),f.state.loaded&&!v?o+=" jstree-leaf":(o+=f.state.opened&&f.state.loaded?" jstree-open":" jstree-closed",b.setAttribute("aria-expanded",f.state.opened&&f.state.loaded)),w===f.id&&(o+=" jstree-last"),b.id=f.id,b.className=o,o=(f.state.selected?" jstree-clicked":"")+(f.state.disabled?" jstree-disabled":"");for(m in f.a_attr)if(f.a_attr.hasOwnProperty(m)){if("href"===m&&"#"===f.a_attr[m])continue;"class"!==m?b.childNodes[1].setAttribute(m,f.a_attr[m]):o+=" "+f.a_attr[m]}if(o.length&&(b.childNodes[1].className="jstree-anchor "+o),(f.icon&&f.icon!==!0||f.icon===!1)&&(f.icon===!1?b.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===f.icon.indexOf("/")&&-1===f.icon.indexOf(".")?b.childNodes[1].childNodes[0].className+=" "+f.icon+" jstree-themeicon-custom":(b.childNodes[1].childNodes[0].style.backgroundImage="url("+f.icon+")",b.childNodes[1].childNodes[0].style.backgroundPosition="center center",b.childNodes[1].childNodes[0].style.backgroundSize="auto",b.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?b.childNodes[1].appendChild(p.createTextNode(f.text)):b.childNodes[1].innerHTML+=f.text,c&&f.children.length&&(f.state.opened||e)&&f.state.loaded){for(n=p.createElement("UL"),n.setAttribute("role","group"),n.className="jstree-children",j=0,m=f.children.length;m>j;j++)n.appendChild(this.redraw_node(f.children[j],c,!0));b.appendChild(n)}if(i&&b.appendChild(i),!d){for(g||(g=this.element[0]),j=0,m=g.childNodes.length;m>j;j++)if(g.childNodes[j]&&g.childNodes[j].className&&-1!==g.childNodes[j].className.indexOf("jstree-children")){s=g.childNodes[j];break}s||(s=p.createElement("UL"),s.setAttribute("role","group"),s.className="jstree-children",g.appendChild(s)),g=s,h<g.childNodes.length?g.insertBefore(b,g.childNodes[h]):g.appendChild(b),r&&(t=this.element[0].scrollTop,u=this.element[0].scrollLeft,b.childNodes[1].focus(),this.element[0].scrollTop=t,this.element[0].scrollLeft=u)}return f.state.opened&&!f.state.loaded&&(f.state.opened=!1,setTimeout(a.proxy(function(){this.open_node(f.id,!1,0)},this),0)),b},open_node:function(c,d,e){var f,g,h,i;if(a.isArray(c)){for(c=c.slice(),f=0,g=c.length;g>f;f++)this.open_node(c[f],d,e);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(e=e===b?this.settings.core.animation:e,this.is_closed(c)?this.is_loaded(c)?(h=this.get_node(c,!0),i=this,h.length&&(e&&h.children(".jstree-children").length&&h.children(".jstree-children").stop(!0,!0),c.children.length&&!this._firstChild(h.children(".jstree-children")[0])&&this.draw_children(c),e?(this.trigger("before_open",{node:c}),h.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children(".jstree-children").stop(!0,!0).slideDown(e,function(){this.style.display="",i.trigger("after_open",{node:c})})):(this.trigger("before_open",{node:c}),h[0].className=h[0].className.replace("jstree-closed","jstree-open"),h[0].setAttribute("aria-expanded",!0))),c.state.opened=!0,d&&d.call(this,c,!0),h.length||this.trigger("before_open",{node:c}),this.trigger("open_node",{node:c}),e&&h.length||this.trigger("after_open",{node:c}),!0):this.is_loading(c)?setTimeout(a.proxy(function(){this.open_node(c,d,e)},this),500):void this.load_node(c,function(a,b){return b?this.open_node(a,d,e):d?d.call(this,a,!1):!1}):(d&&d.call(this,c,!1),!1)):!1},_open_to:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c,d,e=b.parents;for(c=0,d=e.length;d>c;c+=1)c!==a.jstree.root&&this.open_node(e[c],!1,0);return a("#"+b.id.replace(a.jstree.idregex,"\\$&"),this.element)},close_node:function(c,d){var e,f,g,h;if(a.isArray(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.close_node(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?this.is_closed(c)?!1:(d=d===b?this.settings.core.animation:d,g=this,h=this.get_node(c,!0),h.length&&(d?h.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children(".jstree-children").stop(!0,!0).slideUp(d,function(){this.style.display="",h.children(".jstree-children").remove(),g.trigger("after_close",{node:c})}):(h[0].className=h[0].className.replace("jstree-open","jstree-closed"),h.attr("aria-expanded",!1).children(".jstree-children").remove())),c.state.opened=!1,this.trigger("close_node",{node:c}),void(d&&h.length||this.trigger("after_close",{node:c}))):!1},toggle_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.toggle_node(b[c]);return!0}return this.is_closed(b)?this.open_node(b):this.is_open(b)?this.close_node(b):void 0},open_all:function(b,c,d){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var e,f,g,h=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0);if(!h.length){for(e=0,f=b.children_d.length;f>e;e++)this.is_closed(this._model.data[b.children_d[e]])&&(this._model.data[b.children_d[e]].state.opened=!0);return this.trigger("open_all",{node:b})}d=d||h,g=this,h=this.is_closed(b)?h.find(".jstree-closed").addBack():h.find(".jstree-closed"),h.each(function(){g.open_node(this,function(a,b){b&&this.is_parent(a)&&this.open_all(a,c,d)},c||0)}),0===d.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(d)})},close_all:function(b,c){if(b||(b=a.jstree.root),b=this.get_node(b),!b)return!1;var d,e,f=b.id===a.jstree.root?this.get_container_ul():this.get_node(b,!0),g=this;for(f.length&&(f=this.is_open(b)?f.find(".jstree-open").addBack():f.find(".jstree-open"),a(f.get().reverse()).each(function(){g.close_node(this,c||0)})),d=0,e=b.children_d.length;e>d;d++)this._model.data[b.children_d[d]].state.opened=!1;this.trigger("close_all",{node:b})},is_disabled:function(a){return a=this.get_node(a),a&&a.state&&a.state.disabled},enable_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!1,this.get_node(b,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),void this.trigger("enable_node",{node:b})):!1},disable_node:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_node(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.state.disabled=!0,this.get_node(b,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),void this.trigger("disable_node",{node:b})):!1},hide_node:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.hide_node(b[d],!0);return this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden||(b.state.hidden=!0,this._node_changed(b.parent),c||this.redraw(),this.trigger("hide_node",{node:b}))):!1},show_node:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.show_node(b[d],!0);return this.redraw(),!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?void(b.state.hidden&&(b.state.hidden=!1,this._node_changed(b.parent),c||this.redraw(),this.trigger("show_node",{node:b}))):!1},hide_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&!d[c].state.hidden&&(d[c].state.hidden=!0,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("hide_all",{nodes:e}),e},show_all:function(b){var c,d=this._model.data,e=[];for(c in d)d.hasOwnProperty(c)&&c!==a.jstree.root&&d[c].state.hidden&&(d[c].state.hidden=!1,e.push(c));return this._model.force_full_redraw=!0,b||this.redraw(),this.trigger("show_all",{nodes:e}),e},activate_node:function(a,c){if(this.is_disabled(a))return!1;if(c&&"object"==typeof c||(c={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==b?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&(!c.shiftKey||this._data.core.last_clicked&&this.get_parent(a)&&this.get_parent(a)===this._data.core.last_clicked.parent))if(c.shiftKey){var d,e,f=this.get_node(a).id,g=this._data.core.last_clicked.id,h=this.get_node(this._data.core.last_clicked.parent).children,i=!1;for(d=0,e=h.length;e>d;d+=1)h[d]===f&&(i=!i),h[d]===g&&(i=!i),this.is_disabled(h[d])||!i&&h[d]!==f&&h[d]!==g?this.deselect_node(h[d],!0,c):this.select_node(h[d],!0,!1,c);this.trigger("changed",{action:"select_node",node:this.get_node(a),selected:this._data.core.selected,event:c})}else this.is_selected(a)?this.deselect_node(a,!1,c):this.select_node(a,!1,!1,c);else!this.settings.core.multiple&&(c.metaKey||c.ctrlKey||c.shiftKey)&&this.is_selected(a)?this.deselect_node(a,!1,c):(this.deselect_all(!0),this.select_node(a,!1,!1,c),this._data.core.last_clicked=this.get_node(a));this.trigger("activate_node",{node:this.get_node(a),event:c})},hover_node:function(a){if(a=this.get_node(a,!0),!a||!a.length||a.children(".jstree-hovered").length)return!1;var b=this.element.find(".jstree-hovered"),c=this.element;b&&b.length&&this.dehover_node(b),a.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(a)}),setTimeout(function(){c.attr("aria-activedescendant",a[0].id)},0)},dehover_node:function(a){return a=this.get_node(a,!0),a&&a.length&&a.children(".jstree-hovered").length?(a.children(".jstree-anchor").removeClass("jstree-hovered"),void this.trigger("dehover_node",{node:this.get_node(a)})):!1},select_node:function(b,c,d,e){var f,g,h;if(a.isArray(b)){for(b=b.slice(),g=0,h=b.length;h>g;g++)this.select_node(b[g],c,d,e);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.selected||(b.state.selected=!0,this._data.core.selected.push(b.id),d||(f=this._open_to(b)),f&&f.length&&f.attr("aria-selected",!0).children(".jstree-anchor").addClass("jstree-clicked"),this.trigger("select_node",{node:b,selected:this._data.core.selected,event:e}),c||this.trigger("changed",{action:"select_node",node:b,selected:this._data.core.selected,event:e})))):!1},deselect_node:function(b,c,d){var e,f,g;if(a.isArray(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.deselect_node(b[e],c,d);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(g=this.get_node(b,!0),void(b.state.selected&&(b.state.selected=!1,this._data.core.selected=a.vakata.array_remove_item(this._data.core.selected,b.id),g.length&&g.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-clicked"),this.trigger("deselect_node",{node:b,selected:this._data.core.selected,event:d}),c||this.trigger("changed",{action:"deselect_node",node:b,selected:this._data.core.selected,event:d})))):!1},select_all:function(b){var c,d,e=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[a.jstree.root].children_d.concat(),c=0,d=this._data.core.selected.length;d>c;c++)this._model.data[this._data.core.selected[c]]&&(this._model.data[this._data.core.selected[c]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),b||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:e})},deselect_all:function(a){var b,c,d=this._data.core.selected.concat([]);for(b=0,
c=this._data.core.selected.length;c>b;b++)this._model.data[this._data.core.selected[b]]&&(this._model.data[this._data.core.selected[b]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").parent().attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:d}),a||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:d})},is_selected:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.selected:!1},get_selected:function(b){return b?a.map(this._data.core.selected,a.proxy(function(a){return this.get_node(a)},this)):this._data.core.selected.slice()},get_top_selected:function(b){var c,d,e,f,g=this.get_selected(!0),h={};for(c=0,d=g.length;d>c;c++)h[g[c].id]=g[c];for(c=0,d=g.length;d>c;c++)for(e=0,f=g[c].children_d.length;f>e;e++)h[g[c].children_d[e]]&&delete h[g[c].children_d[e]];g=[];for(c in h)h.hasOwnProperty(c)&&g.push(c);return b?a.map(g,a.proxy(function(a){return this.get_node(a)},this)):g},get_bottom_selected:function(b){var c,d,e=this.get_selected(!0),f=[];for(c=0,d=e.length;d>c;c++)e[c].children.length||f.push(e[c].id);return b?a.map(f,a.proxy(function(a){return this.get_node(a)},this)):f},get_state:function(){var b,c={core:{open:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(b in this._model.data)this._model.data.hasOwnProperty(b)&&b!==a.jstree.root&&(this._model.data[b].state.opened&&c.core.open.push(b),this._model.data[b].state.selected&&c.core.selected.push(b));return c},set_state:function(c,d){if(c){if(c.core){var e,f;if(c.core.open)return a.isArray(c.core.open)&&c.core.open.length?this._load_nodes(c.core.open,function(a){this.open_node(a,!1,0),delete c.core.open,this.set_state(c,d)},!0):(delete c.core.open,this.set_state(c,d)),!1;if(c.core.scroll)return c.core.scroll&&c.core.scroll.left!==b&&this.element.scrollLeft(c.core.scroll.left),c.core.scroll&&c.core.scroll.top!==b&&this.element.scrollTop(c.core.scroll.top),delete c.core.scroll,this.set_state(c,d),!1;if(c.core.selected)return e=this,this.deselect_all(),a.each(c.core.selected,function(a,b){e.select_node(b,!1,!0)}),delete c.core.selected,this.set_state(c,d),!1;for(f in c)c.hasOwnProperty(f)&&"core"!==f&&-1===a.inArray(f,this.settings.plugins)&&delete c[f];if(a.isEmptyObject(c.core))return delete c.core,this.set_state(c,d),!1}return a.isEmptyObject(c)?(c=null,d&&d.call(this),this.trigger("set_state"),!1):!0}return!1},refresh:function(b,c){this._data.core.state=c===!0?{}:this.get_state(),c&&a.isFunction(c)&&(this._data.core.state=c.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[a.jstree.root]={id:a.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var d=this.get_container_ul()[0].className;b||(this.element.html("<ul class='"+d+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='treeitem' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(a.jstree.root,function(b,c){c&&(this.get_container_ul()[0].className=d,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(a.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},refresh_node:function(b){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var c=[],d=[];this._data.core.selected.concat([]);d.push(b.id),b.state.opened===!0&&c.push(b.id),this.get_node(b,!0).find(".jstree-open").each(function(){c.push(this.id)}),this._load_nodes(d,a.proxy(function(a){this.open_node(c,!1,0),this.select_node(this._data.core.selected),this.trigger("refresh_node",{node:b,nodes:a})},this))},set_id:function(b,c){if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;var d,e,f=this._model.data;for(c=c.toString(),f[b.parent].children[a.inArray(b.id,f[b.parent].children)]=c,d=0,e=b.parents.length;e>d;d++)f[b.parents[d]].children_d[a.inArray(b.id,f[b.parents[d]].children_d)]=c;for(d=0,e=b.children.length;e>d;d++)f[b.children[d]].parent=c;for(d=0,e=b.children_d.length;e>d;d++)f[b.children_d[d]].parents[a.inArray(b.id,f[b.children_d[d]].parents)]=c;return d=a.inArray(b.id,this._data.core.selected),-1!==d&&(this._data.core.selected[d]=c),d=this.get_node(b.id,!0),d&&(d.attr("id",c).children(".jstree-anchor").attr("id",c+"_anchor").end().attr("aria-labelledby",c+"_anchor"),this.element.attr("aria-activedescendant")===b.id&&this.element.attr("aria-activedescendant",c)),delete f[b.id],b.id=c,b.li_attr.id=c,f[c]=b,!0},get_text:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.text:!1},set_text:function(b,c){var d,e;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.set_text(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(b.text=c,this.get_node(b,!0).length&&this.redraw_node(b.id),this.trigger("set_text",{obj:b,text:c}),!0):!1},get_json:function(b,c,d){if(b=this.get_node(b||a.jstree.root),!b)return!1;c&&c.flat&&!d&&(d=[]);var e,f,g={id:b.id,text:b.text,icon:this.get_icon(b),li_attr:a.extend(!0,{},b.li_attr),a_attr:a.extend(!0,{},b.a_attr),state:{},data:c&&c.no_data?!1:a.extend(!0,{},b.data)};if(c&&c.flat?g.parent=b.parent:g.children=[],!c||!c.no_state)for(e in b.state)b.state.hasOwnProperty(e)&&(g.state[e]=b.state[e]);if(c&&c.no_id&&(delete g.id,g.li_attr&&g.li_attr.id&&delete g.li_attr.id,g.a_attr&&g.a_attr.id&&delete g.a_attr.id),c&&c.flat&&b.id!==a.jstree.root&&d.push(g),!c||!c.no_children)for(e=0,f=b.children.length;f>e;e++)c&&c.flat?this.get_json(b.children[e],c,d):g.children.push(this.get_json(b.children[e],c));return c&&c.flat?d:b.id===a.jstree.root?g.children:g},create_node:function(c,d,e,f,g){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return!1;if(e=e===b?"last":e,!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(c))return this.load_node(c,function(){this.create_node(c,d,e,f,!0)});d||(d={text:this.get_string("New node")}),"string"==typeof d&&(d={text:d}),d.text===b&&(d.text=this.get_string("New node"));var h,i,j,k;switch(c.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":h=this.get_node(c.parent),e=a.inArray(c.id,h.children),c=h;break;case"after":h=this.get_node(c.parent),e=a.inArray(c.id,h.children)+1,c=h;break;case"inside":case"first":e=0;break;case"last":e=c.children.length;break;default:e||(e=0)}if(e>c.children.length&&(e=c.children.length),d.id||(d.id=!0),!this.check("create_node",d,c,e))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(d.id===!0&&delete d.id,d=this._parse_model_from_json(d,c.id,c.parents.concat()),!d)return!1;for(h=this.get_node(d),i=[],i.push(d),i=i.concat(h.children_d),this.trigger("model",{nodes:i,parent:c.id}),c.children_d=c.children_d.concat(i),j=0,k=c.parents.length;k>j;j++)this._model.data[c.parents[j]].children_d=this._model.data[c.parents[j]].children_d.concat(i);for(d=h,h=[],j=0,k=c.children.length;k>j;j++)h[j>=e?j+1:j]=c.children[j];return h[e]=d.id,c.children=h,this.redraw_node(c,!0),f&&f.call(this,this.get_node(d)),this.trigger("create_node",{node:this.get_node(d),parent:c.id,position:e}),d.id},rename_node:function(b,c){var d,e,f;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.rename_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=b.text,this.check("rename_node",b,this.get_parent(b),c)?(this.set_text(b,c),this.trigger("rename_node",{node:b,text:c,old:f}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.delete_node(b[c]);return!0}if(b=this.get_node(b),!b||b.id===a.jstree.root)return!1;if(e=this.get_node(b.parent),f=a.inArray(b.id,e.children),l=!1,!this.check("delete_node",b,e,f))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==f&&(e.children=a.vakata.array_remove(e.children,f)),g=b.children_d.concat([]),g.push(b.id),j=0,k=g.length;k>j;j++){for(h=0,i=b.parents.length;i>h;h++)f=a.inArray(g[j],this._model.data[b.parents[h]].children_d),-1!==f&&(this._model.data[b.parents[h]].children_d=a.vakata.array_remove(this._model.data[b.parents[h]].children_d,f));this._model.data[g[j]].state.selected&&(l=!0,f=a.inArray(g[j],this._data.core.selected),-1!==f&&(this._data.core.selected=a.vakata.array_remove(this._data.core.selected,f)))}for(this.trigger("delete_node",{node:b,parent:e.id}),l&&this.trigger("changed",{action:"delete_node",node:b,selected:this._data.core.selected,parent:e.id}),j=0,k=g.length;k>j;j++)delete this._model.data[g[j]];return-1!==a.inArray(this._data.core.focused,g)&&(this._data.core.focused=null,m=this.element[0].scrollTop,n=this.element[0].scrollLeft,e.id===a.jstree.root?this.get_node(this._model.data[a.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(e,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=m,this.element[0].scrollLeft=n),this.redraw_node(e,!0),!0},check:function(b,c,d,e,f){c=c&&c.id?c:this.get_node(c),d=d&&d.id?d:this.get_node(d);var g=b.match(/^move_node|copy_node|create_node$/i)?d:c,h=this.settings.core.check_callback;return"move_node"!==b&&"copy_node"!==b||f&&f.is_multi||c.id!==d.id&&a.inArray(c.id,d.children)!==e&&-1===a.inArray(d.id,c.children_d)?(g&&g.data&&(g=g.data),g&&g.functions&&(g.functions[b]===!1||g.functions[b]===!0)?(g.functions[b]===!1&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})}),g.functions[b]):h===!1||a.isFunction(h)&&h.call(this,b,c,d,e,f)===!1||h&&h[b]===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+b,data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1):!0):(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:b,pos:e,obj:c&&c.id?c.id:!1,par:d&&d.id?d.id:!1})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.move_node(c,d,e,f,!0,!1,i)});if(a.isArray(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(r=this.move_node(c[j],d,e,f,g,!1,i))&&(d=r,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;if(l=(c.parent||a.jstree.root).toString(),n=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,o=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),p=!o||!o._id||this._id!==o._id,m=o&&o._id&&l&&o._model.data[l]&&o._model.data[l].children?a.inArray(c.id,o._model.data[l].children):-1,o&&o._id&&(c=o._model.data[c.id]),p)return(r=this.copy_node(c,d,e,f,g,!1,i))?(o&&o.delete_node(c),r):!1;switch(d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,n.children);break;case"after":e=a.inArray(d.id,n.children)+1;break;case"inside":case"first":e=0;break;case"last":e=n.children.length;break;default:e||(e=0)}if(e>n.children.length&&(e=n.children.length),!this.check("move_node",c,n,e,{core:!0,origin:i,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(c.parent===n.id){for(q=n.children.concat(),r=a.inArray(c.id,q),-1!==r&&(q=a.vakata.array_remove(q,r),e>r&&e--),r=[],s=0,t=q.length;t>s;s++)r[s>=e?s+1:s]=q[s];r[e]=c.id,n.children=r,this._node_changed(n.id),this.redraw(n.id===a.jstree.root)}else{for(r=c.children_d.concat(),r.push(c.id),s=0,t=c.parents.length;t>s;s++){for(q=[],w=o._model.data[c.parents[s]].children_d,u=0,v=w.length;v>u;u++)-1===a.inArray(w[u],r)&&q.push(w[u]);o._model.data[c.parents[s]].children_d=q}for(o._model.data[l].children=a.vakata.array_remove_item(o._model.data[l].children,c.id),s=0,t=n.parents.length;t>s;s++)this._model.data[n.parents[s]].children_d=this._model.data[n.parents[s]].children_d.concat(r);for(q=[],s=0,t=n.children.length;t>s;s++)q[s>=e?s+1:s]=n.children[s];for(q[e]=c.id,n.children=q,n.children_d.push(c.id),n.children_d=n.children_d.concat(c.children_d),c.parent=n.id,r=n.parents.concat(),r.unshift(n.id),w=c.parents.length,c.parents=r,r=r.concat(),s=0,t=c.children_d.length;t>s;s++)this._model.data[c.children_d[s]].parents=this._model.data[c.children_d[s]].parents.slice(0,-1*w),Array.prototype.push.apply(this._model.data[c.children_d[s]].parents,r);(l===a.jstree.root||n.id===a.jstree.root)&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(l),this._node_changed(n.id)),h||this.redraw()}return f&&f.call(this,c,n,e),this.trigger("move_node",{node:c,parent:n.id,position:e,old_parent:l,old_position:m,is_multi:o&&o._id&&o._id!==this._id,is_foreign:!o||!o._id,old_instance:o,new_instance:this}),c.id},copy_node:function(c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t;if(d=this.get_node(d),e=e===b?0:e,!d)return!1;if(!e.toString().match(/^(before|after)$/)&&!g&&!this.is_loaded(d))return this.load_node(d,function(){this.copy_node(c,d,e,f,!0,!1,i)});if(a.isArray(c)){if(1!==c.length){for(j=0,k=c.length;k>j;j++)(m=this.copy_node(c[j],d,e,f,g,!0,i))&&(d=m,e="after");return this.redraw(),!0}c=c[0]}if(c=c&&c.id?c:this.get_node(c),!c||c.id===a.jstree.root)return!1;switch(q=(c.parent||a.jstree.root).toString(),r=e.toString().match(/^(before|after)$/)&&d.id!==a.jstree.root?this.get_node(d.parent):d,s=i?i:this._model.data[c.id]?this:a.jstree.reference(c.id),t=!s||!s._id||this._id!==s._id,s&&s._id&&(c=s._model.data[c.id]),d.id===a.jstree.root&&("before"===e&&(e="first"),"after"===e&&(e="last")),e){case"before":e=a.inArray(d.id,r.children);break;case"after":e=a.inArray(d.id,r.children)+1;break;case"inside":case"first":e=0;break;case"last":e=r.children.length;break;default:e||(e=0)}if(e>r.children.length&&(e=r.children.length),!this.check("copy_node",c,r,e,{core:!0,origin:i,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(p=s?s.get_json(c,{no_id:!0,no_data:!0,no_state:!0}):c,!p)return!1;if(p.id===!0&&delete p.id,p=this._parse_model_from_json(p,r.id,r.parents.concat()),!p)return!1;for(m=this.get_node(p),c&&c.state&&c.state.loaded===!1&&(m.state.loaded=!1),l=[],l.push(p),l=l.concat(m.children_d),this.trigger("model",{nodes:l,parent:r.id}),n=0,o=r.parents.length;o>n;n++)this._model.data[r.parents[n]].children_d=this._model.data[r.parents[n]].children_d.concat(l);for(l=[],n=0,o=r.children.length;o>n;n++)l[n>=e?n+1:n]=r.children[n];return l[e]=m.id,r.children=l,r.children_d.push(m.id),r.children_d=r.children_d.concat(m.children_d),r.id===a.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(r.id),h||this.redraw(r.id===a.jstree.root),f&&f.call(this,m,r,e),this.trigger("copy_node",{node:m,original:c,parent:r.id,position:e,old_parent:q,old_position:s&&s._id&&q&&s._model.data[q]&&s._model.data[q].children?a.inArray(c.id,s._model.data[q].children):-1,is_multi:s&&s._id&&s._id!==this._id,is_foreign:!s||!s._id,old_instance:s,new_instance:this}),m.id},cut:function(b){if(b||(b=this._data.core.selected.concat()),a.isArray(b)||(b=[b]),!b.length)return!1;var c,d,e,i=[];for(d=0,e=b.length;e>d;d++)c=this.get_node(b[d]),c&&c.id&&c.id!==a.jstree.root&&i.push(c);return i.length?(f=i,h=this,g="move_node",void this.trigger("cut",{node:b})):!1},copy:function(b){if(b||(b=this._data.core.selected.concat()),a.isArray(b)||(b=[b]),!b.length)return!1;var c,d,e,i=[];for(d=0,e=b.length;e>d;d++)c=this.get_node(b[d]),c&&c.id&&c.id!==a.jstree.root&&i.push(c);return i.length?(f=i,h=this,g="copy_node",void this.trigger("copy",{node:b})):!1},get_buffer:function(){return{mode:g,node:f,inst:h}},can_paste:function(){return g!==!1&&f!==!1},paste:function(a,b){return a=this.get_node(a),a&&g&&g.match(/^(copy_node|move_node)$/)&&f?(this[g](f,a,b,!1,!1,!1,h)&&this.trigger("paste",{parent:a.id,node:f,mode:g}),f=!1,g=!1,void(h=!1)):!1},clear_buffer:function(){f=!1,g=!1,h=!1,this.trigger("clear_buffer")},edit:function(b,c,d){var e,f,g,h,i,j,k,l,m,n=!1;return(b=this.get_node(b))?this.settings.core.check_callback===!1?(this._data.core.last_error={error:"check",plugin:"core",id:"core_07",reason:"Could not edit node because of check_callback"},this.settings.core.error.call(this,this._data.core.last_error),!1):(m=b,c="string"==typeof c?c:b.text,this.set_text(b,""),b=this._open_to(b),m.text=c,e=this._data.core.rtl,f=this.element.width(),this._data.core.focused=m.id,g=b.children(".jstree-anchor").focus(),h=a("<span>"),i=c,j=a("<div />",{css:{position:"absolute",top:"-200px",left:e?"0px":"-1000px",visibility:"hidden"}}).appendTo("body"),k=a("<input />",{value:i,"class":"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:a.proxy(function(c){c.stopImmediatePropagation(),c.preventDefault();var e,f=h.children(".jstree-rename-input"),k=f.val(),l=this.settings.core.force_text;""===k&&(k=i),j.remove(),h.replaceWith(g),h.remove(),i=l?i:a("<div></div>").append(a.parseHTML(i)).html(),this.set_text(b,i),e=!!this.rename_node(b,l?a("<div></div>").text(k).text():a("<div></div>").append(a.parseHTML(k)).html()),e||this.set_text(b,i),this._data.core.focused=m.id,setTimeout(a.proxy(function(){var a=this.get_node(m.id,!0);a.length&&(this._data.core.focused=m.id,a.children(".jstree-anchor").focus())},this),0),d&&d.call(this,m,e,n)},this),keydown:function(a){var b=a.which;27===b&&(n=!0,this.value=i),(27===b||13===b||37===b||38===b||39===b||40===b||32===b)&&a.stopImmediatePropagation(),(27===b||13===b)&&(a.preventDefault(),this.blur())},click:function(a){a.stopImmediatePropagation()},mousedown:function(a){a.stopImmediatePropagation()},keyup:function(a){k.width(Math.min(j.text("pW"+this.value).width(),f))},keypress:function(a){return 13===a.which?!1:void 0}}),l={fontFamily:g.css("fontFamily")||"",fontSize:g.css("fontSize")||"",fontWeight:g.css("fontWeight")||"",fontStyle:g.css("fontStyle")||"",fontStretch:g.css("fontStretch")||"",fontVariant:g.css("fontVariant")||"",letterSpacing:g.css("letterSpacing")||"",wordSpacing:g.css("wordSpacing")||""},h.attr("class",g.attr("class")).append(g.contents().clone()).append(k),g.replaceWith(h),j.css(l),void k.css(l).width(Math.min(j.text("pW"+k[0].value).width(),f))[0].select()):!1},set_theme:function(b,c){if(!b)return!1;if(c===!0){var d=this.settings.core.themes.dir;d||(d=a.jstree.path+"/themes"),c=d+"/"+b+"/style.css"}c&&-1===a.inArray(c,i)&&(a("head").append('<link rel="stylesheet" href="'+c+'" type="text/css" />'),i.push(c)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=b,this.element.addClass("jstree-"+b),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+b+"-responsive"),this.trigger("set_theme",{theme:b})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(a){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=a,a&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},set_icon:function(c,d){var e,f,g,h;if(a.isArray(c)){for(c=c.slice(),e=0,f=c.length;f>e;e++)this.set_icon(c[e],d);return!0}return c=this.get_node(c),c&&c.id!==a.jstree.root?(h=c.icon,c.icon=d===!0||null===d||d===b||""===d?!0:d,g=this.get_node(c,!0).children(".jstree-anchor").children(".jstree-themeicon"),d===!1?this.hide_icon(c):d===!0||null===d||d===b||""===d?(g.removeClass("jstree-themeicon-custom "+h).css("background","").removeAttr("rel"),h===!1&&this.show_icon(c)):-1===d.indexOf("/")&&-1===d.indexOf(".")?(g.removeClass(h).css("background",""),g.addClass(d+" jstree-themeicon-custom").attr("rel",d),h===!1&&this.show_icon(c)):(g.removeClass(h).css("background",""),g.addClass("jstree-themeicon-custom").css("background","url('"+d+"') center center no-repeat").attr("rel",d),h===!1&&this.show_icon(c)),!0):!1},get_icon:function(b){return b=this.get_node(b),b&&b.id!==a.jstree.root?b.icon:!1},hide_icon:function(b){var c,d;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.hide_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(b.icon=!1,this.get_node(b,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0):!1},show_icon:function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.show_icon(b[c]);return!0}return b=this.get_node(b),b&&b!==a.jstree.root?(e=this.get_node(b,!0),b.icon=e.length?e.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"):!0,b.icon||(b.icon=!0),e.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0):!1}},a.vakata={},a.vakata.attributes=function(b,c){b=a(b)[0];var d=c?{}:[];return b&&b.attributes&&a.each(b.attributes,function(b,e){-1===a.inArray(e.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==e.value&&""!==a.trim(e.value)&&(c?d[e.name]=e.value:d.push(e.name))}),d},a.vakata.array_unique=function(a){var c,d,e=[],f={};for(c=0,d=a.length;d>c;c++)f[a[c]]===b&&(e.push(a[c]),f[a[c]]=!0);return e},a.vakata.array_remove=function(a,b,c){var d=a.slice((c||b)+1||a.length);return a.length=0>b?a.length+b:b,a.push.apply(a,d),a},a.vakata.array_remove_item=function(b,c){var d=a.inArray(c,b);return-1!==d?a.vakata.array_remove(b,d):b},a.jstree.plugins.changed=function(a,b){var c=[];this.trigger=function(a,d){var e,f;if(d||(d={}),"changed"===a.replace(".jstree","")){d.changed={selected:[],deselected:[]};var g={};for(e=0,f=c.length;f>e;e++)g[c[e]]=1;for(e=0,f=d.selected.length;f>e;e++)g[d.selected[e]]?g[d.selected[e]]=2:d.changed.selected.push(d.selected[e]);for(e=0,f=c.length;f>e;e++)1===g[c[e]]&&d.changed.deselected.push(c[e]);c=d.selected.slice()}b.trigger.call(this,a,d)},this.refresh=function(a,d){return c=[],b.refresh.apply(this,arguments)}};var m=k.createElement("I");m.className="jstree-icon jstree-checkbox",m.setAttribute("role","presentation"),a.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0},a.jstree.plugins.checkbox=function(c,d){this.bind=function(){d.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",a.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")},this)).on("loading.jstree",a.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",a.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(a.proxy(this._undetermined,this),50)},this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",a.proxy(function(a,b){var c,d,e=this._model.data,f=(e[b.parent],b.nodes);for(c=0,d=f.length;d>c;c++)e[f[c]].state.checked=e[f[c]].state.checked||e[f[c]].original&&e[f[c]].original.state&&e[f[c]].original.state.checked,e[f[c]].state.checked&&this._data.checkbox.selected.push(f[c])},this)),(-1!==this.settings.checkbox.cascade.indexOf("up")||-1!==this.settings.checkbox.cascade.indexOf("down"))&&this.element.on("model.jstree",a.proxy(function(b,c){var d,e,f,g,h,i,j=this._model.data,k=j[c.parent],l=c.nodes,m=[],n=this.settings.checkbox.cascade,o=this.settings.checkbox.tie_selection;if(-1!==n.indexOf("down"))if(k.state[o?"selected":"checked"]){for(e=0,f=l.length;f>e;e++)j[l[e]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(l)}else for(e=0,f=l.length;f>e;e++)if(j[l[e]].state[o?"selected":"checked"]){for(g=0,h=j[l[e]].children_d.length;h>g;g++)j[j[l[e]].children_d[g]].state[o?"selected":"checked"]=!0;this._data[o?"core":"checkbox"].selected=this._data[o?"core":"checkbox"].selected.concat(j[l[e]].children_d)}if(-1!==n.indexOf("up")){for(e=0,f=k.children_d.length;f>e;e++)j[k.children_d[e]].children.length||m.push(j[k.children_d[e]].parent);for(m=a.vakata.array_unique(m),g=0,h=m.length;h>g;g++)for(k=j[m[g]];k&&k.id!==a.jstree.root;){for(d=0,e=0,f=k.children.length;f>e;e++)d+=j[k.children[e]].state[o?"selected":"checked"];if(d!==f)break;k.state[o?"selected":"checked"]=!0,this._data[o?"core":"checkbox"].selected.push(k.id),i=this.get_node(k,!0),i&&i.length&&i.attr("aria-selected",!0).children(".jstree-anchor").addClass(o?"jstree-clicked":"jstree-checked"),k=this.get_node(k.parent)}}this._data[o?"core":"checkbox"].selected=a.vakata.array_unique(this._data[o?"core":"checkbox"].selected)},this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",a.proxy(function(b,c){var d,e,f,g,h=c.node,i=this._model.data,j=this.get_node(h.parent),k=this.get_node(h,!0),l=this.settings.checkbox.cascade,m=this.settings.checkbox.tie_selection;if(-1!==l.indexOf("down"))for(this._data[m?"core":"checkbox"].selected=a.vakata.array_unique(this._data[m?"core":"checkbox"].selected.concat(h.children_d)),d=0,e=h.children_d.length;e>d;d++)g=i[h.children_d[d]],g.state[m?"selected":"checked"]=!0,g&&g.original&&g.original.state&&g.original.state.undetermined&&(g.original.state.undetermined=!1);if(-1!==l.indexOf("up"))for(;j&&j.id!==a.jstree.root;){for(f=0,d=0,e=j.children.length;e>d;d++)f+=i[j.children[d]].state[m?"selected":"checked"];if(f!==e)break;j.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(j.id),g=this.get_node(j,!0),g&&g.length&&g.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),j=this.get_node(j.parent)}-1!==l.indexOf("down")&&k.length&&k.find(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked").parent().attr("aria-selected",!0)},this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",a.proxy(function(b,c){var d,e,f,g=this.get_node(a.jstree.root),h=this._model.data;for(d=0,e=g.children_d.length;e>d;d++)f=h[g.children_d[d]],f&&f.original&&f.original.state&&f.original.state.undetermined&&(f.original.state.undetermined=!1)},this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",a.proxy(function(b,c){var d,e,f,g=c.node,h=this.get_node(g,!0),i=this.settings.checkbox.cascade,j=this.settings.checkbox.tie_selection;if(g&&g.original&&g.original.state&&g.original.state.undetermined&&(g.original.state.undetermined=!1),-1!==i.indexOf("down"))for(d=0,e=g.children_d.length;e>d;d++)f=this._model.data[g.children_d[d]],f.state[j?"selected":"checked"]=!1,f&&f.original&&f.original.state&&f.original.state.undetermined&&(f.original.state.undetermined=!1);if(-1!==i.indexOf("up"))for(d=0,e=g.parents.length;e>d;d++)f=this._model.data[g.parents[d]],f.state[j?"selected":"checked"]=!1,f&&f.original&&f.original.state&&f.original.state.undetermined&&(f.original.state.undetermined=!1),f=this.get_node(g.parents[d],!0),f&&f.length&&f.attr("aria-selected",!1).children(".jstree-anchor").removeClass(j?"jstree-clicked":"jstree-checked");for(f=[],d=0,e=this._data[j?"core":"checkbox"].selected.length;e>d;d++)-1!==i.indexOf("down")&&-1!==a.inArray(this._data[j?"core":"checkbox"].selected[d],g.children_d)||-1!==i.indexOf("up")&&-1!==a.inArray(this._data[j?"core":"checkbox"].selected[d],g.parents)||f.push(this._data[j?"core":"checkbox"].selected[d]);this._data[j?"core":"checkbox"].selected=a.vakata.array_unique(f),-1!==i.indexOf("down")&&h.length&&h.find(".jstree-anchor").removeClass(j?"jstree-clicked":"jstree-checked").parent().attr("aria-selected",!1)},this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",a.proxy(function(b,c){for(var d,e,f,g,h=this.get_node(c.parent),i=this._model.data,j=this.settings.checkbox.tie_selection;h&&h.id!==a.jstree.root&&!h.state[j?"selected":"checked"];){for(f=0,d=0,e=h.children.length;e>d;d++)f+=i[h.children[d]].state[j?"selected":"checked"];if(!(e>0&&f===e))break;h.state[j?"selected":"checked"]=!0,this._data[j?"core":"checkbox"].selected.push(h.id),g=this.get_node(h,!0),g&&g.length&&g.attr("aria-selected",!0).children(".jstree-anchor").addClass(j?"jstree-clicked":"jstree-checked"),h=this.get_node(h.parent)}},this)).on("move_node.jstree",a.proxy(function(b,c){var d,e,f,g,h,i=c.is_multi,j=c.old_parent,k=this.get_node(c.parent),l=this._model.data,m=this.settings.checkbox.tie_selection;if(!i)for(d=this.get_node(j);d&&d.id!==a.jstree.root&&!d.state[m?"selected":"checked"];){for(e=0,f=0,g=d.children.length;g>f;f++)e+=l[d.children[f]].state[m?"selected":"checked"];if(!(g>0&&e===g))break;d.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(d.id),h=this.get_node(d,!0),h&&h.length&&h.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"),d=this.get_node(d.parent)}for(d=k;d&&d.id!==a.jstree.root;){for(e=0,f=0,g=d.children.length;g>f;f++)e+=l[d.children[f]].state[m?"selected":"checked"];if(e===g)d.state[m?"selected":"checked"]||(d.state[m?"selected":"checked"]=!0,this._data[m?"core":"checkbox"].selected.push(d.id),h=this.get_node(d,!0),h&&h.length&&h.attr("aria-selected",!0).children(".jstree-anchor").addClass(m?"jstree-clicked":"jstree-checked"));else{if(!d.state[m?"selected":"checked"])break;d.state[m?"selected":"checked"]=!1,this._data[m?"core":"checkbox"].selected=a.vakata.array_remove_item(this._data[m?"core":"checkbox"].selected,d.id),h=this.get_node(d,!0),h&&h.length&&h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(m?"jstree-clicked":"jstree-checked")}d=this.get_node(d.parent)}},this))},this._undetermined=function(){if(null!==this.element){var c,d,e,f,g={},h=this._model.data,i=this.settings.checkbox.tie_selection,j=this._data[i?"core":"checkbox"].selected,k=[],l=this;
for(c=0,d=j.length;d>c;c++)if(h[j[c]]&&h[j[c]].parents)for(e=0,f=h[j[c]].parents.length;f>e;e++)g[h[j[c]].parents[e]]===b&&h[j[c]].parents[e]!==a.jstree.root&&(g[h[j[c]].parents[e]]=!0,k.push(h[j[c]].parents[e]));for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var i,j=l.get_node(this);if(j.state.loaded){for(c=0,d=j.children_d.length;d>c;c++)if(i=h[j.children_d[c]],!i.state.loaded&&i.original&&i.original.state&&i.original.state.undetermined&&i.original.state.undetermined===!0)for(g[i.id]===b&&i.id!==a.jstree.root&&(g[i.id]=!0,k.push(i.id)),e=0,f=i.parents.length;f>e;e++)g[i.parents[e]]===b&&i.parents[e]!==a.jstree.root&&(g[i.parents[e]]=!0,k.push(i.parents[e]))}else if(j.original&&j.original.state&&j.original.state.undetermined&&j.original.state.undetermined===!0)for(g[j.id]===b&&j.id!==a.jstree.root&&(g[j.id]=!0,k.push(j.id)),e=0,f=j.parents.length;f>e;e++)g[j.parents[e]]===b&&j.parents[e]!==a.jstree.root&&(g[j.parents[e]]=!0,k.push(j.parents[e]))}),this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),c=0,d=k.length;d>c;c++)h[k[c]].state[i?"selected":"checked"]||(j=this.get_node(k[c],!0),j&&j.length&&j.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined"))}},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments)){var g,h,i=null,j=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(!this.settings.checkbox.tie_selection&&this._model.data[b.id].state.checked&&(i.className+=" jstree-checked"),j=m.cloneNode(!1),this._model.data[b.id].state.checkbox_disabled&&(j.className+=" jstree-checkbox-disabled"),i.insertBefore(j,i.childNodes[0]))}return e||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(a.proxy(this._undetermined,this),50)),b},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(b){b=this.get_node(b);var c,d,e=this.settings.checkbox.cascade,f=this.settings.checkbox.tie_selection,g=this._data[f?"core":"checkbox"].selected,h=this._model.data;if(!b||b.state[f?"selected":"checked"]===!0||-1===e.indexOf("undetermined")||-1===e.indexOf("down")&&-1===e.indexOf("up"))return!1;if(!b.state.loaded&&b.original.state.undetermined===!0)return!0;for(c=0,d=b.children_d.length;d>c;c++)if(-1!==a.inArray(b.children_d[c],g)||!h[b.children_d[c]].state.loaded&&h[b.children_d[c]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.disable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled||(b.state.checkbox_disabled=!0,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:b})))):!1},this.enable_checkbox=function(b){var c,d,e;if(a.isArray(b)){for(b=b.slice(),c=0,d=b.length;d>c;c++)this.enable_checkbox(b[c]);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(e=this.get_node(b,!0),void(b.state.checkbox_disabled&&(b.state.checkbox_disabled=!1,e&&e.length&&e.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:b})))):!1},this.activate_node=function(b,c){return a(c.target).hasClass("jstree-checkbox-disabled")?!1:(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||a(c.target).hasClass("jstree-checkbox"))&&(c.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!a(c.target).hasClass("jstree-checkbox")?d.activate_node.call(this,b,c):this.is_disabled(b)?!1:(this.is_checked(b)?this.uncheck_node(b,c):this.check_node(b,c),void this.trigger("activate_node",{node:this.get_node(b)})))},this.check_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.select_node(b,!1,!0,c);var d,e,f;if(a.isArray(b)){for(b=b.slice(),e=0,f=b.length;f>e;e++)this.check_node(b[e],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(d=this.get_node(b,!0),void(b.state.checked||(b.state.checked=!0,this._data.checkbox.selected.push(b.id),d&&d.length&&d.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.uncheck_node=function(b,c){if(this.settings.checkbox.tie_selection)return this.deselect_node(b,!1,c);var d,e,f;if(a.isArray(b)){for(b=b.slice(),d=0,e=b.length;e>d;d++)this.uncheck_node(b[d],c);return!0}return b=this.get_node(b),b&&b.id!==a.jstree.root?(f=this.get_node(b,!0),void(b.state.checked&&(b.state.checked=!1,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,b.id),f.length&&f.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:b,selected:this._data.checkbox.selected,event:c})))):!1},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var b,c;this._data.checkbox.selected.concat([]);for(this._data.checkbox.selected=this._model.data[a.jstree.root].children_d.concat(),b=0,c=this._data.checkbox.selected.length;c>b;b++)this._model.data[this._data.checkbox.selected[b]]&&(this._model.data[this._data.checkbox.selected[b]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var a,b,c=this._data.checkbox.selected.concat([]);for(a=0,b=this._data.checkbox.selected.length;b>a;a++)this._model.data[this._data.checkbox.selected[a]]&&(this._model.data[this._data.checkbox.selected[a]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:c})},this.is_checked=function(b){return this.settings.checkbox.tie_selection?this.is_selected(b):(b=this.get_node(b),b&&b.id!==a.jstree.root?b.state.checked:!1)},this.get_checked=function(b){return this.settings.checkbox.tie_selection?this.get_selected(b):b?a.map(this._data.checkbox.selected,a.proxy(function(a){return this.get_node(a)},this)):this._data.checkbox.selected},this.get_top_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_top_selected(b);var c,d,e,f,g=this.get_checked(!0),h={};for(c=0,d=g.length;d>c;c++)h[g[c].id]=g[c];for(c=0,d=g.length;d>c;c++)for(e=0,f=g[c].children_d.length;f>e;e++)h[g[c].children_d[e]]&&delete h[g[c].children_d[e]];g=[];for(c in h)h.hasOwnProperty(c)&&g.push(c);return b?a.map(g,a.proxy(function(a){return this.get_node(a)},this)):g},this.get_bottom_checked=function(b){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(b);var c,d,e=this.get_checked(!0),f=[];for(c=0,d=e.length;d>c;c++)e[c].children.length||f.push(e[c].id);return b?a.map(f,a.proxy(function(a){return this.get_node(a)},this)):f},this.load_node=function(b,c){var e,f,g,h;if(!a.isArray(b)&&!this.settings.checkbox.tie_selection&&(h=this.get_node(b),h&&h.state.loaded))for(e=0,f=h.children_d.length;f>e;e++)this._model.data[h.children_d[e]].state.checked&&(g=!0,this._data.checkbox.selected=a.vakata.array_remove_item(this._data.checkbox.selected,h.children_d[e]));return d.load_node.apply(this,arguments)},this.get_state=function(){var a=d.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection?a:(a.checkbox=this._data.checkbox.selected.slice(),a)},this.set_state=function(b,c){var e=d.set_state.apply(this,arguments);if(e&&b.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var f=this;a.each(b.checkbox,function(a,b){f.check_node(b)})}return delete b.checkbox,this.set_state(b,c),!1}return e},this.refresh=function(a,b){return this.settings.checkbox.tie_selection||(this._data.checkbox.selected=[]),d.refresh.apply(this,arguments)}},a.jstree.defaults.conditionalselect=function(){return!0},a.jstree.plugins.conditionalselect=function(a,b){this.activate_node=function(a,c){this.settings.conditionalselect.call(this,this.get_node(a),c)&&b.activate_node.call(this,a,c)}},a.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(b,c){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.create_node(d,{},"last",function(a){setTimeout(function(){c.edit(a)},0)})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.edit(d)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.delete_node(c.get_selected()):c.delete_node(d)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.cut(c.get_top_selected()):c.cut(d)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.is_selected(d)?c.copy(c.get_top_selected()):c.copy(d)}},paste:{separator_before:!1,icon:!1,_disabled:function(b){return!a.jstree.reference(b.reference).can_paste()},separator_after:!1,label:"Paste",action:function(b){var c=a.jstree.reference(b.reference),d=c.get_node(b.reference);c.paste(d)}}}}}}},a.jstree.plugins.contextmenu=function(c,d){this.bind=function(){d.bind.call(this);var b,c,e=0,f=null;this.element.on("contextmenu.jstree",".jstree-anchor",a.proxy(function(a,b){a.preventDefault(),e=a.ctrlKey?+new Date:0,(b||f)&&(e=+new Date+1e4),f&&clearTimeout(f),this.is_loading(a.currentTarget)||this.show_contextmenu(a.currentTarget,a.pageX,a.pageY,a)},this)).on("click.jstree",".jstree-anchor",a.proxy(function(b){this._data.contextmenu.visible&&(!e||+new Date-e>250)&&a.vakata.context.hide(),e=0},this)).on("touchstart.jstree",".jstree-anchor",function(d){d.originalEvent&&d.originalEvent.changedTouches&&d.originalEvent.changedTouches[0]&&(b=d.pageX,c=d.pageY,f=setTimeout(function(){a(d.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(a){f&&a.originalEvent&&a.originalEvent.changedTouches&&a.originalEvent.changedTouches[0]&&(Math.abs(b-a.pageX)>50||Math.abs(c-a.pageY)>50)&&clearTimeout(f)}).on("touchend.vakata.jstree",function(a){f&&clearTimeout(f)}),a(k).on("context_hide.vakata.jstree",a.proxy(function(){this._data.contextmenu.visible=!1},this))},this.teardown=function(){this._data.contextmenu.visible&&a.vakata.context.hide(),d.teardown.call(this)},this.show_contextmenu=function(c,d,e,f){if(c=this.get_node(c),!c||c.id===a.jstree.root)return!1;var g=this.settings.contextmenu,h=this.get_node(c,!0),i=h.children(".jstree-anchor"),j=!1,k=!1;(g.show_at_node||d===b||e===b)&&(j=i.offset(),d=j.left,e=j.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(c)&&this.activate_node(c,f),k=g.items,a.isFunction(k)&&(k=k.call(this,c,a.proxy(function(a){this._show_contextmenu(c,d,e,a)},this))),a.isPlainObject(k)&&this._show_contextmenu(c,d,e,k)},this._show_contextmenu=function(b,c,d,e){var f=this.get_node(b,!0),g=f.children(".jstree-anchor");a(k).one("context_show.vakata.jstree",a.proxy(function(b,c){var d="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";a(c.element).addClass(d)},this)),this._data.contextmenu.visible=!0,a.vakata.context.show(g,{x:c,y:d},e),this.trigger("show_contextmenu",{node:b,x:c,y:d})}},function(a){var b=!1,c={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};a.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(b){a(k).triggerHandler("context_"+b+".vakata",{reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}})},_execute:function(b){return b=c.items[b],b&&(!b._disabled||a.isFunction(b._disabled)&&!b._disabled({item:b,reference:c.reference,element:c.element}))&&b.action?b.action.call(null,{item:b,reference:c.reference,element:c.element,position:{x:c.position_x,y:c.position_y}}):!1},_parse:function(b,d){if(!b)return!1;d||(c.html="",c.items=[]);var e,f="",g=!1;return d&&(f+="<ul>"),a.each(b,function(b,d){return d?(c.items.push(d),!g&&d.separator_before&&(f+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>"),g=!1,f+="<li class='"+(d._class||"")+(d._disabled===!0||a.isFunction(d._disabled)&&d._disabled({item:d,reference:c.reference,element:c.element})?" vakata-contextmenu-disabled ":"")+"' "+(d.shortcut?" data-shortcut='"+d.shortcut+"' ":"")+">",f+="<a href='#' rel='"+(c.items.length-1)+"'>",a.vakata.context.settings.icons&&(f+="<i ",d.icon&&(f+=-1!==d.icon.indexOf("/")||-1!==d.icon.indexOf(".")?" style='background:url(\""+d.icon+"\") center center no-repeat' ":" class='"+d.icon+"' "),f+="></i><span class='vakata-contextmenu-sep'> </span>"),f+=(a.isFunction(d.label)?d.label({item:b,reference:c.reference,element:c.element}):d.label)+(d.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+d.shortcut+'">'+(d.shortcut_label||"")+"</span>":"")+"</a>",d.submenu&&(e=a.vakata.context._parse(d.submenu,!0),e&&(f+=e)),f+="</li>",void(d.separator_after&&(f+="<li class='vakata-context-separator'><a href='#' "+(a.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>",g=!0))):!0}),f=f.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),d&&(f+="</ul>"),d||(c.html=f,a.vakata.context._trigger("parse")),f.length>10?f:!1},_show_submenu:function(c){if(c=a(c),c.length&&c.children("ul").length){var d=c.children("ul"),e=c.offset().left+c.outerWidth(),f=c.offset().top,g=d.width(),h=d.height(),i=a(window).width()+a(window).scrollLeft(),j=a(window).height()+a(window).scrollTop();b?c[e-(g+10+c.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):c[e+g+10>i?"addClass":"removeClass"]("vakata-context-right"),f+h+10>j&&d.css("bottom","-1px"),d.show()}},show:function(d,e,f){var g,h,i,j,k,l,m,n,o=!0;switch(c.element&&c.element.length&&c.element.width(""),o){case!e&&!d:return!1;case!!e&&!!d:c.reference=d,c.position_x=e.x,c.position_y=e.y;break;case!e&&!!d:c.reference=d,g=d.offset(),c.position_x=g.left+d.outerHeight(),c.position_y=g.top;break;case!!e&&!d:c.position_x=e.x,c.position_y=e.y}d&&!f&&a(d).data("vakata_contextmenu")&&(f=a(d).data("vakata_contextmenu")),a.vakata.context._parse(f)&&c.element.html(c.html),c.items.length&&(c.element.appendTo("body"),h=c.element,i=c.position_x,j=c.position_y,k=h.width(),l=h.height(),m=a(window).width()+a(window).scrollLeft(),n=a(window).height()+a(window).scrollTop(),b&&(i-=h.outerWidth()-a(d).outerWidth(),i<a(window).scrollLeft()+20&&(i=a(window).scrollLeft()+20)),i+k+20>m&&(i=m-(k+20)),j+l+20>n&&(j=n-(l+20)),c.element.css({left:i,top:j}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),c.is_visible=!0,a.vakata.context._trigger("show"))},hide:function(){c.is_visible&&(c.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),c.is_visible=!1,a.vakata.context._trigger("hide"))}},a(function(){b="rtl"===a("body").css("direction");var d=!1;c.element=a("<ul class='vakata-context'></ul>"),c.element.on("mouseenter","li",function(b){b.stopImmediatePropagation(),a.contains(this,b.relatedTarget)||(d&&clearTimeout(d),c.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),a(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),a.vakata.context._show_submenu(this))}).on("mouseleave","li",function(b){a.contains(this,b.relatedTarget)||a(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(b){a(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),a.vakata.context.settings.hide_onmouseleave&&(d=setTimeout(function(b){return function(){a.vakata.context.hide()}}(this),a.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(b){b.preventDefault(),a(this).blur().parent().hasClass("vakata-context-disabled")||a.vakata.context._execute(a(this).attr("rel"))===!1||a.vakata.context.hide()}).on("keydown","a",function(b){var d=null;switch(b.which){case 13:case 32:b.type="mouseup",b.preventDefault(),a(b.currentTarget).trigger(b);break;case 37:c.is_visible&&(c.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 38:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),d.addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 39:c.is_visible&&(c.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 40:c.is_visible&&(d=c.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first(),d.length||(d=c.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),d.addClass("vakata-context-hover").children("a").focus(),b.stopImmediatePropagation(),b.preventDefault());break;case 27:a.vakata.context.hide(),b.preventDefault()}}).on("keydown",function(a){a.preventDefault();var b=c.element.find(".vakata-contextmenu-shortcut-"+a.which).parent();b.parent().not(".vakata-context-disabled")&&b.click()}),a(k).on("mousedown.vakata.jstree",function(b){c.is_visible&&!a.contains(c.element[0],b.target)&&a.vakata.context.hide()}).on("context_show.vakata.jstree",function(a,d){c.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),b&&c.element.addClass("vakata-context-rtl").css("direction","rtl"),c.element.find("ul").hide().end()})})}(a),a.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1},a.jstree.plugins.dnd=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",a.proxy(function(b){if(this.settings.dnd.large_drag_target&&a(b.target).closest(".jstree-node")[0]!==b.currentTarget)return!0;if("touchstart"===b.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var c=this.get_node(b.target),d=this.is_selected(c)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,e=d>1?d+" "+this.get_string("nodes"):this.get_text(b.currentTarget);return this.settings.core.force_text&&(e=a.vakata.html.escape(e)),c&&c.id&&c.id!==a.jstree.root&&(1===b.which||"touchstart"===b.type)&&(this.settings.dnd.is_draggable===!0||a.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,d>1?this.get_top_selected(!0):[c],b))?(this.element.trigger("mousedown.jstree"),a.vakata.dnd.start(b,{jstree:!0,origin:this,obj:this.get_node(c,!0),nodes:d>1?this.get_top_selected():[c.id]},'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+e+'<ins class="jstree-copy" style="display:none;">+</ins></div>')):void 0},this))}},a(function(){var b=!1,c=!1,d=!1,e=!1,f=a('<div id="jstree-marker"> </div>').hide();a(k).on("dnd_start.vakata.jstree",function(a,c){b=!1,d=!1,c&&c.data&&c.data.jstree&&f.appendTo("body")}).on("dnd_move.vakata.jstree",function(g,h){if(e&&clearTimeout(e),h&&h.data&&h.data.jstree&&(!h.event.target.id||"jstree-marker"!==h.event.target.id)){d=h.event;var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.jstree.reference(h.event.target),x=!1,y=!1,z=!1;if(w&&w._data&&w._data.dnd)if(f.attr("class","jstree-"+w.get_theme()+(w.settings.core.themes.responsive?" jstree-dnd-responsive":"")),h.helper.children().attr("class","jstree-"+w.get_theme()+" jstree-"+w.get_theme()+"-"+w.get_theme_variant()+" "+(w.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"show":"hide"](),h.event.target!==w.element[0]&&h.event.target!==w.get_container_ul()[0]||0!==w.get_container_ul().children().length){if(x=w.settings.dnd.large_drop_target?a(h.event.target).closest(".jstree-node").children(".jstree-anchor"):a(h.event.target).closest(".jstree-anchor"),x&&x.length&&x.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(y=x.offset(),z=h.event.pageY-y.top,k=x.outerHeight(),n=k/3>z?["b","i","a"]:z>k-k/3?["a","i","b"]:z>k/2?["i","a","b"]:["i","b","a"],a.each(n,function(d,g){switch(g){case"b":i=y.left-6,j=y.top,l=w.get_parent(x),m=x.parent().index();break;case"i":u=w.settings.dnd.inside_pos,v=w.get_node(x.parent()),i=y.left-2,j=y.top+k/2+1,l=v.id,m="first"===u?0:"last"===u?v.children.length:Math.min(u,v.children.length);break;case"a":i=y.left-6,j=y.top+k,l=w.get_parent(x),m=x.parent().index()+1}for(o=!0,p=0,q=h.data.nodes.length;q>p;p++)if(r=h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"copy_node":"move_node",s=m,"move_node"===r&&"a"===g&&h.data.origin&&h.data.origin===w&&l===w.get_parent(h.data.nodes[p])&&(t=w.get_node(l),s>a.inArray(h.data.nodes[p],t.children)&&(s-=1)),o=o&&(w&&w.settings&&w.settings.dnd&&w.settings.dnd.check_while_dragging===!1||w.check(r,h.data.origin&&h.data.origin!==w?h.data.origin.get_node(h.data.nodes[p]):h.data.nodes[p],l,s,{dnd:!0,ref:w.get_node(x.parent()),pos:g,origin:h.data.origin,is_multi:h.data.origin&&h.data.origin!==w,is_foreign:!h.data.origin})),!o){w&&w.last_error&&(c=w.last_error());break}return"i"===g&&x.parent().is(".jstree-closed")&&w.settings.dnd.open_timeout&&(e=setTimeout(function(a,b){return function(){a.open_node(b)}}(w,x),w.settings.dnd.open_timeout)),o?(b={ins:w,par:l,pos:"i"!==g||"last"!==u||0!==m||w.is_loaded(v)?m:"last"},f.css({left:i+"px",top:j+"px"}).show(),h.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),c={},n=!0,!1):void 0}),n===!0))return}else{for(o=!0,p=0,q=h.data.nodes.length;q>p&&(o=o&&w.check(h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"copy_node":"move_node",h.data.origin&&h.data.origin!==w?h.data.origin.get_node(h.data.nodes[p]):h.data.nodes[p],a.jstree.root,"last",{dnd:!0,ref:w.get_node(a.jstree.root),pos:"i",origin:h.data.origin,is_multi:h.data.origin&&h.data.origin!==w,is_foreign:!h.data.origin}),o);p++);if(o)return b={ins:w,par:a.jstree.root,pos:"last"},f.hide(),void h.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok")}b=!1,h.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),f.hide()}}).on("dnd_scroll.vakata.jstree",function(a,c){c&&c.data&&c.data.jstree&&(f.hide(),b=!1,d=!1,c.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(g,h){if(e&&clearTimeout(e),h&&h.data&&h.data.jstree){f.hide().detach();var i,j,k=[];if(b){for(i=0,j=h.data.nodes.length;j>i;i++)k[i]=h.data.origin?h.data.origin.get_node(h.data.nodes[i]):h.data.nodes[i];b.ins[h.data.origin&&(h.data.origin.settings.dnd.always_copy||h.data.origin.settings.dnd.copy&&(h.event.metaKey||h.event.ctrlKey))?"copy_node":"move_node"](k,b.par,b.pos,!1,!1,!1,h.data.origin)}else i=a(h.event.target).closest(".jstree"),i.length&&c&&c.error&&"check"===c.error&&(i=i.jstree(!0),i&&i.settings.core.error.call(this,c));d=!1,b=!1}}).on("keyup.jstree keydown.jstree",function(b,c){c=a.vakata.dnd._get(),c&&c.data&&c.data.jstree&&(c.helper.find(".jstree-copy").first()[c.data.origin&&(c.data.origin.settings.dnd.always_copy||c.data.origin.settings.dnd.copy&&(b.metaKey||b.ctrlKey))?"show":"hide"](),d&&(d.metaKey=b.metaKey,d.ctrlKey=b.ctrlKey,a.vakata.dnd._trigger("move",d)))})}),function(a){a.vakata.html={div:a("<div />"),escape:function(b){return a.vakata.html.div.text(b).html()},strip:function(b){return a.vakata.html.div.empty().append(a.parseHTML(b)).text()}};var b={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};a.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:50},_trigger:function(b,c){var d=a.vakata.dnd._get();d.event=c,a(k).triggerHandler("dnd_"+b+".vakata",d)},_get:function(){return{data:b.data,element:b.element,helper:b.helper}},_clean:function(){b.helper&&b.helper.remove(),b.scroll_i&&(clearInterval(b.scroll_i),b.scroll_i=!1),b={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},a(k).off("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(k).off("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop)},_scroll:function(c){if(!b.scroll_e||!b.scroll_l&&!b.scroll_t)return b.scroll_i&&(clearInterval(b.scroll_i),b.scroll_i=!1),!1;if(!b.scroll_i)return b.scroll_i=setInterval(a.vakata.dnd._scroll,100),!1;if(c===!0)return!1;var d=b.scroll_e.scrollTop(),e=b.scroll_e.scrollLeft();b.scroll_e.scrollTop(d+b.scroll_t*a.vakata.dnd.settings.scroll_speed),b.scroll_e.scrollLeft(e+b.scroll_l*a.vakata.dnd.settings.scroll_speed),(d!==b.scroll_e.scrollTop()||e!==b.scroll_e.scrollLeft())&&a.vakata.dnd._trigger("scroll",b.scroll_e)},start:function(c,d,e){"touchstart"===c.type&&c.originalEvent&&c.originalEvent.changedTouches&&c.originalEvent.changedTouches[0]&&(c.pageX=c.originalEvent.changedTouches[0].pageX,c.pageY=c.originalEvent.changedTouches[0].pageY,c.target=k.elementFromPoint(c.originalEvent.changedTouches[0].pageX-window.pageXOffset,c.originalEvent.changedTouches[0].pageY-window.pageYOffset)),b.is_drag&&a.vakata.dnd.stop({});try{c.currentTarget.unselectable="on",c.currentTarget.onselectstart=function(){return!1},c.currentTarget.style&&(c.currentTarget.style.MozUserSelect="none")}catch(f){}return b.init_x=c.pageX,b.init_y=c.pageY,b.data=d,b.is_down=!0,b.element=c.currentTarget,b.target=c.target,b.is_touch="touchstart"===c.type,e!==!1&&(b.helper=a("<div id='vakata-dnd'></div>").html(e).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),a(k).on("mousemove.vakata.jstree touchmove.vakata.jstree",a.vakata.dnd.drag),a(k).on("mouseup.vakata.jstree touchend.vakata.jstree",a.vakata.dnd.stop),!1},drag:function(c){if("touchmove"===c.type&&c.originalEvent&&c.originalEvent.changedTouches&&c.originalEvent.changedTouches[0]&&(c.pageX=c.originalEvent.changedTouches[0].pageX,c.pageY=c.originalEvent.changedTouches[0].pageY,c.target=k.elementFromPoint(c.originalEvent.changedTouches[0].pageX-window.pageXOffset,c.originalEvent.changedTouches[0].pageY-window.pageYOffset)),b.is_down){if(!b.is_drag){if(!(Math.abs(c.pageX-b.init_x)>(b.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)||Math.abs(c.pageY-b.init_y)>(b.is_touch?a.vakata.dnd.settings.threshold_touch:a.vakata.dnd.settings.threshold)))return;b.helper&&(b.helper.appendTo("body"),b.helper_w=b.helper.outerWidth()),b.is_drag=!0,a.vakata.dnd._trigger("start",c)}var d=!1,e=!1,f=!1,g=!1,h=!1,i=!1,j=!1,l=!1,m=!1,n=!1;return b.scroll_t=0,b.scroll_l=0,b.scroll_e=!1,a(a(c.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(a(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var d=a(this),e=d.offset();return this.scrollHeight>this.offsetHeight&&(e.top+d.height()-c.pageY<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_t=1),c.pageY-e.top<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(e.left+d.width()-c.pageX<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_l=1),c.pageX-e.left<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_l=-1)),b.scroll_t||b.scroll_l?(b.scroll_e=a(this),!1):void 0}),b.scroll_e||(d=a(k),e=a(window),f=d.height(),g=e.height(),h=d.width(),i=e.width(),j=d.scrollTop(),l=d.scrollLeft(),f>g&&c.pageY-j<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_t=-1),f>g&&g-(c.pageY-j)<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_t=1),h>i&&c.pageX-l<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_l=-1),h>i&&i-(c.pageX-l)<a.vakata.dnd.settings.scroll_proximity&&(b.scroll_l=1),(b.scroll_t||b.scroll_l)&&(b.scroll_e=d)),b.scroll_e&&a.vakata.dnd._scroll(!0),b.helper&&(m=parseInt(c.pageY+a.vakata.dnd.settings.helper_top,10),n=parseInt(c.pageX+a.vakata.dnd.settings.helper_left,10),f&&m+25>f&&(m=f-50),h&&n+b.helper_w>h&&(n=h-(b.helper_w+2)),b.helper.css({left:n+"px",top:m+"px"})),a.vakata.dnd._trigger("move",c),!1}},stop:function(c){if("touchend"===c.type&&c.originalEvent&&c.originalEvent.changedTouches&&c.originalEvent.changedTouches[0]&&(c.pageX=c.originalEvent.changedTouches[0].pageX,c.pageY=c.originalEvent.changedTouches[0].pageY,c.target=k.elementFromPoint(c.originalEvent.changedTouches[0].pageX-window.pageXOffset,c.originalEvent.changedTouches[0].pageY-window.pageYOffset)),b.is_drag)a.vakata.dnd._trigger("stop",c);else if("touchend"===c.type&&c.target===b.target){var d=setTimeout(function(){a(c.target).click()},100);a(c.target).one("click",function(){d&&clearTimeout(d)})}return a.vakata.dnd._clean(),!1}}}(a),a.jstree.defaults.massload=null,a.jstree.plugins.massload=function(b,c){this.init=function(a,b){c.init.call(this,a,b),this._data.massload={}},this._load_nodes=function(b,d,e){var f=this.settings.massload;return e&&!a.isEmptyObject(this._data.massload)?c._load_nodes.call(this,b,d,e):a.isFunction(f)?f.call(this,b,a.proxy(function(a){if(a)for(var f in a)a.hasOwnProperty(f)&&(this._data.massload[f]=a[f]);c._load_nodes.call(this,b,d,e)},this)):"object"==typeof f&&f&&f.url?(f=a.extend(!0,{},f),a.isFunction(f.url)&&(f.url=f.url.call(this,b)),a.isFunction(f.data)&&(f.data=f.data.call(this,b)),a.ajax(f).done(a.proxy(function(a,f,g){if(a)for(var h in a)a.hasOwnProperty(h)&&(this._data.massload[h]=a[h]);c._load_nodes.call(this,b,d,e)},this)).fail(a.proxy(function(a){c._load_nodes.call(this,b,d,e)},this))):c._load_nodes.call(this,b,d,e)},this._load_node=function(b,d){var e=this._data.massload[b.id];return e?this["string"==typeof e?"_append_html_data":"_append_json_data"](b,"string"==typeof e?a(a.parseHTML(e)).filter(function(){return 3!==this.nodeType}):e,function(a){d.call(this,a),
-delete this._data.massload[b.id]}):c._load_node.call(this,b,d)}},a.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},a.jstree.plugins.search=function(c,d){this.bind=function(){d.bind.call(this),this._data.search.str="",this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",a.proxy(function(b,c){if(this._data.search.som&&c.res.length){var d,e,f=this._model.data,g=[];for(d=0,e=c.res.length;e>d;d++)f[c.res[d]]&&!f[c.res[d]].state.hidden&&(g.push(c.res[d]),g=g.concat(f[c.res[d]].parents),this._data.search.smc&&(g=g.concat(f[c.res[d]].children_d)));g=a.vakata.array_remove_item(a.vakata.array_unique(g),a.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(g)}},this)).on("clear_search.jstree",a.proxy(function(a,b){this._data.search.som&&b.res.length&&this.show_node(this._data.search.hdn)},this))},this.search=function(c,d,e,f,g,h){if(c===!1||""===a.trim(c.toString()))return this.clear_search();f=this.get_node(f),f=f&&f.id?f.id:null,c=c.toString();var i,j,k=this.settings.search,l=k.ajax?k.ajax:!1,m=this._model.data,n=null,o=[],p=[];if(this._data.search.res.length&&!g&&this.clear_search(),e===b&&(e=k.show_only_matches),h===b&&(h=k.show_only_matches_children),!d&&l!==!1)return a.isFunction(l)?l.call(this,c,a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)},!0)},this),f):(l=a.extend({},l),l.data||(l.data={}),l.data.str=c,f&&(l.data.inside=f),a.ajax(l).fail(a.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(l)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)},!0)},this)));if(g||(this._data.search.str=c,this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=e,this._data.search.smc=h),n=new a.vakata.search(c,!0,{caseSensitive:k.case_sensitive,fuzzy:k.fuzzy}),a.each(m[f?f:a.jstree.root].children_d,function(a,b){var d=m[b];d.text&&(!k.search_leaves_only||d.state.loaded&&0===d.children.length)&&(k.search_callback&&k.search_callback.call(this,c,d)||!k.search_callback&&n.search(d.text).isMatch)&&(o.push(b),p=p.concat(d.parents))}),o.length){for(p=a.vakata.array_unique(p),i=0,j=p.length;j>i;i++)p[i]!==a.jstree.root&&m[p[i]]&&this.open_node(p[i],null,0)===!0&&this._data.search.opn.push(p[i]);g?(this._data.search.dom=this._data.search.dom.add(a(this.element[0].querySelectorAll("#"+a.map(o,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=a.vakata.array_unique(this._data.search.res.concat(o))):(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(o,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=o),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:c,res:this._data.search.res,show_only_matches:e})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(this._data.search.res,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=a()},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments),b&&-1!==a.inArray(b.id,this._data.search.res)){var g,h,i=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(i.className+=" jstree-search")}return b}},function(a){a.vakata.search=function(b,c,d){d=d||{},d=a.extend({},a.vakata.search.defaults,d),d.fuzzy!==!1&&(d.fuzzy=!0),b=d.caseSensitive?b:b.toLowerCase();var e,f,g,h,i=d.location,j=d.distance,k=d.threshold,l=b.length;return l>32&&(d.fuzzy=!1),d.fuzzy&&(e=1<<l-1,f=function(){var a={},c=0;for(c=0;l>c;c++)a[b.charAt(c)]=0;for(c=0;l>c;c++)a[b.charAt(c)]|=1<<l-c-1;return a}(),g=function(a,b){var c=a/l,d=Math.abs(i-b);return j?c+d/j:d?1:c}),h=function(a){if(a=d.caseSensitive?a:a.toLowerCase(),b===a||-1!==a.indexOf(b))return{isMatch:!0,score:0};if(!d.fuzzy)return{isMatch:!1,score:1};var c,h,j,m,n,o,p,q,r,s=a.length,t=k,u=a.indexOf(b,i),v=l+s,w=1,x=[];for(-1!==u&&(t=Math.min(g(0,u),t),u=a.lastIndexOf(b,i+l),-1!==u&&(t=Math.min(g(0,u),t))),u=-1,c=0;l>c;c++){for(j=0,m=v;m>j;)g(c,i+m)<=t?j=m:v=m,m=Math.floor((v-j)/2+j);for(v=m,o=Math.max(1,i-m+1),p=Math.min(i+m,s)+l,q=new Array(p+2),q[p+1]=(1<<c)-1,h=p;h>=o;h--)if(r=f[a.charAt(h-1)],0===c?q[h]=(q[h+1]<<1|1)&r:q[h]=(q[h+1]<<1|1)&r|((n[h+1]|n[h])<<1|1)|n[h+1],q[h]&e&&(w=g(c,h-1),t>=w)){if(t=w,u=h-1,x.push(u),!(u>i))break;o=Math.max(1,2*i-u)}if(g(c+1,i)>t)break;n=q}return{isMatch:u>=0,score:w}},c===!0?{search:h}:h(c)},a.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(a),a.jstree.defaults.sort=function(a,b){return this.get_text(a)>this.get_text(b)?1:-1},a.jstree.plugins.sort=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("model.jstree",a.proxy(function(a,b){this.sort(b.parent,!0)},this)).on("rename_node.jstree create_node.jstree",a.proxy(function(a,b){this.sort(b.parent||b.node.parent,!1),this.redraw_node(b.parent||b.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",a.proxy(function(a,b){this.sort(b.parent,!1),this.redraw_node(b.parent,!0)},this))},this.sort=function(b,c){var d,e;if(b=this.get_node(b),b&&b.children&&b.children.length&&(b.children.sort(a.proxy(this.settings.sort,this)),c))for(d=0,e=b.children_d.length;e>d;d++)this.sort(b.children_d[d],!1)}};var n=!1;a.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1},a.jstree.plugins.state=function(b,c){this.bind=function(){c.bind.call(this);var b=a.proxy(function(){this.element.on(this.settings.state.events,a.proxy(function(){n&&clearTimeout(n),n=setTimeout(a.proxy(function(){this.save_state()},this),100)},this)),this.trigger("state_ready")},this);this.element.on("ready.jstree",a.proxy(function(a,c){this.element.one("restore_state.jstree",b),this.restore_state()||b()},this))},this.save_state=function(){var b={state:this.get_state(),ttl:this.settings.state.ttl,sec:+new Date};a.vakata.storage.set(this.settings.state.key,JSON.stringify(b))},this.restore_state=function(){var b=a.vakata.storage.get(this.settings.state.key);if(b)try{b=JSON.parse(b)}catch(c){return!1}return b&&b.ttl&&b.sec&&+new Date-b.sec>b.ttl?!1:(b&&b.state&&(b=b.state),b&&a.isFunction(this.settings.state.filter)&&(b=this.settings.state.filter.call(this,b)),b?(this.element.one("set_state.jstree",function(c,d){d.instance.trigger("restore_state",{state:a.extend(!0,{},b)})}),this.set_state(b),!0):!1)},this.clear_state=function(){return a.vakata.storage.del(this.settings.state.key)}},function(a,b){a.vakata.storage={set:function(a,b){return window.localStorage.setItem(a,b)},get:function(a){return window.localStorage.getItem(a)},del:function(a){return window.localStorage.removeItem(a)}}}(a),a.jstree.defaults.types={"default":{}},a.jstree.defaults.types[a.jstree.root]={},a.jstree.plugins.types=function(c,d){this.init=function(c,e){var f,g;if(e&&e.types&&e.types["default"])for(f in e.types)if("default"!==f&&f!==a.jstree.root&&e.types.hasOwnProperty(f))for(g in e.types["default"])e.types["default"].hasOwnProperty(g)&&e.types[f][g]===b&&(e.types[f][g]=e.types["default"][g]);d.init.call(this,c,e),this._model.data[a.jstree.root].type=a.jstree.root},this.refresh=function(b,c){d.refresh.call(this,b,c),this._model.data[a.jstree.root].type=a.jstree.root},this.bind=function(){this.element.on("model.jstree",a.proxy(function(c,d){var e,f,g=this._model.data,h=d.nodes,i=this.settings.types,j="default";for(e=0,f=h.length;f>e;e++)j="default",g[h[e]].original&&g[h[e]].original.type&&i[g[h[e]].original.type]&&(j=g[h[e]].original.type),g[h[e]].data&&g[h[e]].data.jstree&&g[h[e]].data.jstree.type&&i[g[h[e]].data.jstree.type]&&(j=g[h[e]].data.jstree.type),g[h[e]].type=j,g[h[e]].icon===!0&&i[j].icon!==b&&(g[h[e]].icon=i[j].icon);g[a.jstree.root].type=a.jstree.root},this)),d.bind.call(this)},this.get_json=function(b,c,e){var f,g,h=this._model.data,i=c?a.extend(!0,{},c,{no_id:!1}):{},j=d.get_json.call(this,b,i,e);if(j===!1)return!1;if(a.isArray(j))for(f=0,g=j.length;g>f;f++)j[f].type=j[f].id&&h[j[f].id]&&h[j[f].id].type?h[j[f].id].type:"default",c&&c.no_id&&(delete j[f].id,j[f].li_attr&&j[f].li_attr.id&&delete j[f].li_attr.id,j[f].a_attr&&j[f].a_attr.id&&delete j[f].a_attr.id);else j.type=j.id&&h[j.id]&&h[j.id].type?h[j.id].type:"default",c&&c.no_id&&(j=this._delete_ids(j));return j},this._delete_ids=function(b){if(a.isArray(b)){for(var c=0,d=b.length;d>c;c++)b[c]=this._delete_ids(b[c]);return b}return delete b.id,b.li_attr&&b.li_attr.id&&delete b.li_attr.id,b.a_attr&&b.a_attr.id&&delete b.a_attr.id,b.children&&a.isArray(b.children)&&(b.children=this._delete_ids(b.children)),b},this.check=function(c,e,f,g,h){if(d.check.call(this,c,e,f,g,h)===!1)return!1;e=e&&e.id?e:this.get_node(e),f=f&&f.id?f:this.get_node(f);var i,j,k,l,m=e&&e.id?h&&h.origin?h.origin:a.jstree.reference(e.id):null;switch(m=m&&m._model&&m._model.data?m._model.data:null,c){case"create_node":case"move_node":case"copy_node":if("move_node"!==c||-1===a.inArray(e.id,f.children)){if(i=this.get_rules(f),i.max_children!==b&&-1!==i.max_children&&i.max_children===f.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(i.valid_children!==b&&-1!==i.valid_children&&-1===a.inArray(e.type||"default",i.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(m&&e.children_d&&e.parents){for(j=0,k=0,l=e.children_d.length;l>k;k++)j=Math.max(j,m[e.children_d[k]].parents.length);j=j-e.parents.length+1}(0>=j||j===b)&&(j=1);do{if(i.max_depth!==b&&-1!==i.max_depth&&i.max_depth<j)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;f=this.get_node(f.parent),i=this.get_rules(f),j++}while(f)}}return!0},this.get_rules=function(a){if(a=this.get_node(a),!a)return!1;var c=this.get_type(a,!0);return c.max_depth===b&&(c.max_depth=-1),c.max_children===b&&(c.max_children=-1),c.valid_children===b&&(c.valid_children=-1),c},this.get_type=function(b,c){return b=this.get_node(b),b?c?a.extend({type:b.type},this.settings.types[b.type]):b.type:!1},this.set_type=function(c,d){var e,f,g,h,i;if(a.isArray(c)){for(c=c.slice(),f=0,g=c.length;g>f;f++)this.set_type(c[f],d);return!0}return e=this.settings.types,c=this.get_node(c),e[d]&&c?(h=c.type,i=this.get_icon(c),c.type=d,(i===!0||e[h]&&e[h].icon!==b&&i===e[h].icon)&&this.set_icon(c,e[d].icon!==b?e[d].icon:!0),!0):!1}},a.jstree.defaults.unique={case_sensitive:!1,duplicate:function(a,b){return a+" ("+b+")"}},a.jstree.plugins.unique=function(c,d){this.check=function(b,c,e,f,g){if(d.check.call(this,b,c,e,f,g)===!1)return!1;if(c=c&&c.id?c:this.get_node(c),e=e&&e.id?e:this.get_node(e),!e||!e.children)return!0;var h,i,j="rename_node"===b?f:c.text,k=[],l=this.settings.unique.case_sensitive,m=this._model.data;for(h=0,i=e.children.length;i>h;h++)k.push(l?m[e.children[h]].text:m[e.children[h]].text.toLowerCase());switch(l||(j=j.toLowerCase()),b){case"delete_node":return!0;case"rename_node":return h=-1===a.inArray(j,k)||c.text&&c.text[l?"toString":"toLowerCase"]()===j,h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"create_node":return h=-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"copy_node":return h=-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"move_node":return h=c.parent===e.id&&(!g||!g.is_multi)||-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h}return!0},this.create_node=function(c,e,f,g,h){if(!e||e.text===b){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return d.create_node.call(this,c,e,f,g,h);if(f=f===b?"last":f,!f.toString().match(/^(before|after)$/)&&!h&&!this.is_loaded(c))return d.create_node.call(this,c,e,f,g,h);e||(e={});var i,j,k,l,m,n=this._model.data,o=this.settings.unique.case_sensitive,p=this.settings.unique.duplicate;for(j=i=this.get_string("New node"),k=[],l=0,m=c.children.length;m>l;l++)k.push(o?n[c.children[l]].text:n[c.children[l]].text.toLowerCase());for(l=1;-1!==a.inArray(o?j:j.toLowerCase(),k);)j=p.call(this,i,++l).toString();e.text=j}return d.create_node.call(this,c,e,f,g,h)}};var o=k.createElement("DIV");if(o.setAttribute("unselectable","on"),o.setAttribute("role","presentation"),o.className="jstree-wholerow",o.innerHTML=" ",a.jstree.plugins.wholerow=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("ready.jstree set_state.jstree",a.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",a.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var c,d,e=!1;for(c=0,d=b.selected.length;d>c;c++)e=this.get_node(b.selected[c],!0),e&&e.length&&e.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",a.proxy(function(a,b){this.get_node(b.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",a.proxy(function(a,b){"hover_node"===a.type&&this.is_disabled(b.node)||this.get_node(b.node,!0).children(".jstree-wholerow")["hover_node"===a.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",a.proxy(function(b){b.preventDefault();var c=a.Event("contextmenu",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,pageX:b.pageX,pageY:b.pageY});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c)},this)).on("click.jstree",".jstree-wholerow",function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",a.proxy(function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",a.proxy(function(a){return a.stopImmediatePropagation(),this.is_disabled(a.currentTarget)||this.hover_node(a.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",a.proxy(function(a){this.dehover_node(a.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),c.teardown.call(this)},this.redraw_node=function(b,d,e,f){if(b=c.redraw_node.apply(this,arguments)){var g=o.cloneNode(!0);-1!==a.inArray(b.id,this._data.core.selected)&&(g.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===b.id&&(g.className+=" jstree-wholerow-hovered"),b.insertBefore(g,b.childNodes[0])}return b}},k.registerElement&&Object&&Object.create){var p=Object.create(HTMLElement.prototype);p.createdCallback=function(){var b,c={core:{},plugins:[]};for(b in a.jstree.plugins)a.jstree.plugins.hasOwnProperty(b)&&this.attributes[b]&&(c.plugins.push(b),this.getAttribute(b)&&JSON.parse(this.getAttribute(b))&&(c[b]=JSON.parse(this.getAttribute(b))));for(b in a.jstree.defaults.core)a.jstree.defaults.core.hasOwnProperty(b)&&this.attributes[b]&&(c.core[b]=JSON.parse(this.getAttribute(b))||this.getAttribute(b));a(this).jstree(c)};try{k.registerElement("vakata-jstree",{prototype:p})}catch(q){}}}}),function(a){"use strict";function b(){var b=1;this.nodesFingerprint=function(a){return a.__uiNodeId||(a.__uiNodeId=b++),""+a.__uiNodeId+(a.id||"")+(a.text||"")+(a.type||"")},this.changeWatcher=function(b,c){var d,e=function(){var d,e,f=[];if(b)for(var h=a.isFunction(b)?b():b,i=0,j=h.length;j>i;i++)e=h[i],d=c(e),g[d]=e,f.push(d);return f},f=function(a,b){var c,d,e=[],f={};for(c=0,d=b.length;d>c;c++)f[b[c]]=!0;for(c=0,d=a.length;d>c;c++)f[a[c]]||e.push(a[c]);return e},g={},h=function(a,b){var e,h,i,j,k={},l=f(b,a);for(e=0,h=l.length;h>e;e++){var m=l[e];i=g[m],delete g[m];var n=c(i);n===m?d.onRemoved(i):(k[n]=m,d.onChanged(i))}var o=f(a,b);for(e=0,h=o.length;h>e;e++)j=o[e],i=g[j],k[j]||d.onAdded(i)};return d={subscribe:function(a,b){a.$watch(e,function(a,c){b&&b(a,c)===!1||h(a,c)},!0)},onAdded:a.noop,onChanged:a.noop,onRemoved:a.noop}}}function c(){return{restrict:"A",scope:{treeData:"=ngModel",shouldApply:"&"},controller:"jsTreeCtrl",link:function(b,c,d,e){function f(a,b,c){if(c.treeEvents)for(var d=c.treeEvents.split(";"),e=0;e<d.length;e++)if(d[e].length>0){var f=d[e].split(":")[0],g=f+".jstree",h=d[e].split(":")[1];a.tree.on(g,a.$parent.$eval(h))}}function g(){var c=d.jsTree?b.$parent.$eval(d.jsTree):{};h={},a.copy(c,h);var e=JSON.stringify(h);return h.core?h.core.data=b.treeData:h.core={data:b.treeData},e}var h=null,i=e.changeWatcher(b.treeData,e.nodesFingerprint),j=!1;b.destroy=function(){if(d.tree)if(-1!==d.tree.indexOf(".")){var a=d.tree.split(".");b.tree=b.$parent[a[0]][a[1]]=c}else b.tree=b.$parent[d.tree]=c;else b.tree=c;b.tree.jstree("destroy")},b.init=function(){b.tree.jstree(h),f(b,c,d)},i.onChanged=function(c){a.isDefined(b.tree.jstree(!0).set_type)&&b.tree.jstree(!0).set_type(c.id,c.type),b.tree.jstree(!0).rename_node(c.id,c.text)},i.onAdded=function(a){for(;j;);j=!0;var c=b.tree.jstree(!0).get_node(a.parent),d=b.tree.jstree(!0).create_node(c,a,"inside",function(){j=!1});d||(j=!1)},i.onRemoved=function(a){b.tree.jstree(!0).delete_node(a.id)},i.subscribe(b,function(){return b.shouldApply?b.shouldApply():!0}),b.$watch(g,function(){b.destroy(),b.init()})}}}var d=a.module("ngJsTree",[]);d.controller("jsTreeCtrl",b),d.directive("jsTree",c)}(angular),!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.io=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":2}],2:[function(a,b,c){function d(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d=e(a),f=d.source,j=d.id;return b.forceNew||b["force new connection"]||!1===b.multiplex?(h("ignoring socket cache for %s",f),c=g(f,b)):(i[j]||(h("new io instance for %s",f),i[j]=g(f,b)),c=i[j]),c.socket(d.path)}var e=a("./url"),f=a("socket.io-parser"),g=a("./manager"),h=a("debug")("socket.io-client");b.exports=c=d;var i=c.managers={};c.protocol=f.protocol,c.connect=d,c.Manager=a("./manager"),c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":44}],3:[function(a,b,c){function d(a,b){return this instanceof d?(a&&"object"==typeof a&&(b=a,a=void 0),b=b||{},b.path=b.path||"/socket.io",this.nsps={},this.subs=[],this.opts=b,this.reconnection(b.reconnection!==!1),this.reconnectionAttempts(b.reconnectionAttempts||1/0),this.reconnectionDelay(b.reconnectionDelay||1e3),this.reconnectionDelayMax(b.reconnectionDelayMax||5e3),this.randomizationFactor(b.randomizationFactor||.5),this.backoff=new m({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==b.timeout?2e4:b.timeout),this.readyState="closed",this.uri=a,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new h.Encoder,this.decoder=new h.Decoder,this.autoConnect=b.autoConnect!==!1,void(this.autoConnect&&this.open())):new d(a,b)}var e=(a("./url"),a("engine.io-client")),f=a("./socket"),g=a("component-emitter"),h=a("socket.io-parser"),i=a("./on"),j=a("component-bind"),k=(a("object-component"),a("debug")("socket.io-client:manager")),l=a("indexof"),m=a("backo2");b.exports=d,d.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var a in this.nsps)this.nsps[a].emit.apply(this.nsps[a],arguments)},d.prototype.updateSocketIds=function(){for(var a in this.nsps)this.nsps[a].id=this.engine.id},g(d.prototype),d.prototype.reconnection=function(a){return arguments.length?(this._reconnection=!!a,this):this._reconnection},d.prototype.reconnectionAttempts=function(a){return arguments.length?(this._reconnectionAttempts=a,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(a){return arguments.length?(this._reconnectionDelay=a,this.backoff&&this.backoff.setMin(a),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(a){return arguments.length?(this._randomizationFactor=a,this.backoff&&this.backoff.setJitter(a),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(a){return arguments.length?(this._reconnectionDelayMax=a,this.backoff&&this.backoff.setMax(a),this):this._reconnectionDelayMax},d.prototype.timeout=function(a){return arguments.length?(this._timeout=a,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},d.prototype.open=d.prototype.connect=function(a){if(k("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;k("opening %s",this.uri),this.engine=e(this.uri,this.opts);var b=this.engine,c=this;this.readyState="opening",this.skipReconnect=!1;var d=i(b,"open",function(){c.onopen(),a&&a()}),f=i(b,"error",function(b){if(k("connect_error"),c.cleanup(),c.readyState="closed",c.emitAll("connect_error",b),a){var d=new Error("Connection error");d.data=b,a(d)}else c.maybeReconnectOnOpen()});if(!1!==this._timeout){var g=this._timeout;k("connect attempt will timeout after %d",g);var h=setTimeout(function(){k("connect attempt timed out after %d",g),d.destroy(),b.close(),b.emit("error","timeout"),c.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(h)}})}return this.subs.push(d),this.subs.push(f),this},d.prototype.onopen=function(){k("open"),this.cleanup(),this.readyState="open",this.emit("open");var a=this.engine;this.subs.push(i(a,"data",j(this,"ondata"))),this.subs.push(i(this.decoder,"decoded",j(this,"ondecoded"))),this.subs.push(i(a,"error",j(this,"onerror"))),this.subs.push(i(a,"close",j(this,"onclose")))},d.prototype.ondata=function(a){this.decoder.add(a)},d.prototype.ondecoded=function(a){this.emit("packet",a)},d.prototype.onerror=function(a){k("error",a),this.emitAll("error",a)},d.prototype.socket=function(a){var b=this.nsps[a];if(!b){b=new f(this,a),this.nsps[a]=b;var c=this;b.on("connect",function(){b.id=c.engine.id,~l(c.connected,b)||c.connected.push(b)})}return b},d.prototype.destroy=function(a){var b=l(this.connected,a);~b&&this.connected.splice(b,1),this.connected.length||this.close()},d.prototype.packet=function(a){k("writing packet %j",a);var b=this;b.encoding?b.packetBuffer.push(a):(b.encoding=!0,this.encoder.encode(a,function(a){for(var c=0;c<a.length;c++)b.engine.write(a[c]);b.encoding=!1,b.processPacketQueue()}))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var a=this.packetBuffer.shift();this.packet(a)}},d.prototype.cleanup=function(){for(var a;a=this.subs.shift();)a.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(a){k("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",a),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var a=this;if(this.backoff.attempts>=this._reconnectionAttempts)k("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var b=this.backoff.duration();k("will wait %dms before reconnect attempt",b),this.reconnecting=!0;var c=setTimeout(function(){a.skipReconnect||(k("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(b){b?(k("reconnect attempt error"),a.reconnecting=!1,a.reconnect(),a.emitAll("reconnect_error",b.data)):(k("reconnect success"),a.onreconnect())}))},b);this.subs.push({destroy:function(){clearTimeout(c)}})}},d.prototype.onreconnect=function(){var a=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(a,b,c){function d(a,b,c){return a.on(b,c),{destroy:function(){a.removeListener(b,c)}}}b.exports=d},{}],5:[function(a,b,c){function d(a,b){this.io=a,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var e=a("socket.io-parser"),f=a("component-emitter"),g=a("to-array"),h=a("./on"),i=a("component-bind"),j=a("debug")("socket.io-client:socket"),k=a("has-binary");b.exports=c=d;var l={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},m=f.prototype.emit;f(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var a=this.io;this.subs=[h(a,"open",i(this,"onopen")),h(a,"packet",i(this,"onpacket")),h(a,"close",i(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this)},d.prototype.send=function(){var a=g(arguments);return a.unshift("message"),this.emit.apply(this,a),this},d.prototype.emit=function(a){if(l.hasOwnProperty(a))return m.apply(this,arguments),this;var b=g(arguments),c=e.EVENT;k(b)&&(c=e.BINARY_EVENT);var d={type:c,data:b};return"function"==typeof b[b.length-1]&&(j("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),d.id=this.ids++),this.connected?this.packet(d):this.sendBuffer.push(d),this},d.prototype.packet=function(a){a.nsp=this.nsp,this.io.packet(a)},d.prototype.onopen=function(){j("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:e.CONNECT})},d.prototype.onclose=function(a){j("close (%s)",a),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",a)},d.prototype.onpacket=function(a){if(a.nsp==this.nsp)switch(a.type){case e.CONNECT:this.onconnect();break;case e.EVENT:this.onevent(a);break;case e.BINARY_EVENT:this.onevent(a);break;case e.ACK:this.onack(a);break;case e.BINARY_ACK:this.onack(a);break;case e.DISCONNECT:this.ondisconnect();break;case e.ERROR:this.emit("error",a.data)}},d.prototype.onevent=function(a){var b=a.data||[];j("emitting event %j",b),null!=a.id&&(j("attaching ack callback to event"),b.push(this.ack(a.id))),this.connected?m.apply(this,b):this.receiveBuffer.push(b)},d.prototype.ack=function(a){var b=this,c=!1;return function(){if(!c){c=!0;var d=g(arguments);j("sending ack %j",d);var f=k(d)?e.BINARY_ACK:e.ACK;b.packet({type:f,id:a,data:d})}}},d.prototype.onack=function(a){j("calling ack %s with %j",a.id,a.data);var b=this.acks[a.id];b.apply(this,a.data),delete this.acks[a.id]},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var a;for(a=0;a<this.receiveBuffer.length;a++)m.apply(this,this.receiveBuffer[a]);for(this.receiveBuffer=[],a=0;a<this.sendBuffer.length;a++)this.packet(this.sendBuffer[a]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){j("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var a=0;a<this.subs.length;a++)this.subs[a].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(j("performing disconnect (%s)",this.nsp),this.packet({type:e.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":4,"component-bind":8,"component-emitter":9,debug:10,"has-binary":36,"socket.io-parser":44,"to-array":48}],6:[function(a,b,c){(function(c){function d(a,b){var d=a,b=b||c.location;return null==a&&(a=b.protocol+"//"+b.host),"string"==typeof a&&("/"==a.charAt(0)&&(a="/"==a.charAt(1)?b.protocol+a:b.hostname+a),/^(https?|wss?):\/\//.test(a)||(f("protocol-less url %s",a),a="undefined"!=typeof b?b.protocol+"//"+a:"https://"+a),f("parse %s",a),d=e(a)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/",d.id=d.protocol+"://"+d.host+":"+d.port,d.href=d.protocol+"://"+d.host+(b&&b.port==d.port?"":":"+d.port),d}var e=a("parseuri"),f=a("debug")("socket.io-client:url");b.exports=d}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:10,parseuri:42}],7:[function(a,b,c){function d(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}b.exports=d,d.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var b=Math.random(),c=Math.floor(b*this.jitter*a);
-a=0==(1&Math.floor(10*b))?a-c:a+c}return 0|Math.min(a,this.max)},d.prototype.reset=function(){this.attempts=0},d.prototype.setMin=function(a){this.ms=a},d.prototype.setMax=function(a){this.max=a},d.prototype.setJitter=function(a){this.jitter=a}},{}],8:[function(a,b,c){var d=[].slice;b.exports=function(a,b){if("string"==typeof b&&(b=a[b]),"function"!=typeof b)throw new Error("bind() requires a function");var c=d.call(arguments,2);return function(){return b.apply(a,c.concat(d.call(arguments)))}}},{}],9:[function(a,b,c){function d(a){return a?e(a):void 0}function e(a){for(var b in d.prototype)a[b]=d.prototype[b];return a}b.exports=d,d.prototype.on=d.prototype.addEventListener=function(a,b){return this._callbacks=this._callbacks||{},(this._callbacks[a]=this._callbacks[a]||[]).push(b),this},d.prototype.once=function(a,b){function c(){d.off(a,c),b.apply(this,arguments)}var d=this;return this._callbacks=this._callbacks||{},c.fn=b,this.on(a,c),this},d.prototype.off=d.prototype.removeListener=d.prototype.removeAllListeners=d.prototype.removeEventListener=function(a,b){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var c=this._callbacks[a];if(!c)return this;if(1==arguments.length)return delete this._callbacks[a],this;for(var d,e=0;e<c.length;e++)if(d=c[e],d===b||d.fn===b){c.splice(e,1);break}return this},d.prototype.emit=function(a){this._callbacks=this._callbacks||{};var b=[].slice.call(arguments,1),c=this._callbacks[a];if(c){c=c.slice(0);for(var d=0,e=c.length;e>d;++d)c[d].apply(this,b)}return this},d.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks[a]||[]},d.prototype.hasListeners=function(a){return!!this.listeners(a).length}},{}],10:[function(a,b,c){function d(a){return d.enabled(a)?function(b){b=e(b);var c=new Date,f=c-(d[a]||c);d[a]=c,b=a+" "+b+" +"+d.humanize(f),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function e(a){return a instanceof Error?a.stack||a.message:a}b.exports=d,d.names=[],d.skips=[],d.enable=function(a){try{localStorage.debug=a}catch(b){}for(var c=(a||"").split(/[\s,]+/),e=c.length,f=0;e>f;f++)a=c[f].replace("*",".*?"),"-"===a[0]?d.skips.push(new RegExp("^"+a.substr(1)+"$")):d.names.push(new RegExp("^"+a+"$"))},d.disable=function(){d.enable("")},d.humanize=function(a){var b=1e3,c=6e4,d=60*c;return a>=d?(a/d).toFixed(1)+"h":a>=c?(a/c).toFixed(1)+"m":a>=b?(a/b|0)+"s":a+"ms"},d.enabled=function(a){for(var b=0,c=d.skips.length;c>b;b++)if(d.skips[b].test(a))return!1;for(var b=0,c=d.names.length;c>b;b++)if(d.names[b].test(a))return!0;return!1};try{window.localStorage&&d.enable(localStorage.debug)}catch(f){}},{}],11:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":12}],12:[function(a,b,c){b.exports=a("./socket"),b.exports.parser=a("engine.io-parser")},{"./socket":13,"engine.io-parser":25}],13:[function(a,b,c){(function(c){function d(a,b){if(!(this instanceof d))return new d(a,b);if(b=b||{},a&&"object"==typeof a&&(b=a,a=null),a&&(a=k(a),b.host=a.host,b.secure="https"==a.protocol||"wss"==a.protocol,b.port=a.port,a.query&&(b.query=a.query)),this.secure=null!=b.secure?b.secure:c.location&&"https:"==location.protocol,b.host){var e=b.host.split(":");b.hostname=e.shift(),e.length?b.port=e.pop():b.port||(b.port=this.secure?"443":"80")}this.agent=b.agent||!1,this.hostname=b.hostname||(c.location?location.hostname:"localhost"),this.port=b.port||(c.location&&location.port?location.port:this.secure?443:80),this.query=b.query||{},"string"==typeof this.query&&(this.query=m.decode(this.query)),this.upgrade=!1!==b.upgrade,this.path=(b.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!b.forceJSONP,this.jsonp=!1!==b.jsonp,this.forceBase64=!!b.forceBase64,this.enablesXDR=!!b.enablesXDR,this.timestampParam=b.timestampParam||"t",this.timestampRequests=b.timestampRequests,this.transports=b.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=b.policyPort||843,this.rememberUpgrade=b.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=b.onlyBinaryUpgrades,this.pfx=b.pfx||null,this.key=b.key||null,this.passphrase=b.passphrase||null,this.cert=b.cert||null,this.ca=b.ca||null,this.ciphers=b.ciphers||null,this.rejectUnauthorized=b.rejectUnauthorized||null,this.open()}function e(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}var f=a("./transports"),g=a("component-emitter"),h=a("debug")("engine.io-client:socket"),i=a("indexof"),j=a("engine.io-parser"),k=a("parseuri"),l=a("parsejson"),m=a("parseqs");b.exports=d,d.priorWebsocketSuccess=!1,g(d.prototype),d.protocol=j.protocol,d.Socket=d,d.Transport=a("./transport"),d.transports=a("./transports"),d.parser=a("engine.io-parser"),d.prototype.createTransport=function(a){h('creating transport "%s"',a);var b=e(this.query);b.EIO=j.protocol,b.transport=a,this.id&&(b.sid=this.id);var c=new f[a]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:b,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return c},d.prototype.open=function(){var a;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))a="websocket";else{if(0==this.transports.length){var b=this;return void setTimeout(function(){b.emit("error","No transports available")},0)}a=this.transports[0]}this.readyState="opening";var a;try{a=this.createTransport(a)}catch(c){return this.transports.shift(),void this.open()}a.open(),this.setTransport(a)},d.prototype.setTransport=function(a){h("setting transport %s",a.name);var b=this;this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=a,a.on("drain",function(){b.onDrain()}).on("packet",function(a){b.onPacket(a)}).on("error",function(a){b.onError(a)}).on("close",function(){b.onClose("transport close")})},d.prototype.probe=function(a){function b(){if(m.onlyBinaryUpgrades){var b=!this.supportsBinary&&m.transport.supportsBinary;l=l||b}l||(h('probe transport "%s" opened',a),k.send([{type:"ping",data:"probe"}]),k.once("packet",function(b){if(!l)if("pong"==b.type&&"probe"==b.data){if(h('probe transport "%s" pong',a),m.upgrading=!0,m.emit("upgrading",k),!k)return;d.priorWebsocketSuccess="websocket"==k.name,h('pausing current transport "%s"',m.transport.name),m.transport.pause(function(){l||"closed"!=m.readyState&&(h("changing transport and sending upgrade packet"),j(),m.setTransport(k),k.send([{type:"upgrade"}]),m.emit("upgrade",k),k=null,m.upgrading=!1,m.flush())})}else{h('probe transport "%s" failed',a);var c=new Error("probe error");c.transport=k.name,m.emit("upgradeError",c)}}))}function c(){l||(l=!0,j(),k.close(),k=null)}function e(b){var d=new Error("probe error: "+b);d.transport=k.name,c(),h('probe transport "%s" failed because of error: %s',a,b),m.emit("upgradeError",d)}function f(){e("transport closed")}function g(){e("socket closed")}function i(a){k&&a.name!=k.name&&(h('"%s" works - aborting "%s"',a.name,k.name),c())}function j(){k.removeListener("open",b),k.removeListener("error",e),k.removeListener("close",f),m.removeListener("close",g),m.removeListener("upgrading",i)}h('probing transport "%s"',a);var k=this.createTransport(a,{probe:1}),l=!1,m=this;d.priorWebsocketSuccess=!1,k.once("open",b),k.once("error",e),k.once("close",f),this.once("close",g),this.once("upgrading",i),k.open()},d.prototype.onOpen=function(){if(h("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){h("starting upgrade probes");for(var a=0,b=this.upgrades.length;b>a;a++)this.probe(this.upgrades[a])}},d.prototype.onPacket=function(a){if("opening"==this.readyState||"open"==this.readyState)switch(h('socket receive: type "%s", data "%s"',a.type,a.data),this.emit("packet",a),this.emit("heartbeat"),a.type){case"open":this.onHandshake(l(a.data));break;case"pong":this.setPing();break;case"error":var b=new Error("server error");b.code=a.data,this.emit("error",b);break;case"message":this.emit("data",a.data),this.emit("message",a.data)}else h('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(a){this.emit("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this.upgrades=this.filterUpgrades(a.upgrades),this.pingInterval=a.pingInterval,this.pingTimeout=a.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(a){clearTimeout(this.pingTimeoutTimer);var b=this;b.pingTimeoutTimer=setTimeout(function(){"closed"!=b.readyState&&b.onClose("ping timeout")},a||b.pingInterval+b.pingTimeout)},d.prototype.setPing=function(){var a=this;clearTimeout(a.pingIntervalTimer),a.pingIntervalTimer=setTimeout(function(){h("writing ping packet - expecting pong within %sms",a.pingTimeout),a.ping(),a.onHeartbeat(a.pingTimeout)},a.pingInterval)},d.prototype.ping=function(){this.sendPacket("ping")},d.prototype.onDrain=function(){for(var a=0;a<this.prevBufferLen;a++)this.callbackBuffer[a]&&this.callbackBuffer[a]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0==this.writeBuffer.length?this.emit("drain"):this.flush()},d.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(h("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},d.prototype.write=d.prototype.send=function(a,b){return this.sendPacket("message",a,b),this},d.prototype.sendPacket=function(a,b,c){if("closing"!=this.readyState&&"closed"!=this.readyState){var d={type:a,data:b};this.emit("packetCreate",d),this.writeBuffer.push(d),this.callbackBuffer.push(c),this.flush()}},d.prototype.close=function(){function a(){d.onClose("forced close"),h("socket closing - telling transport to close"),d.transport.close()}function b(){d.removeListener("upgrade",b),d.removeListener("upgradeError",b),a()}function c(){d.once("upgrade",b),d.once("upgradeError",b)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var d=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?c():a()}):this.upgrading?c():a()}return this},d.prototype.onError=function(a){h("socket error %j",a),d.priorWebsocketSuccess=!1,this.emit("error",a),this.onClose("transport error",a)},d.prototype.onClose=function(a,b){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){h('socket close with reason: "%s"',a);var c=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){c.writeBuffer=[],c.callbackBuffer=[],c.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",a,b)}},d.prototype.filterUpgrades=function(a){for(var b=[],c=0,d=a.length;d>c;c++)~i(this.transports,a[c])&&b.push(a[c]);return b}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transport":14,"./transports":15,"component-emitter":9,debug:22,"engine.io-parser":25,indexof:40,parsejson:32,parseqs:33,parseuri:34}],14:[function(a,b,c){function d(a){this.path=a.path,this.hostname=a.hostname,this.port=a.port,this.secure=a.secure,this.query=a.query,this.timestampParam=a.timestampParam,this.timestampRequests=a.timestampRequests,this.readyState="",this.agent=a.agent||!1,this.socket=a.socket,this.enablesXDR=a.enablesXDR,this.pfx=a.pfx,this.key=a.key,this.passphrase=a.passphrase,this.cert=a.cert,this.ca=a.ca,this.ciphers=a.ciphers,this.rejectUnauthorized=a.rejectUnauthorized}var e=a("engine.io-parser"),f=a("component-emitter");b.exports=d,f(d.prototype),d.timestamps=0,d.prototype.onError=function(a,b){var c=new Error(a);return c.type="TransportError",c.description=b,this.emit("error",c),this},d.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},d.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},d.prototype.send=function(a){if("open"!=this.readyState)throw new Error("Transport not open");this.write(a)},d.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},d.prototype.onData=function(a){var b=e.decodePacket(a,this.socket.binaryType);this.onPacket(b)},d.prototype.onPacket=function(a){this.emit("packet",a)},d.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":9,"engine.io-parser":25}],15:[function(a,b,c){(function(b){function d(a){var c,d=!1,h=!1,i=!1!==a.jsonp;if(b.location){var j="https:"==location.protocol,k=location.port;k||(k=j?443:80),d=a.hostname!=location.hostname||k!=a.port,h=a.secure!=j}if(a.xdomain=d,a.xscheme=h,c=new e(a),"open"in c&&!a.forceJSONP)return new f(a);if(!i)throw new Error("JSONP disabled");return new g(a)}var e=a("xmlhttprequest"),f=a("./polling-xhr"),g=a("./polling-jsonp"),h=a("./websocket");c.polling=d,c.websocket=h}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(a,b,c){(function(c){function d(){}function e(a){f.call(this,a),this.query=this.query||{},h||(c.___eio||(c.___eio=[]),h=c.___eio),this.index=h.length;var b=this;h.push(function(a){b.onData(a)}),this.query.j=this.index,c.document&&c.addEventListener&&c.addEventListener("beforeunload",function(){b.script&&(b.script.onerror=d)},!1)}var f=a("./polling"),g=a("component-inherit");b.exports=e;var h,i=/\n/g,j=/\\n/g;g(e,f),e.prototype.supportsBinary=!1,e.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),f.prototype.doClose.call(this)},e.prototype.doPoll=function(){var a=this,b=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),b.async=!0,b.src=this.uri(),b.onerror=function(b){a.onError("jsonp poll error",b)};var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c),this.script=b;var d="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);d&&setTimeout(function(){var a=document.createElement("iframe");document.body.appendChild(a),document.body.removeChild(a)},100)},e.prototype.doWrite=function(a,b){function c(){d(),b()}function d(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(a){e.onError("jsonp polling iframe removal error",a)}try{var b='<iframe src="javascript:0" name="'+e.iframeId+'">';f=document.createElement(b)}catch(a){f=document.createElement("iframe"),f.name=e.iframeId,f.src="javascript:0"}f.id=e.iframeId,e.form.appendChild(f),e.iframe=f}var e=this;if(!this.form){var f,g=document.createElement("form"),h=document.createElement("textarea"),k=this.iframeId="eio_iframe_"+this.index;g.className="socketio",g.style.position="absolute",g.style.top="-1000px",g.style.left="-1000px",g.target=k,g.method="POST",g.setAttribute("accept-charset","utf-8"),h.name="d",g.appendChild(h),document.body.appendChild(g),this.form=g,this.area=h}this.form.action=this.uri(),d(),a=a.replace(j,"\\\n"),this.area.value=a.replace(i,"\\n");try{this.form.submit()}catch(l){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==e.iframe.readyState&&c()}:this.iframe.onload=c}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-inherit":21}],17:[function(a,b,c){(function(c){function d(){}function e(a){if(i.call(this,a),c.location){var b="https:"==location.protocol,d=location.port;d||(d=b?443:80),this.xd=a.hostname!=c.location.hostname||d!=a.port,this.xs=a.secure!=b}}function f(a){this.method=a.method||"GET",this.uri=a.uri,this.xd=!!a.xd,this.xs=!!a.xs,this.async=!1!==a.async,this.data=void 0!=a.data?a.data:null,this.agent=a.agent,this.isBinary=a.isBinary,this.supportsBinary=a.supportsBinary,this.enablesXDR=a.enablesXDR,this.pfx=a.pfx,this.key=a.key,this.passphrase=a.passphrase,this.cert=a.cert,this.ca=a.ca,this.ciphers=a.ciphers,this.rejectUnauthorized=a.rejectUnauthorized,this.create()}function g(){for(var a in f.requests)f.requests.hasOwnProperty(a)&&f.requests[a].abort()}var h=a("xmlhttprequest"),i=a("./polling"),j=a("component-emitter"),k=a("component-inherit"),l=a("debug")("engine.io-client:polling-xhr");b.exports=e,b.exports.Request=f,k(e,i),e.prototype.supportsBinary=!0,e.prototype.request=function(a){return a=a||{},a.uri=this.uri(),a.xd=this.xd,a.xs=this.xs,a.agent=this.agent||!1,a.supportsBinary=this.supportsBinary,a.enablesXDR=this.enablesXDR,a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized,new f(a)},e.prototype.doWrite=function(a,b){var c="string"!=typeof a&&void 0!==a,d=this.request({method:"POST",data:a,isBinary:c}),e=this;d.on("success",b),d.on("error",function(a){e.onError("xhr post error",a)}),this.sendXhr=d},e.prototype.doPoll=function(){l("xhr poll");var a=this.request(),b=this;a.on("data",function(a){b.onData(a)}),a.on("error",function(a){b.onError("xhr poll error",a)}),this.pollXhr=a},j(f.prototype),f.prototype.create=function(){var a={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized;var b=this.xhr=new h(a),d=this;try{if(l("xhr open %s: %s",this.method,this.uri),b.open(this.method,this.uri,this.async),this.supportsBinary&&(b.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?b.setRequestHeader("Content-type","application/octet-stream"):b.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}"withCredentials"in b&&(b.withCredentials=!0),this.hasXDR()?(b.onload=function(){d.onLoad()},b.onerror=function(){d.onError(b.responseText)}):b.onreadystatechange=function(){4==b.readyState&&(200==b.status||1223==b.status?d.onLoad():setTimeout(function(){d.onError(b.status)},0))},l("xhr data %s",this.data),b.send(this.data)}catch(e){return void setTimeout(function(){d.onError(e)},0)}c.document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(a){this.emit("data",a),this.onSuccess()},f.prototype.onError=function(a){this.emit("error",a),this.cleanup(!0)},f.prototype.cleanup=function(a){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=d:this.xhr.onreadystatechange=d,a)try{this.xhr.abort()}catch(b){}c.document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var a;try{var b;try{b=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(c){}a="application/octet-stream"===b?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(c){this.onError(c)}null!=a&&this.onData(a)},f.prototype.hasXDR=function(){return"undefined"!=typeof c.XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},c.document&&(f.requestsCount=0,f.requests={},c.attachEvent?c.attachEvent("onunload",g):c.addEventListener&&c.addEventListener("beforeunload",g,!1))}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(a,b,c){function d(a){var b=a&&a.forceBase64;(!j||b)&&(this.supportsBinary=!1),e.call(this,a)}var e=a("../transport"),f=a("parseqs"),g=a("engine.io-parser"),h=a("component-inherit"),i=a("debug")("engine.io-client:polling");b.exports=d;var j=function(){var b=a("xmlhttprequest"),c=new b({xdomain:!1});return null!=c.responseType}();h(d,e),d.prototype.name="polling",d.prototype.doOpen=function(){this.poll()},d.prototype.pause=function(a){function b(){i("paused"),c.readyState="paused",a()}var c=this;if(this.readyState="pausing",this.polling||!this.writable){var d=0;this.polling&&(i("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){i("pre-pause polling complete"),--d||b()})),this.writable||(i("we are currently writing - waiting to pause"),d++,this.once("drain",function(){i("pre-pause writing complete"),--d||b()}))}else b()},d.prototype.poll=function(){i("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},d.prototype.onData=function(a){var b=this;i("polling got data %s",a);var c=function(a,c,d){return"opening"==b.readyState&&b.onOpen(),"close"==a.type?(b.onClose(),!1):void b.onPacket(a)};g.decodePayload(a,this.socket.binaryType,c),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():i('ignoring poll - transport state "%s"',this.readyState))},d.prototype.doClose=function(){function a(){i("writing close packet"),b.write([{type:"close"}])}var b=this;"open"==this.readyState?(i("transport open - closing"),a()):(i("transport not open - deferring close"),this.once("open",a))},d.prototype.write=function(a){var b=this;this.writable=!1;var c=function(){b.writable=!0,b.emit("drain")},b=this;g.encodePayload(a,this.supportsBinary,function(a){b.doWrite(a,c)})},d.prototype.uri=function(){var a=this.query||{},b=this.secure?"https":"http",c="";return!1!==this.timestampRequests&&(a[this.timestampParam]=+new Date+"-"+e.timestamps++),this.supportsBinary||a.sid||(a.b64=1),a=f.encode(a),this.port&&("https"==b&&443!=this.port||"http"==b&&80!=this.port)&&(c=":"+this.port),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,xmlhttprequest:20}],19:[function(a,b,c){function d(a){var b=a&&a.forceBase64;b&&(this.supportsBinary=!1),e.call(this,a)}var e=a("../transport"),f=a("engine.io-parser"),g=a("parseqs"),h=a("component-inherit"),i=a("debug")("engine.io-client:websocket"),j=a("ws");b.exports=d,h(d,e),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var a=this.uri(),b=void 0,c={agent:this.agent};c.pfx=this.pfx,c.key=this.key,c.passphrase=this.passphrase,c.cert=this.cert,c.ca=this.ca,c.ciphers=this.ciphers,c.rejectUnauthorized=this.rejectUnauthorized,this.ws=new j(a,b,c),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var a=this;this.ws.onopen=function(){a.onOpen()},this.ws.onclose=function(){a.onClose()},this.ws.onmessage=function(b){a.onData(b.data)},this.ws.onerror=function(b){a.onError("websocket error",b)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(d.prototype.onData=function(a){var b=this;setTimeout(function(){e.prototype.onData.call(b,a)},0)}),d.prototype.write=function(a){function b(){c.writable=!0,c.emit("drain")}var c=this;this.writable=!1;for(var d=0,e=a.length;e>d;d++)f.encodePacket(a[d],this.supportsBinary,function(a){try{c.ws.send(a)}catch(b){i("websocket closed before onclose event")}});setTimeout(b,0)},d.prototype.onClose=function(){e.prototype.onClose.call(this)},d.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},d.prototype.uri=function(){var a=this.query||{},b=this.secure?"wss":"ws",c="";return this.port&&("wss"==b&&443!=this.port||"ws"==b&&80!=this.port)&&(c=":"+this.port),this.timestampRequests&&(a[this.timestampParam]=+new Date),this.supportsBinary||(a.b64=1),a=g.encode(a),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a},d.prototype.check=function(){return!(!j||"__initialize"in j&&this.name===d.prototype.name)}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,ws:35}],20:[function(a,b,c){var d=a("has-cors");b.exports=function(a){var b=a.xdomain,c=a.xscheme,e=a.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!b||d))return new XMLHttpRequest}catch(f){}try{if("undefined"!=typeof XDomainRequest&&!c&&e)return new XDomainRequest}catch(f){}if(!b)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}},{"has-cors":38}],21:[function(a,b,c){b.exports=function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],22:[function(a,b,c){function d(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function e(){var a=arguments,b=this.useColors;if(a[0]=(b?"%c":"")+this.namespace+(b?" %c":" ")+a[0]+(b?"%c ":" ")+"+"+c.humanize(this.diff),!b)return a;var d="color: "+this.color;a=[a[0],d,"color: inherit"].concat(Array.prototype.slice.call(a,1));var e=0,f=0;return a[0].replace(/%[a-z%]/g,function(a){"%%"!==a&&(e++,"%c"===a&&(f=e))}),a.splice(f,0,d),a}function f(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function g(a){try{null==a?localStorage.removeItem("debug"):localStorage.debug=a}catch(b){}}function h(){var a;try{a=localStorage.debug}catch(b){}return a}c=b.exports=a("./debug"),c.log=f,c.formatArgs=e,c.save=g,c.load=h,c.useColors=d,c.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],c.formatters.j=function(a){return JSON.stringify(a)},c.enable(h())},{"./debug":23}],23:[function(a,b,c){function d(){return c.colors[k++%c.colors.length]}function e(a){function b(){}function e(){var a=e,b=+new Date,f=b-(j||b);a.diff=f,a.prev=j,a.curr=b,j=b,null==a.useColors&&(a.useColors=c.useColors()),null==a.color&&a.useColors&&(a.color=d());var g=Array.prototype.slice.call(arguments);g[0]=c.coerce(g[0]),"string"!=typeof g[0]&&(g=["%o"].concat(g));var h=0;g[0]=g[0].replace(/%([a-z%])/g,function(b,d){if("%%"===b)return b;h++;var e=c.formatters[d];if("function"==typeof e){var f=g[h];b=e.call(a,f),g.splice(h,1),h--}return b}),"function"==typeof c.formatArgs&&(g=c.formatArgs.apply(a,g));var i=e.log||c.log||console.log.bind(console);i.apply(a,g)}b.enabled=!1,e.enabled=!0;var f=c.enabled(a)?e:b;return f.namespace=a,f}function f(a){c.save(a);for(var b=(a||"").split(/[\s,]+/),d=b.length,e=0;d>e;e++)b[e]&&(a=b[e].replace(/\*/g,".*?"),"-"===a[0]?c.skips.push(new RegExp("^"+a.substr(1)+"$")):c.names.push(new RegExp("^"+a+"$")))}function g(){c.enable("")}function h(a){var b,d;for(b=0,d=c.skips.length;d>b;b++)if(c.skips[b].test(a))return!1;for(b=0,d=c.names.length;d>b;b++)if(c.names[b].test(a))return!0;return!1}function i(a){return a instanceof Error?a.stack||a.message:a}c=b.exports=e,c.coerce=i,c.disable=g,c.enable=f,c.enabled=h,c.humanize=a("ms"),c.names=[],c.skips=[],c.formatters={};var j,k=0},{ms:24}],24:[function(a,b,c){function d(a){var b=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(a);if(b){var c=parseFloat(b[1]),d=(b[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"y":return c*l;case"days":case"day":case"d":return c*k;case"hours":case"hour":case"h":return c*j;case"minutes":case"minute":case"m":return c*i;case"seconds":case"second":case"s":return c*h;case"ms":return c}}}function e(a){return a>=k?Math.round(a/k)+"d":a>=j?Math.round(a/j)+"h":a>=i?Math.round(a/i)+"m":a>=h?Math.round(a/h)+"s":a+"ms"}function f(a){return g(a,k,"day")||g(a,j,"hour")||g(a,i,"minute")||g(a,h,"second")||a+" ms"}function g(a,b,c){return b>a?void 0:1.5*b>a?Math.floor(a/b)+" "+c:Math.ceil(a/b)+" "+c+"s"}var h=1e3,i=60*h,j=60*i,k=24*j,l=365.25*k;b.exports=function(a,b){return b=b||{},"string"==typeof a?d(a):b["long"]?f(a):e(a)}},{}],25:[function(a,b,c){(function(b){function d(a,b){var d="b"+c.packets[a.type]+a.data.data;return b(d)}function e(a,b,d){if(!b)return c.encodeBase64Packet(a,d);var e=a.data,f=new Uint8Array(e),g=new Uint8Array(1+e.byteLength);g[0]=r[a.type];for(var h=0;h<f.length;h++)g[h+1]=f[h];return d(g.buffer)}function f(a,b,d){if(!b)return c.encodeBase64Packet(a,d);var e=new FileReader;return e.onload=function(){a.data=e.result,c.encodePacket(a,b,!0,d)},e.readAsArrayBuffer(a.data)}function g(a,b,d){if(!b)return c.encodeBase64Packet(a,d);if(q)return f(a,b,d);var e=new Uint8Array(1);e[0]=r[a.type];var g=new u([e.buffer,a.data]);return d(g)}function h(a,b,c){for(var d=new Array(a.length),e=m(a.length,c),f=function(a,c,e){b(c,function(b,c){d[a]=c,e(b,d)})},g=0;g<a.length;g++)f(g,a[g],e)}var i=a("./keys"),j=a("has-binary"),k=a("arraybuffer.slice"),l=a("base64-arraybuffer"),m=a("after"),n=a("utf8"),o=navigator.userAgent.match(/Android/i),p=/PhantomJS/i.test(navigator.userAgent),q=o||p;c.protocol=3;var r=c.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},s=i(r),t={type:"error",data:"parser error"},u=a("blob");c.encodePacket=function(a,c,f,h){"function"==typeof c&&(h=c,c=!1),"function"==typeof f&&(h=f,f=null);var i=void 0===a.data?void 0:a.data.buffer||a.data;if(b.ArrayBuffer&&i instanceof ArrayBuffer)return e(a,c,h);if(u&&i instanceof b.Blob)return g(a,c,h);if(i&&i.base64)return d(a,h);var j=r[a.type];return void 0!==a.data&&(j+=f?n.encode(String(a.data)):String(a.data)),h(""+j)},c.encodeBase64Packet=function(a,d){var e="b"+c.packets[a.type];if(u&&a.data instanceof u){var f=new FileReader;return f.onload=function(){var a=f.result.split(",")[1];d(e+a)},f.readAsDataURL(a.data)}var g;try{g=String.fromCharCode.apply(null,new Uint8Array(a.data))}catch(h){for(var i=new Uint8Array(a.data),j=new Array(i.length),k=0;k<i.length;k++)j[k]=i[k];g=String.fromCharCode.apply(null,j)}return e+=b.btoa(g),d(e)},c.decodePacket=function(a,b,d){if("string"==typeof a||void 0===a){if("b"==a.charAt(0))return c.decodeBase64Packet(a.substr(1),b);if(d)try{a=n.decode(a)}catch(e){return t}var f=a.charAt(0);return Number(f)==f&&s[f]?a.length>1?{type:s[f],data:a.substring(1)}:{type:s[f]}:t}var g=new Uint8Array(a),f=g[0],h=k(a,1);return u&&"blob"===b&&(h=new u([h])),{type:s[f],data:h}},c.decodeBase64Packet=function(a,c){var d=s[a.charAt(0)];if(!b.ArrayBuffer)return{type:d,data:{base64:!0,data:a.substr(1)}};var e=l.decode(a.substr(1));return"blob"===c&&u&&(e=new u([e])),{type:d,data:e}},c.encodePayload=function(a,b,d){function e(a){return a.length+":"+a}function f(a,d){c.encodePacket(a,g?b:!1,!0,function(a){d(null,e(a))})}"function"==typeof b&&(d=b,b=null);var g=j(a);return b&&g?u&&!q?c.encodePayloadAsBlob(a,d):c.encodePayloadAsArrayBuffer(a,d):a.length?void h(a,f,function(a,b){return d(b.join(""))}):d("0:")},c.decodePayload=function(a,b,d){if("string"!=typeof a)return c.decodePayloadAsBinary(a,b,d);"function"==typeof b&&(d=b,b=null);var e;if(""==a)return d(t,0,1);for(var f,g,h="",i=0,j=a.length;j>i;i++){var k=a.charAt(i);if(":"!=k)h+=k;else{if(""==h||h!=(f=Number(h)))return d(t,0,1);if(g=a.substr(i+1,f),h!=g.length)return d(t,0,1);if(g.length){if(e=c.decodePacket(g,b,!0),t.type==e.type&&t.data==e.data)return d(t,0,1);var l=d(e,i+f,j);if(!1===l)return}i+=f,h=""}}return""!=h?d(t,0,1):void 0},c.encodePayloadAsArrayBuffer=function(a,b){function d(a,b){c.encodePacket(a,!0,!0,function(a){return b(null,a)})}return a.length?void h(a,d,function(a,c){var d=c.reduce(function(a,b){var c;return c="string"==typeof b?b.length:b.byteLength,a+c.toString().length+c+2},0),e=new Uint8Array(d),f=0;return c.forEach(function(a){var b="string"==typeof a,c=a;if(b){
-for(var d=new Uint8Array(a.length),g=0;g<a.length;g++)d[g]=a.charCodeAt(g);c=d.buffer}b?e[f++]=0:e[f++]=1;for(var h=c.byteLength.toString(),g=0;g<h.length;g++)e[f++]=parseInt(h[g]);e[f++]=255;for(var d=new Uint8Array(c),g=0;g<d.length;g++)e[f++]=d[g]}),b(e.buffer)}):b(new ArrayBuffer(0))},c.encodePayloadAsBlob=function(a,b){function d(a,b){c.encodePacket(a,!0,!0,function(a){var c=new Uint8Array(1);if(c[0]=1,"string"==typeof a){for(var d=new Uint8Array(a.length),e=0;e<a.length;e++)d[e]=a.charCodeAt(e);a=d.buffer,c[0]=0}for(var f=a instanceof ArrayBuffer?a.byteLength:a.size,g=f.toString(),h=new Uint8Array(g.length+1),e=0;e<g.length;e++)h[e]=parseInt(g[e]);if(h[g.length]=255,u){var i=new u([c.buffer,h.buffer,a]);b(null,i)}})}h(a,d,function(a,c){return b(new u(c))})},c.decodePayloadAsBinary=function(a,b,d){"function"==typeof b&&(d=b,b=null);for(var e=a,f=[],g=!1;e.byteLength>0;){for(var h=new Uint8Array(e),i=0===h[0],j="",l=1;255!=h[l];l++){if(j.length>310){g=!0;break}j+=h[l]}if(g)return d(t,0,1);e=k(e,2+j.length),j=parseInt(j);var m=k(e,0,j);if(i)try{m=String.fromCharCode.apply(null,new Uint8Array(m))}catch(n){var o=new Uint8Array(m);m="";for(var l=0;l<o.length;l++)m+=String.fromCharCode(o[l])}f.push(m),e=k(e,j)}var p=f.length;f.forEach(function(a,e){d(c.decodePacket(a,b,!0),e,p)})}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":26,after:27,"arraybuffer.slice":28,"base64-arraybuffer":29,blob:30,"has-binary":36,utf8:31}],26:[function(a,b,c){b.exports=Object.keys||function(a){var b=[],c=Object.prototype.hasOwnProperty;for(var d in a)c.call(a,d)&&b.push(d);return b}},{}],27:[function(a,b,c){function d(a,b,c){function d(a,e){if(d.count<=0)throw new Error("after called too many times");--d.count,a?(f=!0,b(a),b=c):0!==d.count||f||b(null,e)}var f=!1;return c=c||e,d.count=a,0===a?b():d}function e(){}b.exports=d},{}],28:[function(a,b,c){b.exports=function(a,b,c){var d=a.byteLength;if(b=b||0,c=c||d,a.slice)return a.slice(b,c);if(0>b&&(b+=d),0>c&&(c+=d),c>d&&(c=d),b>=d||b>=c||0===d)return new ArrayBuffer(0);for(var e=new Uint8Array(a),f=new Uint8Array(c-b),g=b,h=0;c>g;g++,h++)f[h]=e[g];return f.buffer}},{}],29:[function(a,b,c){!function(a){"use strict";c.encode=function(b){var c,d=new Uint8Array(b),e=d.length,f="";for(c=0;e>c;c+=3)f+=a[d[c]>>2],f+=a[(3&d[c])<<4|d[c+1]>>4],f+=a[(15&d[c+1])<<2|d[c+2]>>6],f+=a[63&d[c+2]];return e%3===2?f=f.substring(0,f.length-1)+"=":e%3===1&&(f=f.substring(0,f.length-2)+"=="),f},c.decode=function(b){var c,d,e,f,g,h=.75*b.length,i=b.length,j=0;"="===b[b.length-1]&&(h--,"="===b[b.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(c=0;i>c;c+=4)d=a.indexOf(b[c]),e=a.indexOf(b[c+1]),f=a.indexOf(b[c+2]),g=a.indexOf(b[c+3]),l[j++]=d<<2|e>>4,l[j++]=(15&e)<<4|f>>2,l[j++]=(3&f)<<6|63&g;return k}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(a,b,c){(function(a){function c(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.buffer instanceof ArrayBuffer){var d=c.buffer;if(c.byteLength!==d.byteLength){var e=new Uint8Array(c.byteLength);e.set(new Uint8Array(d,c.byteOffset,c.byteLength)),d=e.buffer}a[b]=d}}}function d(a,b){b=b||{};var d=new f;c(a);for(var e=0;e<a.length;e++)d.append(a[e]);return b.type?d.getBlob(b.type):d.getBlob()}function e(a,b){return c(a),new Blob(a,b||{})}var f=a.BlobBuilder||a.WebKitBlobBuilder||a.MSBlobBuilder||a.MozBlobBuilder,g=function(){try{var a=new Blob(["hi"]);return 2===a.size}catch(b){return!1}}(),h=g&&function(){try{var a=new Blob([new Uint8Array([1,2])]);return 2===a.size}catch(b){return!1}}(),i=f&&f.prototype.append&&f.prototype.getBlob;b.exports=function(){return g?h?a.Blob:e:i?d:void 0}()}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(b,c,d){(function(b){!function(e){function f(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function g(a){for(var b,c=a.length,d=-1,e="";++d<c;)b=a[d],b>65535&&(b-=65536,e+=u(b>>>10&1023|55296),b=56320|1023&b),e+=u(b);return e}function h(a){if(a>=55296&&57343>=a)throw Error("Lone surrogate U+"+a.toString(16).toUpperCase()+" is not a scalar value")}function i(a,b){return u(a>>b&63|128)}function j(a){if(0==(4294967168&a))return u(a);var b="";return 0==(4294965248&a)?b=u(a>>6&31|192):0==(4294901760&a)?(h(a),b=u(a>>12&15|224),b+=i(a,6)):0==(4292870144&a)&&(b=u(a>>18&7|240),b+=i(a,12),b+=i(a,6)),b+=u(63&a|128)}function k(a){for(var b,c=f(a),d=c.length,e=-1,g="";++e<d;)b=c[e],g+=j(b);return g}function l(){if(t>=s)throw Error("Invalid byte index");var a=255&r[t];if(t++,128==(192&a))return 63&a;throw Error("Invalid continuation byte")}function m(){var a,b,c,d,e;if(t>s)throw Error("Invalid byte index");if(t==s)return!1;if(a=255&r[t],t++,0==(128&a))return a;if(192==(224&a)){var b=l();if(e=(31&a)<<6|b,e>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&a)){if(b=l(),c=l(),e=(15&a)<<12|b<<6|c,e>=2048)return h(e),e;throw Error("Invalid continuation byte")}if(240==(248&a)&&(b=l(),c=l(),d=l(),e=(15&a)<<18|b<<12|c<<6|d,e>=65536&&1114111>=e))return e;throw Error("Invalid UTF-8 detected")}function n(a){r=f(a),s=r.length,t=0;for(var b,c=[];(b=m())!==!1;)c.push(b);return g(c)}var o="object"==typeof d&&d,p="object"==typeof c&&c&&c.exports==o&&c,q="object"==typeof b&&b;(q.global===q||q.window===q)&&(e=q);var r,s,t,u=String.fromCharCode,v={version:"2.0.0",encode:k,decode:n};if("function"==typeof a&&"object"==typeof a.amd&&a.amd)a(function(){return v});else if(o&&!o.nodeType)if(p)p.exports=v;else{var w={},x=w.hasOwnProperty;for(var y in v)x.call(v,y)&&(o[y]=v[y])}else e.utf8=v}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(a,b,c){(function(a){var c=/^[\],:{}\s]*$/,d=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,e=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,f=/(?:^|:|,)(?:\s*\[)+/g,g=/^\s+/,h=/\s+$/;b.exports=function(b){return"string"==typeof b&&b?(b=b.replace(g,"").replace(h,""),a.JSON&&JSON.parse?JSON.parse(b):c.test(b.replace(d,"@").replace(e,"]").replace(f,""))?new Function("return "+b)():void 0):null}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],33:[function(a,b,c){c.encode=function(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b.length&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b},c.decode=function(a){for(var b={},c=a.split("&"),d=0,e=c.length;e>d;d++){var f=c[d].split("=");b[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return b}},{}],34:[function(a,b,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function(a){var b=a,c=a.indexOf("["),f=a.indexOf("]");-1!=c&&-1!=f&&(a=a.substring(0,c)+a.substring(c,f).replace(/:/g,";")+a.substring(f,a.length));for(var g=d.exec(a||""),h={},i=14;i--;)h[e[i]]=g[i]||"";return-1!=c&&-1!=f&&(h.source=b,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h}},{}],35:[function(a,b,c){function d(a,b,c){var d;return d=b?new f(a,b):new f(a)}var e=function(){return this}(),f=e.WebSocket||e.MozWebSocket;b.exports=f?d:null,f&&(d.prototype=f.prototype)},{}],36:[function(a,b,c){(function(c){function d(a){function b(a){if(!a)return!1;if(c.Buffer&&c.Buffer.isBuffer(a)||c.ArrayBuffer&&a instanceof ArrayBuffer||c.Blob&&a instanceof Blob||c.File&&a instanceof File)return!0;if(e(a)){for(var d=0;d<a.length;d++)if(b(a[d]))return!0}else if(a&&"object"==typeof a){a.toJSON&&(a=a.toJSON());for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&b(a[f]))return!0}return!1}return b(a)}var e=a("isarray");b.exports=d}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:37}],37:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],38:[function(a,b,c){var d=a("global");try{b.exports="XMLHttpRequest"in d&&"withCredentials"in new d.XMLHttpRequest}catch(e){b.exports=!1}},{global:39}],39:[function(a,b,c){b.exports=function(){return this}()},{}],40:[function(a,b,c){var d=[].indexOf;b.exports=function(a,b){if(d)return a.indexOf(b);for(var c=0;c<a.length;++c)if(a[c]===b)return c;return-1}},{}],41:[function(a,b,c){var d=Object.prototype.hasOwnProperty;c.keys=Object.keys||function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(c);return b},c.values=function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(a[c]);return b},c.merge=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);return a},c.length=function(a){return c.keys(a).length},c.isEmpty=function(a){return 0==c.length(a)}},{}],42:[function(a,b,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function(a){for(var b=d.exec(a||""),c={},f=14;f--;)c[e[f]]=b[f]||"";return c}},{}],43:[function(a,b,c){(function(b){var d=a("isarray"),e=a("./is-buffer");c.deconstructPacket=function(a){function b(a){if(!a)return a;if(e(a)){var f={_placeholder:!0,num:c.length};return c.push(a),f}if(d(a)){for(var g=new Array(a.length),h=0;h<a.length;h++)g[h]=b(a[h]);return g}if("object"==typeof a&&!(a instanceof Date)){var g={};for(var i in a)g[i]=b(a[i]);return g}return a}var c=[],f=a.data,g=a;return g.data=b(f),g.attachments=c.length,{packet:g,buffers:c}},c.reconstructPacket=function(a,b){function c(a){if(a&&a._placeholder){var e=b[a.num];return e}if(d(a)){for(var f=0;f<a.length;f++)a[f]=c(a[f]);return a}if(a&&"object"==typeof a){for(var g in a)a[g]=c(a[g]);return a}return a}return a.data=c(a.data),a.attachments=void 0,a},c.removeBlobs=function(a,c){function f(a,i,j){if(!a)return a;if(b.Blob&&a instanceof Blob||b.File&&a instanceof File){g++;var k=new FileReader;k.onload=function(){j?j[i]=this.result:h=this.result,--g||c(h)},k.readAsArrayBuffer(a)}else if(d(a))for(var l=0;l<a.length;l++)f(a[l],l,a);else if(a&&"object"==typeof a&&!e(a))for(var m in a)f(a[m],m,a)}var g=0,h=a;f(h),g||c(h)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is-buffer":45,isarray:46}],44:[function(a,b,c){function d(){}function e(a){var b="",d=!1;return b+=a.type,(c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type)&&(b+=a.attachments,b+="-"),a.nsp&&"/"!=a.nsp&&(d=!0,b+=a.nsp),null!=a.id&&(d&&(b+=",",d=!1),b+=a.id),null!=a.data&&(d&&(b+=","),b+=l.stringify(a.data)),k("encoded %j as %s",a,b),b}function f(a,b){function c(a){var c=n.deconstructPacket(a),d=e(c.packet),f=c.buffers;f.unshift(d),b(f)}n.removeBlobs(a,c)}function g(){this.reconstructor=null}function h(a){var b={},d=0;if(b.type=Number(a.charAt(0)),null==c.types[b.type])return j();if(c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type){for(var e="";"-"!=a.charAt(++d)&&(e+=a.charAt(d),d!=a.length););if(e!=Number(e)||"-"!=a.charAt(d))throw new Error("Illegal attachments");b.attachments=Number(e)}if("/"==a.charAt(d+1))for(b.nsp="";++d;){var f=a.charAt(d);if(","==f)break;if(b.nsp+=f,d==a.length)break}else b.nsp="/";var g=a.charAt(d+1);if(""!==g&&Number(g)==g){for(b.id="";++d;){var f=a.charAt(d);if(null==f||Number(f)!=f){--d;break}if(b.id+=a.charAt(d),d==a.length)break}b.id=Number(b.id)}if(a.charAt(++d))try{b.data=l.parse(a.substr(d))}catch(h){return j()}return k("decoded %s as %j",a,b),b}function i(a){this.reconPack=a,this.buffers=[]}function j(a){return{type:c.ERROR,data:"parser error"}}var k=a("debug")("socket.io-parser"),l=a("json3"),m=(a("isarray"),a("component-emitter")),n=a("./binary"),o=a("./is-buffer");c.protocol=4,c.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],c.CONNECT=0,c.DISCONNECT=1,c.EVENT=2,c.ACK=3,c.ERROR=4,c.BINARY_EVENT=5,c.BINARY_ACK=6,c.Encoder=d,c.Decoder=g,d.prototype.encode=function(a,b){if(k("encoding packet %j",a),c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type)f(a,b);else{var d=e(a);b([d])}},m(g.prototype),g.prototype.add=function(a){var b;if("string"==typeof a)b=h(a),c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type?(this.reconstructor=new i(b),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",b)):this.emit("decoded",b);else{if(!o(a)&&!a.base64)throw new Error("Unknown type: "+a);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");b=this.reconstructor.takeBinaryData(a),b&&(this.reconstructor=null,this.emit("decoded",b))}},g.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},i.prototype.takeBinaryData=function(a){if(this.buffers.push(a),this.buffers.length==this.reconPack.attachments){var b=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),b}return null},i.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":43,"./is-buffer":45,"component-emitter":9,debug:10,isarray:46,json3:47}],45:[function(a,b,c){(function(a){function c(b){return a.Buffer&&a.Buffer.isBuffer(b)||a.ArrayBuffer&&b instanceof ArrayBuffer}b.exports=c}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(a,b,c){b.exports=a(37)},{}],47:[function(b,c,d){!function(b){function c(a){if(c[a]!==g)return c[a];var b;if("bug-string-char-index"==a)b="a"!="a"[0];else if("json"==a)b=c("json-stringify")&&c("json-parse");else{var d,e='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==a){var f=k.stringify,i="function"==typeof f&&l;if(i){(d=function(){return 1}).toJSON=d;try{i="0"===f(0)&&"0"===f(new Number)&&'""'==f(new String)&&f(h)===g&&f(g)===g&&f()===g&&"1"===f(d)&&"[1]"==f([d])&&"[null]"==f([g])&&"null"==f(null)&&"[null,null,null]"==f([g,h,null])&&f({a:[d,!0,!1,null,"\x00\b\n\f\r "]})==e&&"1"===f(null,d)&&"[\n 1,\n 2\n]"==f([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==f(new Date(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==f(new Date(864e13))&&'"-000001-01-01T00:00:00.000Z"'==f(new Date(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==f(new Date(-1))}catch(j){i=!1}}b=i}if("json-parse"==a){var m=k.parse;if("function"==typeof m)try{if(0===m("0")&&!m(!1)){d=m(e);var n=5==d.a.length&&1===d.a[0];if(n){try{n=!m('" "')}catch(j){}if(n)try{n=1!==m("01")}catch(j){}if(n)try{n=1!==m("1.")}catch(j){}}}}catch(j){n=!1}b=n}}return c[a]=!!b}var e,f,g,h={}.toString,i="function"==typeof a&&a.amd,j="object"==typeof JSON&&JSON,k="object"==typeof d&&d&&!d.nodeType&&d;k&&j?(k.stringify=j.stringify,k.parse=j.parse):k=b.JSON=j||{};var l=new Date(-0xc782b5b800cec);try{l=-109252==l.getUTCFullYear()&&0===l.getUTCMonth()&&1===l.getUTCDate()&&10==l.getUTCHours()&&37==l.getUTCMinutes()&&6==l.getUTCSeconds()&&708==l.getUTCMilliseconds()}catch(m){}if(!c("json")){var n="[object Function]",o="[object Date]",p="[object Number]",q="[object String]",r="[object Array]",s="[object Boolean]",t=c("bug-string-char-index");if(!l)var u=Math.floor,v=[0,31,59,90,120,151,181,212,243,273,304,334],w=function(a,b){return v[b]+365*(a-1970)+u((a-1969+(b=+(b>1)))/4)-u((a-1901+b)/100)+u((a-1601+b)/400)};(e={}.hasOwnProperty)||(e=function(a){var b,c={};return(c.__proto__=null,c.__proto__={toString:1},c).toString!=h?e=function(a){var b=this.__proto__,c=a in(this.__proto__=null,this);return this.__proto__=b,c}:(b=c.constructor,e=function(a){var c=(this.constructor||b).prototype;return a in this&&!(a in c&&this[a]===c[a])}),c=null,e.call(this,a)});var x={"boolean":1,number:1,string:1,undefined:1},y=function(a,b){var c=typeof a[b];return"object"==c?!!a[b]:!x[c]};if(f=function(a,b){var c,d,g,i=0;(c=function(){this.valueOf=0}).prototype.valueOf=0,d=new c;for(g in d)e.call(d,g)&&i++;return c=d=null,i?f=2==i?function(a,b){var c,d={},f=h.call(a)==n;for(c in a)f&&"prototype"==c||e.call(d,c)||!(d[c]=1)||!e.call(a,c)||b(c)}:function(a,b){var c,d,f=h.call(a)==n;for(c in a)f&&"prototype"==c||!e.call(a,c)||(d="constructor"===c)||b(c);(d||e.call(a,c="constructor"))&&b(c)}:(d=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],f=function(a,b){var c,f,g=h.call(a)==n,i=!g&&"function"!=typeof a.constructor&&y(a,"hasOwnProperty")?a.hasOwnProperty:e;for(c in a)g&&"prototype"==c||!i.call(a,c)||b(c);for(f=d.length;c=d[--f];i.call(a,c)&&b(c));}),f(a,b)},!c("json-stringify")){var z={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},A="000000",B=function(a,b){return(A+(b||0)).slice(-a)},C="\\u00",D=function(a){var b,c='"',d=0,e=a.length,f=e>10&&t;for(f&&(b=a.split(""));e>d;d++){var g=a.charCodeAt(d);switch(g){case 8:case 9:case 10:case 12:case 13:case 34:case 92:c+=z[g];break;default:if(32>g){c+=C+B(2,g.toString(16));break}c+=f?b[d]:t?a.charAt(d):a[d]}}return c+'"'},E=function(a,b,c,d,i,j,k){var l,m,n,t,v,x,y,z,A,C,F,G,H,I,J,K;try{l=b[a]}catch(L){}if("object"==typeof l&&l)if(m=h.call(l),m!=o||e.call(l,"toJSON"))"function"==typeof l.toJSON&&(m!=p&&m!=q&&m!=r||e.call(l,"toJSON"))&&(l=l.toJSON(a));else if(l>-1/0&&1/0>l){if(w){for(v=u(l/864e5),n=u(v/365.2425)+1970-1;w(n+1,0)<=v;n++);for(t=u((v-w(n,0))/30.42);w(n,t+1)<=v;t++);v=1+v-w(n,t),x=(l%864e5+864e5)%864e5,y=u(x/36e5)%24,z=u(x/6e4)%60,A=u(x/1e3)%60,C=x%1e3}else n=l.getUTCFullYear(),t=l.getUTCMonth(),v=l.getUTCDate(),y=l.getUTCHours(),z=l.getUTCMinutes(),A=l.getUTCSeconds(),C=l.getUTCMilliseconds();l=(0>=n||n>=1e4?(0>n?"-":"+")+B(6,0>n?-n:n):B(4,n))+"-"+B(2,t+1)+"-"+B(2,v)+"T"+B(2,y)+":"+B(2,z)+":"+B(2,A)+"."+B(3,C)+"Z"}else l=null;if(c&&(l=c.call(b,a,l)),null===l)return"null";if(m=h.call(l),m==s)return""+l;if(m==p)return l>-1/0&&1/0>l?""+l:"null";if(m==q)return D(""+l);if("object"==typeof l){for(I=k.length;I--;)if(k[I]===l)throw TypeError();if(k.push(l),F=[],J=j,j+=i,m==r){for(H=0,I=l.length;I>H;H++)G=E(H,l,c,d,i,j,k),F.push(G===g?"null":G);K=F.length?i?"[\n"+j+F.join(",\n"+j)+"\n"+J+"]":"["+F.join(",")+"]":"[]"}else f(d||l,function(a){var b=E(a,l,c,d,i,j,k);b!==g&&F.push(D(a)+":"+(i?" ":"")+b)}),K=F.length?i?"{\n"+j+F.join(",\n"+j)+"\n"+J+"}":"{"+F.join(",")+"}":"{}";return k.pop(),K}};k.stringify=function(a,b,c){var d,e,f,g;if("function"==typeof b||"object"==typeof b&&b)if((g=h.call(b))==n)e=b;else if(g==r){f={};for(var i,j=0,k=b.length;k>j;i=b[j++],g=h.call(i),(g==q||g==p)&&(f[i]=1));}if(c)if((g=h.call(c))==p){if((c-=c%1)>0)for(d="",c>10&&(c=10);d.length<c;d+=" ");}else g==q&&(d=c.length<=10?c:c.slice(0,10));return E("",(i={},i[""]=a,i),e,f,d,"",[])}}if(!c("json-parse")){var F,G,H=String.fromCharCode,I={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},J=function(){throw F=G=null,SyntaxError()},K=function(){for(var a,b,c,d,e,f=G,g=f.length;g>F;)switch(e=f.charCodeAt(F)){case 9:case 10:case 13:case 32:F++;break;case 123:case 125:case 91:case 93:case 58:case 44:return a=t?f.charAt(F):f[F],F++,a;case 34:for(a="@",F++;g>F;)if(e=f.charCodeAt(F),32>e)J();else if(92==e)switch(e=f.charCodeAt(++F)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:a+=I[e],F++;break;case 117:for(b=++F,c=F+4;c>F;F++)e=f.charCodeAt(F),e>=48&&57>=e||e>=97&&102>=e||e>=65&&70>=e||J();a+=H("0x"+f.slice(b,F));break;default:J()}else{if(34==e)break;for(e=f.charCodeAt(F),b=F;e>=32&&92!=e&&34!=e;)e=f.charCodeAt(++F);a+=f.slice(b,F)}if(34==f.charCodeAt(F))return F++,a;J();default:if(b=F,45==e&&(d=!0,e=f.charCodeAt(++F)),e>=48&&57>=e){for(48==e&&(e=f.charCodeAt(F+1),e>=48&&57>=e)&&J(),d=!1;g>F&&(e=f.charCodeAt(F),e>=48&&57>=e);F++);if(46==f.charCodeAt(F)){for(c=++F;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==F&&J(),F=c}if(e=f.charCodeAt(F),101==e||69==e){for(e=f.charCodeAt(++F),(43==e||45==e)&&F++,c=F;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==F&&J(),F=c}return+f.slice(b,F)}if(d&&J(),"true"==f.slice(F,F+4))return F+=4,!0;if("false"==f.slice(F,F+5))return F+=5,!1;if("null"==f.slice(F,F+4))return F+=4,null;J()}return"$"},L=function(a){var b,c;if("$"==a&&J(),"string"==typeof a){if("@"==(t?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];a=K(),"]"!=a;c||(c=!0))c&&(","==a?(a=K(),"]"==a&&J()):J()),","==a&&J(),b.push(L(a));return b}if("{"==a){for(b={};a=K(),"}"!=a;c||(c=!0))c&&(","==a?(a=K(),"}"==a&&J()):J()),(","==a||"string"!=typeof a||"@"!=(t?a.charAt(0):a[0])||":"!=K())&&J(),b[a.slice(1)]=L(K());return b}J()}return a},M=function(a,b,c){var d=N(a,b,c);d===g?delete a[b]:a[b]=d},N=function(a,b,c){var d,e=a[b];if("object"==typeof e&&e)if(h.call(e)==r)for(d=e.length;d--;)M(e,d,c);else f(e,function(a){M(e,a,c)});return c.call(a,b,e)};k.parse=function(a,b){var c,d;return F=0,G=""+a,c=L(K()),"$"!=K()&&J(),F=G=null,b&&h.call(b)==n?N((d={},d[""]=c,d),"",b):c}}}i&&a(function(){return k})}(this)},{}],48:[function(a,b,c){function d(a,b){var c=[];b=b||0;for(var d=b||0;d<a.length;d++)c[d-b]=a[d];return c}b.exports=d},{}]},{},[1])(1)});
\ No newline at end of file
+delete this._data.massload[b.id]}):c._load_node.call(this,b,d)}},a.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},a.jstree.plugins.search=function(c,d){this.bind=function(){d.bind.call(this),this._data.search.str="",this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",a.proxy(function(b,c){if(this._data.search.som&&c.res.length){var d,e,f=this._model.data,g=[];for(d=0,e=c.res.length;e>d;d++)f[c.res[d]]&&!f[c.res[d]].state.hidden&&(g.push(c.res[d]),g=g.concat(f[c.res[d]].parents),this._data.search.smc&&(g=g.concat(f[c.res[d]].children_d)));g=a.vakata.array_remove_item(a.vakata.array_unique(g),a.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(g)}},this)).on("clear_search.jstree",a.proxy(function(a,b){this._data.search.som&&b.res.length&&this.show_node(this._data.search.hdn)},this))},this.search=function(c,d,e,f,g,h){if(c===!1||""===a.trim(c.toString()))return this.clear_search();f=this.get_node(f),f=f&&f.id?f.id:null,c=c.toString();var i,j,k=this.settings.search,l=k.ajax?k.ajax:!1,m=this._model.data,n=null,o=[],p=[];if(this._data.search.res.length&&!g&&this.clear_search(),e===b&&(e=k.show_only_matches),h===b&&(h=k.show_only_matches_children),!d&&l!==!1)return a.isFunction(l)?l.call(this,c,a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)},!0)},this),f):(l=a.extend({},l),l.data||(l.data={}),l.data.str=c,f&&(l.data.inside=f),a.ajax(l).fail(a.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(l)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(a.proxy(function(b){b&&b.d&&(b=b.d),this._load_nodes(a.isArray(b)?a.vakata.array_unique(b):[],function(){this.search(c,!0,e,f,g)},!0)},this)));if(g||(this._data.search.str=c,this._data.search.dom=a(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=e,this._data.search.smc=h),n=new a.vakata.search(c,!0,{caseSensitive:k.case_sensitive,fuzzy:k.fuzzy}),a.each(m[f?f:a.jstree.root].children_d,function(a,b){var d=m[b];d.text&&(!k.search_leaves_only||d.state.loaded&&0===d.children.length)&&(k.search_callback&&k.search_callback.call(this,c,d)||!k.search_callback&&n.search(d.text).isMatch)&&(o.push(b),p=p.concat(d.parents))}),o.length){for(p=a.vakata.array_unique(p),i=0,j=p.length;j>i;i++)p[i]!==a.jstree.root&&m[p[i]]&&this.open_node(p[i],null,0)===!0&&this._data.search.opn.push(p[i]);g?(this._data.search.dom=this._data.search.dom.add(a(this.element[0].querySelectorAll("#"+a.map(o,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=a.vakata.array_unique(this._data.search.res.concat(o))):(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(o,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=o),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:c,res:this._data.search.res,show_only_matches:e})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=a(this.element[0].querySelectorAll("#"+a.map(this._data.search.res,function(b){return-1!=="0123456789".indexOf(b[0])?"\\3"+b[0]+" "+b.substr(1).replace(a.jstree.idregex,"\\$&"):b.replace(a.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=a()},this.redraw_node=function(b,c,e,f){if(b=d.redraw_node.apply(this,arguments),b&&-1!==a.inArray(b.id,this._data.search.res)){var g,h,i=null;for(g=0,h=b.childNodes.length;h>g;g++)if(b.childNodes[g]&&b.childNodes[g].className&&-1!==b.childNodes[g].className.indexOf("jstree-anchor")){i=b.childNodes[g];break}i&&(i.className+=" jstree-search")}return b}},function(a){a.vakata.search=function(b,c,d){d=d||{},d=a.extend({},a.vakata.search.defaults,d),d.fuzzy!==!1&&(d.fuzzy=!0),b=d.caseSensitive?b:b.toLowerCase();var e,f,g,h,i=d.location,j=d.distance,k=d.threshold,l=b.length;return l>32&&(d.fuzzy=!1),d.fuzzy&&(e=1<<l-1,f=function(){var a={},c=0;for(c=0;l>c;c++)a[b.charAt(c)]=0;for(c=0;l>c;c++)a[b.charAt(c)]|=1<<l-c-1;return a}(),g=function(a,b){var c=a/l,d=Math.abs(i-b);return j?c+d/j:d?1:c}),h=function(a){if(a=d.caseSensitive?a:a.toLowerCase(),b===a||-1!==a.indexOf(b))return{isMatch:!0,score:0};if(!d.fuzzy)return{isMatch:!1,score:1};var c,h,j,m,n,o,p,q,r,s=a.length,t=k,u=a.indexOf(b,i),v=l+s,w=1,x=[];for(-1!==u&&(t=Math.min(g(0,u),t),u=a.lastIndexOf(b,i+l),-1!==u&&(t=Math.min(g(0,u),t))),u=-1,c=0;l>c;c++){for(j=0,m=v;m>j;)g(c,i+m)<=t?j=m:v=m,m=Math.floor((v-j)/2+j);for(v=m,o=Math.max(1,i-m+1),p=Math.min(i+m,s)+l,q=new Array(p+2),q[p+1]=(1<<c)-1,h=p;h>=o;h--)if(r=f[a.charAt(h-1)],0===c?q[h]=(q[h+1]<<1|1)&r:q[h]=(q[h+1]<<1|1)&r|((n[h+1]|n[h])<<1|1)|n[h+1],q[h]&e&&(w=g(c,h-1),t>=w)){if(t=w,u=h-1,x.push(u),!(u>i))break;o=Math.max(1,2*i-u)}if(g(c+1,i)>t)break;n=q}return{isMatch:u>=0,score:w}},c===!0?{search:h}:h(c)},a.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(a),a.jstree.defaults.sort=function(a,b){return this.get_text(a)>this.get_text(b)?1:-1},a.jstree.plugins.sort=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("model.jstree",a.proxy(function(a,b){this.sort(b.parent,!0)},this)).on("rename_node.jstree create_node.jstree",a.proxy(function(a,b){this.sort(b.parent||b.node.parent,!1),this.redraw_node(b.parent||b.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",a.proxy(function(a,b){this.sort(b.parent,!1),this.redraw_node(b.parent,!0)},this))},this.sort=function(b,c){var d,e;if(b=this.get_node(b),b&&b.children&&b.children.length&&(b.children.sort(a.proxy(this.settings.sort,this)),c))for(d=0,e=b.children_d.length;e>d;d++)this.sort(b.children_d[d],!1)}};var n=!1;a.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1},a.jstree.plugins.state=function(b,c){this.bind=function(){c.bind.call(this);var b=a.proxy(function(){this.element.on(this.settings.state.events,a.proxy(function(){n&&clearTimeout(n),n=setTimeout(a.proxy(function(){this.save_state()},this),100)},this)),this.trigger("state_ready")},this);this.element.on("ready.jstree",a.proxy(function(a,c){this.element.one("restore_state.jstree",b),this.restore_state()||b()},this))},this.save_state=function(){var b={state:this.get_state(),ttl:this.settings.state.ttl,sec:+new Date};a.vakata.storage.set(this.settings.state.key,JSON.stringify(b))},this.restore_state=function(){var b=a.vakata.storage.get(this.settings.state.key);if(b)try{b=JSON.parse(b)}catch(c){return!1}return b&&b.ttl&&b.sec&&+new Date-b.sec>b.ttl?!1:(b&&b.state&&(b=b.state),b&&a.isFunction(this.settings.state.filter)&&(b=this.settings.state.filter.call(this,b)),b?(this.element.one("set_state.jstree",function(c,d){d.instance.trigger("restore_state",{state:a.extend(!0,{},b)})}),this.set_state(b),!0):!1)},this.clear_state=function(){return a.vakata.storage.del(this.settings.state.key)}},function(a,b){a.vakata.storage={set:function(a,b){return window.localStorage.setItem(a,b)},get:function(a){return window.localStorage.getItem(a)},del:function(a){return window.localStorage.removeItem(a)}}}(a),a.jstree.defaults.types={"default":{}},a.jstree.defaults.types[a.jstree.root]={},a.jstree.plugins.types=function(c,d){this.init=function(c,e){var f,g;if(e&&e.types&&e.types["default"])for(f in e.types)if("default"!==f&&f!==a.jstree.root&&e.types.hasOwnProperty(f))for(g in e.types["default"])e.types["default"].hasOwnProperty(g)&&e.types[f][g]===b&&(e.types[f][g]=e.types["default"][g]);d.init.call(this,c,e),this._model.data[a.jstree.root].type=a.jstree.root},this.refresh=function(b,c){d.refresh.call(this,b,c),this._model.data[a.jstree.root].type=a.jstree.root},this.bind=function(){this.element.on("model.jstree",a.proxy(function(c,d){var e,f,g=this._model.data,h=d.nodes,i=this.settings.types,j="default";for(e=0,f=h.length;f>e;e++)j="default",g[h[e]].original&&g[h[e]].original.type&&i[g[h[e]].original.type]&&(j=g[h[e]].original.type),g[h[e]].data&&g[h[e]].data.jstree&&g[h[e]].data.jstree.type&&i[g[h[e]].data.jstree.type]&&(j=g[h[e]].data.jstree.type),g[h[e]].type=j,g[h[e]].icon===!0&&i[j].icon!==b&&(g[h[e]].icon=i[j].icon);g[a.jstree.root].type=a.jstree.root},this)),d.bind.call(this)},this.get_json=function(b,c,e){var f,g,h=this._model.data,i=c?a.extend(!0,{},c,{no_id:!1}):{},j=d.get_json.call(this,b,i,e);if(j===!1)return!1;if(a.isArray(j))for(f=0,g=j.length;g>f;f++)j[f].type=j[f].id&&h[j[f].id]&&h[j[f].id].type?h[j[f].id].type:"default",c&&c.no_id&&(delete j[f].id,j[f].li_attr&&j[f].li_attr.id&&delete j[f].li_attr.id,j[f].a_attr&&j[f].a_attr.id&&delete j[f].a_attr.id);else j.type=j.id&&h[j.id]&&h[j.id].type?h[j.id].type:"default",c&&c.no_id&&(j=this._delete_ids(j));return j},this._delete_ids=function(b){if(a.isArray(b)){for(var c=0,d=b.length;d>c;c++)b[c]=this._delete_ids(b[c]);return b}return delete b.id,b.li_attr&&b.li_attr.id&&delete b.li_attr.id,b.a_attr&&b.a_attr.id&&delete b.a_attr.id,b.children&&a.isArray(b.children)&&(b.children=this._delete_ids(b.children)),b},this.check=function(c,e,f,g,h){if(d.check.call(this,c,e,f,g,h)===!1)return!1;e=e&&e.id?e:this.get_node(e),f=f&&f.id?f:this.get_node(f);var i,j,k,l,m=e&&e.id?h&&h.origin?h.origin:a.jstree.reference(e.id):null;switch(m=m&&m._model&&m._model.data?m._model.data:null,c){case"create_node":case"move_node":case"copy_node":if("move_node"!==c||-1===a.inArray(e.id,f.children)){if(i=this.get_rules(f),i.max_children!==b&&-1!==i.max_children&&i.max_children===f.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(i.valid_children!==b&&-1!==i.valid_children&&-1===a.inArray(e.type||"default",i.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;if(m&&e.children_d&&e.parents){for(j=0,k=0,l=e.children_d.length;l>k;k++)j=Math.max(j,m[e.children_d[k]].parents.length);j=j-e.parents.length+1}(0>=j||j===b)&&(j=1);do{if(i.max_depth!==b&&-1!==i.max_depth&&i.max_depth<j)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+c,data:JSON.stringify({chk:c,pos:g,obj:e&&e.id?e.id:!1,par:f&&f.id?f.id:!1})},!1;f=this.get_node(f.parent),i=this.get_rules(f),j++}while(f)}}return!0},this.get_rules=function(a){if(a=this.get_node(a),!a)return!1;var c=this.get_type(a,!0);return c.max_depth===b&&(c.max_depth=-1),c.max_children===b&&(c.max_children=-1),c.valid_children===b&&(c.valid_children=-1),c},this.get_type=function(b,c){return b=this.get_node(b),b?c?a.extend({type:b.type},this.settings.types[b.type]):b.type:!1},this.set_type=function(c,d){var e,f,g,h,i;if(a.isArray(c)){for(c=c.slice(),f=0,g=c.length;g>f;f++)this.set_type(c[f],d);return!0}return e=this.settings.types,c=this.get_node(c),e[d]&&c?(h=c.type,i=this.get_icon(c),c.type=d,(i===!0||e[h]&&e[h].icon!==b&&i===e[h].icon)&&this.set_icon(c,e[d].icon!==b?e[d].icon:!0),!0):!1}},a.jstree.defaults.unique={case_sensitive:!1,duplicate:function(a,b){return a+" ("+b+")"}},a.jstree.plugins.unique=function(c,d){this.check=function(b,c,e,f,g){if(d.check.call(this,b,c,e,f,g)===!1)return!1;if(c=c&&c.id?c:this.get_node(c),e=e&&e.id?e:this.get_node(e),!e||!e.children)return!0;var h,i,j="rename_node"===b?f:c.text,k=[],l=this.settings.unique.case_sensitive,m=this._model.data;for(h=0,i=e.children.length;i>h;h++)k.push(l?m[e.children[h]].text:m[e.children[h]].text.toLowerCase());switch(l||(j=j.toLowerCase()),b){case"delete_node":return!0;case"rename_node":return h=-1===a.inArray(j,k)||c.text&&c.text[l?"toString":"toLowerCase"]()===j,h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"create_node":return h=-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"copy_node":return h=-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h;case"move_node":return h=c.parent===e.id&&(!g||!g.is_multi)||-1===a.inArray(j,k),h||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+j+" already exists. Preventing: "+b,data:JSON.stringify({chk:b,pos:f,obj:c&&c.id?c.id:!1,par:e&&e.id?e.id:!1})}),h}return!0},this.create_node=function(c,e,f,g,h){if(!e||e.text===b){if(null===c&&(c=a.jstree.root),c=this.get_node(c),!c)return d.create_node.call(this,c,e,f,g,h);if(f=f===b?"last":f,!f.toString().match(/^(before|after)$/)&&!h&&!this.is_loaded(c))return d.create_node.call(this,c,e,f,g,h);e||(e={});var i,j,k,l,m,n=this._model.data,o=this.settings.unique.case_sensitive,p=this.settings.unique.duplicate;for(j=i=this.get_string("New node"),k=[],l=0,m=c.children.length;m>l;l++)k.push(o?n[c.children[l]].text:n[c.children[l]].text.toLowerCase());for(l=1;-1!==a.inArray(o?j:j.toLowerCase(),k);)j=p.call(this,i,++l).toString();e.text=j}return d.create_node.call(this,c,e,f,g,h)}};var o=k.createElement("DIV");if(o.setAttribute("unselectable","on"),o.setAttribute("role","presentation"),o.className="jstree-wholerow",o.innerHTML=" ",a.jstree.plugins.wholerow=function(b,c){this.bind=function(){c.bind.call(this),this.element.on("ready.jstree set_state.jstree",a.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",a.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",a.proxy(function(a,b){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var c,d,e=!1;for(c=0,d=b.selected.length;d>c;c++)e=this.get_node(b.selected[c],!0),e&&e.length&&e.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",a.proxy(function(a,b){this.get_node(b.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",a.proxy(function(a,b){"hover_node"===a.type&&this.is_disabled(b.node)||this.get_node(b.node,!0).children(".jstree-wholerow")["hover_node"===a.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",a.proxy(function(b){b.preventDefault();var c=a.Event("contextmenu",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,pageX:b.pageX,pageY:b.pageY});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c)},this)).on("click.jstree",".jstree-wholerow",function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",a.proxy(function(b){b.stopImmediatePropagation();var c=a.Event("click",{metaKey:b.metaKey,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey});a(b.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(c).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",a.proxy(function(a){return a.stopImmediatePropagation(),this.is_disabled(a.currentTarget)||this.hover_node(a.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",a.proxy(function(a){this.dehover_node(a.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),c.teardown.call(this)},this.redraw_node=function(b,d,e,f){if(b=c.redraw_node.apply(this,arguments)){var g=o.cloneNode(!0);-1!==a.inArray(b.id,this._data.core.selected)&&(g.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===b.id&&(g.className+=" jstree-wholerow-hovered"),b.insertBefore(g,b.childNodes[0])}return b}},k.registerElement&&Object&&Object.create){var p=Object.create(HTMLElement.prototype);p.createdCallback=function(){var b,c={core:{},plugins:[]};for(b in a.jstree.plugins)a.jstree.plugins.hasOwnProperty(b)&&this.attributes[b]&&(c.plugins.push(b),this.getAttribute(b)&&JSON.parse(this.getAttribute(b))&&(c[b]=JSON.parse(this.getAttribute(b))));for(b in a.jstree.defaults.core)a.jstree.defaults.core.hasOwnProperty(b)&&this.attributes[b]&&(c.core[b]=JSON.parse(this.getAttribute(b))||this.getAttribute(b));a(this).jstree(c)};try{k.registerElement("vakata-jstree",{prototype:p})}catch(q){}}}}),function(a){"use strict";function b(){var b=1;this.nodesFingerprint=function(a){return a.__uiNodeId||(a.__uiNodeId=b++),""+a.__uiNodeId+(a.id||"")+(a.text||"")+(a.type||"")},this.changeWatcher=function(b,c){var d,e=function(){var d,e,f=[];if(b)for(var h=a.isFunction(b)?b():b,i=0,j=h.length;j>i;i++)e=h[i],d=c(e),g[d]=e,f.push(d);return f},f=function(a,b){var c,d,e=[],f={};for(c=0,d=b.length;d>c;c++)f[b[c]]=!0;for(c=0,d=a.length;d>c;c++)f[a[c]]||e.push(a[c]);return e},g={},h=function(a,b){var e,h,i,j,k={},l=f(b,a);for(e=0,h=l.length;h>e;e++){var m=l[e];i=g[m],delete g[m];var n=c(i);n===m?d.onRemoved(i):(k[n]=m,d.onChanged(i))}var o=f(a,b);for(e=0,h=o.length;h>e;e++)j=o[e],i=g[j],k[j]||d.onAdded(i)};return d={subscribe:function(a,b){a.$watch(e,function(a,c){b&&b(a,c)===!1||h(a,c)},!0)},onAdded:a.noop,onChanged:a.noop,onRemoved:a.noop}}}function c(){return{restrict:"A",scope:{treeData:"=ngModel",shouldApply:"&"},controller:"jsTreeCtrl",link:function(b,c,d,e){function f(a,b,c){if(c.treeEvents)for(var d=c.treeEvents.split(";"),e=0;e<d.length;e++)if(d[e].length>0){var f=d[e].split(":")[0],g=f+".jstree",h=d[e].split(":")[1];a.tree.on(g,a.$parent.$eval(h))}}function g(){var c=d.jsTree?b.$parent.$eval(d.jsTree):{};h={},a.copy(c,h);var e=JSON.stringify(h);return h.core?h.core.data=b.treeData:h.core={data:b.treeData},e}var h=null,i=e.changeWatcher(b.treeData,e.nodesFingerprint),j=!1;b.destroy=function(){if(d.tree)if(-1!==d.tree.indexOf(".")){var a=d.tree.split(".");b.tree=b.$parent[a[0]][a[1]]=c}else b.tree=b.$parent[d.tree]=c;else b.tree=c;b.tree.jstree("destroy")},b.init=function(){b.tree.jstree(h),f(b,c,d)},i.onChanged=function(c){a.isDefined(b.tree.jstree(!0).set_type)&&b.tree.jstree(!0).set_type(c.id,c.type),b.tree.jstree(!0).rename_node(c.id,c.text)},i.onAdded=function(a){for(;j;);j=!0;var c=b.tree.jstree(!0).get_node(a.parent),d=b.tree.jstree(!0).create_node(c,a,"inside",function(){j=!1});d||(j=!1)},i.onRemoved=function(a){b.tree.jstree(!0).delete_node(a.id)},i.subscribe(b,function(){return b.shouldApply?b.shouldApply():!0}),b.$watch(g,function(){b.destroy(),b.init()})}}}var d=a.module("ngJsTree",[]);d.controller("jsTreeCtrl",b),d.directive("jsTree",c)}(angular),function(a){"use strict";if(a.URL=a.URL||a.webkitURL,a.Blob&&a.URL)try{return void new Blob}catch(b){}var c=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||function(a){var b=function(a){return Object.prototype.toString.call(a).match(/^\[object\s(.*)\]$/)[1]},c=function(){this.data=[]},d=function(a,b,c){this.data=a,this.size=a.length,this.type=b,this.encoding=c},e=c.prototype,f=d.prototype,g=a.FileReaderSync,h=function(a){this.code=this[this.name=a]},i="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),j=i.length,k=a.URL||a.webkitURL||a,l=k.createObjectURL,m=k.revokeObjectURL,n=k,o=a.btoa,p=a.atob,q=a.ArrayBuffer,r=a.Uint8Array,s=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(d.fake=f.fake=!0;j--;)h.prototype[i[j]]=j+1;return k.createObjectURL||(n=a.URL=function(a){var b,c=document.createElementNS("http://www.w3.org/1999/xhtml","a");return c.href=a,"origin"in c||("data:"===c.protocol.toLowerCase()?c.origin=null:(b=a.match(s),c.origin=b&&b[1])),c}),n.createObjectURL=function(a){var b,c=a.type;return null===c&&(c="application/octet-stream"),a instanceof d?(b="data:"+c,"base64"===a.encoding?b+";base64,"+a.data:"URI"===a.encoding?b+","+decodeURIComponent(a.data):o?b+";base64,"+o(a.data):b+","+encodeURIComponent(a.data)):l?l.call(k,a):void 0},n.revokeObjectURL=function(a){"data:"!==a.substring(0,5)&&m&&m.call(k,a)},e.append=function(a){var c=this.data;if(r&&(a instanceof q||a instanceof r)){for(var e="",f=new r(a),i=0,j=f.length;j>i;i++)e+=String.fromCharCode(f[i]);c.push(e)}else if("Blob"===b(a)||"File"===b(a)){if(!g)throw new h("NOT_READABLE_ERR");var k=new g;c.push(k.readAsBinaryString(a))}else a instanceof d?"base64"===a.encoding&&p?c.push(p(a.data)):"URI"===a.encoding?c.push(decodeURIComponent(a.data)):"raw"===a.encoding&&c.push(a.data):("string"!=typeof a&&(a+=""),c.push(unescape(encodeURIComponent(a))))},e.getBlob=function(a){return arguments.length||(a=null),new d(this.data.join(""),a,"raw")},e.toString=function(){return"[object BlobBuilder]"},f.slice=function(a,b,c){var e=arguments.length;return 3>e&&(c=null),new d(this.data.slice(a,e>1?b:this.data.length),c,this.encoding)},f.toString=function(){return"[object Blob]"},f.close=function(){this.size=0,delete this.data},c}(a);a.Blob=function(a,b){var d=b?b.type||"":"",e=new c;if(a)for(var f=0,g=a.length;g>f;f++)Uint8Array&&a[f]instanceof Uint8Array?e.append(a[f].buffer):e.append(a[f]);var h=e.getBlob(d);return!h.slice&&h.webkitSlice&&(h.slice=h.webkitSlice),h};var d=Object.getPrototypeOf||function(a){return a.__proto__};a.Blob.prototype=d(new a.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this);var saveAs=saveAs||function(a){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var b=a.document,c=function(){return a.URL||a.webkitURL||a},d=b.createElementNS("http://www.w3.org/1999/xhtml","a"),e="download"in d,f=function(c){var d=b.createEvent("MouseEvents");d.initMouseEvent("click",!0,!1,a,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)},g=a.webkitRequestFileSystem,h=a.requestFileSystem||g||a.mozRequestFileSystem,i=function(b){(a.setImmediate||a.setTimeout)(function(){throw b},0)},j="application/octet-stream",k=0,l=500,m=function(b){var d=function(){"string"==typeof b?c().revokeObjectURL(b):b.remove()};a.chrome?d():setTimeout(d,l)},n=function(a,b,c){b=[].concat(b);for(var d=b.length;d--;){var e=a["on"+b[d]];if("function"==typeof e)try{e.call(a,c||a)}catch(f){i(f)}}},o=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a},p=function(b,i){b=o(b);var l,p,q,r=this,s=b.type,t=!1,u=function(){n(r,"writestart progress write writeend".split(" "))},v=function(){if((t||!l)&&(l=c().createObjectURL(b)),p)p.location.href=l;else{var d=a.open(l,"_blank");void 0==d&&"undefined"!=typeof safari&&(a.location.href=l)}r.readyState=r.DONE,u(),m(l)},w=function(a){return function(){return r.readyState!==r.DONE?a.apply(this,arguments):void 0}},x={create:!0,exclusive:!1};return r.readyState=r.INIT,i||(i="download"),e?(l=c().createObjectURL(b),d.href=l,d.download=i,f(d),r.readyState=r.DONE,u(),void m(l)):(a.chrome&&s&&s!==j&&(q=b.slice||b.webkitSlice,b=q.call(b,0,b.size,j),t=!0),g&&"download"!==i&&(i+=".download"),(s===j||g)&&(p=a),h?(k+=b.size,void h(a.TEMPORARY,k,w(function(a){a.root.getDirectory("saved",x,w(function(a){var c=function(){a.getFile(i,x,w(function(a){a.createWriter(w(function(c){c.onwriteend=function(b){p.location.href=a.toURL(),r.readyState=r.DONE,n(r,"writeend",b),m(a)},c.onerror=function(){var a=c.error;a.code!==a.ABORT_ERR&&v()},"writestart progress write abort".split(" ").forEach(function(a){c["on"+a]=r["on"+a]}),c.write(b),r.abort=function(){c.abort(),r.readyState=r.DONE},r.readyState=r.WRITING}),v)}),v)};a.getFile(i,{create:!1},w(function(a){a.remove(),c()}),w(function(a){a.code===a.NOT_FOUND_ERR?c():v()}))}),v)}),v)):void v())},q=p.prototype,r=function(a,b){return new p(a,b)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(a,b){return navigator.msSaveOrOpenBlob(o(a),b)}:(q.abort=function(){var a=this;a.readyState=a.DONE,n(a,"abort")},q.readyState=q.INIT=0,q.WRITING=1,q.DONE=2,q.error=q.onwritestart=q.onprogress=q.onwrite=q.onabort=q.onerror=q.onwriteend=null,r)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs}),function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(a){"use strict";if(a.URL=a.URL||a.webkitURL,a.Blob&&a.URL)try{return void new Blob}catch(b){}var c=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||function(a){var b=function(a){return Object.prototype.toString.call(a).match(/^\[object\s(.*)\]$/)[1]},c=function(){this.data=[]},d=function(a,b,c){this.data=a,this.size=a.length,this.type=b,this.encoding=c},e=c.prototype,f=d.prototype,g=a.FileReaderSync,h=function(a){this.code=this[this.name=a]},i="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),j=i.length,k=a.URL||a.webkitURL||a,l=k.createObjectURL,m=k.revokeObjectURL,n=k,o=a.btoa,p=a.atob,q=a.ArrayBuffer,r=a.Uint8Array,s=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(d.fake=f.fake=!0;j--;)h.prototype[i[j]]=j+1;return k.createObjectURL||(n=a.URL=function(a){var b,c=document.createElementNS("http://www.w3.org/1999/xhtml","a");return c.href=a,"origin"in c||("data:"===c.protocol.toLowerCase()?c.origin=null:(b=a.match(s),c.origin=b&&b[1])),c}),n.createObjectURL=function(a){var b,c=a.type;return null===c&&(c="application/octet-stream"),a instanceof d?(b="data:"+c,"base64"===a.encoding?b+";base64,"+a.data:"URI"===a.encoding?b+","+decodeURIComponent(a.data):o?b+";base64,"+o(a.data):b+","+encodeURIComponent(a.data)):l?l.call(k,a):void 0},n.revokeObjectURL=function(a){"data:"!==a.substring(0,5)&&m&&m.call(k,a)},e.append=function(a){var c=this.data;if(r&&(a instanceof q||a instanceof r)){for(var e="",f=new r(a),i=0,j=f.length;j>i;i++)e+=String.fromCharCode(f[i]);c.push(e)}else if("Blob"===b(a)||"File"===b(a)){if(!g)throw new h("NOT_READABLE_ERR");var k=new g;c.push(k.readAsBinaryString(a))}else a instanceof d?"base64"===a.encoding&&p?c.push(p(a.data)):"URI"===a.encoding?c.push(decodeURIComponent(a.data)):"raw"===a.encoding&&c.push(a.data):("string"!=typeof a&&(a+=""),c.push(unescape(encodeURIComponent(a))))},e.getBlob=function(a){return arguments.length||(a=null),new d(this.data.join(""),a,"raw")},e.toString=function(){return"[object BlobBuilder]"},f.slice=function(a,b,c){var e=arguments.length;return 3>e&&(c=null),new d(this.data.slice(a,e>1?b:this.data.length),c,this.encoding)},f.toString=function(){return"[object Blob]"},f.close=function(){this.size=0,delete this.data},c}(a);a.Blob=function(a,b){var d=b?b.type||"":"",e=new c;if(a)for(var f=0,g=a.length;g>f;f++)Uint8Array&&a[f]instanceof Uint8Array?e.append(a[f].buffer):e.append(a[f]);var h=e.getBlob(d);return!h.slice&&h.webkitSlice&&(h.slice=h.webkitSlice),h};var d=Object.getPrototypeOf||function(a){return a.__proto__};a.Blob.prototype=d(new a.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},{}],2:[function(a,b,c){var d=d||function(a){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var b=a.document,c=function(){return a.URL||a.webkitURL||a},d=b.createElementNS("http://www.w3.org/1999/xhtml","a"),e="download"in d,f=function(a){var b=new MouseEvent("click");a.dispatchEvent(b)},g=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),h=a.webkitRequestFileSystem,i=a.requestFileSystem||h||a.mozRequestFileSystem,j=function(b){(a.setImmediate||a.setTimeout)(function(){throw b},0)},k="application/octet-stream",l=0,m=500,n=function(b){var d=function(){"string"==typeof b?c().revokeObjectURL(b):b.remove()};a.chrome?d():setTimeout(d,m)},o=function(a,b,c){b=[].concat(b);for(var d=b.length;d--;){var e=a["on"+b[d]];if("function"==typeof e)try{e.call(a,c||a)}catch(f){j(f)}}},p=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a},q=function(b,j,m){m||(b=p(b));var q,r,s,t=this,u=b.type,v=!1,w=function(){o(t,"writestart progress write writeend".split(" "))},x=function(){if(r&&g&&"undefined"!=typeof FileReader){var d=new FileReader;return d.onloadend=function(){var a=d.result;r.location.href="data:attachment/file"+a.slice(a.search(/[,;]/)),t.readyState=t.DONE,w()},d.readAsDataURL(b),void(t.readyState=t.INIT)}if((v||!q)&&(q=c().createObjectURL(b)),r)r.location.href=q;else{var e=a.open(q,"_blank");void 0==e&&g&&(a.location.href=q)}t.readyState=t.DONE,w(),n(q)},y=function(a){return function(){return t.readyState!==t.DONE?a.apply(this,arguments):void 0}},z={create:!0,exclusive:!1};return t.readyState=t.INIT,j||(j="download"),e?(q=c().createObjectURL(b),void setTimeout(function(){d.href=q,d.download=j,f(d),w(),n(q),t.readyState=t.DONE})):(a.chrome&&u&&u!==k&&(s=b.slice||b.webkitSlice,b=s.call(b,0,b.size,k),v=!0),h&&"download"!==j&&(j+=".download"),(u===k||h)&&(r=a),i?(l+=b.size,void i(a.TEMPORARY,l,y(function(a){a.root.getDirectory("saved",z,y(function(a){var c=function(){a.getFile(j,z,y(function(a){a.createWriter(y(function(c){c.onwriteend=function(b){r.location.href=a.toURL(),t.readyState=t.DONE,o(t,"writeend",b),n(a)},c.onerror=function(){var a=c.error;a.code!==a.ABORT_ERR&&x()},"writestart progress write abort".split(" ").forEach(function(a){c["on"+a]=t["on"+a]}),c.write(b),t.abort=function(){c.abort(),t.readyState=t.DONE},t.readyState=t.WRITING}),x)}),x)};a.getFile(j,{create:!1},y(function(a){a.remove(),c()}),y(function(a){a.code===a.NOT_FOUND_ERR?c():x()}))}),x)}),x)):void x())},r=q.prototype,s=function(a,b,c){return new q(a,b,c)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(a,b,c){return c||(a=p(a)),navigator.msSaveOrOpenBlob(a,b||"download")}:(r.abort=function(){var a=this;a.readyState=a.DONE,o(a,"abort")},r.readyState=r.INIT=0,r.WRITING=1,r.DONE=2,r.error=r.onwritestart=r.onprogress=r.onwrite=r.onabort=r.onerror=r.onwriteend=null,s)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
+"undefined"!=typeof b&&b.exports?b.exports.saveAs=d:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return d})},{}],3:[function(a,b,c){"use strict";angular.module("ngFileSaver",[]).factory("FileSaver",["Blob","SaveAs","FileSaverUtils",a("./angular-file-saver.service")]).factory("FileSaverUtils",[a("./utils/utils.service.js")]).factory("Blob",["$window",a("./dependencies/blob-bundle.service.js")]).factory("SaveAs",[a("./dependencies/file-saver-bundle.service.js")])},{"./angular-file-saver.service":4,"./dependencies/blob-bundle.service.js":5,"./dependencies/file-saver-bundle.service.js":6,"./utils/utils.service.js":7}],4:[function(a,b,c){"use strict";b.exports=function(a,b,c){function d(a,d,e){try{b(a,d,e)}catch(f){c.handleErrors(f.message)}}return{saveAs:function(a,b,e){return c.isBlobInstance(a)||c.handleErrors("Data argument should be a blob instance"),c.isString(b)||c.handleErrors("Filename argument should be a string"),d(a,b,e)}}}},{}],5:[function(a,b,c){"use strict";a("Blob.js"),b.exports=function(a){return a.Blob}},{"Blob.js":1}],6:[function(a,b,c){"use strict";b.exports=function(){return a("FileSaver.js").saveAs||function(){}}},{"FileSaver.js":2}],7:[function(a,b,c){"use strict";b.exports=function(){return{handleErrors:function(a){throw new Error(a)},isString:function(a){return"string"==typeof a||a instanceof String},isUndefined:function(a){return"undefined"==typeof a},isBlobInstance:function(a){return a instanceof Blob}}}},{}]},{},[3]),!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.io=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":2}],2:[function(a,b,c){function d(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d=e(a),f=d.source,j=d.id;return b.forceNew||b["force new connection"]||!1===b.multiplex?(h("ignoring socket cache for %s",f),c=g(f,b)):(i[j]||(h("new io instance for %s",f),i[j]=g(f,b)),c=i[j]),c.socket(d.path)}var e=a("./url"),f=a("socket.io-parser"),g=a("./manager"),h=a("debug")("socket.io-client");b.exports=c=d;var i=c.managers={};c.protocol=f.protocol,c.connect=d,c.Manager=a("./manager"),c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":44}],3:[function(a,b,c){function d(a,b){return this instanceof d?(a&&"object"==typeof a&&(b=a,a=void 0),b=b||{},b.path=b.path||"/socket.io",this.nsps={},this.subs=[],this.opts=b,this.reconnection(b.reconnection!==!1),this.reconnectionAttempts(b.reconnectionAttempts||1/0),this.reconnectionDelay(b.reconnectionDelay||1e3),this.reconnectionDelayMax(b.reconnectionDelayMax||5e3),this.randomizationFactor(b.randomizationFactor||.5),this.backoff=new m({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==b.timeout?2e4:b.timeout),this.readyState="closed",this.uri=a,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new h.Encoder,this.decoder=new h.Decoder,this.autoConnect=b.autoConnect!==!1,void(this.autoConnect&&this.open())):new d(a,b)}var e=(a("./url"),a("engine.io-client")),f=a("./socket"),g=a("component-emitter"),h=a("socket.io-parser"),i=a("./on"),j=a("component-bind"),k=(a("object-component"),a("debug")("socket.io-client:manager")),l=a("indexof"),m=a("backo2");b.exports=d,d.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var a in this.nsps)this.nsps[a].emit.apply(this.nsps[a],arguments)},d.prototype.updateSocketIds=function(){for(var a in this.nsps)this.nsps[a].id=this.engine.id},g(d.prototype),d.prototype.reconnection=function(a){return arguments.length?(this._reconnection=!!a,this):this._reconnection},d.prototype.reconnectionAttempts=function(a){return arguments.length?(this._reconnectionAttempts=a,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(a){return arguments.length?(this._reconnectionDelay=a,this.backoff&&this.backoff.setMin(a),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(a){return arguments.length?(this._randomizationFactor=a,this.backoff&&this.backoff.setJitter(a),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(a){return arguments.length?(this._reconnectionDelayMax=a,this.backoff&&this.backoff.setMax(a),this):this._reconnectionDelayMax},d.prototype.timeout=function(a){return arguments.length?(this._timeout=a,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},d.prototype.open=d.prototype.connect=function(a){if(k("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;k("opening %s",this.uri),this.engine=e(this.uri,this.opts);var b=this.engine,c=this;this.readyState="opening",this.skipReconnect=!1;var d=i(b,"open",function(){c.onopen(),a&&a()}),f=i(b,"error",function(b){if(k("connect_error"),c.cleanup(),c.readyState="closed",c.emitAll("connect_error",b),a){var d=new Error("Connection error");d.data=b,a(d)}else c.maybeReconnectOnOpen()});if(!1!==this._timeout){var g=this._timeout;k("connect attempt will timeout after %d",g);var h=setTimeout(function(){k("connect attempt timed out after %d",g),d.destroy(),b.close(),b.emit("error","timeout"),c.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(h)}})}return this.subs.push(d),this.subs.push(f),this},d.prototype.onopen=function(){k("open"),this.cleanup(),this.readyState="open",this.emit("open");var a=this.engine;this.subs.push(i(a,"data",j(this,"ondata"))),this.subs.push(i(this.decoder,"decoded",j(this,"ondecoded"))),this.subs.push(i(a,"error",j(this,"onerror"))),this.subs.push(i(a,"close",j(this,"onclose")))},d.prototype.ondata=function(a){this.decoder.add(a)},d.prototype.ondecoded=function(a){this.emit("packet",a)},d.prototype.onerror=function(a){k("error",a),this.emitAll("error",a)},d.prototype.socket=function(a){var b=this.nsps[a];if(!b){b=new f(this,a),this.nsps[a]=b;var c=this;b.on("connect",function(){b.id=c.engine.id,~l(c.connected,b)||c.connected.push(b)})}return b},d.prototype.destroy=function(a){var b=l(this.connected,a);~b&&this.connected.splice(b,1),this.connected.length||this.close()},d.prototype.packet=function(a){k("writing packet %j",a);var b=this;b.encoding?b.packetBuffer.push(a):(b.encoding=!0,this.encoder.encode(a,function(a){for(var c=0;c<a.length;c++)b.engine.write(a[c]);b.encoding=!1,b.processPacketQueue()}))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var a=this.packetBuffer.shift();this.packet(a)}},d.prototype.cleanup=function(){for(var a;a=this.subs.shift();)a.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(a){k("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",a),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var a=this;if(this.backoff.attempts>=this._reconnectionAttempts)k("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var b=this.backoff.duration();k("will wait %dms before reconnect attempt",b),this.reconnecting=!0;var c=setTimeout(function(){a.skipReconnect||(k("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(b){b?(k("reconnect attempt error"),a.reconnecting=!1,a.reconnect(),a.emitAll("reconnect_error",b.data)):(k("reconnect success"),a.onreconnect())}))},b);this.subs.push({destroy:function(){clearTimeout(c)}})}},d.prototype.onreconnect=function(){var a=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(a,b,c){function d(a,b,c){return a.on(b,c),{destroy:function(){a.removeListener(b,c)}}}b.exports=d},{}],5:[function(a,b,c){function d(a,b){this.io=a,this.nsp=b,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var e=a("socket.io-parser"),f=a("component-emitter"),g=a("to-array"),h=a("./on"),i=a("component-bind"),j=a("debug")("socket.io-client:socket"),k=a("has-binary");b.exports=c=d;var l={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},m=f.prototype.emit;f(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var a=this.io;this.subs=[h(a,"open",i(this,"onopen")),h(a,"packet",i(this,"onpacket")),h(a,"close",i(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this)},d.prototype.send=function(){var a=g(arguments);return a.unshift("message"),this.emit.apply(this,a),this},d.prototype.emit=function(a){if(l.hasOwnProperty(a))return m.apply(this,arguments),this;var b=g(arguments),c=e.EVENT;k(b)&&(c=e.BINARY_EVENT);var d={type:c,data:b};return"function"==typeof b[b.length-1]&&(j("emitting packet with ack id %d",this.ids),this.acks[this.ids]=b.pop(),d.id=this.ids++),this.connected?this.packet(d):this.sendBuffer.push(d),this},d.prototype.packet=function(a){a.nsp=this.nsp,this.io.packet(a)},d.prototype.onopen=function(){j("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:e.CONNECT})},d.prototype.onclose=function(a){j("close (%s)",a),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",a)},d.prototype.onpacket=function(a){if(a.nsp==this.nsp)switch(a.type){case e.CONNECT:this.onconnect();break;case e.EVENT:this.onevent(a);break;case e.BINARY_EVENT:this.onevent(a);break;case e.ACK:this.onack(a);break;case e.BINARY_ACK:this.onack(a);break;case e.DISCONNECT:this.ondisconnect();break;case e.ERROR:this.emit("error",a.data)}},d.prototype.onevent=function(a){var b=a.data||[];j("emitting event %j",b),null!=a.id&&(j("attaching ack callback to event"),b.push(this.ack(a.id))),this.connected?m.apply(this,b):this.receiveBuffer.push(b)},d.prototype.ack=function(a){var b=this,c=!1;return function(){if(!c){c=!0;var d=g(arguments);j("sending ack %j",d);var f=k(d)?e.BINARY_ACK:e.ACK;b.packet({type:f,id:a,data:d})}}},d.prototype.onack=function(a){j("calling ack %s with %j",a.id,a.data);var b=this.acks[a.id];b.apply(this,a.data),delete this.acks[a.id]},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var a;for(a=0;a<this.receiveBuffer.length;a++)m.apply(this,this.receiveBuffer[a]);for(this.receiveBuffer=[],a=0;a<this.sendBuffer.length;a++)this.packet(this.sendBuffer[a]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){j("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var a=0;a<this.subs.length;a++)this.subs[a].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(j("performing disconnect (%s)",this.nsp),this.packet({type:e.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":4,"component-bind":8,"component-emitter":9,debug:10,"has-binary":36,"socket.io-parser":44,"to-array":48}],6:[function(a,b,c){(function(c){function d(a,b){var d=a,b=b||c.location;return null==a&&(a=b.protocol+"//"+b.host),"string"==typeof a&&("/"==a.charAt(0)&&(a="/"==a.charAt(1)?b.protocol+a:b.hostname+a),/^(https?|wss?):\/\//.test(a)||(f("protocol-less url %s",a),a="undefined"!=typeof b?b.protocol+"//"+a:"https://"+a),f("parse %s",a),d=e(a)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/",d.id=d.protocol+"://"+d.host+":"+d.port,d.href=d.protocol+"://"+d.host+(b&&b.port==d.port?"":":"+d.port),d}var e=a("parseuri"),f=a("debug")("socket.io-client:url");b.exports=d}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:10,parseuri:42}],7:[function(a,b,c){function d(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}b.exports=d,d.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var b=Math.random(),c=Math.floor(b*this.jitter*a);a=0==(1&Math.floor(10*b))?a-c:a+c}return 0|Math.min(a,this.max)},d.prototype.reset=function(){this.attempts=0},d.prototype.setMin=function(a){this.ms=a},d.prototype.setMax=function(a){this.max=a},d.prototype.setJitter=function(a){this.jitter=a}},{}],8:[function(a,b,c){var d=[].slice;b.exports=function(a,b){if("string"==typeof b&&(b=a[b]),"function"!=typeof b)throw new Error("bind() requires a function");var c=d.call(arguments,2);return function(){return b.apply(a,c.concat(d.call(arguments)))}}},{}],9:[function(a,b,c){function d(a){return a?e(a):void 0}function e(a){for(var b in d.prototype)a[b]=d.prototype[b];return a}b.exports=d,d.prototype.on=d.prototype.addEventListener=function(a,b){return this._callbacks=this._callbacks||{},(this._callbacks[a]=this._callbacks[a]||[]).push(b),this},d.prototype.once=function(a,b){function c(){d.off(a,c),b.apply(this,arguments)}var d=this;return this._callbacks=this._callbacks||{},c.fn=b,this.on(a,c),this},d.prototype.off=d.prototype.removeListener=d.prototype.removeAllListeners=d.prototype.removeEventListener=function(a,b){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var c=this._callbacks[a];if(!c)return this;if(1==arguments.length)return delete this._callbacks[a],this;for(var d,e=0;e<c.length;e++)if(d=c[e],d===b||d.fn===b){c.splice(e,1);break}return this},d.prototype.emit=function(a){this._callbacks=this._callbacks||{};var b=[].slice.call(arguments,1),c=this._callbacks[a];if(c){c=c.slice(0);for(var d=0,e=c.length;e>d;++d)c[d].apply(this,b)}return this},d.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks[a]||[]},d.prototype.hasListeners=function(a){return!!this.listeners(a).length}},{}],10:[function(a,b,c){function d(a){return d.enabled(a)?function(b){b=e(b);var c=new Date,f=c-(d[a]||c);d[a]=c,b=a+" "+b+" +"+d.humanize(f),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function e(a){return a instanceof Error?a.stack||a.message:a}b.exports=d,d.names=[],d.skips=[],d.enable=function(a){try{localStorage.debug=a}catch(b){}for(var c=(a||"").split(/[\s,]+/),e=c.length,f=0;e>f;f++)a=c[f].replace("*",".*?"),"-"===a[0]?d.skips.push(new RegExp("^"+a.substr(1)+"$")):d.names.push(new RegExp("^"+a+"$"))},d.disable=function(){d.enable("")},d.humanize=function(a){var b=1e3,c=6e4,d=60*c;return a>=d?(a/d).toFixed(1)+"h":a>=c?(a/c).toFixed(1)+"m":a>=b?(a/b|0)+"s":a+"ms"},d.enabled=function(a){for(var b=0,c=d.skips.length;c>b;b++)if(d.skips[b].test(a))return!1;for(var b=0,c=d.names.length;c>b;b++)if(d.names[b].test(a))return!0;return!1};try{window.localStorage&&d.enable(localStorage.debug)}catch(f){}},{}],11:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":12}],12:[function(a,b,c){b.exports=a("./socket"),b.exports.parser=a("engine.io-parser")},{"./socket":13,"engine.io-parser":25}],13:[function(a,b,c){(function(c){function d(a,b){if(!(this instanceof d))return new d(a,b);if(b=b||{},a&&"object"==typeof a&&(b=a,a=null),a&&(a=k(a),b.host=a.host,b.secure="https"==a.protocol||"wss"==a.protocol,b.port=a.port,a.query&&(b.query=a.query)),this.secure=null!=b.secure?b.secure:c.location&&"https:"==location.protocol,b.host){var e=b.host.split(":");b.hostname=e.shift(),e.length?b.port=e.pop():b.port||(b.port=this.secure?"443":"80")}this.agent=b.agent||!1,this.hostname=b.hostname||(c.location?location.hostname:"localhost"),this.port=b.port||(c.location&&location.port?location.port:this.secure?443:80),this.query=b.query||{},"string"==typeof this.query&&(this.query=m.decode(this.query)),this.upgrade=!1!==b.upgrade,this.path=(b.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!b.forceJSONP,this.jsonp=!1!==b.jsonp,this.forceBase64=!!b.forceBase64,this.enablesXDR=!!b.enablesXDR,this.timestampParam=b.timestampParam||"t",this.timestampRequests=b.timestampRequests,this.transports=b.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=b.policyPort||843,this.rememberUpgrade=b.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=b.onlyBinaryUpgrades,this.pfx=b.pfx||null,this.key=b.key||null,this.passphrase=b.passphrase||null,this.cert=b.cert||null,this.ca=b.ca||null,this.ciphers=b.ciphers||null,this.rejectUnauthorized=b.rejectUnauthorized||null,this.open()}function e(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}var f=a("./transports"),g=a("component-emitter"),h=a("debug")("engine.io-client:socket"),i=a("indexof"),j=a("engine.io-parser"),k=a("parseuri"),l=a("parsejson"),m=a("parseqs");b.exports=d,d.priorWebsocketSuccess=!1,g(d.prototype),d.protocol=j.protocol,d.Socket=d,d.Transport=a("./transport"),d.transports=a("./transports"),d.parser=a("engine.io-parser"),d.prototype.createTransport=function(a){h('creating transport "%s"',a);var b=e(this.query);b.EIO=j.protocol,b.transport=a,this.id&&(b.sid=this.id);var c=new f[a]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:b,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return c},d.prototype.open=function(){var a;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))a="websocket";else{if(0==this.transports.length){var b=this;return void setTimeout(function(){b.emit("error","No transports available")},0)}a=this.transports[0]}this.readyState="opening";var a;try{a=this.createTransport(a)}catch(c){return this.transports.shift(),void this.open()}a.open(),this.setTransport(a)},d.prototype.setTransport=function(a){h("setting transport %s",a.name);var b=this;this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=a,a.on("drain",function(){b.onDrain()}).on("packet",function(a){b.onPacket(a)}).on("error",function(a){b.onError(a)}).on("close",function(){b.onClose("transport close")})},d.prototype.probe=function(a){function b(){if(m.onlyBinaryUpgrades){var b=!this.supportsBinary&&m.transport.supportsBinary;l=l||b}l||(h('probe transport "%s" opened',a),k.send([{type:"ping",data:"probe"}]),k.once("packet",function(b){if(!l)if("pong"==b.type&&"probe"==b.data){if(h('probe transport "%s" pong',a),m.upgrading=!0,m.emit("upgrading",k),!k)return;d.priorWebsocketSuccess="websocket"==k.name,h('pausing current transport "%s"',m.transport.name),m.transport.pause(function(){l||"closed"!=m.readyState&&(h("changing transport and sending upgrade packet"),j(),m.setTransport(k),k.send([{type:"upgrade"}]),m.emit("upgrade",k),k=null,m.upgrading=!1,m.flush())})}else{h('probe transport "%s" failed',a);var c=new Error("probe error");c.transport=k.name,m.emit("upgradeError",c)}}))}function c(){l||(l=!0,j(),k.close(),k=null)}function e(b){var d=new Error("probe error: "+b);d.transport=k.name,c(),h('probe transport "%s" failed because of error: %s',a,b),m.emit("upgradeError",d)}function f(){e("transport closed")}function g(){e("socket closed")}function i(a){k&&a.name!=k.name&&(h('"%s" works - aborting "%s"',a.name,k.name),c())}function j(){k.removeListener("open",b),k.removeListener("error",e),k.removeListener("close",f),m.removeListener("close",g),m.removeListener("upgrading",i)}h('probing transport "%s"',a);var k=this.createTransport(a,{probe:1}),l=!1,m=this;d.priorWebsocketSuccess=!1,k.once("open",b),k.once("error",e),k.once("close",f),this.once("close",g),this.once("upgrading",i),k.open()},d.prototype.onOpen=function(){if(h("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){h("starting upgrade probes");for(var a=0,b=this.upgrades.length;b>a;a++)this.probe(this.upgrades[a])}},d.prototype.onPacket=function(a){if("opening"==this.readyState||"open"==this.readyState)switch(h('socket receive: type "%s", data "%s"',a.type,a.data),this.emit("packet",a),this.emit("heartbeat"),a.type){case"open":this.onHandshake(l(a.data));break;case"pong":this.setPing();break;case"error":var b=new Error("server error");b.code=a.data,this.emit("error",b);break;case"message":this.emit("data",a.data),this.emit("message",a.data)}else h('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(a){this.emit("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this.upgrades=this.filterUpgrades(a.upgrades),this.pingInterval=a.pingInterval,this.pingTimeout=a.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(a){clearTimeout(this.pingTimeoutTimer);var b=this;b.pingTimeoutTimer=setTimeout(function(){"closed"!=b.readyState&&b.onClose("ping timeout")},a||b.pingInterval+b.pingTimeout)},d.prototype.setPing=function(){var a=this;clearTimeout(a.pingIntervalTimer),a.pingIntervalTimer=setTimeout(function(){h("writing ping packet - expecting pong within %sms",a.pingTimeout),a.ping(),a.onHeartbeat(a.pingTimeout)},a.pingInterval)},d.prototype.ping=function(){this.sendPacket("ping")},d.prototype.onDrain=function(){for(var a=0;a<this.prevBufferLen;a++)this.callbackBuffer[a]&&this.callbackBuffer[a]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0==this.writeBuffer.length?this.emit("drain"):this.flush()},d.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(h("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},d.prototype.write=d.prototype.send=function(a,b){return this.sendPacket("message",a,b),this},d.prototype.sendPacket=function(a,b,c){if("closing"!=this.readyState&&"closed"!=this.readyState){var d={type:a,data:b};this.emit("packetCreate",d),this.writeBuffer.push(d),this.callbackBuffer.push(c),this.flush()}},d.prototype.close=function(){function a(){d.onClose("forced close"),h("socket closing - telling transport to close"),d.transport.close()}function b(){d.removeListener("upgrade",b),d.removeListener("upgradeError",b),a()}function c(){d.once("upgrade",b),d.once("upgradeError",b)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var d=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?c():a()}):this.upgrading?c():a()}return this},d.prototype.onError=function(a){h("socket error %j",a),d.priorWebsocketSuccess=!1,this.emit("error",a),this.onClose("transport error",a)},d.prototype.onClose=function(a,b){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){h('socket close with reason: "%s"',a);var c=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){c.writeBuffer=[],c.callbackBuffer=[],c.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",a,b)}},d.prototype.filterUpgrades=function(a){for(var b=[],c=0,d=a.length;d>c;c++)~i(this.transports,a[c])&&b.push(a[c]);return b}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transport":14,"./transports":15,"component-emitter":9,debug:22,"engine.io-parser":25,indexof:40,parsejson:32,parseqs:33,parseuri:34}],14:[function(a,b,c){function d(a){this.path=a.path,this.hostname=a.hostname,this.port=a.port,this.secure=a.secure,this.query=a.query,this.timestampParam=a.timestampParam,this.timestampRequests=a.timestampRequests,this.readyState="",this.agent=a.agent||!1,this.socket=a.socket,this.enablesXDR=a.enablesXDR,this.pfx=a.pfx,this.key=a.key,this.passphrase=a.passphrase,this.cert=a.cert,this.ca=a.ca,this.ciphers=a.ciphers,this.rejectUnauthorized=a.rejectUnauthorized}var e=a("engine.io-parser"),f=a("component-emitter");b.exports=d,f(d.prototype),d.timestamps=0,d.prototype.onError=function(a,b){var c=new Error(a);return c.type="TransportError",c.description=b,this.emit("error",c),this},d.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},d.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},d.prototype.send=function(a){if("open"!=this.readyState)throw new Error("Transport not open");this.write(a)},d.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},d.prototype.onData=function(a){var b=e.decodePacket(a,this.socket.binaryType);this.onPacket(b)},d.prototype.onPacket=function(a){this.emit("packet",a)},d.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":9,"engine.io-parser":25}],15:[function(a,b,c){(function(b){function d(a){var c,d=!1,h=!1,i=!1!==a.jsonp;if(b.location){var j="https:"==location.protocol,k=location.port;k||(k=j?443:80),d=a.hostname!=location.hostname||k!=a.port,h=a.secure!=j}if(a.xdomain=d,a.xscheme=h,c=new e(a),"open"in c&&!a.forceJSONP)return new f(a);if(!i)throw new Error("JSONP disabled");return new g(a)}var e=a("xmlhttprequest"),f=a("./polling-xhr"),g=a("./polling-jsonp"),h=a("./websocket");c.polling=d,c.websocket=h}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(a,b,c){(function(c){function d(){}function e(a){f.call(this,a),this.query=this.query||{},h||(c.___eio||(c.___eio=[]),h=c.___eio),this.index=h.length;var b=this;h.push(function(a){b.onData(a)}),this.query.j=this.index,c.document&&c.addEventListener&&c.addEventListener("beforeunload",function(){b.script&&(b.script.onerror=d)},!1)}var f=a("./polling"),g=a("component-inherit");b.exports=e;var h,i=/\n/g,j=/\\n/g;g(e,f),e.prototype.supportsBinary=!1,e.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),f.prototype.doClose.call(this)},e.prototype.doPoll=function(){var a=this,b=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),b.async=!0,b.src=this.uri(),b.onerror=function(b){a.onError("jsonp poll error",b)};var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c),this.script=b;var d="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);d&&setTimeout(function(){var a=document.createElement("iframe");document.body.appendChild(a),document.body.removeChild(a)},100)},e.prototype.doWrite=function(a,b){function c(){d(),b()}function d(){if(e.iframe)try{e.form.removeChild(e.iframe)}catch(a){e.onError("jsonp polling iframe removal error",a)}try{var b='<iframe src="javascript:0" name="'+e.iframeId+'">';f=document.createElement(b)}catch(a){f=document.createElement("iframe"),f.name=e.iframeId,f.src="javascript:0"}f.id=e.iframeId,e.form.appendChild(f),e.iframe=f}var e=this;if(!this.form){var f,g=document.createElement("form"),h=document.createElement("textarea"),k=this.iframeId="eio_iframe_"+this.index;g.className="socketio",g.style.position="absolute",g.style.top="-1000px",g.style.left="-1000px",g.target=k,g.method="POST",g.setAttribute("accept-charset","utf-8"),h.name="d",g.appendChild(h),document.body.appendChild(g),this.form=g,this.area=h}this.form.action=this.uri(),d(),a=a.replace(j,"\\\n"),this.area.value=a.replace(i,"\\n");try{this.form.submit()}catch(l){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==e.iframe.readyState&&c()}:this.iframe.onload=c}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-inherit":21}],17:[function(a,b,c){(function(c){function d(){}function e(a){if(i.call(this,a),c.location){var b="https:"==location.protocol,d=location.port;d||(d=b?443:80),this.xd=a.hostname!=c.location.hostname||d!=a.port,this.xs=a.secure!=b}}function f(a){this.method=a.method||"GET",this.uri=a.uri,this.xd=!!a.xd,this.xs=!!a.xs,this.async=!1!==a.async,this.data=void 0!=a.data?a.data:null,this.agent=a.agent,this.isBinary=a.isBinary,this.supportsBinary=a.supportsBinary,this.enablesXDR=a.enablesXDR,this.pfx=a.pfx,this.key=a.key,this.passphrase=a.passphrase,this.cert=a.cert,this.ca=a.ca,this.ciphers=a.ciphers,this.rejectUnauthorized=a.rejectUnauthorized,this.create()}function g(){for(var a in f.requests)f.requests.hasOwnProperty(a)&&f.requests[a].abort()}var h=a("xmlhttprequest"),i=a("./polling"),j=a("component-emitter"),k=a("component-inherit"),l=a("debug")("engine.io-client:polling-xhr");b.exports=e,b.exports.Request=f,k(e,i),e.prototype.supportsBinary=!0,e.prototype.request=function(a){return a=a||{},a.uri=this.uri(),a.xd=this.xd,a.xs=this.xs,a.agent=this.agent||!1,a.supportsBinary=this.supportsBinary,a.enablesXDR=this.enablesXDR,a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized,new f(a)},e.prototype.doWrite=function(a,b){var c="string"!=typeof a&&void 0!==a,d=this.request({method:"POST",data:a,isBinary:c}),e=this;d.on("success",b),d.on("error",function(a){e.onError("xhr post error",a)}),this.sendXhr=d},e.prototype.doPoll=function(){l("xhr poll");var a=this.request(),b=this;a.on("data",function(a){b.onData(a)}),a.on("error",function(a){b.onError("xhr poll error",a)}),this.pollXhr=a},j(f.prototype),f.prototype.create=function(){var a={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized;var b=this.xhr=new h(a),d=this;try{if(l("xhr open %s: %s",this.method,this.uri),b.open(this.method,this.uri,this.async),this.supportsBinary&&(b.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?b.setRequestHeader("Content-type","application/octet-stream"):b.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}"withCredentials"in b&&(b.withCredentials=!0),this.hasXDR()?(b.onload=function(){d.onLoad()},b.onerror=function(){
+d.onError(b.responseText)}):b.onreadystatechange=function(){4==b.readyState&&(200==b.status||1223==b.status?d.onLoad():setTimeout(function(){d.onError(b.status)},0))},l("xhr data %s",this.data),b.send(this.data)}catch(e){return void setTimeout(function(){d.onError(e)},0)}c.document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(a){this.emit("data",a),this.onSuccess()},f.prototype.onError=function(a){this.emit("error",a),this.cleanup(!0)},f.prototype.cleanup=function(a){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=d:this.xhr.onreadystatechange=d,a)try{this.xhr.abort()}catch(b){}c.document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var a;try{var b;try{b=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(c){}a="application/octet-stream"===b?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(c){this.onError(c)}null!=a&&this.onData(a)},f.prototype.hasXDR=function(){return"undefined"!=typeof c.XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},c.document&&(f.requestsCount=0,f.requests={},c.attachEvent?c.attachEvent("onunload",g):c.addEventListener&&c.addEventListener("beforeunload",g,!1))}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(a,b,c){function d(a){var b=a&&a.forceBase64;(!j||b)&&(this.supportsBinary=!1),e.call(this,a)}var e=a("../transport"),f=a("parseqs"),g=a("engine.io-parser"),h=a("component-inherit"),i=a("debug")("engine.io-client:polling");b.exports=d;var j=function(){var b=a("xmlhttprequest"),c=new b({xdomain:!1});return null!=c.responseType}();h(d,e),d.prototype.name="polling",d.prototype.doOpen=function(){this.poll()},d.prototype.pause=function(a){function b(){i("paused"),c.readyState="paused",a()}var c=this;if(this.readyState="pausing",this.polling||!this.writable){var d=0;this.polling&&(i("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){i("pre-pause polling complete"),--d||b()})),this.writable||(i("we are currently writing - waiting to pause"),d++,this.once("drain",function(){i("pre-pause writing complete"),--d||b()}))}else b()},d.prototype.poll=function(){i("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},d.prototype.onData=function(a){var b=this;i("polling got data %s",a);var c=function(a,c,d){return"opening"==b.readyState&&b.onOpen(),"close"==a.type?(b.onClose(),!1):void b.onPacket(a)};g.decodePayload(a,this.socket.binaryType,c),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():i('ignoring poll - transport state "%s"',this.readyState))},d.prototype.doClose=function(){function a(){i("writing close packet"),b.write([{type:"close"}])}var b=this;"open"==this.readyState?(i("transport open - closing"),a()):(i("transport not open - deferring close"),this.once("open",a))},d.prototype.write=function(a){var b=this;this.writable=!1;var c=function(){b.writable=!0,b.emit("drain")},b=this;g.encodePayload(a,this.supportsBinary,function(a){b.doWrite(a,c)})},d.prototype.uri=function(){var a=this.query||{},b=this.secure?"https":"http",c="";return!1!==this.timestampRequests&&(a[this.timestampParam]=+new Date+"-"+e.timestamps++),this.supportsBinary||a.sid||(a.b64=1),a=f.encode(a),this.port&&("https"==b&&443!=this.port||"http"==b&&80!=this.port)&&(c=":"+this.port),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,xmlhttprequest:20}],19:[function(a,b,c){function d(a){var b=a&&a.forceBase64;b&&(this.supportsBinary=!1),e.call(this,a)}var e=a("../transport"),f=a("engine.io-parser"),g=a("parseqs"),h=a("component-inherit"),i=a("debug")("engine.io-client:websocket"),j=a("ws");b.exports=d,h(d,e),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var a=this.uri(),b=void 0,c={agent:this.agent};c.pfx=this.pfx,c.key=this.key,c.passphrase=this.passphrase,c.cert=this.cert,c.ca=this.ca,c.ciphers=this.ciphers,c.rejectUnauthorized=this.rejectUnauthorized,this.ws=new j(a,b,c),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var a=this;this.ws.onopen=function(){a.onOpen()},this.ws.onclose=function(){a.onClose()},this.ws.onmessage=function(b){a.onData(b.data)},this.ws.onerror=function(b){a.onError("websocket error",b)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(d.prototype.onData=function(a){var b=this;setTimeout(function(){e.prototype.onData.call(b,a)},0)}),d.prototype.write=function(a){function b(){c.writable=!0,c.emit("drain")}var c=this;this.writable=!1;for(var d=0,e=a.length;e>d;d++)f.encodePacket(a[d],this.supportsBinary,function(a){try{c.ws.send(a)}catch(b){i("websocket closed before onclose event")}});setTimeout(b,0)},d.prototype.onClose=function(){e.prototype.onClose.call(this)},d.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},d.prototype.uri=function(){var a=this.query||{},b=this.secure?"wss":"ws",c="";return this.port&&("wss"==b&&443!=this.port||"ws"==b&&80!=this.port)&&(c=":"+this.port),this.timestampRequests&&(a[this.timestampParam]=+new Date),this.supportsBinary||(a.b64=1),a=g.encode(a),a.length&&(a="?"+a),b+"://"+this.hostname+c+this.path+a},d.prototype.check=function(){return!(!j||"__initialize"in j&&this.name===d.prototype.name)}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:33,ws:35}],20:[function(a,b,c){var d=a("has-cors");b.exports=function(a){var b=a.xdomain,c=a.xscheme,e=a.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!b||d))return new XMLHttpRequest}catch(f){}try{if("undefined"!=typeof XDomainRequest&&!c&&e)return new XDomainRequest}catch(f){}if(!b)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}},{"has-cors":38}],21:[function(a,b,c){b.exports=function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],22:[function(a,b,c){function d(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function e(){var a=arguments,b=this.useColors;if(a[0]=(b?"%c":"")+this.namespace+(b?" %c":" ")+a[0]+(b?"%c ":" ")+"+"+c.humanize(this.diff),!b)return a;var d="color: "+this.color;a=[a[0],d,"color: inherit"].concat(Array.prototype.slice.call(a,1));var e=0,f=0;return a[0].replace(/%[a-z%]/g,function(a){"%%"!==a&&(e++,"%c"===a&&(f=e))}),a.splice(f,0,d),a}function f(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function g(a){try{null==a?localStorage.removeItem("debug"):localStorage.debug=a}catch(b){}}function h(){var a;try{a=localStorage.debug}catch(b){}return a}c=b.exports=a("./debug"),c.log=f,c.formatArgs=e,c.save=g,c.load=h,c.useColors=d,c.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],c.formatters.j=function(a){return JSON.stringify(a)},c.enable(h())},{"./debug":23}],23:[function(a,b,c){function d(){return c.colors[k++%c.colors.length]}function e(a){function b(){}function e(){var a=e,b=+new Date,f=b-(j||b);a.diff=f,a.prev=j,a.curr=b,j=b,null==a.useColors&&(a.useColors=c.useColors()),null==a.color&&a.useColors&&(a.color=d());var g=Array.prototype.slice.call(arguments);g[0]=c.coerce(g[0]),"string"!=typeof g[0]&&(g=["%o"].concat(g));var h=0;g[0]=g[0].replace(/%([a-z%])/g,function(b,d){if("%%"===b)return b;h++;var e=c.formatters[d];if("function"==typeof e){var f=g[h];b=e.call(a,f),g.splice(h,1),h--}return b}),"function"==typeof c.formatArgs&&(g=c.formatArgs.apply(a,g));var i=e.log||c.log||console.log.bind(console);i.apply(a,g)}b.enabled=!1,e.enabled=!0;var f=c.enabled(a)?e:b;return f.namespace=a,f}function f(a){c.save(a);for(var b=(a||"").split(/[\s,]+/),d=b.length,e=0;d>e;e++)b[e]&&(a=b[e].replace(/\*/g,".*?"),"-"===a[0]?c.skips.push(new RegExp("^"+a.substr(1)+"$")):c.names.push(new RegExp("^"+a+"$")))}function g(){c.enable("")}function h(a){var b,d;for(b=0,d=c.skips.length;d>b;b++)if(c.skips[b].test(a))return!1;for(b=0,d=c.names.length;d>b;b++)if(c.names[b].test(a))return!0;return!1}function i(a){return a instanceof Error?a.stack||a.message:a}c=b.exports=e,c.coerce=i,c.disable=g,c.enable=f,c.enabled=h,c.humanize=a("ms"),c.names=[],c.skips=[],c.formatters={};var j,k=0},{ms:24}],24:[function(a,b,c){function d(a){var b=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(a);if(b){var c=parseFloat(b[1]),d=(b[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"y":return c*l;case"days":case"day":case"d":return c*k;case"hours":case"hour":case"h":return c*j;case"minutes":case"minute":case"m":return c*i;case"seconds":case"second":case"s":return c*h;case"ms":return c}}}function e(a){return a>=k?Math.round(a/k)+"d":a>=j?Math.round(a/j)+"h":a>=i?Math.round(a/i)+"m":a>=h?Math.round(a/h)+"s":a+"ms"}function f(a){return g(a,k,"day")||g(a,j,"hour")||g(a,i,"minute")||g(a,h,"second")||a+" ms"}function g(a,b,c){return b>a?void 0:1.5*b>a?Math.floor(a/b)+" "+c:Math.ceil(a/b)+" "+c+"s"}var h=1e3,i=60*h,j=60*i,k=24*j,l=365.25*k;b.exports=function(a,b){return b=b||{},"string"==typeof a?d(a):b["long"]?f(a):e(a)}},{}],25:[function(a,b,c){(function(b){function d(a,b){var d="b"+c.packets[a.type]+a.data.data;return b(d)}function e(a,b,d){if(!b)return c.encodeBase64Packet(a,d);var e=a.data,f=new Uint8Array(e),g=new Uint8Array(1+e.byteLength);g[0]=r[a.type];for(var h=0;h<f.length;h++)g[h+1]=f[h];return d(g.buffer)}function f(a,b,d){if(!b)return c.encodeBase64Packet(a,d);var e=new FileReader;return e.onload=function(){a.data=e.result,c.encodePacket(a,b,!0,d)},e.readAsArrayBuffer(a.data)}function g(a,b,d){if(!b)return c.encodeBase64Packet(a,d);if(q)return f(a,b,d);var e=new Uint8Array(1);e[0]=r[a.type];var g=new u([e.buffer,a.data]);return d(g)}function h(a,b,c){for(var d=new Array(a.length),e=m(a.length,c),f=function(a,c,e){b(c,function(b,c){d[a]=c,e(b,d)})},g=0;g<a.length;g++)f(g,a[g],e)}var i=a("./keys"),j=a("has-binary"),k=a("arraybuffer.slice"),l=a("base64-arraybuffer"),m=a("after"),n=a("utf8"),o=navigator.userAgent.match(/Android/i),p=/PhantomJS/i.test(navigator.userAgent),q=o||p;c.protocol=3;var r=c.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},s=i(r),t={type:"error",data:"parser error"},u=a("blob");c.encodePacket=function(a,c,f,h){"function"==typeof c&&(h=c,c=!1),"function"==typeof f&&(h=f,f=null);var i=void 0===a.data?void 0:a.data.buffer||a.data;if(b.ArrayBuffer&&i instanceof ArrayBuffer)return e(a,c,h);if(u&&i instanceof b.Blob)return g(a,c,h);if(i&&i.base64)return d(a,h);var j=r[a.type];return void 0!==a.data&&(j+=f?n.encode(String(a.data)):String(a.data)),h(""+j)},c.encodeBase64Packet=function(a,d){var e="b"+c.packets[a.type];if(u&&a.data instanceof u){var f=new FileReader;return f.onload=function(){var a=f.result.split(",")[1];d(e+a)},f.readAsDataURL(a.data)}var g;try{g=String.fromCharCode.apply(null,new Uint8Array(a.data))}catch(h){for(var i=new Uint8Array(a.data),j=new Array(i.length),k=0;k<i.length;k++)j[k]=i[k];g=String.fromCharCode.apply(null,j)}return e+=b.btoa(g),d(e)},c.decodePacket=function(a,b,d){if("string"==typeof a||void 0===a){if("b"==a.charAt(0))return c.decodeBase64Packet(a.substr(1),b);if(d)try{a=n.decode(a)}catch(e){return t}var f=a.charAt(0);return Number(f)==f&&s[f]?a.length>1?{type:s[f],data:a.substring(1)}:{type:s[f]}:t}var g=new Uint8Array(a),f=g[0],h=k(a,1);return u&&"blob"===b&&(h=new u([h])),{type:s[f],data:h}},c.decodeBase64Packet=function(a,c){var d=s[a.charAt(0)];if(!b.ArrayBuffer)return{type:d,data:{base64:!0,data:a.substr(1)}};var e=l.decode(a.substr(1));return"blob"===c&&u&&(e=new u([e])),{type:d,data:e}},c.encodePayload=function(a,b,d){function e(a){return a.length+":"+a}function f(a,d){c.encodePacket(a,g?b:!1,!0,function(a){d(null,e(a))})}"function"==typeof b&&(d=b,b=null);var g=j(a);return b&&g?u&&!q?c.encodePayloadAsBlob(a,d):c.encodePayloadAsArrayBuffer(a,d):a.length?void h(a,f,function(a,b){return d(b.join(""))}):d("0:")},c.decodePayload=function(a,b,d){if("string"!=typeof a)return c.decodePayloadAsBinary(a,b,d);"function"==typeof b&&(d=b,b=null);var e;if(""==a)return d(t,0,1);for(var f,g,h="",i=0,j=a.length;j>i;i++){var k=a.charAt(i);if(":"!=k)h+=k;else{if(""==h||h!=(f=Number(h)))return d(t,0,1);if(g=a.substr(i+1,f),h!=g.length)return d(t,0,1);if(g.length){if(e=c.decodePacket(g,b,!0),t.type==e.type&&t.data==e.data)return d(t,0,1);var l=d(e,i+f,j);if(!1===l)return}i+=f,h=""}}return""!=h?d(t,0,1):void 0},c.encodePayloadAsArrayBuffer=function(a,b){function d(a,b){c.encodePacket(a,!0,!0,function(a){return b(null,a)})}return a.length?void h(a,d,function(a,c){var d=c.reduce(function(a,b){var c;return c="string"==typeof b?b.length:b.byteLength,a+c.toString().length+c+2},0),e=new Uint8Array(d),f=0;return c.forEach(function(a){var b="string"==typeof a,c=a;if(b){for(var d=new Uint8Array(a.length),g=0;g<a.length;g++)d[g]=a.charCodeAt(g);c=d.buffer}b?e[f++]=0:e[f++]=1;for(var h=c.byteLength.toString(),g=0;g<h.length;g++)e[f++]=parseInt(h[g]);e[f++]=255;for(var d=new Uint8Array(c),g=0;g<d.length;g++)e[f++]=d[g]}),b(e.buffer)}):b(new ArrayBuffer(0))},c.encodePayloadAsBlob=function(a,b){function d(a,b){c.encodePacket(a,!0,!0,function(a){var c=new Uint8Array(1);if(c[0]=1,"string"==typeof a){for(var d=new Uint8Array(a.length),e=0;e<a.length;e++)d[e]=a.charCodeAt(e);a=d.buffer,c[0]=0}for(var f=a instanceof ArrayBuffer?a.byteLength:a.size,g=f.toString(),h=new Uint8Array(g.length+1),e=0;e<g.length;e++)h[e]=parseInt(g[e]);if(h[g.length]=255,u){var i=new u([c.buffer,h.buffer,a]);b(null,i)}})}h(a,d,function(a,c){return b(new u(c))})},c.decodePayloadAsBinary=function(a,b,d){"function"==typeof b&&(d=b,b=null);for(var e=a,f=[],g=!1;e.byteLength>0;){for(var h=new Uint8Array(e),i=0===h[0],j="",l=1;255!=h[l];l++){if(j.length>310){g=!0;break}j+=h[l]}if(g)return d(t,0,1);e=k(e,2+j.length),j=parseInt(j);var m=k(e,0,j);if(i)try{m=String.fromCharCode.apply(null,new Uint8Array(m))}catch(n){var o=new Uint8Array(m);m="";for(var l=0;l<o.length;l++)m+=String.fromCharCode(o[l])}f.push(m),e=k(e,j)}var p=f.length;f.forEach(function(a,e){d(c.decodePacket(a,b,!0),e,p)})}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":26,after:27,"arraybuffer.slice":28,"base64-arraybuffer":29,blob:30,"has-binary":36,utf8:31}],26:[function(a,b,c){b.exports=Object.keys||function(a){var b=[],c=Object.prototype.hasOwnProperty;for(var d in a)c.call(a,d)&&b.push(d);return b}},{}],27:[function(a,b,c){function d(a,b,c){function d(a,e){if(d.count<=0)throw new Error("after called too many times");--d.count,a?(f=!0,b(a),b=c):0!==d.count||f||b(null,e)}var f=!1;return c=c||e,d.count=a,0===a?b():d}function e(){}b.exports=d},{}],28:[function(a,b,c){b.exports=function(a,b,c){var d=a.byteLength;if(b=b||0,c=c||d,a.slice)return a.slice(b,c);if(0>b&&(b+=d),0>c&&(c+=d),c>d&&(c=d),b>=d||b>=c||0===d)return new ArrayBuffer(0);for(var e=new Uint8Array(a),f=new Uint8Array(c-b),g=b,h=0;c>g;g++,h++)f[h]=e[g];return f.buffer}},{}],29:[function(a,b,c){!function(a){"use strict";c.encode=function(b){var c,d=new Uint8Array(b),e=d.length,f="";for(c=0;e>c;c+=3)f+=a[d[c]>>2],f+=a[(3&d[c])<<4|d[c+1]>>4],f+=a[(15&d[c+1])<<2|d[c+2]>>6],f+=a[63&d[c+2]];return e%3===2?f=f.substring(0,f.length-1)+"=":e%3===1&&(f=f.substring(0,f.length-2)+"=="),f},c.decode=function(b){var c,d,e,f,g,h=.75*b.length,i=b.length,j=0;"="===b[b.length-1]&&(h--,"="===b[b.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(c=0;i>c;c+=4)d=a.indexOf(b[c]),e=a.indexOf(b[c+1]),f=a.indexOf(b[c+2]),g=a.indexOf(b[c+3]),l[j++]=d<<2|e>>4,l[j++]=(15&e)<<4|f>>2,l[j++]=(3&f)<<6|63&g;return k}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(a,b,c){(function(a){function c(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.buffer instanceof ArrayBuffer){var d=c.buffer;if(c.byteLength!==d.byteLength){var e=new Uint8Array(c.byteLength);e.set(new Uint8Array(d,c.byteOffset,c.byteLength)),d=e.buffer}a[b]=d}}}function d(a,b){b=b||{};var d=new f;c(a);for(var e=0;e<a.length;e++)d.append(a[e]);return b.type?d.getBlob(b.type):d.getBlob()}function e(a,b){return c(a),new Blob(a,b||{})}var f=a.BlobBuilder||a.WebKitBlobBuilder||a.MSBlobBuilder||a.MozBlobBuilder,g=function(){try{var a=new Blob(["hi"]);return 2===a.size}catch(b){return!1}}(),h=g&&function(){try{var a=new Blob([new Uint8Array([1,2])]);return 2===a.size}catch(b){return!1}}(),i=f&&f.prototype.append&&f.prototype.getBlob;b.exports=function(){return g?h?a.Blob:e:i?d:void 0}()}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(b,c,d){(function(b){!function(e){function f(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function g(a){for(var b,c=a.length,d=-1,e="";++d<c;)b=a[d],b>65535&&(b-=65536,e+=u(b>>>10&1023|55296),b=56320|1023&b),e+=u(b);return e}function h(a){if(a>=55296&&57343>=a)throw Error("Lone surrogate U+"+a.toString(16).toUpperCase()+" is not a scalar value")}function i(a,b){return u(a>>b&63|128)}function j(a){if(0==(4294967168&a))return u(a);var b="";return 0==(4294965248&a)?b=u(a>>6&31|192):0==(4294901760&a)?(h(a),b=u(a>>12&15|224),b+=i(a,6)):0==(4292870144&a)&&(b=u(a>>18&7|240),b+=i(a,12),b+=i(a,6)),b+=u(63&a|128)}function k(a){for(var b,c=f(a),d=c.length,e=-1,g="";++e<d;)b=c[e],g+=j(b);return g}function l(){if(t>=s)throw Error("Invalid byte index");var a=255&r[t];if(t++,128==(192&a))return 63&a;throw Error("Invalid continuation byte")}function m(){var a,b,c,d,e;if(t>s)throw Error("Invalid byte index");if(t==s)return!1;if(a=255&r[t],t++,0==(128&a))return a;if(192==(224&a)){var b=l();if(e=(31&a)<<6|b,e>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&a)){if(b=l(),c=l(),e=(15&a)<<12|b<<6|c,e>=2048)return h(e),e;throw Error("Invalid continuation byte")}if(240==(248&a)&&(b=l(),c=l(),d=l(),e=(15&a)<<18|b<<12|c<<6|d,e>=65536&&1114111>=e))return e;throw Error("Invalid UTF-8 detected")}function n(a){r=f(a),s=r.length,t=0;for(var b,c=[];(b=m())!==!1;)c.push(b);return g(c)}var o="object"==typeof d&&d,p="object"==typeof c&&c&&c.exports==o&&c,q="object"==typeof b&&b;(q.global===q||q.window===q)&&(e=q);var r,s,t,u=String.fromCharCode,v={version:"2.0.0",encode:k,decode:n};if("function"==typeof a&&"object"==typeof a.amd&&a.amd)a(function(){return v});else if(o&&!o.nodeType)if(p)p.exports=v;else{var w={},x=w.hasOwnProperty;for(var y in v)x.call(v,y)&&(o[y]=v[y])}else e.utf8=v}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(a,b,c){(function(a){var c=/^[\],:{}\s]*$/,d=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,e=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,f=/(?:^|:|,)(?:\s*\[)+/g,g=/^\s+/,h=/\s+$/;b.exports=function(b){return"string"==typeof b&&b?(b=b.replace(g,"").replace(h,""),a.JSON&&JSON.parse?JSON.parse(b):c.test(b.replace(d,"@").replace(e,"]").replace(f,""))?new Function("return "+b)():void 0):null}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],33:[function(a,b,c){c.encode=function(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b.length&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b},c.decode=function(a){for(var b={},c=a.split("&"),d=0,e=c.length;e>d;d++){var f=c[d].split("=");b[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return b}},{}],34:[function(a,b,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function(a){var b=a,c=a.indexOf("["),f=a.indexOf("]");-1!=c&&-1!=f&&(a=a.substring(0,c)+a.substring(c,f).replace(/:/g,";")+a.substring(f,a.length));for(var g=d.exec(a||""),h={},i=14;i--;)h[e[i]]=g[i]||"";return-1!=c&&-1!=f&&(h.source=b,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h}},{}],35:[function(a,b,c){function d(a,b,c){var d;return d=b?new f(a,b):new f(a)}var e=function(){return this}(),f=e.WebSocket||e.MozWebSocket;b.exports=f?d:null,f&&(d.prototype=f.prototype)},{}],36:[function(a,b,c){(function(c){function d(a){function b(a){if(!a)return!1;if(c.Buffer&&c.Buffer.isBuffer(a)||c.ArrayBuffer&&a instanceof ArrayBuffer||c.Blob&&a instanceof Blob||c.File&&a instanceof File)return!0;if(e(a)){for(var d=0;d<a.length;d++)if(b(a[d]))return!0}else if(a&&"object"==typeof a){a.toJSON&&(a=a.toJSON());for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&b(a[f]))return!0}return!1}return b(a)}var e=a("isarray");b.exports=d}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:37}],37:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],38:[function(a,b,c){var d=a("global");try{b.exports="XMLHttpRequest"in d&&"withCredentials"in new d.XMLHttpRequest}catch(e){b.exports=!1}},{global:39}],39:[function(a,b,c){b.exports=function(){return this}()},{}],40:[function(a,b,c){var d=[].indexOf;b.exports=function(a,b){if(d)return a.indexOf(b);for(var c=0;c<a.length;++c)if(a[c]===b)return c;return-1}},{}],41:[function(a,b,c){var d=Object.prototype.hasOwnProperty;c.keys=Object.keys||function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(c);return b},c.values=function(a){var b=[];for(var c in a)d.call(a,c)&&b.push(a[c]);return b},c.merge=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);return a},c.length=function(a){return c.keys(a).length},c.isEmpty=function(a){return 0==c.length(a)}},{}],42:[function(a,b,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function(a){for(var b=d.exec(a||""),c={},f=14;f--;)c[e[f]]=b[f]||"";return c}},{}],43:[function(a,b,c){(function(b){var d=a("isarray"),e=a("./is-buffer");c.deconstructPacket=function(a){function b(a){if(!a)return a;if(e(a)){var f={_placeholder:!0,num:c.length};return c.push(a),f}if(d(a)){for(var g=new Array(a.length),h=0;h<a.length;h++)g[h]=b(a[h]);return g}if("object"==typeof a&&!(a instanceof Date)){var g={};for(var i in a)g[i]=b(a[i]);return g}return a}var c=[],f=a.data,g=a;return g.data=b(f),g.attachments=c.length,{packet:g,buffers:c}},c.reconstructPacket=function(a,b){function c(a){if(a&&a._placeholder){var e=b[a.num];return e}if(d(a)){for(var f=0;f<a.length;f++)a[f]=c(a[f]);return a}if(a&&"object"==typeof a){for(var g in a)a[g]=c(a[g]);return a}return a}return a.data=c(a.data),a.attachments=void 0,a},c.removeBlobs=function(a,c){function f(a,i,j){if(!a)return a;if(b.Blob&&a instanceof Blob||b.File&&a instanceof File){g++;var k=new FileReader;k.onload=function(){j?j[i]=this.result:h=this.result,--g||c(h)},k.readAsArrayBuffer(a)}else if(d(a))for(var l=0;l<a.length;l++)f(a[l],l,a);else if(a&&"object"==typeof a&&!e(a))for(var m in a)f(a[m],m,a)}var g=0,h=a;f(h),g||c(h)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is-buffer":45,isarray:46}],44:[function(a,b,c){function d(){}function e(a){var b="",d=!1;return b+=a.type,(c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type)&&(b+=a.attachments,b+="-"),a.nsp&&"/"!=a.nsp&&(d=!0,b+=a.nsp),null!=a.id&&(d&&(b+=",",d=!1),b+=a.id),null!=a.data&&(d&&(b+=","),b+=l.stringify(a.data)),k("encoded %j as %s",a,b),b}function f(a,b){function c(a){var c=n.deconstructPacket(a),d=e(c.packet),f=c.buffers;f.unshift(d),b(f)}n.removeBlobs(a,c)}function g(){this.reconstructor=null}function h(a){var b={},d=0;if(b.type=Number(a.charAt(0)),null==c.types[b.type])return j();if(c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type){for(var e="";"-"!=a.charAt(++d)&&(e+=a.charAt(d),d!=a.length););if(e!=Number(e)||"-"!=a.charAt(d))throw new Error("Illegal attachments");b.attachments=Number(e)}if("/"==a.charAt(d+1))for(b.nsp="";++d;){var f=a.charAt(d);if(","==f)break;if(b.nsp+=f,d==a.length)break}else b.nsp="/";var g=a.charAt(d+1);if(""!==g&&Number(g)==g){for(b.id="";++d;){var f=a.charAt(d);if(null==f||Number(f)!=f){--d;break}if(b.id+=a.charAt(d),d==a.length)break}b.id=Number(b.id)}if(a.charAt(++d))try{b.data=l.parse(a.substr(d))}catch(h){return j()}return k("decoded %s as %j",a,b),b}function i(a){this.reconPack=a,this.buffers=[]}function j(a){return{type:c.ERROR,data:"parser error"}}var k=a("debug")("socket.io-parser"),l=a("json3"),m=(a("isarray"),a("component-emitter")),n=a("./binary"),o=a("./is-buffer");c.protocol=4,c.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],c.CONNECT=0,c.DISCONNECT=1,c.EVENT=2,c.ACK=3,c.ERROR=4,c.BINARY_EVENT=5,c.BINARY_ACK=6,c.Encoder=d,c.Decoder=g,d.prototype.encode=function(a,b){if(k("encoding packet %j",a),c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type)f(a,b);else{var d=e(a);b([d])}},m(g.prototype),g.prototype.add=function(a){var b;if("string"==typeof a)b=h(a),c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type?(this.reconstructor=new i(b),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",b)):this.emit("decoded",b);else{if(!o(a)&&!a.base64)throw new Error("Unknown type: "+a);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");b=this.reconstructor.takeBinaryData(a),b&&(this.reconstructor=null,this.emit("decoded",b))}},g.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},i.prototype.takeBinaryData=function(a){if(this.buffers.push(a),this.buffers.length==this.reconPack.attachments){var b=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),b}return null},i.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":43,"./is-buffer":45,"component-emitter":9,debug:10,isarray:46,json3:47}],45:[function(a,b,c){(function(a){function c(b){return a.Buffer&&a.Buffer.isBuffer(b)||a.ArrayBuffer&&b instanceof ArrayBuffer}b.exports=c}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(a,b,c){b.exports=a(37)},{}],47:[function(b,c,d){!function(b){function c(a){if(c[a]!==g)return c[a];var b;if("bug-string-char-index"==a)b="a"!="a"[0];else if("json"==a)b=c("json-stringify")&&c("json-parse");else{var d,e='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==a){var f=k.stringify,i="function"==typeof f&&l;if(i){(d=function(){return 1}).toJSON=d;try{i="0"===f(0)&&"0"===f(new Number)&&'""'==f(new String)&&f(h)===g&&f(g)===g&&f()===g&&"1"===f(d)&&"[1]"==f([d])&&"[null]"==f([g])&&"null"==f(null)&&"[null,null,null]"==f([g,h,null])&&f({a:[d,!0,!1,null,"\x00\b\n\f\r "]})==e&&"1"===f(null,d)&&"[\n 1,\n 2\n]"==f([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==f(new Date(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==f(new Date(864e13))&&'"-000001-01-01T00:00:00.000Z"'==f(new Date(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==f(new Date(-1))}catch(j){i=!1}}b=i}if("json-parse"==a){var m=k.parse;if("function"==typeof m)try{if(0===m("0")&&!m(!1)){d=m(e);var n=5==d.a.length&&1===d.a[0];if(n){try{n=!m('" "')}catch(j){}if(n)try{n=1!==m("01")}catch(j){}if(n)try{n=1!==m("1.")}catch(j){}}}}catch(j){n=!1}b=n}}return c[a]=!!b}var e,f,g,h={}.toString,i="function"==typeof a&&a.amd,j="object"==typeof JSON&&JSON,k="object"==typeof d&&d&&!d.nodeType&&d;k&&j?(k.stringify=j.stringify,k.parse=j.parse):k=b.JSON=j||{};var l=new Date(-0xc782b5b800cec);try{l=-109252==l.getUTCFullYear()&&0===l.getUTCMonth()&&1===l.getUTCDate()&&10==l.getUTCHours()&&37==l.getUTCMinutes()&&6==l.getUTCSeconds()&&708==l.getUTCMilliseconds()}catch(m){}if(!c("json")){var n="[object Function]",o="[object Date]",p="[object Number]",q="[object String]",r="[object Array]",s="[object Boolean]",t=c("bug-string-char-index");if(!l)var u=Math.floor,v=[0,31,59,90,120,151,181,212,243,273,304,334],w=function(a,b){return v[b]+365*(a-1970)+u((a-1969+(b=+(b>1)))/4)-u((a-1901+b)/100)+u((a-1601+b)/400)};(e={}.hasOwnProperty)||(e=function(a){var b,c={};return(c.__proto__=null,c.__proto__={toString:1},c).toString!=h?e=function(a){var b=this.__proto__,c=a in(this.__proto__=null,this);return this.__proto__=b,c}:(b=c.constructor,e=function(a){var c=(this.constructor||b).prototype;return a in this&&!(a in c&&this[a]===c[a])}),c=null,e.call(this,a)});var x={"boolean":1,number:1,string:1,undefined:1},y=function(a,b){var c=typeof a[b];return"object"==c?!!a[b]:!x[c]};if(f=function(a,b){var c,d,g,i=0;(c=function(){this.valueOf=0}).prototype.valueOf=0,d=new c;for(g in d)e.call(d,g)&&i++;return c=d=null,i?f=2==i?function(a,b){var c,d={},f=h.call(a)==n;for(c in a)f&&"prototype"==c||e.call(d,c)||!(d[c]=1)||!e.call(a,c)||b(c)}:function(a,b){var c,d,f=h.call(a)==n;for(c in a)f&&"prototype"==c||!e.call(a,c)||(d="constructor"===c)||b(c);(d||e.call(a,c="constructor"))&&b(c)}:(d=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],f=function(a,b){var c,f,g=h.call(a)==n,i=!g&&"function"!=typeof a.constructor&&y(a,"hasOwnProperty")?a.hasOwnProperty:e;for(c in a)g&&"prototype"==c||!i.call(a,c)||b(c);for(f=d.length;c=d[--f];i.call(a,c)&&b(c));}),f(a,b)},!c("json-stringify")){var z={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},A="000000",B=function(a,b){return(A+(b||0)).slice(-a)},C="\\u00",D=function(a){var b,c='"',d=0,e=a.length,f=e>10&&t;for(f&&(b=a.split(""));e>d;d++){var g=a.charCodeAt(d);switch(g){case 8:case 9:case 10:case 12:case 13:case 34:case 92:c+=z[g];break;default:if(32>g){c+=C+B(2,g.toString(16));break}c+=f?b[d]:t?a.charAt(d):a[d]}}return c+'"'},E=function(a,b,c,d,i,j,k){var l,m,n,t,v,x,y,z,A,C,F,G,H,I,J,K;try{l=b[a]}catch(L){}if("object"==typeof l&&l)if(m=h.call(l),m!=o||e.call(l,"toJSON"))"function"==typeof l.toJSON&&(m!=p&&m!=q&&m!=r||e.call(l,"toJSON"))&&(l=l.toJSON(a));else if(l>-1/0&&1/0>l){if(w){for(v=u(l/864e5),n=u(v/365.2425)+1970-1;w(n+1,0)<=v;n++);for(t=u((v-w(n,0))/30.42);w(n,t+1)<=v;t++);v=1+v-w(n,t),x=(l%864e5+864e5)%864e5,y=u(x/36e5)%24,z=u(x/6e4)%60,A=u(x/1e3)%60,C=x%1e3}else n=l.getUTCFullYear(),t=l.getUTCMonth(),v=l.getUTCDate(),y=l.getUTCHours(),z=l.getUTCMinutes(),A=l.getUTCSeconds(),C=l.getUTCMilliseconds();l=(0>=n||n>=1e4?(0>n?"-":"+")+B(6,0>n?-n:n):B(4,n))+"-"+B(2,t+1)+"-"+B(2,v)+"T"+B(2,y)+":"+B(2,z)+":"+B(2,A)+"."+B(3,C)+"Z"}else l=null;if(c&&(l=c.call(b,a,l)),null===l)return"null";if(m=h.call(l),m==s)return""+l;if(m==p)return l>-1/0&&1/0>l?""+l:"null";if(m==q)return D(""+l);if("object"==typeof l){for(I=k.length;I--;)if(k[I]===l)throw TypeError();if(k.push(l),F=[],J=j,j+=i,m==r){for(H=0,I=l.length;I>H;H++)G=E(H,l,c,d,i,j,k),F.push(G===g?"null":G);K=F.length?i?"[\n"+j+F.join(",\n"+j)+"\n"+J+"]":"["+F.join(",")+"]":"[]"}else f(d||l,function(a){var b=E(a,l,c,d,i,j,k);b!==g&&F.push(D(a)+":"+(i?" ":"")+b)}),K=F.length?i?"{\n"+j+F.join(",\n"+j)+"\n"+J+"}":"{"+F.join(",")+"}":"{}";return k.pop(),K}};k.stringify=function(a,b,c){var d,e,f,g;if("function"==typeof b||"object"==typeof b&&b)if((g=h.call(b))==n)e=b;else if(g==r){
+f={};for(var i,j=0,k=b.length;k>j;i=b[j++],g=h.call(i),(g==q||g==p)&&(f[i]=1));}if(c)if((g=h.call(c))==p){if((c-=c%1)>0)for(d="",c>10&&(c=10);d.length<c;d+=" ");}else g==q&&(d=c.length<=10?c:c.slice(0,10));return E("",(i={},i[""]=a,i),e,f,d,"",[])}}if(!c("json-parse")){var F,G,H=String.fromCharCode,I={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},J=function(){throw F=G=null,SyntaxError()},K=function(){for(var a,b,c,d,e,f=G,g=f.length;g>F;)switch(e=f.charCodeAt(F)){case 9:case 10:case 13:case 32:F++;break;case 123:case 125:case 91:case 93:case 58:case 44:return a=t?f.charAt(F):f[F],F++,a;case 34:for(a="@",F++;g>F;)if(e=f.charCodeAt(F),32>e)J();else if(92==e)switch(e=f.charCodeAt(++F)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:a+=I[e],F++;break;case 117:for(b=++F,c=F+4;c>F;F++)e=f.charCodeAt(F),e>=48&&57>=e||e>=97&&102>=e||e>=65&&70>=e||J();a+=H("0x"+f.slice(b,F));break;default:J()}else{if(34==e)break;for(e=f.charCodeAt(F),b=F;e>=32&&92!=e&&34!=e;)e=f.charCodeAt(++F);a+=f.slice(b,F)}if(34==f.charCodeAt(F))return F++,a;J();default:if(b=F,45==e&&(d=!0,e=f.charCodeAt(++F)),e>=48&&57>=e){for(48==e&&(e=f.charCodeAt(F+1),e>=48&&57>=e)&&J(),d=!1;g>F&&(e=f.charCodeAt(F),e>=48&&57>=e);F++);if(46==f.charCodeAt(F)){for(c=++F;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==F&&J(),F=c}if(e=f.charCodeAt(F),101==e||69==e){for(e=f.charCodeAt(++F),(43==e||45==e)&&F++,c=F;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==F&&J(),F=c}return+f.slice(b,F)}if(d&&J(),"true"==f.slice(F,F+4))return F+=4,!0;if("false"==f.slice(F,F+5))return F+=5,!1;if("null"==f.slice(F,F+4))return F+=4,null;J()}return"$"},L=function(a){var b,c;if("$"==a&&J(),"string"==typeof a){if("@"==(t?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];a=K(),"]"!=a;c||(c=!0))c&&(","==a?(a=K(),"]"==a&&J()):J()),","==a&&J(),b.push(L(a));return b}if("{"==a){for(b={};a=K(),"}"!=a;c||(c=!0))c&&(","==a?(a=K(),"}"==a&&J()):J()),(","==a||"string"!=typeof a||"@"!=(t?a.charAt(0):a[0])||":"!=K())&&J(),b[a.slice(1)]=L(K());return b}J()}return a},M=function(a,b,c){var d=N(a,b,c);d===g?delete a[b]:a[b]=d},N=function(a,b,c){var d,e=a[b];if("object"==typeof e&&e)if(h.call(e)==r)for(d=e.length;d--;)M(e,d,c);else f(e,function(a){M(e,a,c)});return c.call(a,b,e)};k.parse=function(a,b){var c,d;return F=0,G=""+a,c=L(K()),"$"!=K()&&J(),F=G=null,b&&h.call(b)==n?N((d={},d[""]=c,d),"",b):c}}}i&&a(function(){return k})}(this)},{}],48:[function(a,b,c){function d(a,b){var c=[];b=b||0;for(var d=b||0;d<a.length;d++)c[d-b]=a[d];return c}b.exports=d},{}]},{},[1])(1)});
\ No newline at end of file
font-weight: 300;
padding: 10px 0;
}
+
+.report-field-handle{
+ width: 66px;
+ height:66px;
+ background-image: url('../../images/move.png');
+ background-repeat:no-repeat;
+ background-size:66px 66px;
+}
+
+.ui-sortable-helper {
+ display: table;
+}
+
+.report-field-remove{
+ width: 66px;
+ height:66px;
+ text-align: center;
+}
+
+.portlet.light .portlet-title {
+ padding: 0;
+ min-height: 48px;
+}
+.portlet .portlet-title {
+ border-bottom: 1px solid #eee;
+ padding: 0;
+ margin-bottom: 10px;
+ min-height: 41px;
+ -webkit-border-radius: 4px 4px 0 0;
+ -moz-border-radius: 4px 4px 0 0;
+ -ms-border-radius: 4px 4px 0 0;
+ -o-border-radius: 4px 4px 0 0;
+ border-radius: 4px 4px 0 0;
+}
+
+.ui-select-match-text{
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding-right: 20px;
+}
+
+.ui-select-choices-row-inner div{
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.ui-select-toggle > .btn.btn-link {
+ margin-right: 10px;
+ top: 6px;
+ position: absolute;
+ right: 10px;
+}
color: #79869a;
}
.page-header.navbar .top-menu .navbar-nav > li.dropdown .dropdown-toggle .badge.badge-default {
- background-color: #1caf9a;
+ background-color: #EA4C61;
color: #ffffff;
}
.page-header.navbar .top-menu .navbar-nav > li.dropdown .dropdown-toggle:hover {
background: #e4e4e4;
}
.page-header.navbar .top-menu .navbar-nav > li.dropdown-inbox > .dropdown-toggle > .circle {
- background-color: #1caf9a;
+ background-color: #EA4C61;
color: #ffffff;
}
.page-header.navbar .top-menu .navbar-nav > li.dropdown-inbox > .dropdown-toggle > .corner {
- border-color: transparent transparent transparent #1caf9a;
+ border-color: transparent transparent transparent #EA4C61;
}
.page-header.navbar .top-menu .navbar-nav > li.dropdown-inbox .dropdown-menu .dropdown-menu-list .subject .from {
color: #5b9bd1;
.page-header.navbar .hor-menu .navbar-nav > li.active > a, .page-header.navbar .hor-menu .navbar-nav > li.current > a,
.page-header.navbar .hor-menu .navbar-nav > li.current > a {
color: white;
- background: #1caf9a !important;
+ background: #EA4C61 !important;
}
.page-header.navbar .hor-menu .navbar-nav > li.active > a > i,
.page-header.navbar .hor-menu .navbar-nav > li.active > a > i, .page-header.navbar .hor-menu .navbar-nav > li.current > a > i,
color: #788ea8;
}
.page-header.navbar .hor-menu .navbar-nav > li.active .selected, .page-header.navbar .hor-menu .navbar-nav > li.current .selected {
- border-top: 6px solid #1caf9a;
+ border-top: 6px solid #EA4C61;
}
.page-header.navbar .hor-menu .navbar-nav > li .dropdown-menu {
box-shadow: 5px 5px rgba(63, 79, 98, 0.2);
.page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.active > a:hover, .page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.current > a,
.page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.current > a:hover {
color: white;
- background: #1caf9a;
+ background: #EA4C61;
}
.page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.active > a > i,
.page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.active > a:hover > i, .page-header.navbar .hor-menu.hor-menu-light .navbar-nav > li.current > a > i,
.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a, .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a,
.page-sidebar .page-sidebar-menu > li.active > a,
.page-sidebar .page-sidebar-menu > li.active.open > a {
- background: #1caf9a;
+ background: #EA4C61;
border-top-color: transparent;
color: #ffffff;
}
.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a:hover, .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a:hover,
.page-sidebar .page-sidebar-menu > li.active > a:hover,
.page-sidebar .page-sidebar-menu > li.active.open > a:hover {
- background: #1caf9a;
+ background: #EA4C61;
}
.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active > a > i, .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.active.open > a > i,
.page-sidebar .page-sidebar-menu > li.active > a > i,
.page-sidebar .page-sidebar-menu.page-sidebar-menu-light > li.active > a,
.page-sidebar .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a {
background: #3e4b5c;
- border-left: 4px solid #1caf9a;
+ border-left: 4px solid #EA4C61;
color: #f1f1f1;
}
.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light > li.active > a:hover, .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a:hover,
.page-sidebar .page-sidebar-menu.page-sidebar-menu-light > li.active > a:hover,
.page-sidebar .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a:hover {
- border-left: 4px solid #1caf9a;
+ border-left: 4px solid #EA4C61;
background: #3a4656;
}
.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light > li.active > a > i, .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a > i,
}
.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light > li.active > a, .page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a {
border-left: 0;
- border-right: 4px solid #1caf9a;
+ border-right: 4px solid #EA4C61;
}
.page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light > li.active > a:hover, .page-sidebar-reversed .page-sidebar-menu.page-sidebar-menu-light > li.active.open > a:hover {
border-left: 0;
- border-right: 4px solid #1caf9a;
+ border-right: 4px solid #EA4C61;
}
/*************
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQ7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTQ7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* devanagari */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTSGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTSGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
unicode-range: U+02BC, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200B-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* greek-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTZ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTZ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTfgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTYjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTYjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
- src: local('Open Sans Light'), local('OpenSans-Light'), url(http://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
+ src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v13/DXI1ORHCpsQm3Vp6mXoaTRampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* fallback */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/TCmDhmS1RRL7aqhqZW19hwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/TCmDhmS1RRL7aqhqZW19hwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2');
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01m4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5UYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* devanagari */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/ttwNtsRpgsxVmgGGmiUOEoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/ttwNtsRpgsxVmgGGmiUOEoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+02BC, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200B-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* greek-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEEYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
- src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2');
+ src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3ZBw1xU1rKptJj_0jans920.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* fallback */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSgzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSgzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSg7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSg7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* devanagari */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSiGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSiGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
unicode-range: U+02BC, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200B-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* greek-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSp6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSp6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSvgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSojoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNSojoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
- src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://fonts.gstatic.com/s/opensans/v13/MTP_ySUJH_bn48VBG8sNShampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* fallback */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzAzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzAzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzA7aC6SjiAOpAWOKfJDfVRY.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* devanagari */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzCGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzCGUML8f7tzeB6gGvgki0bE.woff2) format('woff2');
unicode-range: U+02BC, U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200B-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* greek-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzJ6vnaPZw6nYDxM4SVEMFKg.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPy1_HTwRwgtl1cPga3Fy3Y.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzPgrLsWo7Jk1KvZser0olKY.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzIjoYw3YTyktCCer_ilOlhE.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
- src: local('Open Sans Bold'), local('OpenSans-Bold'), url(http://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
+ src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzBampu5_7CjHW5spxoeN3Vs.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
--- /dev/null
+/***
+Pricing table
+***/
+.pricing {
+ position: relative;
+ margin-bottom: 15px;
+ border: 3px solid #eee;
+}
+
+.pricing-active {
+ border: 3px solid #4DB3A2;
+ margin-top: -10px;
+ box-shadow: 7px 7px rgba(54, 215, 172, 0.2);
+}
+
+.pricing:hover {
+ border: 3px solid #4DB3A2;
+}
+
+.pricing:hover h4 {
+ /*color: #4DB3A2;*/
+}
+
+.pricing-head {
+ text-align: center;
+}
+
+.pricing-head h3,
+.pricing-head h4 {
+ margin: 0;
+ line-height: normal;
+}
+
+.pricing-head h3 span,
+.pricing-head h4 span {
+ display: block;
+ margin-top: 5px;
+ font-size: 14px;
+ font-style: italic;
+}
+
+.pricing-head h3 {
+ font-weight: 300;
+ color: #fafafa;
+ padding: 12px 0;
+ font-size: 27px;
+ /*background: #4DB3A2;*/
+ background: #4DB3A2;
+ border-bottom: solid 1px #41b91c;
+}
+
+.pricing-head h4 {
+ color: #bac39f;
+ padding: 5px 0;
+ font-size: 54px;
+ font-weight: 300;
+ background: #fbfef2;
+ border-bottom: solid 1px #f5f9e7;
+}
+
+.pricing-head-active h4 {
+ color: #4DB3A2;
+}
+
+.pricing-head h4 i {
+ top: -8px;
+ font-size: 28px;
+ font-style: normal;
+ position: relative;
+}
+
+.pricing-head h4 span {
+ top: -10px;
+ font-size: 14px;
+ font-style: normal;
+ position: relative;
+}
+
+/*Pricing Content*/
+.pricing-content li {
+ color: #888;
+ font-size: 12px;
+ padding: 7px 15px;
+ border-bottom: solid 1px #f5f9e7;
+}
+
+.pricing-content li i {
+ top: 2px;
+ /*color: #4DB3A2;*/
+ color: #4DB3A2;
+ font-size: 16px;
+ margin-right: 5px;
+ position: relative;
+}
+
+/*Pricing Footer*/
+.pricing-footer {
+ color: #777;
+ font-size: 11px;
+ line-height: 17px;
+ text-align: center;
+ padding: 0 20px 19px;
+}
+
+/*Priceing Active*/
+.price-active,
+.pricing:hover {
+ z-index: 9;
+}
+
+.price-active h4 {
+ color: #4DB3A2;
+}
+
+.no-space-pricing .pricing:hover {
+ transition: box-shadow 0.2s ease-in-out;
+}
+
+.no-space-pricing .price-active .pricing-head h4,
+.no-space-pricing .pricing:hover .pricing-head h4 {
+ color: #4DB3A2;
+ padding: 15px 0;
+ font-size: 80px;
+ transition: color 0.5s ease-in-out;
+}
"APPLICATION_AGENTS": "Agents",
"APPLICATION_USERS": "Users",
"APPLICATION_DEFAULT": "Default",
+ "APPLICATION_TABLE": "Table",
+ "APPLICATION_ALIAS": "Alias",
+ "APPLICATION_COPY_REPORT": "Copy Report",
+ "APPLICATION_COPY_TO": "Copy To",
+ "APPLICATION_COPY": "Copy",
+ "APPLICATION_EXPORT": "Export",
+ "APPLICATION_FUNCTION": "Function",
+ "MESSAGE_SELECT_A_FIELD": "Select at least one table field!",
+ "APPLICATION_GROUP_BY": "Group By",
+ "APPLICATION_BUILD": "Build",
+ "APPLICATION_ORDER_BY": "Order By",
+ "APPLICATION_MONTH_TO_MONTH": "Month To Month",
+ "APPLICATION_YEARLY": "Yearly",
+ "APPLICATION_PERPETUAL": "Perpetual",
+ "APPLICATION_PRICES": "Prices",
+ "APPLICATION_LICENSE": "License",
+ "APPLICATION_MONTHS": "Months",
+ "MESSAGE_ADD_A_FIELD": "Add a field",
+ "APPLICATION_TELEPHONES": "Telephones",
+ "APPLICATION_TELEPHONE": "Telephone",
+ "APPLICATION_CONCURRENTS": "Concurrents",
+ "MESSAGE_INVALID_JSON": "Invalid JSON format!",
+ "MESSAGE_QUERY_NOT_VALID": "The query is not valid, fix the report!",
"APPLICATION_CONTACT_MANAGER": "Contacts Manager",
"APPLICATION_ENQUIRY_FORWARDING": "Enquiry Forwading",
"APPLICATION_ENQUIRY_FORWARDING_ADDRESS": "Enquiry Forwading Address",
"APPLICATION_AGENTS_SELECTION": "Agents Selection",
"APPLICATION_LOG": "Log",
"APPLICATION_SOURCE": "Source",
+ "APPLICATION_IMPORT_FROM_JSON": "Import from JSON",
"APPLICATION_DESTINATION": "Destination",
"APPLICATION_IMPORT_SUCCEEDED": "Succeeded",
"APPLICATION_IMPORT_FAILED": "Failed",
"APPLICATION_NEW_USER": "New User",
"APPLICATION_NEW_TEAM": "New Team",
"APPLICATION_NEW_TRUNK": "New Trunk",
+ "APPLICATION_REQUEST": "Request",
"APPLICATION_PROGRESS": "Progress",
"APPLICATION_NEW_CONTEXT": "New Context",
"APPLICATION_NEW_ACCOUNT": "New Account",
"APPLICATION_AGENTS": "Agenti",
"APPLICATION_USERS": "Utenti",
"APPLICATION_DEFAULT": "Default",
+ "APPLICATION_TABLE": "Tabella",
+ "APPLICATION_ALIAS": "Alias",
+ "APPLICATION_COPY_REPORT": "Copia Report",
+ "APPLICATION_COPY_TO": "Copia In",
+ "APPLICATION_COPY": "Copia",
+ "APPLICATION_EXPORT": "Esporta",
+ "APPLICATION_FUNCTION": "Funzione",
+ "MESSAGE_SELECT_A_FIELD": "Seleziona almeno un campo della tabella!",
+ "APPLICATION_GROUP_BY": "Group By",
+ "APPLICATION_ORDER_BY": "Order By",
+ "APPLICATION_REQUEST": "Richiesta",
+ "APPLICATION_MONTH_TO_MONTH": "Mensile",
+ "APPLICATION_YEARLY": "Annuale",
+ "APPLICATION_PERPETUAL": "Perpetua",
+ "APPLICATION_PRICES": "Prezzi",
+ "APPLICATION_LICENSE": "Licenza",
+ "APPLICATION_MONTHS": "Mesi",
+ "MESSAGE_ADD_A_FIELD": "Aggiungi un campo",
+ "APPLICATION_TELEPHONES": "Telefoni",
+ "APPLICATION_TELEPHONE": "Telefono",
+ "APPLICATION_CONCURRENTS": "Concorrenti",
+ "APPLICATION_BUILD": "Costruisci",
+ "MESSAGE_INVALID_JSON": "Formato JSON non valido!",
+ "MESSAGE_ADD_A_FIELD": "Aggiungi un campo",
+ "MESSAGE_QUERY_NOT_VALID": "La query non è valida, sistema il report!",
"APPLICATION_USER": "Utente",
+ "APPLICATION_IMPORT_FROM_JSON": "Importa da JSON",
"APPLICATION_ENQUIRY_FORWARDING": "Inoltro Messaggi Offline",
"APPLICATION_ENQUIRY_FORWARDING_ADDRESS": "Indirizzo d'inoltro dei Messaggi Offline",
"APPLICATION_CONTACT_MANAGER": "Manager contatti",
--- /dev/null
+(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+/* Blob.js
+ * A Blob implementation.
+ * 2014-07-24
+ *
+ * By Eli Grey, http://eligrey.com
+ * By Devin Samarin, https://github.com/dsamarin
+ * License: X11/MIT
+ * See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
+ */
+
+/*global self, unescape */
+/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true,
+ plusplus: true */
+
+/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
+
+(function (view) {
+ "use strict";
+
+ view.URL = view.URL || view.webkitURL;
+
+ if (view.Blob && view.URL) {
+ try {
+ new Blob;
+ return;
+ } catch (e) {}
+ }
+
+ // Internally we use a BlobBuilder implementation to base Blob off of
+ // in order to support older browsers that only have BlobBuilder
+ var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
+ var
+ get_class = function(object) {
+ return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
+ }
+ , FakeBlobBuilder = function BlobBuilder() {
+ this.data = [];
+ }
+ , FakeBlob = function Blob(data, type, encoding) {
+ this.data = data;
+ this.size = data.length;
+ this.type = type;
+ this.encoding = encoding;
+ }
+ , FBB_proto = FakeBlobBuilder.prototype
+ , FB_proto = FakeBlob.prototype
+ , FileReaderSync = view.FileReaderSync
+ , FileException = function(type) {
+ this.code = this[this.name = type];
+ }
+ , file_ex_codes = (
+ "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "
+ + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
+ ).split(" ")
+ , file_ex_code = file_ex_codes.length
+ , real_URL = view.URL || view.webkitURL || view
+ , real_create_object_URL = real_URL.createObjectURL
+ , real_revoke_object_URL = real_URL.revokeObjectURL
+ , URL = real_URL
+ , btoa = view.btoa
+ , atob = view.atob
+
+ , ArrayBuffer = view.ArrayBuffer
+ , Uint8Array = view.Uint8Array
+
+ , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/
+ ;
+ FakeBlob.fake = FB_proto.fake = true;
+ while (file_ex_code--) {
+ FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1;
+ }
+ // Polyfill URL
+ if (!real_URL.createObjectURL) {
+ URL = view.URL = function(uri) {
+ var
+ uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
+ , uri_origin
+ ;
+ uri_info.href = uri;
+ if (!("origin" in uri_info)) {
+ if (uri_info.protocol.toLowerCase() === "data:") {
+ uri_info.origin = null;
+ } else {
+ uri_origin = uri.match(origin);
+ uri_info.origin = uri_origin && uri_origin[1];
+ }
+ }
+ return uri_info;
+ };
+ }
+ URL.createObjectURL = function(blob) {
+ var
+ type = blob.type
+ , data_URI_header
+ ;
+ if (type === null) {
+ type = "application/octet-stream";
+ }
+ if (blob instanceof FakeBlob) {
+ data_URI_header = "data:" + type;
+ if (blob.encoding === "base64") {
+ return data_URI_header + ";base64," + blob.data;
+ } else if (blob.encoding === "URI") {
+ return data_URI_header + "," + decodeURIComponent(blob.data);
+ } if (btoa) {
+ return data_URI_header + ";base64," + btoa(blob.data);
+ } else {
+ return data_URI_header + "," + encodeURIComponent(blob.data);
+ }
+ } else if (real_create_object_URL) {
+ return real_create_object_URL.call(real_URL, blob);
+ }
+ };
+ URL.revokeObjectURL = function(object_URL) {
+ if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) {
+ real_revoke_object_URL.call(real_URL, object_URL);
+ }
+ };
+ FBB_proto.append = function(data/*, endings*/) {
+ var bb = this.data;
+ // decode data to a binary string
+ if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
+ var
+ str = ""
+ , buf = new Uint8Array(data)
+ , i = 0
+ , buf_len = buf.length
+ ;
+ for (; i < buf_len; i++) {
+ str += String.fromCharCode(buf[i]);
+ }
+ bb.push(str);
+ } else if (get_class(data) === "Blob" || get_class(data) === "File") {
+ if (FileReaderSync) {
+ var fr = new FileReaderSync;
+ bb.push(fr.readAsBinaryString(data));
+ } else {
+ // async FileReader won't work as BlobBuilder is sync
+ throw new FileException("NOT_READABLE_ERR");
+ }
+ } else if (data instanceof FakeBlob) {
+ if (data.encoding === "base64" && atob) {
+ bb.push(atob(data.data));
+ } else if (data.encoding === "URI") {
+ bb.push(decodeURIComponent(data.data));
+ } else if (data.encoding === "raw") {
+ bb.push(data.data);
+ }
+ } else {
+ if (typeof data !== "string") {
+ data += ""; // convert unsupported types to strings
+ }
+ // decode UTF-16 to binary string
+ bb.push(unescape(encodeURIComponent(data)));
+ }
+ };
+ FBB_proto.getBlob = function(type) {
+ if (!arguments.length) {
+ type = null;
+ }
+ return new FakeBlob(this.data.join(""), type, "raw");
+ };
+ FBB_proto.toString = function() {
+ return "[object BlobBuilder]";
+ };
+ FB_proto.slice = function(start, end, type) {
+ var args = arguments.length;
+ if (args < 3) {
+ type = null;
+ }
+ return new FakeBlob(
+ this.data.slice(start, args > 1 ? end : this.data.length)
+ , type
+ , this.encoding
+ );
+ };
+ FB_proto.toString = function() {
+ return "[object Blob]";
+ };
+ FB_proto.close = function() {
+ this.size = 0;
+ delete this.data;
+ };
+ return FakeBlobBuilder;
+ }(view));
+
+ view.Blob = function(blobParts, options) {
+ var type = options ? (options.type || "") : "";
+ var builder = new BlobBuilder();
+ if (blobParts) {
+ for (var i = 0, len = blobParts.length; i < len; i++) {
+ if (Uint8Array && blobParts[i] instanceof Uint8Array) {
+ builder.append(blobParts[i].buffer);
+ }
+ else {
+ builder.append(blobParts[i]);
+ }
+ }
+ }
+ var blob = builder.getBlob(type);
+ if (!blob.slice && blob.webkitSlice) {
+ blob.slice = blob.webkitSlice;
+ }
+ return blob;
+ };
+
+ var getPrototypeOf = Object.getPrototypeOf || function(object) {
+ return object.__proto__;
+ };
+ view.Blob.prototype = getPrototypeOf(new view.Blob());
+}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
+
+},{}],2:[function(require,module,exports){
+/* FileSaver.js
+ * A saveAs() FileSaver implementation.
+ * 1.1.20151003
+ *
+ * By Eli Grey, http://eligrey.com
+ * License: MIT
+ * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
+ */
+
+/*global self */
+/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
+
+/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
+
+var saveAs = saveAs || (function(view) {
+ "use strict";
+ // IE <10 is explicitly unsupported
+ if (typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
+ return;
+ }
+ var
+ doc = view.document
+ // only get URL when necessary in case Blob.js hasn't overridden it yet
+ , get_URL = function() {
+ return view.URL || view.webkitURL || view;
+ }
+ , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
+ , can_use_save_link = "download" in save_link
+ , click = function(node) {
+ var event = new MouseEvent("click");
+ node.dispatchEvent(event);
+ }
+ , is_safari = /Version\/[\d\.]+.*Safari/.test(navigator.userAgent)
+ , webkit_req_fs = view.webkitRequestFileSystem
+ , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
+ , throw_outside = function(ex) {
+ (view.setImmediate || view.setTimeout)(function() {
+ throw ex;
+ }, 0);
+ }
+ , force_saveable_type = "application/octet-stream"
+ , fs_min_size = 0
+ // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
+ // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
+ // for the reasoning behind the timeout and revocation flow
+ , arbitrary_revoke_timeout = 500 // in ms
+ , revoke = function(file) {
+ var revoker = function() {
+ if (typeof file === "string") { // file is an object URL
+ get_URL().revokeObjectURL(file);
+ } else { // file is a File
+ file.remove();
+ }
+ };
+ if (view.chrome) {
+ revoker();
+ } else {
+ setTimeout(revoker, arbitrary_revoke_timeout);
+ }
+ }
+ , dispatch = function(filesaver, event_types, event) {
+ event_types = [].concat(event_types);
+ var i = event_types.length;
+ while (i--) {
+ var listener = filesaver["on" + event_types[i]];
+ if (typeof listener === "function") {
+ try {
+ listener.call(filesaver, event || filesaver);
+ } catch (ex) {
+ throw_outside(ex);
+ }
+ }
+ }
+ }
+ , auto_bom = function(blob) {
+ // prepend BOM for UTF-8 XML and text/* types (including HTML)
+ if (/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
+ return new Blob(["\ufeff", blob], {type: blob.type});
+ }
+ return blob;
+ }
+ , FileSaver = function(blob, name, no_auto_bom) {
+ if (!no_auto_bom) {
+ blob = auto_bom(blob);
+ }
+ // First try a.download, then web filesystem, then object URLs
+ var
+ filesaver = this
+ , type = blob.type
+ , blob_changed = false
+ , object_url
+ , target_view
+ , dispatch_all = function() {
+ dispatch(filesaver, "writestart progress write writeend".split(" "));
+ }
+ // on any filesys errors revert to saving with object URLs
+ , fs_error = function() {
+ if (target_view && is_safari && typeof FileReader !== "undefined") {
+ // Safari doesn't allow downloading of blob urls
+ var reader = new FileReader();
+ reader.onloadend = function() {
+ var base64Data = reader.result;
+ target_view.location.href = "data:attachment/file" + base64Data.slice(base64Data.search(/[,;]/));
+ filesaver.readyState = filesaver.DONE;
+ dispatch_all();
+ };
+ reader.readAsDataURL(blob);
+ filesaver.readyState = filesaver.INIT;
+ return;
+ }
+ // don't create more object URLs than needed
+ if (blob_changed || !object_url) {
+ object_url = get_URL().createObjectURL(blob);
+ }
+ if (target_view) {
+ target_view.location.href = object_url;
+ } else {
+ var new_tab = view.open(object_url, "_blank");
+ if (new_tab == undefined && is_safari) {
+ //Apple do not allow window.open, see http://bit.ly/1kZffRI
+ view.location.href = object_url
+ }
+ }
+ filesaver.readyState = filesaver.DONE;
+ dispatch_all();
+ revoke(object_url);
+ }
+ , abortable = function(func) {
+ return function() {
+ if (filesaver.readyState !== filesaver.DONE) {
+ return func.apply(this, arguments);
+ }
+ };
+ }
+ , create_if_not_found = {create: true, exclusive: false}
+ , slice
+ ;
+ filesaver.readyState = filesaver.INIT;
+ if (!name) {
+ name = "download";
+ }
+ if (can_use_save_link) {
+ object_url = get_URL().createObjectURL(blob);
+ setTimeout(function() {
+ save_link.href = object_url;
+ save_link.download = name;
+ click(save_link);
+ dispatch_all();
+ revoke(object_url);
+ filesaver.readyState = filesaver.DONE;
+ });
+ return;
+ }
+ // Object and web filesystem URLs have a problem saving in Google Chrome when
+ // viewed in a tab, so I force save with application/octet-stream
+ // http://code.google.com/p/chromium/issues/detail?id=91158
+ // Update: Google errantly closed 91158, I submitted it again:
+ // https://code.google.com/p/chromium/issues/detail?id=389642
+ if (view.chrome && type && type !== force_saveable_type) {
+ slice = blob.slice || blob.webkitSlice;
+ blob = slice.call(blob, 0, blob.size, force_saveable_type);
+ blob_changed = true;
+ }
+ // Since I can't be sure that the guessed media type will trigger a download
+ // in WebKit, I append .download to the filename.
+ // https://bugs.webkit.org/show_bug.cgi?id=65440
+ if (webkit_req_fs && name !== "download") {
+ name += ".download";
+ }
+ if (type === force_saveable_type || webkit_req_fs) {
+ target_view = view;
+ }
+ if (!req_fs) {
+ fs_error();
+ return;
+ }
+ fs_min_size += blob.size;
+ req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
+ fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
+ var save = function() {
+ dir.getFile(name, create_if_not_found, abortable(function(file) {
+ file.createWriter(abortable(function(writer) {
+ writer.onwriteend = function(event) {
+ target_view.location.href = file.toURL();
+ filesaver.readyState = filesaver.DONE;
+ dispatch(filesaver, "writeend", event);
+ revoke(file);
+ };
+ writer.onerror = function() {
+ var error = writer.error;
+ if (error.code !== error.ABORT_ERR) {
+ fs_error();
+ }
+ };
+ "writestart progress write abort".split(" ").forEach(function(event) {
+ writer["on" + event] = filesaver["on" + event];
+ });
+ writer.write(blob);
+ filesaver.abort = function() {
+ writer.abort();
+ filesaver.readyState = filesaver.DONE;
+ };
+ filesaver.readyState = filesaver.WRITING;
+ }), fs_error);
+ }), fs_error);
+ };
+ dir.getFile(name, {create: false}, abortable(function(file) {
+ // delete file if it already exists
+ file.remove();
+ save();
+ }), abortable(function(ex) {
+ if (ex.code === ex.NOT_FOUND_ERR) {
+ save();
+ } else {
+ fs_error();
+ }
+ }));
+ }), fs_error);
+ }), fs_error);
+ }
+ , FS_proto = FileSaver.prototype
+ , saveAs = function(blob, name, no_auto_bom) {
+ return new FileSaver(blob, name, no_auto_bom);
+ }
+ ;
+ // IE 10+ (native saveAs)
+ if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
+ return function(blob, name, no_auto_bom) {
+ if (!no_auto_bom) {
+ blob = auto_bom(blob);
+ }
+ return navigator.msSaveOrOpenBlob(blob, name || "download");
+ };
+ }
+
+ FS_proto.abort = function() {
+ var filesaver = this;
+ filesaver.readyState = filesaver.DONE;
+ dispatch(filesaver, "abort");
+ };
+ FS_proto.readyState = FS_proto.INIT = 0;
+ FS_proto.WRITING = 1;
+ FS_proto.DONE = 2;
+
+ FS_proto.error =
+ FS_proto.onwritestart =
+ FS_proto.onprogress =
+ FS_proto.onwrite =
+ FS_proto.onabort =
+ FS_proto.onerror =
+ FS_proto.onwriteend =
+ null;
+
+ return saveAs;
+}(
+ typeof self !== "undefined" && self
+ || typeof window !== "undefined" && window
+ || this.content
+));
+// `self` is undefined in Firefox for Android content script context
+// while `this` is nsIContentFrameMessageManager
+// with an attribute `content` that corresponds to the window
+
+if (typeof module !== "undefined" && module.exports) {
+ module.exports.saveAs = saveAs;
+} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
+ define([], function() {
+ return saveAs;
+ });
+}
+
+},{}],3:[function(require,module,exports){
+'use strict';
+
+/*
+*
+* A AngularJS module that implements the HTML5 W3C saveAs() in browsers that
+* do not natively support it
+*
+* (c) 2015 Philipp Alferov
+* License: MIT
+*
+*/
+
+angular.module('ngFileSaver', [])
+ .factory('FileSaver', ['Blob', 'SaveAs', 'FileSaverUtils', require('./angular-file-saver.service')])
+ .factory('FileSaverUtils', [require('./utils/utils.service.js')])
+ .factory('Blob', ['$window', require('./dependencies/blob-bundle.service.js')])
+ .factory('SaveAs', [require('./dependencies/file-saver-bundle.service.js')]);
+
+},{"./angular-file-saver.service":4,"./dependencies/blob-bundle.service.js":5,"./dependencies/file-saver-bundle.service.js":6,"./utils/utils.service.js":7}],4:[function(require,module,exports){
+'use strict';
+
+module.exports = function FileSaver(Blob, SaveAs, FileSaverUtils) {
+
+ function save(blob, filename, disableAutoBOM) {
+ try {
+ SaveAs(blob, filename, disableAutoBOM);
+ } catch(err) {
+ FileSaverUtils.handleErrors(err.message);
+ }
+ }
+
+ return {
+
+ /**
+ * saveAs
+ * Immediately starts saving a file, returns undefined.
+ *
+ * @name saveAs
+ * @function
+ * @param {Blob} data A Blob instance
+ * @param {Object} filename Custom filename (extension is optional)
+ * @param {Boolean} disableAutoBOM Disable automatically provided Unicode
+ * text encoding hints
+ *
+ * @return {Undefined}
+ */
+
+ saveAs: function(data, filename, disableAutoBOM) {
+
+ if (!FileSaverUtils.isBlobInstance(data)) {
+ FileSaverUtils.handleErrors('Data argument should be a blob instance');
+ }
+
+ if (!FileSaverUtils.isString(filename)) {
+ FileSaverUtils.handleErrors('Filename argument should be a string');
+ }
+
+ return save(data, filename, disableAutoBOM);
+ }
+ };
+};
+
+},{}],5:[function(require,module,exports){
+'use strict';
+
+require('Blob.js');
+
+module.exports = function Blob($window) {
+ return $window.Blob;
+};
+
+},{"Blob.js":1}],6:[function(require,module,exports){
+'use strict';
+
+module.exports = function SaveAs() {
+ return require('FileSaver.js').saveAs || function() {};
+};
+
+},{"FileSaver.js":2}],7:[function(require,module,exports){
+'use strict';
+
+module.exports = function FileSaverUtils() {
+ return {
+ handleErrors: function(msg) {
+ throw new Error(msg);
+ },
+ isString: function(obj) {
+ return typeof obj === 'string' || obj instanceof String;
+ },
+ isUndefined: function(obj) {
+ return typeof obj === 'undefined';
+ },
+ isBlobInstance: function(obj) {
+ return obj instanceof Blob;
+ }
+ };
+};
+
+},{}]},{},[3]);
--- /dev/null
+/* Blob.js
+ * A Blob implementation.
+ * 2014-07-24
+ *
+ * By Eli Grey, http://eligrey.com
+ * By Devin Samarin, https://github.com/dsamarin
+ * License: X11/MIT
+ * See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
+ */
+
+/*global self, unescape */
+/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true,
+ plusplus: true */
+
+/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
+
+(function (view) {
+ "use strict";
+
+ view.URL = view.URL || view.webkitURL;
+
+ if (view.Blob && view.URL) {
+ try {
+ new Blob;
+ return;
+ } catch (e) {}
+ }
+
+ // Internally we use a BlobBuilder implementation to base Blob off of
+ // in order to support older browsers that only have BlobBuilder
+ var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function(view) {
+ var
+ get_class = function(object) {
+ return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1];
+ }
+ , FakeBlobBuilder = function BlobBuilder() {
+ this.data = [];
+ }
+ , FakeBlob = function Blob(data, type, encoding) {
+ this.data = data;
+ this.size = data.length;
+ this.type = type;
+ this.encoding = encoding;
+ }
+ , FBB_proto = FakeBlobBuilder.prototype
+ , FB_proto = FakeBlob.prototype
+ , FileReaderSync = view.FileReaderSync
+ , FileException = function(type) {
+ this.code = this[this.name = type];
+ }
+ , file_ex_codes = (
+ "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR "
+ + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR"
+ ).split(" ")
+ , file_ex_code = file_ex_codes.length
+ , real_URL = view.URL || view.webkitURL || view
+ , real_create_object_URL = real_URL.createObjectURL
+ , real_revoke_object_URL = real_URL.revokeObjectURL
+ , URL = real_URL
+ , btoa = view.btoa
+ , atob = view.atob
+
+ , ArrayBuffer = view.ArrayBuffer
+ , Uint8Array = view.Uint8Array
+
+ , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/
+ ;
+ FakeBlob.fake = FB_proto.fake = true;
+ while (file_ex_code--) {
+ FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1;
+ }
+ // Polyfill URL
+ if (!real_URL.createObjectURL) {
+ URL = view.URL = function(uri) {
+ var
+ uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
+ , uri_origin
+ ;
+ uri_info.href = uri;
+ if (!("origin" in uri_info)) {
+ if (uri_info.protocol.toLowerCase() === "data:") {
+ uri_info.origin = null;
+ } else {
+ uri_origin = uri.match(origin);
+ uri_info.origin = uri_origin && uri_origin[1];
+ }
+ }
+ return uri_info;
+ };
+ }
+ URL.createObjectURL = function(blob) {
+ var
+ type = blob.type
+ , data_URI_header
+ ;
+ if (type === null) {
+ type = "application/octet-stream";
+ }
+ if (blob instanceof FakeBlob) {
+ data_URI_header = "data:" + type;
+ if (blob.encoding === "base64") {
+ return data_URI_header + ";base64," + blob.data;
+ } else if (blob.encoding === "URI") {
+ return data_URI_header + "," + decodeURIComponent(blob.data);
+ } if (btoa) {
+ return data_URI_header + ";base64," + btoa(blob.data);
+ } else {
+ return data_URI_header + "," + encodeURIComponent(blob.data);
+ }
+ } else if (real_create_object_URL) {
+ return real_create_object_URL.call(real_URL, blob);
+ }
+ };
+ URL.revokeObjectURL = function(object_URL) {
+ if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) {
+ real_revoke_object_URL.call(real_URL, object_URL);
+ }
+ };
+ FBB_proto.append = function(data/*, endings*/) {
+ var bb = this.data;
+ // decode data to a binary string
+ if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
+ var
+ str = ""
+ , buf = new Uint8Array(data)
+ , i = 0
+ , buf_len = buf.length
+ ;
+ for (; i < buf_len; i++) {
+ str += String.fromCharCode(buf[i]);
+ }
+ bb.push(str);
+ } else if (get_class(data) === "Blob" || get_class(data) === "File") {
+ if (FileReaderSync) {
+ var fr = new FileReaderSync;
+ bb.push(fr.readAsBinaryString(data));
+ } else {
+ // async FileReader won't work as BlobBuilder is sync
+ throw new FileException("NOT_READABLE_ERR");
+ }
+ } else if (data instanceof FakeBlob) {
+ if (data.encoding === "base64" && atob) {
+ bb.push(atob(data.data));
+ } else if (data.encoding === "URI") {
+ bb.push(decodeURIComponent(data.data));
+ } else if (data.encoding === "raw") {
+ bb.push(data.data);
+ }
+ } else {
+ if (typeof data !== "string") {
+ data += ""; // convert unsupported types to strings
+ }
+ // decode UTF-16 to binary string
+ bb.push(unescape(encodeURIComponent(data)));
+ }
+ };
+ FBB_proto.getBlob = function(type) {
+ if (!arguments.length) {
+ type = null;
+ }
+ return new FakeBlob(this.data.join(""), type, "raw");
+ };
+ FBB_proto.toString = function() {
+ return "[object BlobBuilder]";
+ };
+ FB_proto.slice = function(start, end, type) {
+ var args = arguments.length;
+ if (args < 3) {
+ type = null;
+ }
+ return new FakeBlob(
+ this.data.slice(start, args > 1 ? end : this.data.length)
+ , type
+ , this.encoding
+ );
+ };
+ FB_proto.toString = function() {
+ return "[object Blob]";
+ };
+ FB_proto.close = function() {
+ this.size = 0;
+ delete this.data;
+ };
+ return FakeBlobBuilder;
+ }(view));
+
+ view.Blob = function(blobParts, options) {
+ var type = options ? (options.type || "") : "";
+ var builder = new BlobBuilder();
+ if (blobParts) {
+ for (var i = 0, len = blobParts.length; i < len; i++) {
+ if (Uint8Array && blobParts[i] instanceof Uint8Array) {
+ builder.append(blobParts[i].buffer);
+ }
+ else {
+ builder.append(blobParts[i]);
+ }
+ }
+ }
+ var blob = builder.getBlob(type);
+ if (!blob.slice && blob.webkitSlice) {
+ blob.slice = blob.webkitSlice;
+ }
+ return blob;
+ };
+
+ var getPrototypeOf = Object.getPrototypeOf || function(object) {
+ return object.__proto__;
+ };
+ view.Blob.prototype = getPrototypeOf(new view.Blob());
+}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
--- /dev/null
+/* FileSaver.js
+ * A saveAs() FileSaver implementation.
+ * 2015-05-07.2
+ *
+ * By Eli Grey, http://eligrey.com
+ * License: X11/MIT
+ * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
+ */
+
+/*global self */
+/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
+
+/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
+
+var saveAs = saveAs || (function(view) {
+ "use strict";
+ // IE <10 is explicitly unsupported
+ if (typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
+ return;
+ }
+ var
+ doc = view.document
+ // only get URL when necessary in case Blob.js hasn't overridden it yet
+ , get_URL = function() {
+ return view.URL || view.webkitURL || view;
+ }
+ , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
+ , can_use_save_link = "download" in save_link
+ , click = function(node) {
+ var event = doc.createEvent("MouseEvents");
+ event.initMouseEvent(
+ "click", true, false, view, 0, 0, 0, 0, 0
+ , false, false, false, false, 0, null
+ );
+ node.dispatchEvent(event);
+ }
+ , webkit_req_fs = view.webkitRequestFileSystem
+ , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
+ , throw_outside = function(ex) {
+ (view.setImmediate || view.setTimeout)(function() {
+ throw ex;
+ }, 0);
+ }
+ , force_saveable_type = "application/octet-stream"
+ , fs_min_size = 0
+ // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and
+ // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047
+ // for the reasoning behind the timeout and revocation flow
+ , arbitrary_revoke_timeout = 500 // in ms
+ , revoke = function(file) {
+ var revoker = function() {
+ if (typeof file === "string") { // file is an object URL
+ get_URL().revokeObjectURL(file);
+ } else { // file is a File
+ file.remove();
+ }
+ };
+ if (view.chrome) {
+ revoker();
+ } else {
+ setTimeout(revoker, arbitrary_revoke_timeout);
+ }
+ }
+ , dispatch = function(filesaver, event_types, event) {
+ event_types = [].concat(event_types);
+ var i = event_types.length;
+ while (i--) {
+ var listener = filesaver["on" + event_types[i]];
+ if (typeof listener === "function") {
+ try {
+ listener.call(filesaver, event || filesaver);
+ } catch (ex) {
+ throw_outside(ex);
+ }
+ }
+ }
+ }
+ , auto_bom = function(blob) {
+ // prepend BOM for UTF-8 XML and text/* types (including HTML)
+ if (/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
+ return new Blob(["\ufeff", blob], {type: blob.type});
+ }
+ return blob;
+ }
+ , FileSaver = function(blob, name) {
+ blob = auto_bom(blob);
+ // First try a.download, then web filesystem, then object URLs
+ var
+ filesaver = this
+ , type = blob.type
+ , blob_changed = false
+ , object_url
+ , target_view
+ , dispatch_all = function() {
+ dispatch(filesaver, "writestart progress write writeend".split(" "));
+ }
+ // on any filesys errors revert to saving with object URLs
+ , fs_error = function() {
+ // don't create more object URLs than needed
+ if (blob_changed || !object_url) {
+ object_url = get_URL().createObjectURL(blob);
+ }
+ if (target_view) {
+ target_view.location.href = object_url;
+ } else {
+ var new_tab = view.open(object_url, "_blank");
+ if (new_tab == undefined && typeof safari !== "undefined") {
+ //Apple do not allow window.open, see http://bit.ly/1kZffRI
+ view.location.href = object_url
+ }
+ }
+ filesaver.readyState = filesaver.DONE;
+ dispatch_all();
+ revoke(object_url);
+ }
+ , abortable = function(func) {
+ return function() {
+ if (filesaver.readyState !== filesaver.DONE) {
+ return func.apply(this, arguments);
+ }
+ };
+ }
+ , create_if_not_found = {create: true, exclusive: false}
+ , slice
+ ;
+ filesaver.readyState = filesaver.INIT;
+ if (!name) {
+ name = "download";
+ }
+ if (can_use_save_link) {
+ object_url = get_URL().createObjectURL(blob);
+ save_link.href = object_url;
+ save_link.download = name;
+ click(save_link);
+ filesaver.readyState = filesaver.DONE;
+ dispatch_all();
+ revoke(object_url);
+ return;
+ }
+ // Object and web filesystem URLs have a problem saving in Google Chrome when
+ // viewed in a tab, so I force save with application/octet-stream
+ // http://code.google.com/p/chromium/issues/detail?id=91158
+ // Update: Google errantly closed 91158, I submitted it again:
+ // https://code.google.com/p/chromium/issues/detail?id=389642
+ if (view.chrome && type && type !== force_saveable_type) {
+ slice = blob.slice || blob.webkitSlice;
+ blob = slice.call(blob, 0, blob.size, force_saveable_type);
+ blob_changed = true;
+ }
+ // Since I can't be sure that the guessed media type will trigger a download
+ // in WebKit, I append .download to the filename.
+ // https://bugs.webkit.org/show_bug.cgi?id=65440
+ if (webkit_req_fs && name !== "download") {
+ name += ".download";
+ }
+ if (type === force_saveable_type || webkit_req_fs) {
+ target_view = view;
+ }
+ if (!req_fs) {
+ fs_error();
+ return;
+ }
+ fs_min_size += blob.size;
+ req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
+ fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
+ var save = function() {
+ dir.getFile(name, create_if_not_found, abortable(function(file) {
+ file.createWriter(abortable(function(writer) {
+ writer.onwriteend = function(event) {
+ target_view.location.href = file.toURL();
+ filesaver.readyState = filesaver.DONE;
+ dispatch(filesaver, "writeend", event);
+ revoke(file);
+ };
+ writer.onerror = function() {
+ var error = writer.error;
+ if (error.code !== error.ABORT_ERR) {
+ fs_error();
+ }
+ };
+ "writestart progress write abort".split(" ").forEach(function(event) {
+ writer["on" + event] = filesaver["on" + event];
+ });
+ writer.write(blob);
+ filesaver.abort = function() {
+ writer.abort();
+ filesaver.readyState = filesaver.DONE;
+ };
+ filesaver.readyState = filesaver.WRITING;
+ }), fs_error);
+ }), fs_error);
+ };
+ dir.getFile(name, {create: false}, abortable(function(file) {
+ // delete file if it already exists
+ file.remove();
+ save();
+ }), abortable(function(ex) {
+ if (ex.code === ex.NOT_FOUND_ERR) {
+ save();
+ } else {
+ fs_error();
+ }
+ }));
+ }), fs_error);
+ }), fs_error);
+ }
+ , FS_proto = FileSaver.prototype
+ , saveAs = function(blob, name) {
+ return new FileSaver(blob, name);
+ }
+ ;
+ // IE 10+ (native saveAs)
+ if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {
+ return function(blob, name) {
+ return navigator.msSaveOrOpenBlob(auto_bom(blob), name);
+ };
+ }
+
+ FS_proto.abort = function() {
+ var filesaver = this;
+ filesaver.readyState = filesaver.DONE;
+ dispatch(filesaver, "abort");
+ };
+ FS_proto.readyState = FS_proto.INIT = 0;
+ FS_proto.WRITING = 1;
+ FS_proto.DONE = 2;
+
+ FS_proto.error =
+ FS_proto.onwritestart =
+ FS_proto.onprogress =
+ FS_proto.onwrite =
+ FS_proto.onabort =
+ FS_proto.onerror =
+ FS_proto.onwriteend =
+ null;
+
+ return saveAs;
+}(
+ typeof self !== "undefined" && self
+ || typeof window !== "undefined" && window
+ || this.content
+));
+// `self` is undefined in Firefox for Android content script context
+// while `this` is nsIContentFrameMessageManager
+// with an attribute `content` that corresponds to the window
+
+if (typeof module !== "undefined" && module.exports) {
+ module.exports.saveAs = saveAs;
+} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
+ define([], function() {
+ return saveAs;
+ });
+}
\ No newline at end of file
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="app/6e9756ac.vendor.css">
- <link rel="stylesheet" href="app/dc39fef2.app.css">
+ <link rel="stylesheet" href="app/7b2a74e6.app.css">
<!-- BEGIN DYMANICLY LOADED CSS FILES (all plugin and page related styles must be loaded between GLOBAL and THEME css files ) -->
<link id="ng_load_plugins_before"/>
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<![endif]-->
- <script src="app/fa0dad2a.vendor.js"></script>
+ <script src="app/7d2f88b6.vendor.js"></script>
- <script src="app/30a38ffd.app.js"></script>
+ <script src="app/4d8bdf2e.app.js"></script>
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
+++ /dev/null
-# xCALLY MOTION Changelog
-
-- * 96837d8 - 2016-01-11: Asterisk Configuration File
-- * 9626622 - 2016-01-11: fixed back compatibility languages
-- * 4143fce - 2016-01-11: Updated reports APIs.
-- * 7d148f3 - 2016-01-11: bower.json
-- * d7331e9 - 2016-01-11: server side .yo-rc.json
-- * d375539 - 2016-01-11: server side app.js + routes.js
-- * e70d044 - 2016-01-11: server side models
-- * 5127ffe - 2016-01-11: server side config
-- * b773540 - 2016-01-11: server side API
-- * 00f85ce - 2016-01-11: client side components
-- * 6c68dbd - 2016-01-11: client side assets
-- * a42a9fa - 2016-01-11: client side app modules
-- * 8025ad7 - 2016-01-11: client components sidebar templates path
-- * d804d0a - 2016-01-11: languages update
-- * cc4abc0 - 2016-01-11: package.son
-- * 77404a1 - 2016-01-08: Updated ReportTree seed
-- * c342b5f - 2016-01-08: Report section tree view
-- * 2ea412c - 2016-01-08: add integration action for voice trigger
-- * 5ce445c - 2016-01-08: change foreign key to handle AccountId column for each integration
-- * 0974ad1 - 2016-01-08: add random percentage for "market"
-- * 2f5d1bc - 2016-01-05: Market update (item disposition)
-- * 41cb71c - 2016-01-05: Update integration: model, route Update market: fake market only with our integrations Add mocha as dev dependencies
-- * fa560ae - 2016-01-05: add danger notification (xAlert)
-
--- /dev/null
+# xCALLY MOTION Changelog
+
+- * d9f5e3b - 2016-01-15: session secret installer
+- * 6546aa4 - 2016-01-15: server side config smtp. Node mailer sendmail already implements by mean promise.
+- * 278cd3a - 2016-01-15: server config license
+- * 2ad392b - 2016-01-15: server side api
+- * e2f08ed - 2016-01-15: client side app
+- * fe7830b - 2016-01-15: active sidebar with dashboard state
+- * c7023c8 - 2016-01-15: darkblue.css
+- * c0648bf - 2016-01-15: client side app setting template factory
+- * 60f9717 - 2016-01-14: Modify links from http to https
+- * 21d1dd8 - 2016-01-14: Obfuscation Server Side
+- * f2c009b - 2016-01-14: package.json
+- * 24350ff - 2016-01-14: socketio.js
+- * 9d9d046 - 2016-01-14: server side app.js + routes.js
+- * 991b0bd - 2016-01-14: server side models
+- * 46eafec - 2016-01-14: server side config license
+- * 0ed1f10 - 2016-01-14: server side config environment
+- * f90b580 - 2016-01-14: server side auth
+- * 5a77e0e - 2016-01-14: client side components sidebar
+- * 58d21ae - 2016-01-14: server side api
+- * 5253808 - 2016-01-14: client side assets
+- * cafd169 - 2016-01-14: client side app
+- * 1903f04 - 2016-01-14: Fixed report preview limit.
+- * bef9612 - 2016-01-14: Added report copy; Added report json import/export.
+- * 1c98d29 - 2016-01-13: Added server side report building; Added report preview(custom, client side, edit view).
+- * 3defec8 - 2016-01-12: Added client side report query builder.
+- * b7b6646 - 2016-01-12: restored seed.js
+- * e04072d - 2016-01-12: server side config seed.js
+- * 05489e6 - 2016-01-11: remove warning message after install/uninstall integration in market section
+- * 96837d8 - 2016-01-11: Asterisk Configuration File
+- * 9626622 - 2016-01-11: fixed back compatibility languages
+- * 4143fce - 2016-01-11: Updated reports APIs.
+- * 7d148f3 - 2016-01-11: bower.json
+- * d7331e9 - 2016-01-11: server side .yo-rc.json
+- * d375539 - 2016-01-11: server side app.js + routes.js
+- * e70d044 - 2016-01-11: server side models
+- * 5127ffe - 2016-01-11: server side config
+- * b773540 - 2016-01-11: server side API
+- * 00f85ce - 2016-01-11: client side components
+- * 6c68dbd - 2016-01-11: client side assets
+- * a42a9fa - 2016-01-11: client side app modules
+- * 8025ad7 - 2016-01-11: client components sidebar templates path
+- * d804d0a - 2016-01-11: languages update
+- * cc4abc0 - 2016-01-11: package.son
+- * 77404a1 - 2016-01-08: Updated ReportTree seed
+- * c342b5f - 2016-01-08: Report section tree view
+
-var _0x8a18=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x61\x6D","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x61\x67\x65\x6E\x74","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x73\x65\x72","\x6F\x6C\x64\x50\x61\x73\x73\x77\x6F\x72\x64","\x6E\x65\x77\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x67\x65\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65"];_0x8a18[0];var _=require(_0x8a18[1]);var util=require(_0x8a18[2]);var Agent=require(_0x8a18[4])[_0x8a18[3]];var Team=require(_0x8a18[4])[_0x8a18[5]];exports[_0x8a18[6]]=function(_0x8e9cx5,_0x8e9cx6,_0x8e9cx7){var _0x8e9cx8=[_0x8a18[7],_0x8a18[8],_0x8a18[9]];var _0x8e9cx9=_0x8e9cx5[_0x8a18[11]][_0x8a18[10]]?parseInt(_0x8e9cx5[_0x8a18[11]][_0x8a18[10]],10):100;var _0x8e9cxa=_0x8e9cx5[_0x8a18[11]][_0x8a18[12]]?parseInt(_0x8e9cx5[_0x8a18[11]][_0x8a18[12]],10):0;var _0x8e9cxb={where:{role:_0x8a18[13]},limit:_0x8e9cx9,offset:_0x8e9cxa*_0x8e9cx9};_[_0x8a18[27]](_0x8e9cx5[_0x8a18[11]],function(_0x8e9cxc,_0x8e9cxd){switch(_0x8e9cxd){case _0x8a18[10]:;case _0x8a18[12]:break ;;case _0x8a18[16]:_0x8e9cxb[_0x8a18[14]]=util[_0x8a18[19]](_0x8a18[15],_0x8e9cx5[_0x8a18[11]][_0x8a18[16]],_0x8e9cx5[_0x8a18[11]][_0x8a18[17]]||_0x8a18[18])||null;break ;;case _0x8a18[17]:break ;;case _0x8a18[25]:_0x8e9cxb[_0x8a18[21]][_0x8a18[20]]=[];_0x8e9cx8[_0x8a18[24]](function(_0x8e9cxe){var _0x8e9cxf={};_0x8e9cxf[_0x8e9cxe]={$like:_0x8a18[22]+_0x8e9cxc+_0x8a18[22]};_0x8e9cxb[_0x8a18[21]][_0x8a18[20]][_0x8a18[23]](_0x8e9cxf);});break ;;default:_0x8e9cxb[_0x8a18[21]][_0x8e9cxd]={$like:{}};_0x8e9cxb[_0x8a18[21]][_0x8e9cxd][_0x8a18[26]]=_0x8a18[22]+_0x8e9cxc+_0x8a18[22];;}});Agent[_0x8a18[42]](_0x8e9cxb)[_0x8a18[41]](function(_0x8e9cx11){var _0x8e9cx12=Math[_0x8a18[33]](_0x8e9cx11[_0x8a18[32]]/_0x8e9cx9);var _0x8e9cx13=_0x8e9cx12>(_0x8e9cxb[_0x8a18[34]]+1)?util[_0x8a18[19]](_0x8a18[35],_0x8e9cx5[_0x8a18[36]],_0x8e9cx5[_0x8a18[38]][_0x8a18[37]],_0x8e9cx5[_0x8a18[39]],_0x8e9cxa+1):null;var _0x8e9cx14=_0x8e9cxa>0?util[_0x8a18[19]](_0x8a18[35],_0x8e9cx5[_0x8a18[36]],_0x8e9cx5[_0x8a18[38]][_0x8a18[37]],_0x8e9cx5[_0x8a18[39]],_0x8e9cxa-1):null;_0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]]({count:_0x8e9cx11[_0x8a18[32]],rows:_0x8e9cx11[_0x8a18[40]],next_page:_0x8e9cx13,previous_page:_0x8e9cx14,total_pages:_0x8e9cx12});})[_0x8a18[31]](function(_0x8e9cx10){_0x8e9cx6[_0x8a18[30]](500)[_0x8a18[29]]({error:_0x8a18[28]})});};exports[_0x8a18[43]]=function(_0x8e9cx5,_0x8e9cx6){Agent[_0x8a18[47]](_0x8e9cx5[_0x8a18[46]][_0x8a18[45]])[_0x8a18[41]](function(_0x8e9cx15){if(!_0x8e9cx15){return _0x8e9cx6[_0x8a18[44]](404)};return _0x8e9cx6[_0x8a18[29]](_0x8e9cx15);})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)})};exports[_0x8a18[48]]=function(_0x8e9cx5,_0x8e9cx6){Agent[_0x8a18[51]]({where:{internal:_0x8e9cx5[_0x8a18[50]][_0x8a18[49]]}})[_0x8a18[41]](function(_0x8e9cx16){if(!_0x8e9cx16){return _0x8e9cx6[_0x8a18[44]](404)};return _0x8e9cx6[_0x8a18[29]](_0x8e9cx16);})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)})};exports[_0x8a18[52]]=function(_0x8e9cx5,_0x8e9cx6){Agent[_0x8a18[52]](_0x8e9cx5[_0x8a18[50]])[_0x8a18[41]](function(_0x8e9cx15){Team[_0x8a18[55]]({where:{defaultEntry:true}})[_0x8a18[41]](function(_0x8e9cx17){_0x8e9cx17[_0x8a18[54]](_0x8e9cx15[_0x8a18[45]])[_0x8a18[41]](function(){return _0x8e9cx6[_0x8a18[30]](201)[_0x8a18[29]](_0x8e9cx15)})[_0x8a18[31]](function(_0x8e9cx10){console[_0x8a18[53]](_0x8e9cx10);return handleError(_0x8e9cx6,_0x8e9cx10);})})[_0x8a18[31]](function(_0x8e9cx10){console[_0x8a18[53]](_0x8e9cx10);return handleError(_0x8e9cx6,_0x8e9cx10);})})[_0x8a18[31]](function(_0x8e9cx10){console[_0x8a18[53]](_0x8e9cx10);return handleError(_0x8e9cx6,_0x8e9cx10);})};exports[_0x8a18[56]]=function(_0x8e9cx5,_0x8e9cx6){if(_0x8e9cx5[_0x8a18[50]][_0x8a18[45]]){delete _0x8e9cx5[_0x8a18[50]][_0x8a18[45]]};Agent[_0x8a18[47]](_0x8e9cx5[_0x8a18[46]][_0x8a18[45]])[_0x8a18[41]](function(_0x8e9cx15){if(!_0x8e9cx15){return _0x8e9cx6[_0x8a18[44]](404)};var _0x8e9cx18=_[_0x8a18[57]](_0x8e9cx15,_0x8e9cx5[_0x8a18[50]]);_0x8e9cx18[_0x8a18[58]]()[_0x8a18[41]](function(){return _0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]](_0x8e9cx15)})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)});})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)});};exports[_0x8a18[59]]=function(_0x8e9cx5,_0x8e9cx6){Agent[_0x8a18[47]](_0x8e9cx5[_0x8a18[46]][_0x8a18[45]])[_0x8a18[41]](function(_0x8e9cx15){if(!_0x8e9cx15){return _0x8e9cx6[_0x8a18[44]](404)};_0x8e9cx15[_0x8a18[59]]()[_0x8a18[41]](function(){return _0x8e9cx6[_0x8a18[44]](204)})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)});})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)})};exports[_0x8a18[60]]=function(_0x8e9cx5,_0x8e9cx6){Agent[_0x8a18[59]]({where:{id:_0x8e9cx5[_0x8a18[11]][_0x8a18[45]]},individualHooks:true})[_0x8a18[41]](function(){return _0x8e9cx6[_0x8a18[44]](204)})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)})};exports[_0x8a18[61]]=function(_0x8e9cx5,_0x8e9cx6,_0x8e9cx7){console[_0x8a18[53]](_0x8e9cx5[_0x8a18[50]]);var _0x8e9cx19=_0x8e9cx5[_0x8a18[62]][_0x8a18[45]];var _0x8e9cx1a=String(_0x8e9cx5[_0x8a18[50]][_0x8a18[63]]);var _0x8e9cx1b=String(_0x8e9cx5[_0x8a18[50]][_0x8a18[64]]);Agent[_0x8a18[47]](_0x8e9cx19)[_0x8a18[41]](function(_0x8e9cx15){if(_0x8e9cx15[_0x8a18[65]](_0x8e9cx1a)){_0x8e9cx15[_0x8a18[66]]=_0x8e9cx1b;_0x8e9cx15[_0x8a18[58]]()[_0x8a18[41]](function(){_0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]](_0x8e9cx15)})[_0x8a18[31]](function(_0x8e9cx10){return _0x8e9cx7(_0x8e9cx10)});}else {_0x8e9cx6[_0x8a18[44]](403)}});};exports[_0x8a18[67]]=function(_0x8e9cx5,_0x8e9cx6,_0x8e9cx7){var _0x8e9cx1b=String(_0x8e9cx5[_0x8a18[50]][_0x8a18[64]]);Agent[_0x8a18[47]](_0x8e9cx5[_0x8a18[46]][_0x8a18[45]])[_0x8a18[41]](function(_0x8e9cx1c){_0x8e9cx1c[_0x8a18[66]]=_0x8e9cx1b;_0x8e9cx1c[_0x8a18[58]]()[_0x8a18[41]](function(){_0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]](_0x8e9cx1c)})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)});});};exports[_0x8a18[68]]=function(_0x8e9cx5,_0x8e9cx6){var _0x8e9cx1d={};_0x8e9cx1d[_0x8e9cx5[_0x8a18[46]][_0x8a18[69]]]=_0x8e9cx5[_0x8a18[50]][_0x8a18[70]];Agent[_0x8a18[42]]({where:_0x8e9cx1d})[_0x8a18[41]](function(_0x8e9cx11){if(_0x8e9cx11[_0x8a18[32]]){return _0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]]({isValid:false,value:_0x8e9cx5[_0x8a18[50]][_0x8a18[70]]})};return _0x8e9cx6[_0x8a18[30]](200)[_0x8a18[29]]({isValid:true,value:_0x8e9cx5[_0x8a18[50]][_0x8a18[70]]});})[_0x8a18[31]](function(_0x8e9cx10){return handleError(_0x8e9cx6,_0x8e9cx10)});};function handleError(_0x8e9cx6,_0x8e9cx10){return _0x8e9cx6[_0x8a18[30]](500)[_0x8a18[29]](_0x8e9cx10)}
\ No newline at end of file
+var _0x5c53=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x61\x6D","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x61\x67\x65\x6E\x74","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x73\x65\x72","\x6F\x6C\x64\x50\x61\x73\x73\x77\x6F\x72\x64","\x6E\x65\x77\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x67\x65\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65"];_0x5c53[0];var _=require(_0x5c53[1]);var util=require(_0x5c53[2]);var Agent=require(_0x5c53[4])[_0x5c53[3]];var Team=require(_0x5c53[4])[_0x5c53[5]];exports[_0x5c53[6]]=function(_0xac14x5,_0xac14x6,_0xac14x7){var _0xac14x8=[_0x5c53[7],_0x5c53[8],_0x5c53[9]];var _0xac14x9=_0xac14x5[_0x5c53[11]][_0x5c53[10]]?parseInt(_0xac14x5[_0x5c53[11]][_0x5c53[10]],10):100;var _0xac14xa=_0xac14x5[_0x5c53[11]][_0x5c53[12]]?parseInt(_0xac14x5[_0x5c53[11]][_0x5c53[12]],10):0;var _0xac14xb={where:{role:_0x5c53[13]},limit:_0xac14x9,offset:_0xac14xa*_0xac14x9};_[_0x5c53[27]](_0xac14x5[_0x5c53[11]],function(_0xac14xc,_0xac14xd){switch(_0xac14xd){case _0x5c53[10]:;case _0x5c53[12]:break ;;case _0x5c53[16]:_0xac14xb[_0x5c53[14]]=util[_0x5c53[19]](_0x5c53[15],_0xac14x5[_0x5c53[11]][_0x5c53[16]],_0xac14x5[_0x5c53[11]][_0x5c53[17]]||_0x5c53[18])||null;break ;;case _0x5c53[17]:break ;;case _0x5c53[25]:_0xac14xb[_0x5c53[21]][_0x5c53[20]]=[];_0xac14x8[_0x5c53[24]](function(_0xac14xe){var _0xac14xf={};_0xac14xf[_0xac14xe]={$like:_0x5c53[22]+_0xac14xc+_0x5c53[22]};_0xac14xb[_0x5c53[21]][_0x5c53[20]][_0x5c53[23]](_0xac14xf);});break ;;default:_0xac14xb[_0x5c53[21]][_0xac14xd]={$like:{}};_0xac14xb[_0x5c53[21]][_0xac14xd][_0x5c53[26]]=_0x5c53[22]+_0xac14xc+_0x5c53[22];;}});Agent[_0x5c53[42]](_0xac14xb)[_0x5c53[41]](function(_0xac14x11){var _0xac14x12=Math[_0x5c53[33]](_0xac14x11[_0x5c53[32]]/_0xac14x9);var _0xac14x13=_0xac14x12>(_0xac14xb[_0x5c53[34]]+1)?util[_0x5c53[19]](_0x5c53[35],_0xac14x5[_0x5c53[36]],_0xac14x5[_0x5c53[38]][_0x5c53[37]],_0xac14x5[_0x5c53[39]],_0xac14xa+1):null;var _0xac14x14=_0xac14xa>0?util[_0x5c53[19]](_0x5c53[35],_0xac14x5[_0x5c53[36]],_0xac14x5[_0x5c53[38]][_0x5c53[37]],_0xac14x5[_0x5c53[39]],_0xac14xa-1):null;_0xac14x6[_0x5c53[30]](200)[_0x5c53[29]]({count:_0xac14x11[_0x5c53[32]],rows:_0xac14x11[_0x5c53[40]],next_page:_0xac14x13,previous_page:_0xac14x14,total_pages:_0xac14x12});})[_0x5c53[31]](function(_0xac14x10){_0xac14x6[_0x5c53[30]](500)[_0x5c53[29]]({error:_0x5c53[28]})});};exports[_0x5c53[43]]=function(_0xac14x5,_0xac14x6){Agent[_0x5c53[47]](_0xac14x5[_0x5c53[46]][_0x5c53[45]])[_0x5c53[41]](function(_0xac14x15){if(!_0xac14x15){return _0xac14x6[_0x5c53[44]](404)};return _0xac14x6[_0x5c53[29]](_0xac14x15);})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)})};exports[_0x5c53[48]]=function(_0xac14x5,_0xac14x6){Agent[_0x5c53[51]]({where:{internal:_0xac14x5[_0x5c53[50]][_0x5c53[49]]}})[_0x5c53[41]](function(_0xac14x16){if(!_0xac14x16){return _0xac14x6[_0x5c53[44]](404)};return _0xac14x6[_0x5c53[29]](_0xac14x16);})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)})};exports[_0x5c53[52]]=function(_0xac14x5,_0xac14x6){Agent[_0x5c53[52]](_0xac14x5[_0x5c53[50]])[_0x5c53[41]](function(_0xac14x15){Team[_0x5c53[55]]({where:{defaultEntry:true}})[_0x5c53[41]](function(_0xac14x17){_0xac14x17[_0x5c53[54]](_0xac14x15[_0x5c53[45]])[_0x5c53[41]](function(){return _0xac14x6[_0x5c53[30]](201)[_0x5c53[29]](_0xac14x15)})[_0x5c53[31]](function(_0xac14x10){console[_0x5c53[53]](_0xac14x10);return handleError(_0xac14x6,_0xac14x10);})})[_0x5c53[31]](function(_0xac14x10){console[_0x5c53[53]](_0xac14x10);return handleError(_0xac14x6,_0xac14x10);})})[_0x5c53[31]](function(_0xac14x10){console[_0x5c53[53]](_0xac14x10);return handleError(_0xac14x6,_0xac14x10);})};exports[_0x5c53[56]]=function(_0xac14x5,_0xac14x6){if(_0xac14x5[_0x5c53[50]][_0x5c53[45]]){delete _0xac14x5[_0x5c53[50]][_0x5c53[45]]};Agent[_0x5c53[47]](_0xac14x5[_0x5c53[46]][_0x5c53[45]])[_0x5c53[41]](function(_0xac14x15){if(!_0xac14x15){return _0xac14x6[_0x5c53[44]](404)};var _0xac14x18=_[_0x5c53[57]](_0xac14x15,_0xac14x5[_0x5c53[50]]);_0xac14x18[_0x5c53[58]]()[_0x5c53[41]](function(){return _0xac14x6[_0x5c53[30]](200)[_0x5c53[29]](_0xac14x15)})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)});})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)});};exports[_0x5c53[59]]=function(_0xac14x5,_0xac14x6){Agent[_0x5c53[47]](_0xac14x5[_0x5c53[46]][_0x5c53[45]])[_0x5c53[41]](function(_0xac14x15){if(!_0xac14x15){return _0xac14x6[_0x5c53[44]](404)};_0xac14x15[_0x5c53[59]]()[_0x5c53[41]](function(){return _0xac14x6[_0x5c53[44]](204)})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)});})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)})};exports[_0x5c53[60]]=function(_0xac14x5,_0xac14x6){Agent[_0x5c53[59]]({where:{id:_0xac14x5[_0x5c53[11]][_0x5c53[45]]},individualHooks:true})[_0x5c53[41]](function(){return _0xac14x6[_0x5c53[44]](204)})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)})};exports[_0x5c53[61]]=function(_0xac14x5,_0xac14x6,_0xac14x7){console[_0x5c53[53]](_0xac14x5[_0x5c53[50]]);var _0xac14x19=_0xac14x5[_0x5c53[62]][_0x5c53[45]];var _0xac14x1a=String(_0xac14x5[_0x5c53[50]][_0x5c53[63]]);var _0xac14x1b=String(_0xac14x5[_0x5c53[50]][_0x5c53[64]]);Agent[_0x5c53[47]](_0xac14x19)[_0x5c53[41]](function(_0xac14x15){if(_0xac14x15[_0x5c53[65]](_0xac14x1a)){_0xac14x15[_0x5c53[66]]=_0xac14x1b;_0xac14x15[_0x5c53[58]]()[_0x5c53[41]](function(){_0xac14x6[_0x5c53[30]](200)[_0x5c53[29]](_0xac14x15)})[_0x5c53[31]](function(_0xac14x10){return _0xac14x7(_0xac14x10)});}else {_0xac14x6[_0x5c53[44]](403)}});};exports[_0x5c53[67]]=function(_0xac14x5,_0xac14x6,_0xac14x7){var _0xac14x1b=String(_0xac14x5[_0x5c53[50]][_0x5c53[64]]);Agent[_0x5c53[47]](_0xac14x5[_0x5c53[46]][_0x5c53[45]])[_0x5c53[41]](function(_0xac14x1c){_0xac14x1c[_0x5c53[66]]=_0xac14x1b;_0xac14x1c[_0x5c53[58]]()[_0x5c53[41]](function(){_0xac14x6[_0x5c53[30]](200)[_0x5c53[29]](_0xac14x1c)})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)});});};exports[_0x5c53[68]]=function(_0xac14x5,_0xac14x6){var _0xac14x1d={};_0xac14x1d[_0xac14x5[_0x5c53[46]][_0x5c53[69]]]=_0xac14x5[_0x5c53[50]][_0x5c53[70]];Agent[_0x5c53[42]]({where:_0xac14x1d})[_0x5c53[41]](function(_0xac14x11){if(_0xac14x11[_0x5c53[32]]){return _0xac14x6[_0x5c53[30]](200)[_0x5c53[29]]({isValid:false,value:_0xac14x5[_0x5c53[50]][_0x5c53[70]]})};return _0xac14x6[_0x5c53[30]](200)[_0x5c53[29]]({isValid:true,value:_0xac14x5[_0x5c53[50]][_0x5c53[70]]});})[_0x5c53[31]](function(_0xac14x10){return handleError(_0xac14x6,_0xac14x10)});};function handleError(_0xac14x6,_0xac14x10){return _0xac14x6[_0x5c53[30]](500)[_0x5c53[29]](_0xac14x10)}
\ No newline at end of file
-var _0x9af2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x67\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9af2[0];var agent=require(_0x9af2[2])[_0x9af2[1]];exports[_0x9af2[3]]=function(_0x5600x2){agent[_0x9af2[6]](function(_0x5600x3){if(_0x5600x3[_0x9af2[4]]===_0x9af2[5]){onSave(_0x5600x2,_0x5600x3)}});agent[_0x9af2[7]](function(_0x5600x3){if(_0x5600x3[_0x9af2[4]]===_0x9af2[5]){onSave(_0x5600x2,_0x5600x3)}});agent[_0x9af2[8]](function(_0x5600x3){if(_0x5600x3[_0x9af2[4]]===_0x9af2[5]){onRemove(_0x5600x2,_0x5600x3)}});};function onSave(_0x5600x2,_0x5600x3,_0x5600x5){_0x5600x2[_0x9af2[10]](_0x9af2[9],_0x5600x3)}function onRemove(_0x5600x2,_0x5600x3,_0x5600x5){_0x5600x2[_0x9af2[10]](_0x9af2[11],_0x5600x3)}
\ No newline at end of file
+var _0x6baa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x67\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6baa[0];var agent=require(_0x6baa[2])[_0x6baa[1]];exports[_0x6baa[3]]=function(_0xf6d5x2){agent[_0x6baa[6]](function(_0xf6d5x3){if(_0xf6d5x3[_0x6baa[4]]===_0x6baa[5]){onSave(_0xf6d5x2,_0xf6d5x3)}});agent[_0x6baa[7]](function(_0xf6d5x3){if(_0xf6d5x3[_0x6baa[4]]===_0x6baa[5]){onSave(_0xf6d5x2,_0xf6d5x3)}});agent[_0x6baa[8]](function(_0xf6d5x3){if(_0xf6d5x3[_0x6baa[4]]===_0x6baa[5]){onRemove(_0xf6d5x2,_0xf6d5x3)}});};function onSave(_0xf6d5x2,_0xf6d5x3,_0xf6d5x5){_0xf6d5x2[_0x6baa[10]](_0x6baa[9],_0xf6d5x3)}function onRemove(_0xf6d5x2,_0xf6d5x3,_0xf6d5x5){_0xf6d5x2[_0x6baa[10]](_0x6baa[11],_0xf6d5x3)}
\ No newline at end of file
-var _0x8028=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x67\x65\x74"];_0x8028[0];var should=require(_0x8028[1]);var app=require(_0x8028[2]);var request=require(_0x8028[3]);describe(_0x8028[4],function(){it(_0x8028[5],function(_0xab5ex4){request(app)[_0x8028[13]](_0x8028[12])[_0x8028[11]](200)[_0x8028[11]](_0x8028[10],/json/)[_0x8028[9]](function(_0xab5ex5,_0xab5ex6){if(_0xab5ex5){return _0xab5ex4(_0xab5ex5)};_0xab5ex6[_0x8028[8]][_0x8028[1]][_0x8028[7]][_0x8028[6]](Array);_0xab5ex4();})})});
\ No newline at end of file
+var _0xf70f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x67\x65\x74"];_0xf70f[0];var should=require(_0xf70f[1]);var app=require(_0xf70f[2]);var request=require(_0xf70f[3]);describe(_0xf70f[4],function(){it(_0xf70f[5],function(_0xb8bcx4){request(app)[_0xf70f[13]](_0xf70f[12])[_0xf70f[11]](200)[_0xf70f[11]](_0xf70f[10],/json/)[_0xf70f[9]](function(_0xb8bcx5,_0xb8bcx6){if(_0xb8bcx5){return _0xb8bcx4(_0xb8bcx5)};_0xb8bcx6[_0xf70f[8]][_0xf70f[1]][_0xf70f[7]][_0xf70f[6]](Array);_0xb8bcx4();})})});
\ No newline at end of file
-var _0xe742=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x67\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x67\x65\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x70\x75\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64\x2F\x3A\x69\x64\x2F\x72\x65\x73\x65\x74","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x70\x64\x61\x74\x65","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xe742[0];var express=require(_0xe742[1]);var controller=require(_0xe742[2]);var auth=require(_0xe742[3]);var router=express.Router();router[_0xe742[7]](_0xe742[4],auth[_0xe742[5]](),controller[_0xe742[6]]);router[_0xe742[7]](_0xe742[8],auth[_0xe742[5]](),controller[_0xe742[9]]);router[_0xe742[12]](_0xe742[10],auth[_0xe742[5]](),controller[_0xe742[11]]);router[_0xe742[12]](_0xe742[4],auth[_0xe742[5]](),controller[_0xe742[13]]);router[_0xe742[12]](_0xe742[14],auth[_0xe742[5]](),controller[_0xe742[15]]);router[_0xe742[18]](_0xe742[16],auth[_0xe742[5]](),controller[_0xe742[17]]);router[_0xe742[18]](_0xe742[19],auth[_0xe742[5]](),auth[_0xe742[21]](_0xe742[20]),controller[_0xe742[22]]);router[_0xe742[18]](_0xe742[8],auth[_0xe742[5]](),controller[_0xe742[23]]);router[_0xe742[24]](_0xe742[8],auth[_0xe742[5]](),controller[_0xe742[23]]);router[_0xe742[26]](_0xe742[4],auth[_0xe742[5]](),controller[_0xe742[25]]);router[_0xe742[26]](_0xe742[8],auth[_0xe742[5]](),controller[_0xe742[27]]);module[_0xe742[28]]=router;
\ No newline at end of file
+var _0xed28=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x67\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x67\x65\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x70\x75\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64\x2F\x3A\x69\x64\x2F\x72\x65\x73\x65\x74","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x70\x64\x61\x74\x65","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xed28[0];var express=require(_0xed28[1]);var controller=require(_0xed28[2]);var auth=require(_0xed28[3]);var router=express.Router();router[_0xed28[7]](_0xed28[4],auth[_0xed28[5]](),controller[_0xed28[6]]);router[_0xed28[7]](_0xed28[8],auth[_0xed28[5]](),controller[_0xed28[9]]);router[_0xed28[12]](_0xed28[10],auth[_0xed28[5]](),controller[_0xed28[11]]);router[_0xed28[12]](_0xed28[4],auth[_0xed28[5]](),controller[_0xed28[13]]);router[_0xed28[12]](_0xed28[14],auth[_0xed28[5]](),controller[_0xed28[15]]);router[_0xed28[18]](_0xed28[16],auth[_0xed28[5]](),controller[_0xed28[17]]);router[_0xed28[18]](_0xed28[19],auth[_0xed28[5]](),auth[_0xed28[21]](_0xed28[20]),controller[_0xed28[22]]);router[_0xed28[18]](_0xed28[8],auth[_0xed28[5]](),controller[_0xed28[23]]);router[_0xed28[24]](_0xed28[8],auth[_0xed28[5]](),controller[_0xed28[23]]);router[_0xed28[26]](_0xed28[4],auth[_0xed28[5]](),controller[_0xed28[25]]);router[_0xed28[26]](_0xed28[8],auth[_0xed28[5]](),controller[_0xed28[27]]);module[_0xed28[28]]=router;
\ No newline at end of file
-var _0xd08a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x73\x79\x6E\x63","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x6D\x69","\x61\x63\x74\x69\x6F\x6E","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x6D\x65\x72\x67\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x41\x73\x74\x65\x72\x69\x73\x6B\x20\x4D\x61\x6E\x61\x67\x65\x72\x20\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x2E\x2E"];_0xd08a[0];var Ami=require(_0xd08a[2])[_0xd08a[1]];var async=require(_0xd08a[3]);var _=require(_0xd08a[4]);var ami=null;exports[_0xd08a[5]]=function(ami){this[_0xd08a[6]]=ami};exports[_0xd08a[7]]=function(_0x8a3dx5,_0x8a3dx6){if(this[_0xd08a[6]]&&this[_0xd08a[6]][_0xd08a[8]]()){this[_0xd08a[6]][_0xd08a[7]](_0x8a3dx5,function(_0x8a3dx7,_0x8a3dx8){if(_0x8a3dx7){_0x8a3dx6(_0x8a3dx7)};var _0x8a3dx9=_[_0xd08a[9]](_0x8a3dx8,_0x8a3dx5);Ami[_0xd08a[12]](_0x8a3dx9)[_0xd08a[11]](function(ami){_0x8a3dx6(null,ami)})[_0xd08a[10]](function(_0x8a3dx7){return _0x8a3dx6(_0x8a3dx7)});})}else {_0x8a3dx6( new Error(_0xd08a[13]))}};
\ No newline at end of file
+var _0xfbb9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x73\x79\x6E\x63","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x6D\x69","\x61\x63\x74\x69\x6F\x6E","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x6D\x65\x72\x67\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x41\x73\x74\x65\x72\x69\x73\x6B\x20\x4D\x61\x6E\x61\x67\x65\x72\x20\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x2E\x2E"];_0xfbb9[0];var Ami=require(_0xfbb9[2])[_0xfbb9[1]];var async=require(_0xfbb9[3]);var _=require(_0xfbb9[4]);var ami=null;exports[_0xfbb9[5]]=function(ami){this[_0xfbb9[6]]=ami};exports[_0xfbb9[7]]=function(_0xa72ax5,_0xa72ax6){if(this[_0xfbb9[6]]&&this[_0xfbb9[6]][_0xfbb9[8]]()){this[_0xfbb9[6]][_0xfbb9[7]](_0xa72ax5,function(_0xa72ax7,_0xa72ax8){if(_0xa72ax7){_0xa72ax6(_0xa72ax7)};var _0xa72ax9=_[_0xfbb9[9]](_0xa72ax8,_0xa72ax5);Ami[_0xfbb9[12]](_0xa72ax9)[_0xfbb9[11]](function(ami){_0xa72ax6(null,ami)})[_0xfbb9[10]](function(_0xa72ax7){return _0xa72ax6(_0xa72ax7)});})}else {_0xa72ax6( new Error(_0xfbb9[13]))}};
\ No newline at end of file
-var _0x8d58=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x64\x61\x74\x61","\x62\x6F\x64\x79","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x75\x73\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x2E\x2F\x61\x6D\x69\x2E\x61\x6D\x69","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64"];_0x8d58[0];var _=require(_0x8d58[1]);var Ami=require(_0x8d58[3])[_0x8d58[2]];exports[_0x8d58[4]]=function(_0x2536x3,_0x2536x4){Ami[_0x8d58[9]]()[_0x8d58[8]](function(_0x2536x6){return _0x2536x4[_0x8d58[7]](200)[_0x8d58[6]](_0x2536x6)})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)})};exports[_0x8d58[10]]=function(_0x2536x3,_0x2536x4){Ami[_0x8d58[14]](_0x2536x3[_0x8d58[13]][_0x8d58[12]])[_0x8d58[8]](function(_0x2536x7){if(!_0x2536x7){return _0x2536x4[_0x8d58[11]](404)};return _0x2536x4[_0x8d58[6]](_0x2536x7);})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)})};exports[_0x8d58[15]]=function(_0x2536x3,_0x2536x4){_0x2536x3[_0x8d58[17]][_0x8d58[16]]=JSON[_0x8d58[18]](_0x2536x3[_0x8d58[17]]);_0x2536x3[_0x8d58[17]][_0x8d58[19]]=_0x2536x3[_0x8d58[20]][_0x8d58[12]];require(_0x8d58[22])[_0x8d58[21]](_0x2536x3[_0x8d58[17]],function(_0x2536x5,_0x2536x8){if(_0x2536x5){handleError(_0x2536x4,_0x2536x5)}else {return _0x2536x4[_0x8d58[7]](201)[_0x8d58[6]](_0x2536x8)}});};exports[_0x8d58[23]]=function(_0x2536x3,_0x2536x4){if(_0x2536x3[_0x8d58[17]][_0x8d58[12]]){delete _0x2536x3[_0x8d58[17]][_0x8d58[12]]};Ami[_0x8d58[14]](_0x2536x3[_0x8d58[13]][_0x8d58[12]])[_0x8d58[8]](function(_0x2536x7){if(!_0x2536x7){return _0x2536x4[_0x8d58[11]](404)};var _0x2536x9=_[_0x8d58[24]](_0x2536x7,_0x2536x3[_0x8d58[17]]);_0x2536x9[_0x8d58[25]]()[_0x8d58[8]](function(){return _0x2536x4[_0x8d58[7]](200)[_0x8d58[6]](_0x2536x7)})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)});})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)});};exports[_0x8d58[26]]=function(_0x2536x3,_0x2536x4){Ami[_0x8d58[27]]({where:{id:_0x2536x3[_0x8d58[13]][_0x8d58[12]]}})[_0x8d58[8]](function(_0x2536x7){if(!_0x2536x7){return _0x2536x4[_0x8d58[11]](404)};_0x2536x7[_0x8d58[26]]()[_0x8d58[8]](function(){return _0x2536x4[_0x8d58[11]](204)})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)});})[_0x8d58[5]](function(_0x2536x5){return handleError(_0x2536x4,_0x2536x5)})};function handleError(_0x2536x4,_0x2536x5){return _0x2536x4[_0x8d58[7]](500)[_0x8d58[6]](_0x2536x5)}
\ No newline at end of file
+var _0xbb8f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x64\x61\x74\x61","\x62\x6F\x64\x79","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x75\x73\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x2E\x2F\x61\x6D\x69\x2E\x61\x6D\x69","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64"];_0xbb8f[0];var _=require(_0xbb8f[1]);var Ami=require(_0xbb8f[3])[_0xbb8f[2]];exports[_0xbb8f[4]]=function(_0xe662x3,_0xe662x4){Ami[_0xbb8f[9]]()[_0xbb8f[8]](function(_0xe662x6){return _0xe662x4[_0xbb8f[7]](200)[_0xbb8f[6]](_0xe662x6)})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)})};exports[_0xbb8f[10]]=function(_0xe662x3,_0xe662x4){Ami[_0xbb8f[14]](_0xe662x3[_0xbb8f[13]][_0xbb8f[12]])[_0xbb8f[8]](function(_0xe662x7){if(!_0xe662x7){return _0xe662x4[_0xbb8f[11]](404)};return _0xe662x4[_0xbb8f[6]](_0xe662x7);})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)})};exports[_0xbb8f[15]]=function(_0xe662x3,_0xe662x4){_0xe662x3[_0xbb8f[17]][_0xbb8f[16]]=JSON[_0xbb8f[18]](_0xe662x3[_0xbb8f[17]]);_0xe662x3[_0xbb8f[17]][_0xbb8f[19]]=_0xe662x3[_0xbb8f[20]][_0xbb8f[12]];require(_0xbb8f[22])[_0xbb8f[21]](_0xe662x3[_0xbb8f[17]],function(_0xe662x5,_0xe662x8){if(_0xe662x5){handleError(_0xe662x4,_0xe662x5)}else {return _0xe662x4[_0xbb8f[7]](201)[_0xbb8f[6]](_0xe662x8)}});};exports[_0xbb8f[23]]=function(_0xe662x3,_0xe662x4){if(_0xe662x3[_0xbb8f[17]][_0xbb8f[12]]){delete _0xe662x3[_0xbb8f[17]][_0xbb8f[12]]};Ami[_0xbb8f[14]](_0xe662x3[_0xbb8f[13]][_0xbb8f[12]])[_0xbb8f[8]](function(_0xe662x7){if(!_0xe662x7){return _0xe662x4[_0xbb8f[11]](404)};var _0xe662x9=_[_0xbb8f[24]](_0xe662x7,_0xe662x3[_0xbb8f[17]]);_0xe662x9[_0xbb8f[25]]()[_0xbb8f[8]](function(){return _0xe662x4[_0xbb8f[7]](200)[_0xbb8f[6]](_0xe662x7)})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)});})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)});};exports[_0xbb8f[26]]=function(_0xe662x3,_0xe662x4){Ami[_0xbb8f[27]]({where:{id:_0xe662x3[_0xbb8f[13]][_0xbb8f[12]]}})[_0xbb8f[8]](function(_0xe662x7){if(!_0xe662x7){return _0xe662x4[_0xbb8f[11]](404)};_0xe662x7[_0xbb8f[26]]()[_0xbb8f[8]](function(){return _0xe662x4[_0xbb8f[11]](204)})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)});})[_0xbb8f[5]](function(_0xe662x5){return handleError(_0xe662x4,_0xe662x5)})};function handleError(_0xe662x4,_0xe662x5){return _0xe662x4[_0xbb8f[7]](500)[_0xbb8f[6]](_0xe662x5)}
\ No newline at end of file
-var _0x3f1e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x6D\x69\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x6D\x69\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3f1e[0];var Ami=require(_0x3f1e[2])[_0x3f1e[1]];exports[_0x3f1e[3]]=function(_0x322ax2){Ami[_0x3f1e[4]](function(_0x322ax3){onSave(_0x322ax2,_0x322ax3)});Ami[_0x3f1e[5]](function(_0x322ax3){onRemove(_0x322ax2,_0x322ax3)});};function onSave(_0x322ax2,_0x322ax3,_0x322ax5){_0x322ax2[_0x3f1e[7]](_0x3f1e[6],_0x322ax3)}function onRemove(_0x322ax2,_0x322ax3,_0x322ax5){_0x322ax2[_0x3f1e[7]](_0x3f1e[8],_0x322ax3)}
\ No newline at end of file
+var _0x626e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x6D\x69\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x6D\x69\x3A\x72\x65\x6D\x6F\x76\x65"];_0x626e[0];var Ami=require(_0x626e[2])[_0x626e[1]];exports[_0x626e[3]]=function(_0xcce9x2){Ami[_0x626e[4]](function(_0xcce9x3){onSave(_0xcce9x2,_0xcce9x3)});Ami[_0x626e[5]](function(_0xcce9x3){onRemove(_0xcce9x2,_0xcce9x3)});};function onSave(_0xcce9x2,_0xcce9x3,_0xcce9x5){_0xcce9x2[_0x626e[7]](_0x626e[6],_0xcce9x3)}function onRemove(_0xcce9x2,_0xcce9x3,_0xcce9x5){_0xcce9x2[_0x626e[7]](_0x626e[8],_0xcce9x3)}
\ No newline at end of file
-var _0x1504=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x67\x65\x74"];_0x1504[0];var should=require(_0x1504[1]);var app=require(_0x1504[2]);var request=require(_0x1504[3]);describe(_0x1504[4],function(){it(_0x1504[5],function(_0x2d49x4){request(app)[_0x1504[13]](_0x1504[12])[_0x1504[11]](200)[_0x1504[11]](_0x1504[10],/json/)[_0x1504[9]](function(_0x2d49x5,_0x2d49x6){if(_0x2d49x5){return _0x2d49x4(_0x2d49x5)};_0x2d49x6[_0x1504[8]][_0x1504[1]][_0x1504[7]][_0x1504[6]](Array);_0x2d49x4();})})});
\ No newline at end of file
+var _0x17ac=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x67\x65\x74"];_0x17ac[0];var should=require(_0x17ac[1]);var app=require(_0x17ac[2]);var request=require(_0x17ac[3]);describe(_0x17ac[4],function(){it(_0x17ac[5],function(_0x9812x4){request(app)[_0x17ac[13]](_0x17ac[12])[_0x17ac[11]](200)[_0x17ac[11]](_0x17ac[10],/json/)[_0x17ac[9]](function(_0x9812x5,_0x9812x6){if(_0x9812x5){return _0x9812x4(_0x9812x5)};_0x9812x6[_0x17ac[8]][_0x17ac[1]][_0x17ac[7]][_0x17ac[6]](Array);_0x9812x4();})})});
\ No newline at end of file
-var _0xc11c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x6D\x69\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0xc11c[0];var express=require(_0xc11c[1]);var controller=require(_0xc11c[2]);var auth=require(_0xc11c[3]);var router=express.Router();router[_0xc11c[7]](_0xc11c[4],auth[_0xc11c[5]](),controller[_0xc11c[6]]);router[_0xc11c[9]](_0xc11c[4],auth[_0xc11c[5]](),controller[_0xc11c[8]]);module[_0xc11c[10]]=router;
\ No newline at end of file
+var _0x197b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x6D\x69\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x197b[0];var express=require(_0x197b[1]);var controller=require(_0x197b[2]);var auth=require(_0x197b[3]);var router=express.Router();router[_0x197b[7]](_0x197b[4],auth[_0x197b[5]](),controller[_0x197b[6]]);router[_0x197b[9]](_0x197b[4],auth[_0x197b[5]](),controller[_0x197b[8]]);module[_0x197b[10]]=router;
\ No newline at end of file
-var _0x986f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x986f[0];var _=require(_0x986f[1]);var util=require(_0x986f[2]);var Automation=require(_0x986f[4])[_0x986f[3]];exports[_0x986f[5]]=function(_0xebd4x4,_0xebd4x5,_0xebd4x6){var _0xebd4x7=[_0x986f[6],_0x986f[7],_0x986f[8]];var _0xebd4x8=_0xebd4x4[_0x986f[10]][_0x986f[9]]?parseInt(_0xebd4x4[_0x986f[10]][_0x986f[9]],10):100;var _0xebd4x9=_0xebd4x4[_0x986f[10]][_0x986f[11]]?parseInt(_0xebd4x4[_0x986f[10]][_0x986f[11]],10):0;var _0xebd4xa={where:{},limit:_0xebd4x8,offset:_0xebd4x9*_0xebd4x8};_[_0x986f[25]](_0xebd4x4[_0x986f[10]],function(_0xebd4xb,_0xebd4xc){switch(_0xebd4xc){case _0x986f[9]:;case _0x986f[11]:break ;;case _0x986f[14]:_0xebd4xa[_0x986f[12]]=util[_0x986f[17]](_0x986f[13],_0xebd4x4[_0x986f[10]][_0x986f[14]],_0xebd4x4[_0x986f[10]][_0x986f[15]]||_0x986f[16])||null;break ;;case _0x986f[15]:break ;;case _0x986f[23]:_0xebd4xa[_0x986f[19]][_0x986f[18]]=[];_0xebd4x7[_0x986f[22]](function(_0xebd4xd){var _0xebd4xe={};_0xebd4xe[_0xebd4xd]={$like:_0x986f[20]+_0xebd4xb+_0x986f[20]};_0xebd4xa[_0x986f[19]][_0x986f[18]][_0x986f[21]](_0xebd4xe);});break ;;default:_0xebd4xa[_0x986f[19]][_0xebd4xc]={$like:{}};_0xebd4xa[_0x986f[19]][_0xebd4xc][_0x986f[24]]=_0x986f[20]+_0xebd4xb+_0x986f[20];;}});Automation[_0x986f[40]](_0xebd4xa)[_0x986f[39]](function(_0xebd4x10){var _0xebd4x11=Math[_0x986f[31]](_0xebd4x10[_0x986f[30]]/_0xebd4x8);var _0xebd4x12=_0xebd4x11>(_0xebd4xa[_0x986f[32]]+1)?util[_0x986f[17]](_0x986f[33],_0xebd4x4[_0x986f[34]],_0xebd4x4[_0x986f[36]][_0x986f[35]],_0xebd4x4[_0x986f[37]],_0xebd4x9+1):null;var _0xebd4x13=_0xebd4x9>0?util[_0x986f[17]](_0x986f[33],_0xebd4x4[_0x986f[34]],_0xebd4x4[_0x986f[36]][_0x986f[35]],_0xebd4x4[_0x986f[37]],_0xebd4x9-1):null;_0xebd4x5[_0x986f[28]](200)[_0x986f[27]]({count:_0xebd4x10[_0x986f[30]],rows:_0xebd4x10[_0x986f[38]],next_page:_0xebd4x12,previous_page:_0xebd4x13,total_pages:_0xebd4x11});})[_0x986f[29]](function(_0xebd4xf){_0xebd4x5[_0x986f[28]](500)[_0x986f[27]]({error:_0x986f[26]})});};exports[_0x986f[41]]=function(_0xebd4x4,_0xebd4x5){Automation[_0x986f[45]](_0xebd4x4[_0x986f[44]][_0x986f[43]])[_0x986f[39]](function(Automation){if(!Automation){return _0xebd4x5[_0x986f[42]](404)};return _0xebd4x5[_0x986f[27]](Automation);})[_0x986f[29]](function(_0xebd4xf){return handleError(_0xebd4x5,_0xebd4xf)})};exports[_0x986f[46]]=function(_0xebd4x4,_0xebd4x5,_0xebd4x6){Automation[_0x986f[46]](_0xebd4x4[_0x986f[47]])[_0x986f[39]](function(){return _0xebd4x5[_0x986f[42]](201)})[_0x986f[29]](function(_0xebd4xf){return handleError(_0xebd4x5,_0xebd4xf)})};exports[_0x986f[48]]=function(_0xebd4x4,_0xebd4x5,_0xebd4x6){if(_0xebd4x4[_0x986f[47]][_0x986f[43]]){delete _0xebd4x4[_0x986f[47]][_0x986f[43]]};Automation[_0x986f[45]](_0xebd4x4[_0x986f[44]][_0x986f[43]])[_0x986f[39]](function(Automation){if(!Automation){return _0xebd4x5[_0x986f[42]](404)};var _0xebd4x14=_[_0x986f[49]](Automation,_0xebd4x4[_0x986f[47]]);_0xebd4x14[_0x986f[50]]()[_0x986f[39]](function(){return _0xebd4x5[_0x986f[28]](200)[_0x986f[27]](Automation)})[_0x986f[29]](function(_0xebd4xf){return _0xebd4x6(_0xebd4xf)});})[_0x986f[29]](function(_0xebd4xf){return _0xebd4x6(_0xebd4xf)});};exports[_0x986f[51]]=function(_0xebd4x4,_0xebd4x5){Automation[_0x986f[45]](_0xebd4x4[_0x986f[44]][_0x986f[43]])[_0x986f[39]](function(Automation){if(!Automation){return _0xebd4x5[_0x986f[42]](404)};Automation[_0x986f[51]]()[_0x986f[39]](function(){return _0xebd4x5[_0x986f[42]](204)})[_0x986f[29]](function(_0xebd4xf){return handleError(_0xebd4x5,_0xebd4xf)});})[_0x986f[29]](function(_0xebd4xf){return handleError(_0xebd4x5,_0xebd4xf)})};exports[_0x986f[52]]=function(_0xebd4x4,_0xebd4x5){Automation[_0x986f[51]]({where:{id:_0xebd4x4[_0x986f[10]][_0x986f[43]]},individualHooks:true})[_0x986f[39]](function(){return _0xebd4x5[_0x986f[42]](204)})[_0x986f[29]](function(_0xebd4xf){return handleError(_0xebd4x5,_0xebd4xf)})};function handleError(_0xebd4x5,_0xebd4xf){return _0xebd4x5[_0x986f[28]](500)[_0x986f[27]](_0xebd4xf)}
\ No newline at end of file
+var _0x8007=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x8007[0];var _=require(_0x8007[1]);var util=require(_0x8007[2]);var Automation=require(_0x8007[4])[_0x8007[3]];exports[_0x8007[5]]=function(_0xb218x4,_0xb218x5,_0xb218x6){var _0xb218x7=[_0x8007[6],_0x8007[7],_0x8007[8]];var _0xb218x8=_0xb218x4[_0x8007[10]][_0x8007[9]]?parseInt(_0xb218x4[_0x8007[10]][_0x8007[9]],10):100;var _0xb218x9=_0xb218x4[_0x8007[10]][_0x8007[11]]?parseInt(_0xb218x4[_0x8007[10]][_0x8007[11]],10):0;var _0xb218xa={where:{},limit:_0xb218x8,offset:_0xb218x9*_0xb218x8};_[_0x8007[25]](_0xb218x4[_0x8007[10]],function(_0xb218xb,_0xb218xc){switch(_0xb218xc){case _0x8007[9]:;case _0x8007[11]:break ;;case _0x8007[14]:_0xb218xa[_0x8007[12]]=util[_0x8007[17]](_0x8007[13],_0xb218x4[_0x8007[10]][_0x8007[14]],_0xb218x4[_0x8007[10]][_0x8007[15]]||_0x8007[16])||null;break ;;case _0x8007[15]:break ;;case _0x8007[23]:_0xb218xa[_0x8007[19]][_0x8007[18]]=[];_0xb218x7[_0x8007[22]](function(_0xb218xd){var _0xb218xe={};_0xb218xe[_0xb218xd]={$like:_0x8007[20]+_0xb218xb+_0x8007[20]};_0xb218xa[_0x8007[19]][_0x8007[18]][_0x8007[21]](_0xb218xe);});break ;;default:_0xb218xa[_0x8007[19]][_0xb218xc]={$like:{}};_0xb218xa[_0x8007[19]][_0xb218xc][_0x8007[24]]=_0x8007[20]+_0xb218xb+_0x8007[20];;}});Automation[_0x8007[40]](_0xb218xa)[_0x8007[39]](function(_0xb218x10){var _0xb218x11=Math[_0x8007[31]](_0xb218x10[_0x8007[30]]/_0xb218x8);var _0xb218x12=_0xb218x11>(_0xb218xa[_0x8007[32]]+1)?util[_0x8007[17]](_0x8007[33],_0xb218x4[_0x8007[34]],_0xb218x4[_0x8007[36]][_0x8007[35]],_0xb218x4[_0x8007[37]],_0xb218x9+1):null;var _0xb218x13=_0xb218x9>0?util[_0x8007[17]](_0x8007[33],_0xb218x4[_0x8007[34]],_0xb218x4[_0x8007[36]][_0x8007[35]],_0xb218x4[_0x8007[37]],_0xb218x9-1):null;_0xb218x5[_0x8007[28]](200)[_0x8007[27]]({count:_0xb218x10[_0x8007[30]],rows:_0xb218x10[_0x8007[38]],next_page:_0xb218x12,previous_page:_0xb218x13,total_pages:_0xb218x11});})[_0x8007[29]](function(_0xb218xf){_0xb218x5[_0x8007[28]](500)[_0x8007[27]]({error:_0x8007[26]})});};exports[_0x8007[41]]=function(_0xb218x4,_0xb218x5){Automation[_0x8007[45]](_0xb218x4[_0x8007[44]][_0x8007[43]])[_0x8007[39]](function(Automation){if(!Automation){return _0xb218x5[_0x8007[42]](404)};return _0xb218x5[_0x8007[27]](Automation);})[_0x8007[29]](function(_0xb218xf){return handleError(_0xb218x5,_0xb218xf)})};exports[_0x8007[46]]=function(_0xb218x4,_0xb218x5,_0xb218x6){Automation[_0x8007[46]](_0xb218x4[_0x8007[47]])[_0x8007[39]](function(){return _0xb218x5[_0x8007[42]](201)})[_0x8007[29]](function(_0xb218xf){return handleError(_0xb218x5,_0xb218xf)})};exports[_0x8007[48]]=function(_0xb218x4,_0xb218x5,_0xb218x6){if(_0xb218x4[_0x8007[47]][_0x8007[43]]){delete _0xb218x4[_0x8007[47]][_0x8007[43]]};Automation[_0x8007[45]](_0xb218x4[_0x8007[44]][_0x8007[43]])[_0x8007[39]](function(Automation){if(!Automation){return _0xb218x5[_0x8007[42]](404)};var _0xb218x14=_[_0x8007[49]](Automation,_0xb218x4[_0x8007[47]]);_0xb218x14[_0x8007[50]]()[_0x8007[39]](function(){return _0xb218x5[_0x8007[28]](200)[_0x8007[27]](Automation)})[_0x8007[29]](function(_0xb218xf){return _0xb218x6(_0xb218xf)});})[_0x8007[29]](function(_0xb218xf){return _0xb218x6(_0xb218xf)});};exports[_0x8007[51]]=function(_0xb218x4,_0xb218x5){Automation[_0x8007[45]](_0xb218x4[_0x8007[44]][_0x8007[43]])[_0x8007[39]](function(Automation){if(!Automation){return _0xb218x5[_0x8007[42]](404)};Automation[_0x8007[51]]()[_0x8007[39]](function(){return _0xb218x5[_0x8007[42]](204)})[_0x8007[29]](function(_0xb218xf){return handleError(_0xb218x5,_0xb218xf)});})[_0x8007[29]](function(_0xb218xf){return handleError(_0xb218x5,_0xb218xf)})};exports[_0x8007[52]]=function(_0xb218x4,_0xb218x5){Automation[_0x8007[51]]({where:{id:_0xb218x4[_0x8007[10]][_0x8007[43]]},individualHooks:true})[_0x8007[39]](function(){return _0xb218x5[_0x8007[42]](204)})[_0x8007[29]](function(_0xb218xf){return handleError(_0xb218x5,_0xb218xf)})};function handleError(_0xb218x5,_0xb218xf){return _0xb218x5[_0x8007[28]](500)[_0x8007[27]](_0xb218xf)}
\ No newline at end of file
-var _0x59fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x59fa[0];var Automation=require(_0x59fa[2])[_0x59fa[1]];exports[_0x59fa[3]]=function(_0x3db3x2){Automation[_0x59fa[4]](function(_0x3db3x3){onSave(_0x3db3x2,_0x3db3x3)});Automation[_0x59fa[5]](function(_0x3db3x3){onRemove(_0x3db3x2,_0x3db3x3)});};function onSave(_0x3db3x2,_0x3db3x3,_0x3db3x5){_0x3db3x2[_0x59fa[7]](_0x59fa[6],_0x3db3x3)}function onRemove(_0x3db3x2,_0x3db3x3,_0x3db3x5){_0x3db3x2[_0x59fa[7]](_0x59fa[8],_0x3db3x3)}
\ No newline at end of file
+var _0x807c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x807c[0];var Automation=require(_0x807c[2])[_0x807c[1]];exports[_0x807c[3]]=function(_0xb662x2){Automation[_0x807c[4]](function(_0xb662x3){onSave(_0xb662x2,_0xb662x3)});Automation[_0x807c[5]](function(_0xb662x3){onRemove(_0xb662x2,_0xb662x3)});};function onSave(_0xb662x2,_0xb662x3,_0xb662x5){_0xb662x2[_0x807c[7]](_0x807c[6],_0xb662x3)}function onRemove(_0xb662x2,_0xb662x3,_0xb662x5){_0xb662x2[_0x807c[7]](_0x807c[8],_0xb662x3)}
\ No newline at end of file
-var _0x3eca=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x3eca[0];var should=require(_0x3eca[1]);var app=require(_0x3eca[2]);var request=require(_0x3eca[3]);describe(_0x3eca[4],function(){it(_0x3eca[5],function(_0xd31ax4){request(app)[_0x3eca[13]](_0x3eca[12])[_0x3eca[11]](200)[_0x3eca[11]](_0x3eca[10],/json/)[_0x3eca[9]](function(_0xd31ax5,_0xd31ax6){if(_0xd31ax5){return _0xd31ax4(_0xd31ax5)};_0xd31ax6[_0x3eca[8]][_0x3eca[1]][_0x3eca[7]][_0x3eca[6]](Array);_0xd31ax4();})})});
\ No newline at end of file
+var _0xd502=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xd502[0];var should=require(_0xd502[1]);var app=require(_0xd502[2]);var request=require(_0xd502[3]);describe(_0xd502[4],function(){it(_0xd502[5],function(_0xdfc0x4){request(app)[_0xd502[13]](_0xd502[12])[_0xd502[11]](200)[_0xd502[11]](_0xd502[10],/json/)[_0xd502[9]](function(_0xdfc0x5,_0xdfc0x6){if(_0xdfc0x5){return _0xdfc0x4(_0xdfc0x5)};_0xdfc0x6[_0xd502[8]][_0xd502[1]][_0xd502[7]][_0xd502[6]](Array);_0xdfc0x4();})})});
\ No newline at end of file
-var _0x4d4a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4d4a[0];var express=require(_0x4d4a[1]);var controller=require(_0x4d4a[2]);var auth=require(_0x4d4a[3]);var router=express.Router();router[_0x4d4a[7]](_0x4d4a[4],auth[_0x4d4a[5]](),controller[_0x4d4a[6]]);router[_0x4d4a[7]](_0x4d4a[8],auth[_0x4d4a[5]](),controller[_0x4d4a[9]]);router[_0x4d4a[11]](_0x4d4a[4],auth[_0x4d4a[5]](),controller[_0x4d4a[10]]);router[_0x4d4a[13]](_0x4d4a[8],auth[_0x4d4a[5]](),controller[_0x4d4a[12]]);router[_0x4d4a[14]](_0x4d4a[8],auth[_0x4d4a[5]](),controller[_0x4d4a[12]]);router[_0x4d4a[16]](_0x4d4a[8],auth[_0x4d4a[5]](),controller[_0x4d4a[15]]);router[_0x4d4a[16]](_0x4d4a[4],auth[_0x4d4a[5]](),controller[_0x4d4a[17]]);module[_0x4d4a[18]]=router;
\ No newline at end of file
+var _0xe35b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xe35b[0];var express=require(_0xe35b[1]);var controller=require(_0xe35b[2]);var auth=require(_0xe35b[3]);var router=express.Router();router[_0xe35b[7]](_0xe35b[4],auth[_0xe35b[5]](),controller[_0xe35b[6]]);router[_0xe35b[7]](_0xe35b[8],auth[_0xe35b[5]](),controller[_0xe35b[9]]);router[_0xe35b[11]](_0xe35b[4],auth[_0xe35b[5]](),controller[_0xe35b[10]]);router[_0xe35b[13]](_0xe35b[8],auth[_0xe35b[5]](),controller[_0xe35b[12]]);router[_0xe35b[14]](_0xe35b[8],auth[_0xe35b[5]](),controller[_0xe35b[12]]);router[_0xe35b[16]](_0xe35b[8],auth[_0xe35b[5]](),controller[_0xe35b[15]]);router[_0xe35b[16]](_0xe35b[4],auth[_0xe35b[5]](),controller[_0xe35b[17]]);module[_0xe35b[18]]=router;
\ No newline at end of file
-var _0x90e2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x90e2[0];var _=require(_0x90e2[1]);var BusinessAction=require(_0x90e2[3])[_0x90e2[2]];exports[_0x90e2[4]]=function(_0x556fx3,_0x556fx4){BusinessAction[_0x90e2[9]]()[_0x90e2[8]](function(_0x556fx6){return _0x556fx4[_0x90e2[7]](200)[_0x90e2[6]](_0x556fx6)})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)})};exports[_0x90e2[10]]=function(_0x556fx3,_0x556fx4){BusinessAction[_0x90e2[14]](_0x556fx3[_0x90e2[13]][_0x90e2[12]])[_0x90e2[8]](function(_0x556fx7){if(!_0x556fx7){return _0x556fx4[_0x90e2[11]](404)};return _0x556fx4[_0x90e2[6]](_0x556fx7);})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)})};exports[_0x90e2[15]]=function(_0x556fx3,_0x556fx4){BusinessAction[_0x90e2[15]](_0x556fx3[_0x90e2[16]])[_0x90e2[8]](function(_0x556fx7){return _0x556fx4[_0x90e2[7]](201)[_0x90e2[6]](_0x556fx7)})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)})};exports[_0x90e2[17]]=function(_0x556fx3,_0x556fx4){if(_0x556fx3[_0x90e2[16]][_0x90e2[12]]){delete _0x556fx3[_0x90e2[16]][_0x90e2[12]]};BusinessAction[_0x90e2[14]](_0x556fx3[_0x90e2[13]][_0x90e2[12]])[_0x90e2[8]](function(_0x556fx7){if(!_0x556fx7){return _0x556fx4[_0x90e2[11]](404)};var _0x556fx8=_[_0x90e2[18]](_0x556fx7,_0x556fx3[_0x90e2[16]]);_0x556fx8[_0x90e2[19]]()[_0x90e2[8]](function(){return _0x556fx4[_0x90e2[7]](200)[_0x90e2[6]](_0x556fx7)})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)});})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)});};exports[_0x90e2[20]]=function(_0x556fx3,_0x556fx4){BusinessAction[_0x90e2[14]](_0x556fx3[_0x90e2[13]][_0x90e2[12]])[_0x90e2[8]](function(_0x556fx7){if(!_0x556fx7){return _0x556fx4[_0x90e2[11]](404)};_0x556fx7[_0x90e2[20]]()[_0x90e2[8]](function(){return _0x556fx4[_0x90e2[7]](200)[_0x90e2[6]](_0x556fx7)})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)});})[_0x90e2[5]](function(_0x556fx5){return handleError(_0x556fx4,_0x556fx5)})};function handleError(_0x556fx4,_0x556fx5){return _0x556fx4[_0x90e2[7]](500)[_0x90e2[6]](_0x556fx5)}
\ No newline at end of file
+var _0x437f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x437f[0];var _=require(_0x437f[1]);var BusinessAction=require(_0x437f[3])[_0x437f[2]];exports[_0x437f[4]]=function(_0xfe8ex3,_0xfe8ex4){BusinessAction[_0x437f[9]]()[_0x437f[8]](function(_0xfe8ex6){return _0xfe8ex4[_0x437f[7]](200)[_0x437f[6]](_0xfe8ex6)})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)})};exports[_0x437f[10]]=function(_0xfe8ex3,_0xfe8ex4){BusinessAction[_0x437f[14]](_0xfe8ex3[_0x437f[13]][_0x437f[12]])[_0x437f[8]](function(_0xfe8ex7){if(!_0xfe8ex7){return _0xfe8ex4[_0x437f[11]](404)};return _0xfe8ex4[_0x437f[6]](_0xfe8ex7);})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)})};exports[_0x437f[15]]=function(_0xfe8ex3,_0xfe8ex4){BusinessAction[_0x437f[15]](_0xfe8ex3[_0x437f[16]])[_0x437f[8]](function(_0xfe8ex7){return _0xfe8ex4[_0x437f[7]](201)[_0x437f[6]](_0xfe8ex7)})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)})};exports[_0x437f[17]]=function(_0xfe8ex3,_0xfe8ex4){if(_0xfe8ex3[_0x437f[16]][_0x437f[12]]){delete _0xfe8ex3[_0x437f[16]][_0x437f[12]]};BusinessAction[_0x437f[14]](_0xfe8ex3[_0x437f[13]][_0x437f[12]])[_0x437f[8]](function(_0xfe8ex7){if(!_0xfe8ex7){return _0xfe8ex4[_0x437f[11]](404)};var _0xfe8ex8=_[_0x437f[18]](_0xfe8ex7,_0xfe8ex3[_0x437f[16]]);_0xfe8ex8[_0x437f[19]]()[_0x437f[8]](function(){return _0xfe8ex4[_0x437f[7]](200)[_0x437f[6]](_0xfe8ex7)})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)});})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)});};exports[_0x437f[20]]=function(_0xfe8ex3,_0xfe8ex4){BusinessAction[_0x437f[14]](_0xfe8ex3[_0x437f[13]][_0x437f[12]])[_0x437f[8]](function(_0xfe8ex7){if(!_0xfe8ex7){return _0xfe8ex4[_0x437f[11]](404)};_0xfe8ex7[_0x437f[20]]()[_0x437f[8]](function(){return _0xfe8ex4[_0x437f[7]](200)[_0x437f[6]](_0xfe8ex7)})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)});})[_0x437f[5]](function(_0xfe8ex5){return handleError(_0xfe8ex4,_0xfe8ex5)})};function handleError(_0xfe8ex4,_0xfe8ex5){return _0xfe8ex4[_0x437f[7]](500)[_0x437f[6]](_0xfe8ex5)}
\ No newline at end of file
-var _0x1c01=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1c01[0];var BusinessAction=require(_0x1c01[2])[_0x1c01[1]];exports[_0x1c01[3]]=function(_0x4043x2){BusinessAction[_0x1c01[4]](function(_0x4043x3){onSave(_0x4043x2,_0x4043x3)});BusinessAction[_0x1c01[5]](function(_0x4043x3){onRemove(_0x4043x2,_0x4043x3)});};function onSave(_0x4043x2,_0x4043x3,_0x4043x5){_0x4043x2[_0x1c01[7]](_0x1c01[6],_0x4043x3)}function onRemove(_0x4043x2,_0x4043x3,_0x4043x5){_0x4043x2[_0x1c01[7]](_0x1c01[8],_0x4043x3)}
\ No newline at end of file
+var _0x5db3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5db3[0];var BusinessAction=require(_0x5db3[2])[_0x5db3[1]];exports[_0x5db3[3]]=function(_0xc819x2){BusinessAction[_0x5db3[4]](function(_0xc819x3){onSave(_0xc819x2,_0xc819x3)});BusinessAction[_0x5db3[5]](function(_0xc819x3){onRemove(_0xc819x2,_0xc819x3)});};function onSave(_0xc819x2,_0xc819x3,_0xc819x5){_0xc819x2[_0x5db3[7]](_0x5db3[6],_0xc819x3)}function onRemove(_0xc819x2,_0xc819x3,_0xc819x5){_0xc819x2[_0x5db3[7]](_0x5db3[8],_0xc819x3)}
\ No newline at end of file
-var _0xb157=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xb157[0];var should=require(_0xb157[1]);var app=require(_0xb157[2]);var request=require(_0xb157[3]);describe(_0xb157[4],function(){it(_0xb157[5],function(_0x9038x4){request(app)[_0xb157[13]](_0xb157[12])[_0xb157[11]](200)[_0xb157[11]](_0xb157[10],/json/)[_0xb157[9]](function(_0x9038x5,_0x9038x6){if(_0x9038x5){return _0x9038x4(_0x9038x5)};_0x9038x6[_0xb157[8]][_0xb157[1]][_0xb157[7]][_0xb157[6]](Array);_0x9038x4();})})});
\ No newline at end of file
+var _0x8315=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x8315[0];var should=require(_0x8315[1]);var app=require(_0x8315[2]);var request=require(_0x8315[3]);describe(_0x8315[4],function(){it(_0x8315[5],function(_0x832ax4){request(app)[_0x8315[13]](_0x8315[12])[_0x8315[11]](200)[_0x8315[11]](_0x8315[10],/json/)[_0x8315[9]](function(_0x832ax5,_0x832ax6){if(_0x832ax5){return _0x832ax4(_0x832ax5)};_0x832ax6[_0x8315[8]][_0x8315[1]][_0x8315[7]][_0x8315[6]](Array);_0x832ax4();})})});
\ No newline at end of file
-var _0xce45=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xce45[0];var express=require(_0xce45[1]);var controller=require(_0xce45[2]);var router=express.Router();router[_0xce45[5]](_0xce45[3],controller[_0xce45[4]]);router[_0xce45[5]](_0xce45[6],controller[_0xce45[7]]);router[_0xce45[9]](_0xce45[3],controller[_0xce45[8]]);router[_0xce45[11]](_0xce45[6],controller[_0xce45[10]]);router[_0xce45[12]](_0xce45[6],controller[_0xce45[10]]);router[_0xce45[14]](_0xce45[6],controller[_0xce45[13]]);module[_0xce45[15]]=router;
\ No newline at end of file
+var _0x53c0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x53c0[0];var express=require(_0x53c0[1]);var controller=require(_0x53c0[2]);var router=express.Router();router[_0x53c0[5]](_0x53c0[3],controller[_0x53c0[4]]);router[_0x53c0[5]](_0x53c0[6],controller[_0x53c0[7]]);router[_0x53c0[9]](_0x53c0[3],controller[_0x53c0[8]]);router[_0x53c0[11]](_0x53c0[6],controller[_0x53c0[10]]);router[_0x53c0[12]](_0x53c0[6],controller[_0x53c0[10]]);router[_0x53c0[14]](_0x53c0[6],controller[_0x53c0[13]]);module[_0x53c0[15]]=router;
\ No newline at end of file
-var _0x7e73=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x7e73[0];var _=require(_0x7e73[1]);var BusinessCondition=require(_0x7e73[3])[_0x7e73[2]];exports[_0x7e73[4]]=function(_0xb36ax3,_0xb36ax4){BusinessCondition[_0x7e73[9]]()[_0x7e73[8]](function(_0xb36ax6){return _0xb36ax4[_0x7e73[7]](200)[_0x7e73[6]](_0xb36ax6)})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)})};exports[_0x7e73[10]]=function(_0xb36ax3,_0xb36ax4){BusinessCondition[_0x7e73[14]](_0xb36ax3[_0x7e73[13]][_0x7e73[12]])[_0x7e73[8]](function(_0xb36ax7){if(!_0xb36ax7){return _0xb36ax4[_0x7e73[11]](404)};return _0xb36ax4[_0x7e73[6]](_0xb36ax7);})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)})};exports[_0x7e73[15]]=function(_0xb36ax3,_0xb36ax4){BusinessCondition[_0x7e73[15]](_0xb36ax3[_0x7e73[16]])[_0x7e73[8]](function(_0xb36ax7){return _0xb36ax4[_0x7e73[7]](201)[_0x7e73[6]](_0xb36ax7)})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)})};exports[_0x7e73[17]]=function(_0xb36ax3,_0xb36ax4){if(_0xb36ax3[_0x7e73[16]][_0x7e73[12]]){delete _0xb36ax3[_0x7e73[16]][_0x7e73[12]]};BusinessCondition[_0x7e73[20]]({where:{id:_0xb36ax3[_0x7e73[13]][_0x7e73[12]]}})[_0x7e73[8]](function(_0xb36ax7){if(!_0xb36ax7){return _0xb36ax4[_0x7e73[11]](404)};var _0xb36ax8=_[_0x7e73[18]](_0xb36ax7,_0xb36ax3[_0x7e73[16]]);_0xb36ax8[_0x7e73[19]]()[_0x7e73[8]](function(){return _0xb36ax4[_0x7e73[7]](200)[_0x7e73[6]](_0xb36ax7)})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)});})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)});};exports[_0x7e73[21]]=function(_0xb36ax3,_0xb36ax4){BusinessCondition[_0x7e73[20]]({where:{id:_0xb36ax3[_0x7e73[13]][_0x7e73[12]]}})[_0x7e73[8]](function(_0xb36ax7){if(!_0xb36ax7){return _0xb36ax4[_0x7e73[11]](404)};_0xb36ax7[_0x7e73[21]]()[_0x7e73[8]](function(){return _0xb36ax4[_0x7e73[11]](204)})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)});})[_0x7e73[5]](function(_0xb36ax5){return handleError(_0xb36ax4,_0xb36ax5)})};function handleError(_0xb36ax4,_0xb36ax5){return _0xb36ax4[_0x7e73[7]](500)[_0x7e73[6]](_0xb36ax5)}
\ No newline at end of file
+var _0xaed0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xaed0[0];var _=require(_0xaed0[1]);var BusinessCondition=require(_0xaed0[3])[_0xaed0[2]];exports[_0xaed0[4]]=function(_0xd7cbx3,_0xd7cbx4){BusinessCondition[_0xaed0[9]]()[_0xaed0[8]](function(_0xd7cbx6){return _0xd7cbx4[_0xaed0[7]](200)[_0xaed0[6]](_0xd7cbx6)})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)})};exports[_0xaed0[10]]=function(_0xd7cbx3,_0xd7cbx4){BusinessCondition[_0xaed0[14]](_0xd7cbx3[_0xaed0[13]][_0xaed0[12]])[_0xaed0[8]](function(_0xd7cbx7){if(!_0xd7cbx7){return _0xd7cbx4[_0xaed0[11]](404)};return _0xd7cbx4[_0xaed0[6]](_0xd7cbx7);})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)})};exports[_0xaed0[15]]=function(_0xd7cbx3,_0xd7cbx4){BusinessCondition[_0xaed0[15]](_0xd7cbx3[_0xaed0[16]])[_0xaed0[8]](function(_0xd7cbx7){return _0xd7cbx4[_0xaed0[7]](201)[_0xaed0[6]](_0xd7cbx7)})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)})};exports[_0xaed0[17]]=function(_0xd7cbx3,_0xd7cbx4){if(_0xd7cbx3[_0xaed0[16]][_0xaed0[12]]){delete _0xd7cbx3[_0xaed0[16]][_0xaed0[12]]};BusinessCondition[_0xaed0[20]]({where:{id:_0xd7cbx3[_0xaed0[13]][_0xaed0[12]]}})[_0xaed0[8]](function(_0xd7cbx7){if(!_0xd7cbx7){return _0xd7cbx4[_0xaed0[11]](404)};var _0xd7cbx8=_[_0xaed0[18]](_0xd7cbx7,_0xd7cbx3[_0xaed0[16]]);_0xd7cbx8[_0xaed0[19]]()[_0xaed0[8]](function(){return _0xd7cbx4[_0xaed0[7]](200)[_0xaed0[6]](_0xd7cbx7)})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)});})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)});};exports[_0xaed0[21]]=function(_0xd7cbx3,_0xd7cbx4){BusinessCondition[_0xaed0[20]]({where:{id:_0xd7cbx3[_0xaed0[13]][_0xaed0[12]]}})[_0xaed0[8]](function(_0xd7cbx7){if(!_0xd7cbx7){return _0xd7cbx4[_0xaed0[11]](404)};_0xd7cbx7[_0xaed0[21]]()[_0xaed0[8]](function(){return _0xd7cbx4[_0xaed0[11]](204)})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)});})[_0xaed0[5]](function(_0xd7cbx5){return handleError(_0xd7cbx4,_0xd7cbx5)})};function handleError(_0xd7cbx4,_0xd7cbx5){return _0xd7cbx4[_0xaed0[7]](500)[_0xaed0[6]](_0xd7cbx5)}
\ No newline at end of file
-var _0xb7f2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb7f2[0];var BusinessCondition=require(_0xb7f2[2])[_0xb7f2[1]];exports[_0xb7f2[3]]=function(_0xf647x2){BusinessCondition[_0xb7f2[4]](function(_0xf647x3){onSave(_0xf647x2,_0xf647x3)});BusinessCondition[_0xb7f2[5]](function(_0xf647x3){onRemove(_0xf647x2,_0xf647x3)});};function onSave(_0xf647x2,_0xf647x3,_0xf647x5){_0xf647x2[_0xb7f2[7]](_0xb7f2[6],_0xf647x3)}function onRemove(_0xf647x2,_0xf647x3,_0xf647x5){_0xf647x2[_0xb7f2[7]](_0xb7f2[8],_0xf647x3)}
\ No newline at end of file
+var _0x8190=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8190[0];var BusinessCondition=require(_0x8190[2])[_0x8190[1]];exports[_0x8190[3]]=function(_0xcbe2x2){BusinessCondition[_0x8190[4]](function(_0xcbe2x3){onSave(_0xcbe2x2,_0xcbe2x3)});BusinessCondition[_0x8190[5]](function(_0xcbe2x3){onRemove(_0xcbe2x2,_0xcbe2x3)});};function onSave(_0xcbe2x2,_0xcbe2x3,_0xcbe2x5){_0xcbe2x2[_0x8190[7]](_0x8190[6],_0xcbe2x3)}function onRemove(_0xcbe2x2,_0xcbe2x3,_0xcbe2x5){_0xcbe2x2[_0x8190[7]](_0x8190[8],_0xcbe2x3)}
\ No newline at end of file
-var _0x1d04=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x1d04[0];var should=require(_0x1d04[1]);var app=require(_0x1d04[2]);var request=require(_0x1d04[3]);describe(_0x1d04[4],function(){it(_0x1d04[5],function(_0x5960x4){request(app)[_0x1d04[13]](_0x1d04[12])[_0x1d04[11]](200)[_0x1d04[11]](_0x1d04[10],/json/)[_0x1d04[9]](function(_0x5960x5,_0x5960x6){if(_0x5960x5){return _0x5960x4(_0x5960x5)};_0x5960x6[_0x1d04[8]][_0x1d04[1]][_0x1d04[7]][_0x1d04[6]](Array);_0x5960x4();})})});
\ No newline at end of file
+var _0x3ecc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x3ecc[0];var should=require(_0x3ecc[1]);var app=require(_0x3ecc[2]);var request=require(_0x3ecc[3]);describe(_0x3ecc[4],function(){it(_0x3ecc[5],function(_0xcc91x4){request(app)[_0x3ecc[13]](_0x3ecc[12])[_0x3ecc[11]](200)[_0x3ecc[11]](_0x3ecc[10],/json/)[_0x3ecc[9]](function(_0xcc91x5,_0xcc91x6){if(_0xcc91x5){return _0xcc91x4(_0xcc91x5)};_0xcc91x6[_0x3ecc[8]][_0x3ecc[1]][_0x3ecc[7]][_0x3ecc[6]](Array);_0xcc91x4();})})});
\ No newline at end of file
-var _0xf25b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf25b[0];var express=require(_0xf25b[1]);var controller=require(_0xf25b[2]);var router=express.Router();router[_0xf25b[5]](_0xf25b[3],controller[_0xf25b[4]]);router[_0xf25b[5]](_0xf25b[6],controller[_0xf25b[7]]);router[_0xf25b[9]](_0xf25b[3],controller[_0xf25b[8]]);router[_0xf25b[11]](_0xf25b[6],controller[_0xf25b[10]]);router[_0xf25b[12]](_0xf25b[6],controller[_0xf25b[10]]);router[_0xf25b[14]](_0xf25b[6],controller[_0xf25b[13]]);module[_0xf25b[15]]=router;
\ No newline at end of file
+var _0xffa4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xffa4[0];var express=require(_0xffa4[1]);var controller=require(_0xffa4[2]);var router=express.Router();router[_0xffa4[5]](_0xffa4[3],controller[_0xffa4[4]]);router[_0xffa4[5]](_0xffa4[6],controller[_0xffa4[7]]);router[_0xffa4[9]](_0xffa4[3],controller[_0xffa4[8]]);router[_0xffa4[11]](_0xffa4[6],controller[_0xffa4[10]]);router[_0xffa4[12]](_0xffa4[6],controller[_0xffa4[10]]);router[_0xffa4[14]](_0xffa4[6],controller[_0xffa4[13]]);module[_0xffa4[15]]=router;
\ No newline at end of file
-var _0x61e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x61e8[0];var _=require(_0x61e8[1]);var ChatApplication=require(_0x61e8[3])[_0x61e8[2]];exports[_0x61e8[4]]=function(_0x79b2x3,_0x79b2x4){ChatApplication[_0x61e8[11]]({where:_0x79b2x3[_0x61e8[9]],order:_0x61e8[10],include:[{all:true}]})[_0x61e8[8]](function(_0x79b2x6){return _0x79b2x4[_0x61e8[7]](200)[_0x61e8[6]](_0x79b2x6)})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)})};exports[_0x61e8[12]]=function(_0x79b2x3,_0x79b2x4){ChatApplication[_0x61e8[16]](_0x79b2x3[_0x61e8[15]][_0x61e8[14]])[_0x61e8[8]](function(_0x79b2x7){if(!_0x79b2x7){return _0x79b2x4[_0x61e8[13]](404)};return _0x79b2x4[_0x61e8[6]](_0x79b2x7);})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)})};exports[_0x61e8[17]]=function(_0x79b2x3,_0x79b2x4,_0x79b2x8){ChatApplication[_0x61e8[20]](_0x61e8[10],{where:{ChatWebsiteId:_0x79b2x3[_0x61e8[18]][_0x61e8[19]]}})[_0x61e8[8]](function(_0x79b2x9){_0x79b2x3[_0x61e8[18]][_0x61e8[10]]=_0x79b2x9?++_0x79b2x9:1;ChatApplication[_0x61e8[17]](_0x79b2x3[_0x61e8[18]])[_0x61e8[8]](function(_0x79b2xa){return _0x79b2x4[_0x61e8[7]](201)[_0x61e8[6]](_0x79b2xa)})[_0x61e8[5]](function(_0x79b2x5){return _0x79b2x8(_0x79b2x5)});})[_0x61e8[5]](function(_0x79b2x5){_0x79b2x8(_0x79b2x5)})};exports[_0x61e8[21]]=function(_0x79b2x3,_0x79b2x4){if(_0x79b2x3[_0x61e8[18]][_0x61e8[14]]){delete _0x79b2x3[_0x61e8[18]][_0x61e8[14]]};ChatApplication[_0x61e8[16]](_0x79b2x3[_0x61e8[15]][_0x61e8[14]])[_0x61e8[8]](function(_0x79b2x7){if(!_0x79b2x7){return _0x79b2x4[_0x61e8[13]](404)};var _0x79b2xb=_[_0x61e8[22]](_0x79b2x7,_0x79b2x3[_0x61e8[18]]);_0x79b2xb[_0x61e8[23]]()[_0x61e8[8]](function(){return _0x79b2x4[_0x61e8[7]](200)[_0x61e8[6]](_0x79b2x7)})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)});})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)});};exports[_0x61e8[24]]=function(_0x79b2x3,_0x79b2x4){ChatApplication[_0x61e8[16]](_0x79b2x3[_0x61e8[15]][_0x61e8[14]])[_0x61e8[8]](function(_0x79b2x7){if(!_0x79b2x7){return _0x79b2x4[_0x61e8[13]](404)};_0x79b2x7[_0x61e8[24]]()[_0x61e8[8]](function(){return _0x79b2x4[_0x61e8[13]](204)})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)});})[_0x61e8[5]](function(_0x79b2x5){return handleError(_0x79b2x4,_0x79b2x5)})};function handleError(_0x79b2x4,_0x79b2x5){return _0x79b2x4[_0x61e8[7]](500)[_0x61e8[6]](_0x79b2x5)}
\ No newline at end of file
+var _0x1f6a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x1f6a[0];var _=require(_0x1f6a[1]);var ChatApplication=require(_0x1f6a[3])[_0x1f6a[2]];exports[_0x1f6a[4]]=function(_0x14a2x3,_0x14a2x4){ChatApplication[_0x1f6a[11]]({where:_0x14a2x3[_0x1f6a[9]],order:_0x1f6a[10],include:[{all:true}]})[_0x1f6a[8]](function(_0x14a2x6){return _0x14a2x4[_0x1f6a[7]](200)[_0x1f6a[6]](_0x14a2x6)})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)})};exports[_0x1f6a[12]]=function(_0x14a2x3,_0x14a2x4){ChatApplication[_0x1f6a[16]](_0x14a2x3[_0x1f6a[15]][_0x1f6a[14]])[_0x1f6a[8]](function(_0x14a2x7){if(!_0x14a2x7){return _0x14a2x4[_0x1f6a[13]](404)};return _0x14a2x4[_0x1f6a[6]](_0x14a2x7);})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)})};exports[_0x1f6a[17]]=function(_0x14a2x3,_0x14a2x4,_0x14a2x8){ChatApplication[_0x1f6a[20]](_0x1f6a[10],{where:{ChatWebsiteId:_0x14a2x3[_0x1f6a[18]][_0x1f6a[19]]}})[_0x1f6a[8]](function(_0x14a2x9){_0x14a2x3[_0x1f6a[18]][_0x1f6a[10]]=_0x14a2x9?++_0x14a2x9:1;ChatApplication[_0x1f6a[17]](_0x14a2x3[_0x1f6a[18]])[_0x1f6a[8]](function(_0x14a2xa){return _0x14a2x4[_0x1f6a[7]](201)[_0x1f6a[6]](_0x14a2xa)})[_0x1f6a[5]](function(_0x14a2x5){return _0x14a2x8(_0x14a2x5)});})[_0x1f6a[5]](function(_0x14a2x5){_0x14a2x8(_0x14a2x5)})};exports[_0x1f6a[21]]=function(_0x14a2x3,_0x14a2x4){if(_0x14a2x3[_0x1f6a[18]][_0x1f6a[14]]){delete _0x14a2x3[_0x1f6a[18]][_0x1f6a[14]]};ChatApplication[_0x1f6a[16]](_0x14a2x3[_0x1f6a[15]][_0x1f6a[14]])[_0x1f6a[8]](function(_0x14a2x7){if(!_0x14a2x7){return _0x14a2x4[_0x1f6a[13]](404)};var _0x14a2xb=_[_0x1f6a[22]](_0x14a2x7,_0x14a2x3[_0x1f6a[18]]);_0x14a2xb[_0x1f6a[23]]()[_0x1f6a[8]](function(){return _0x14a2x4[_0x1f6a[7]](200)[_0x1f6a[6]](_0x14a2x7)})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)});})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)});};exports[_0x1f6a[24]]=function(_0x14a2x3,_0x14a2x4){ChatApplication[_0x1f6a[16]](_0x14a2x3[_0x1f6a[15]][_0x1f6a[14]])[_0x1f6a[8]](function(_0x14a2x7){if(!_0x14a2x7){return _0x14a2x4[_0x1f6a[13]](404)};_0x14a2x7[_0x1f6a[24]]()[_0x1f6a[8]](function(){return _0x14a2x4[_0x1f6a[13]](204)})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)});})[_0x1f6a[5]](function(_0x14a2x5){return handleError(_0x14a2x4,_0x14a2x5)})};function handleError(_0x14a2x4,_0x14a2x5){return _0x14a2x4[_0x1f6a[7]](500)[_0x1f6a[6]](_0x14a2x5)}
\ No newline at end of file
-var _0xf041=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xf041[0];var ChatApplication=require(_0xf041[2])[_0xf041[1]];exports[_0xf041[3]]=function(_0xb200x2){ChatApplication[_0xf041[4]](function(_0xb200x3){onSave(_0xb200x2,_0xb200x3)});ChatApplication[_0xf041[5]](function(_0xb200x3){onRemove(_0xb200x2,_0xb200x3)});};function onSave(_0xb200x2,_0xb200x3,_0xb200x5){_0xb200x2[_0xf041[7]](_0xf041[6],_0xb200x3)}function onRemove(_0xb200x2,_0xb200x3,_0xb200x5){_0xb200x2[_0xf041[7]](_0xf041[8],_0xb200x3)}
\ No newline at end of file
+var _0xe5f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe5f1[0];var ChatApplication=require(_0xe5f1[2])[_0xe5f1[1]];exports[_0xe5f1[3]]=function(_0x1c0ex2){ChatApplication[_0xe5f1[4]](function(_0x1c0ex3){onSave(_0x1c0ex2,_0x1c0ex3)});ChatApplication[_0xe5f1[5]](function(_0x1c0ex3){onRemove(_0x1c0ex2,_0x1c0ex3)});};function onSave(_0x1c0ex2,_0x1c0ex3,_0x1c0ex5){_0x1c0ex2[_0xe5f1[7]](_0xe5f1[6],_0x1c0ex3)}function onRemove(_0x1c0ex2,_0x1c0ex3,_0x1c0ex5){_0x1c0ex2[_0xe5f1[7]](_0xe5f1[8],_0x1c0ex3)}
\ No newline at end of file
-var _0xe0de=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xe0de[0];var should=require(_0xe0de[1]);var app=require(_0xe0de[2]);var request=require(_0xe0de[3]);describe(_0xe0de[4],function(){it(_0xe0de[5],function(_0x55d3x4){request(app)[_0xe0de[13]](_0xe0de[12])[_0xe0de[11]](200)[_0xe0de[11]](_0xe0de[10],/json/)[_0xe0de[9]](function(_0x55d3x5,_0x55d3x6){if(_0x55d3x5){return _0x55d3x4(_0x55d3x5)};_0x55d3x6[_0xe0de[8]][_0xe0de[1]][_0xe0de[7]][_0xe0de[6]](Array);_0x55d3x4();})})});
\ No newline at end of file
+var _0x8548=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x8548[0];var should=require(_0x8548[1]);var app=require(_0x8548[2]);var request=require(_0x8548[3]);describe(_0x8548[4],function(){it(_0x8548[5],function(_0xc7dex4){request(app)[_0x8548[13]](_0x8548[12])[_0x8548[11]](200)[_0x8548[11]](_0x8548[10],/json/)[_0x8548[9]](function(_0xc7dex5,_0xc7dex6){if(_0xc7dex5){return _0xc7dex4(_0xc7dex5)};_0xc7dex6[_0x8548[8]][_0x8548[1]][_0x8548[7]][_0x8548[6]](Array);_0xc7dex4();})})});
\ No newline at end of file
-var _0xe027=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xe027[0];var express=require(_0xe027[1]);var controller=require(_0xe027[2]);var router=express.Router();router[_0xe027[5]](_0xe027[3],controller[_0xe027[4]]);router[_0xe027[5]](_0xe027[6],controller[_0xe027[7]]);router[_0xe027[9]](_0xe027[3],controller[_0xe027[8]]);router[_0xe027[11]](_0xe027[6],controller[_0xe027[10]]);router[_0xe027[12]](_0xe027[6],controller[_0xe027[10]]);router[_0xe027[14]](_0xe027[6],controller[_0xe027[13]]);module[_0xe027[15]]=router;
\ No newline at end of file
+var _0x77eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x77eb[0];var express=require(_0x77eb[1]);var controller=require(_0x77eb[2]);var router=express.Router();router[_0x77eb[5]](_0x77eb[3],controller[_0x77eb[4]]);router[_0x77eb[5]](_0x77eb[6],controller[_0x77eb[7]]);router[_0x77eb[9]](_0x77eb[3],controller[_0x77eb[8]]);router[_0x77eb[11]](_0x77eb[6],controller[_0x77eb[10]]);router[_0x77eb[12]](_0x77eb[6],controller[_0x77eb[10]]);router[_0x77eb[14]](_0x77eb[6],controller[_0x77eb[13]]);module[_0x77eb[15]]=router;
\ No newline at end of file
-var _0x6932=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x6932[0];var _=require(_0x6932[1]);var ChatEnquiry=require(_0x6932[3])[_0x6932[2]];var ChatVisitor=require(_0x6932[3])[_0x6932[4]];exports[_0x6932[5]]=function(_0x6dccx4,_0x6dccx5){ChatEnquiry[_0x6932[10]]()[_0x6932[9]](function(_0x6dccx7){return _0x6dccx5[_0x6932[8]](200)[_0x6932[7]](_0x6dccx7)})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)})};exports[_0x6932[11]]=function(_0x6dccx4,_0x6dccx5){ChatEnquiry[_0x6932[15]]({where:{id:_0x6dccx4[_0x6932[14]][_0x6932[13]]},include:[ChatVisitor]})[_0x6932[9]](function(_0x6dccx8){if(!_0x6dccx8){return _0x6dccx5[_0x6932[12]](404)};return _0x6dccx5[_0x6932[7]](_0x6dccx8);})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)})};exports[_0x6932[16]]=function(_0x6dccx4,_0x6dccx5){ChatEnquiry[_0x6932[16]](_0x6dccx4[_0x6932[17]])[_0x6932[9]](function(_0x6dccx8){return _0x6dccx5[_0x6932[8]](201)[_0x6932[7]](_0x6dccx8)})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)})};exports[_0x6932[18]]=function(_0x6dccx4,_0x6dccx5){if(_0x6dccx4[_0x6932[17]][_0x6932[13]]){delete _0x6dccx4[_0x6932[17]][_0x6932[13]]};ChatEnquiry[_0x6932[21]](_0x6dccx4[_0x6932[14]][_0x6932[13]])[_0x6932[9]](function(_0x6dccx8){if(!_0x6dccx8){return _0x6dccx5[_0x6932[12]](404)};var _0x6dccx9=_[_0x6932[19]](_0x6dccx8,_0x6dccx4[_0x6932[17]]);_0x6dccx9[_0x6932[20]]()[_0x6932[9]](function(){return _0x6dccx5[_0x6932[8]](200)[_0x6932[7]](_0x6dccx8)})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)});})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)});};exports[_0x6932[22]]=function(_0x6dccx4,_0x6dccx5){ChatEnquiry[_0x6932[21]](_0x6dccx4[_0x6932[14]][_0x6932[13]])[_0x6932[9]](function(_0x6dccx8){if(!_0x6dccx8){return _0x6dccx5[_0x6932[12]](404)};_0x6dccx8[_0x6932[22]]()[_0x6932[9]](function(){return _0x6dccx5[_0x6932[12]](204)})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)});})[_0x6932[6]](function(_0x6dccx6){return handleError(_0x6dccx5,_0x6dccx6)})};function handleError(_0x6dccx5,_0x6dccx6){return _0x6dccx5[_0x6932[8]](500)[_0x6932[7]](_0x6dccx6)}
\ No newline at end of file
+var _0x8b59=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x8b59[0];var _=require(_0x8b59[1]);var ChatEnquiry=require(_0x8b59[3])[_0x8b59[2]];var ChatVisitor=require(_0x8b59[3])[_0x8b59[4]];exports[_0x8b59[5]]=function(_0xb9f6x4,_0xb9f6x5){ChatEnquiry[_0x8b59[10]]()[_0x8b59[9]](function(_0xb9f6x7){return _0xb9f6x5[_0x8b59[8]](200)[_0x8b59[7]](_0xb9f6x7)})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)})};exports[_0x8b59[11]]=function(_0xb9f6x4,_0xb9f6x5){ChatEnquiry[_0x8b59[15]]({where:{id:_0xb9f6x4[_0x8b59[14]][_0x8b59[13]]},include:[ChatVisitor]})[_0x8b59[9]](function(_0xb9f6x8){if(!_0xb9f6x8){return _0xb9f6x5[_0x8b59[12]](404)};return _0xb9f6x5[_0x8b59[7]](_0xb9f6x8);})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)})};exports[_0x8b59[16]]=function(_0xb9f6x4,_0xb9f6x5){ChatEnquiry[_0x8b59[16]](_0xb9f6x4[_0x8b59[17]])[_0x8b59[9]](function(_0xb9f6x8){return _0xb9f6x5[_0x8b59[8]](201)[_0x8b59[7]](_0xb9f6x8)})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)})};exports[_0x8b59[18]]=function(_0xb9f6x4,_0xb9f6x5){if(_0xb9f6x4[_0x8b59[17]][_0x8b59[13]]){delete _0xb9f6x4[_0x8b59[17]][_0x8b59[13]]};ChatEnquiry[_0x8b59[21]](_0xb9f6x4[_0x8b59[14]][_0x8b59[13]])[_0x8b59[9]](function(_0xb9f6x8){if(!_0xb9f6x8){return _0xb9f6x5[_0x8b59[12]](404)};var _0xb9f6x9=_[_0x8b59[19]](_0xb9f6x8,_0xb9f6x4[_0x8b59[17]]);_0xb9f6x9[_0x8b59[20]]()[_0x8b59[9]](function(){return _0xb9f6x5[_0x8b59[8]](200)[_0x8b59[7]](_0xb9f6x8)})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)});})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)});};exports[_0x8b59[22]]=function(_0xb9f6x4,_0xb9f6x5){ChatEnquiry[_0x8b59[21]](_0xb9f6x4[_0x8b59[14]][_0x8b59[13]])[_0x8b59[9]](function(_0xb9f6x8){if(!_0xb9f6x8){return _0xb9f6x5[_0x8b59[12]](404)};_0xb9f6x8[_0x8b59[22]]()[_0x8b59[9]](function(){return _0xb9f6x5[_0x8b59[12]](204)})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)});})[_0x8b59[6]](function(_0xb9f6x6){return handleError(_0xb9f6x5,_0xb9f6x6)})};function handleError(_0xb9f6x5,_0xb9f6x6){return _0xb9f6x5[_0x8b59[8]](500)[_0x8b59[7]](_0xb9f6x6)}
\ No newline at end of file
-var _0xe946=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x6E\x71\x75\x69\x72\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x65\x6E\x71\x75\x69\x72\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe946[0];var enquiry=require(_0xe946[2])[_0xe946[1]];exports[_0xe946[3]]=function(_0x2ac0x2){enquiry[_0xe946[4]](function(_0x2ac0x3){onSave(_0x2ac0x2,_0x2ac0x3)});enquiry[_0xe946[5]](function(_0x2ac0x3){onRemove(_0x2ac0x2,_0x2ac0x3)});};function onSave(_0x2ac0x2,_0x2ac0x3,_0x2ac0x5){_0x2ac0x2[_0xe946[7]](_0xe946[6],_0x2ac0x3)}function onRemove(_0x2ac0x2,_0x2ac0x3,_0x2ac0x5){_0x2ac0x2[_0xe946[7]](_0xe946[8],_0x2ac0x3)}
\ No newline at end of file
+var _0xa738=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x6E\x71\x75\x69\x72\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x65\x6E\x71\x75\x69\x72\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa738[0];var enquiry=require(_0xa738[2])[_0xa738[1]];exports[_0xa738[3]]=function(_0x3c07x2){enquiry[_0xa738[4]](function(_0x3c07x3){onSave(_0x3c07x2,_0x3c07x3)});enquiry[_0xa738[5]](function(_0x3c07x3){onRemove(_0x3c07x2,_0x3c07x3)});};function onSave(_0x3c07x2,_0x3c07x3,_0x3c07x5){_0x3c07x2[_0xa738[7]](_0xa738[6],_0x3c07x3)}function onRemove(_0x3c07x2,_0x3c07x3,_0x3c07x5){_0x3c07x2[_0xa738[7]](_0xa738[8],_0x3c07x3)}
\ No newline at end of file
-var _0x7114=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x65\x6E\x71\x75\x69\x72\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x7114[0];var express=require(_0x7114[1]);var controller=require(_0x7114[2]);var router=express.Router();router[_0x7114[5]](_0x7114[3],controller[_0x7114[4]]);router[_0x7114[5]](_0x7114[6],controller[_0x7114[7]]);router[_0x7114[9]](_0x7114[3],controller[_0x7114[8]]);router[_0x7114[11]](_0x7114[6],controller[_0x7114[10]]);router[_0x7114[12]](_0x7114[6],controller[_0x7114[10]]);router[_0x7114[14]](_0x7114[6],controller[_0x7114[13]]);module[_0x7114[15]]=router;
\ No newline at end of file
+var _0x74bd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x65\x6E\x71\x75\x69\x72\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x74bd[0];var express=require(_0x74bd[1]);var controller=require(_0x74bd[2]);var router=express.Router();router[_0x74bd[5]](_0x74bd[3],controller[_0x74bd[4]]);router[_0x74bd[5]](_0x74bd[6],controller[_0x74bd[7]]);router[_0x74bd[9]](_0x74bd[3],controller[_0x74bd[8]]);router[_0x74bd[11]](_0x74bd[6],controller[_0x74bd[10]]);router[_0x74bd[12]](_0x74bd[6],controller[_0x74bd[10]]);router[_0x74bd[14]](_0x74bd[6],controller[_0x74bd[13]]);module[_0x74bd[15]]=router;
\ No newline at end of file
-var _0xc33c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x73\x65\x72","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xc33c[0];var _=require(_0xc33c[1]);var md5=require(_0xc33c[2]);var User=require(_0xc33c[4])[_0xc33c[3]];var ChatRoom=require(_0xc33c[4])[_0xc33c[5]];var ChatMessage=require(_0xc33c[4])[_0xc33c[6]];var ChatVisitor=require(_0xc33c[4])[_0xc33c[7]];exports[_0xc33c[8]]=function(_0x831cx7,_0x831cx8){ChatMessage[_0xc33c[13]]()[_0xc33c[12]](function(_0x831cxa){return _0x831cx8[_0xc33c[11]](200)[_0xc33c[10]](_0x831cxa)})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)})};exports[_0xc33c[14]]=function(_0x831cx7,_0x831cx8){ChatMessage[_0xc33c[18]](_0x831cx7[_0xc33c[17]][_0xc33c[16]])[_0xc33c[12]](function(_0x831cxb){if(!_0x831cxb){return _0x831cx8[_0xc33c[15]](404)};return _0x831cx8[_0xc33c[10]](_0x831cxb);})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)})};exports[_0xc33c[19]]=function(_0x831cx7,_0x831cx8,_0x831cxc){ChatMessage[_0xc33c[19]](_[_0xc33c[22]](_0x831cx7[_0xc33c[20]],{UserId:_0x831cx7[_0xc33c[21]][_0xc33c[16]]}))[_0xc33c[12]](function(_0x831cxb){return _0x831cx8[_0xc33c[11]](201)[_0xc33c[10]](_0x831cxb)})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)})};exports[_0xc33c[23]]=function(_0x831cx7,_0x831cx8){if(_0x831cx7[_0xc33c[20]][_0xc33c[16]]){delete _0x831cx7[_0xc33c[20]][_0xc33c[16]]};return ChatMessage[_0xc33c[18]](_0x831cx7[_0xc33c[17]][_0xc33c[16]])[_0xc33c[12]](function(_0x831cxb){if(!_0x831cxb){return _0x831cx8[_0xc33c[15]](404)};var _0x831cxd=_[_0xc33c[22]](_0x831cxb,_0x831cx7[_0xc33c[20]]);return _0x831cxd[_0xc33c[24]]();})[_0xc33c[12]](function(_0x831cxb){return _0x831cx8[_0xc33c[11]](200)[_0xc33c[10]](_0x831cxb)})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)});};exports[_0xc33c[25]]=function(_0x831cx7,_0x831cx8){ChatMessage[_0xc33c[18]](_0x831cx7[_0xc33c[17]][_0xc33c[16]])[_0xc33c[12]](function(_0x831cxb){if(!_0x831cxb){return _0x831cx8[_0xc33c[15]](404)};_0x831cxb[_0xc33c[25]]()[_0xc33c[12]](function(){return _0x831cx8[_0xc33c[15]](204)})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)});})[_0xc33c[9]](function(_0x831cx9){return handleError(_0x831cx8,_0x831cx9)})};function handleError(_0x831cx8,_0x831cx9){return _0x831cx8[_0xc33c[11]](500)[_0xc33c[10]](_0x831cx9)}
\ No newline at end of file
+var _0xbccc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x73\x65\x72","\x6D\x65\x72\x67\x65","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xbccc[0];var _=require(_0xbccc[1]);var md5=require(_0xbccc[2]);var User=require(_0xbccc[4])[_0xbccc[3]];var ChatRoom=require(_0xbccc[4])[_0xbccc[5]];var ChatMessage=require(_0xbccc[4])[_0xbccc[6]];var ChatVisitor=require(_0xbccc[4])[_0xbccc[7]];exports[_0xbccc[8]]=function(_0xac67x7,_0xac67x8){ChatMessage[_0xbccc[13]]()[_0xbccc[12]](function(_0xac67xa){return _0xac67x8[_0xbccc[11]](200)[_0xbccc[10]](_0xac67xa)})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)})};exports[_0xbccc[14]]=function(_0xac67x7,_0xac67x8){ChatMessage[_0xbccc[18]](_0xac67x7[_0xbccc[17]][_0xbccc[16]])[_0xbccc[12]](function(_0xac67xb){if(!_0xac67xb){return _0xac67x8[_0xbccc[15]](404)};return _0xac67x8[_0xbccc[10]](_0xac67xb);})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)})};exports[_0xbccc[19]]=function(_0xac67x7,_0xac67x8,_0xac67xc){ChatMessage[_0xbccc[19]](_[_0xbccc[22]](_0xac67x7[_0xbccc[20]],{UserId:_0xac67x7[_0xbccc[21]][_0xbccc[16]]}))[_0xbccc[12]](function(_0xac67xb){return _0xac67x8[_0xbccc[11]](201)[_0xbccc[10]](_0xac67xb)})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)})};exports[_0xbccc[23]]=function(_0xac67x7,_0xac67x8){if(_0xac67x7[_0xbccc[20]][_0xbccc[16]]){delete _0xac67x7[_0xbccc[20]][_0xbccc[16]]};return ChatMessage[_0xbccc[18]](_0xac67x7[_0xbccc[17]][_0xbccc[16]])[_0xbccc[12]](function(_0xac67xb){if(!_0xac67xb){return _0xac67x8[_0xbccc[15]](404)};var _0xac67xd=_[_0xbccc[22]](_0xac67xb,_0xac67x7[_0xbccc[20]]);return _0xac67xd[_0xbccc[24]]();})[_0xbccc[12]](function(_0xac67xb){return _0xac67x8[_0xbccc[11]](200)[_0xbccc[10]](_0xac67xb)})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)});};exports[_0xbccc[25]]=function(_0xac67x7,_0xac67x8){ChatMessage[_0xbccc[18]](_0xac67x7[_0xbccc[17]][_0xbccc[16]])[_0xbccc[12]](function(_0xac67xb){if(!_0xac67xb){return _0xac67x8[_0xbccc[15]](404)};_0xac67xb[_0xbccc[25]]()[_0xbccc[12]](function(){return _0xac67x8[_0xbccc[15]](204)})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)});})[_0xbccc[9]](function(_0xac67x9){return handleError(_0xac67x8,_0xac67x9)})};function handleError(_0xac67x8,_0xac67x9){return _0xac67x8[_0xbccc[11]](500)[_0xbccc[10]](_0xac67x9)}
\ No newline at end of file
-var _0x333a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x55\x73\x65\x72\x49\x64","\x66\x69\x6E\x64","\x75\x73\x65\x72\x49\x64","\x69\x64","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x73\x70\x72\x65\x61\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x67\x65\x74\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x333a[0];var chat_message=require(_0x333a[2])[_0x333a[1]];var _=require(_0x333a[3]);exports[_0x333a[4]]=function(_0x7d2fx3){chat_message[_0x333a[5]](function(_0x7d2fx4){onSave(_0x7d2fx3,_0x7d2fx4)});chat_message[_0x333a[6]](function(_0x7d2fx4){onSave(_0x7d2fx3,_0x7d2fx4)});chat_message[_0x333a[7]](function(_0x7d2fx4){onRemove(_0x7d2fx3,_0x7d2fx4)});};function onSave(_0x7d2fx3,_0x7d2fx4,_0x7d2fx6){return _0x7d2fx4[_0x333a[28]]()[_0x333a[27]](function(_0x7d2fxc){return [_0x7d2fxc[_0x333a[25]]({attributes:[_0x333a[13],_0x333a[20],_0x333a[21],_0x333a[22],_0x333a[23],_0x333a[24]],raw:true}),_0x7d2fxc[_0x333a[26]]({attributes:[_0x333a[13],_0x333a[21],_0x333a[22]],raw:true})]})[_0x333a[19]](function(_0x7d2fx8,_0x7d2fx9){var _0x7d2fxa=_[_0x333a[11]](_0x7d2fx8,{id:_0x7d2fx4[_0x333a[10]]});_0x7d2fx8[_0x333a[18]](function(_0x7d2fxb){if(_0x7d2fx3[_0x333a[12]]==_0x7d2fxb[_0x333a[13]]&&(_0x7d2fxa||_0x7d2fx9)){_0x7d2fx3[_0x333a[17]](_0x333a[14],_[_0x333a[16]](_0x7d2fx4[_0x333a[15]],{User:_0x7d2fxa,ChatVisitor:_0x7d2fx9}))}});})[_0x333a[9]](function(_0x7d2fx7){console[_0x333a[8]](_0x7d2fx7)})}function onRemove(_0x7d2fx3,_0x7d2fx4,_0x7d2fx6){_0x7d2fx3[_0x333a[17]](_0x333a[29],_0x7d2fx4)}
\ No newline at end of file
+var _0xfd2a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x55\x73\x65\x72\x49\x64","\x66\x69\x6E\x64","\x75\x73\x65\x72\x49\x64","\x69\x64","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x73\x70\x72\x65\x61\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x67\x65\x74\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfd2a[0];var chat_message=require(_0xfd2a[2])[_0xfd2a[1]];var _=require(_0xfd2a[3]);exports[_0xfd2a[4]]=function(_0x5db5x3){chat_message[_0xfd2a[5]](function(_0x5db5x4){onSave(_0x5db5x3,_0x5db5x4)});chat_message[_0xfd2a[6]](function(_0x5db5x4){onSave(_0x5db5x3,_0x5db5x4)});chat_message[_0xfd2a[7]](function(_0x5db5x4){onRemove(_0x5db5x3,_0x5db5x4)});};function onSave(_0x5db5x3,_0x5db5x4,_0x5db5x6){return _0x5db5x4[_0xfd2a[28]]()[_0xfd2a[27]](function(_0x5db5xc){return [_0x5db5xc[_0xfd2a[25]]({attributes:[_0xfd2a[13],_0xfd2a[20],_0xfd2a[21],_0xfd2a[22],_0xfd2a[23],_0xfd2a[24]],raw:true}),_0x5db5xc[_0xfd2a[26]]({attributes:[_0xfd2a[13],_0xfd2a[21],_0xfd2a[22]],raw:true})]})[_0xfd2a[19]](function(_0x5db5x8,_0x5db5x9){var _0x5db5xa=_[_0xfd2a[11]](_0x5db5x8,{id:_0x5db5x4[_0xfd2a[10]]});_0x5db5x8[_0xfd2a[18]](function(_0x5db5xb){if(_0x5db5x3[_0xfd2a[12]]==_0x5db5xb[_0xfd2a[13]]&&(_0x5db5xa||_0x5db5x9)){_0x5db5x3[_0xfd2a[17]](_0xfd2a[14],_[_0xfd2a[16]](_0x5db5x4[_0xfd2a[15]],{User:_0x5db5xa,ChatVisitor:_0x5db5x9}))}});})[_0xfd2a[9]](function(_0x5db5x7){console[_0xfd2a[8]](_0x5db5x7)})}function onRemove(_0x5db5x3,_0x5db5x4,_0x5db5x6){_0x5db5x3[_0xfd2a[17]](_0xfd2a[29],_0x5db5x4)}
\ No newline at end of file
-var _0x2c61=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74"];_0x2c61[0];var should=require(_0x2c61[1]);var app=require(_0x2c61[2]);var request=require(_0x2c61[3]);describe(_0x2c61[4],function(){it(_0x2c61[5],function(_0x8661x4){request(app)[_0x2c61[13]](_0x2c61[12])[_0x2c61[11]](200)[_0x2c61[11]](_0x2c61[10],/json/)[_0x2c61[9]](function(_0x8661x5,_0x8661x6){if(_0x8661x5){return _0x8661x4(_0x8661x5)};_0x8661x6[_0x2c61[8]][_0x2c61[1]][_0x2c61[7]][_0x2c61[6]](Array);_0x8661x4();})})});
\ No newline at end of file
+var _0x6352=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74"];_0x6352[0];var should=require(_0x6352[1]);var app=require(_0x6352[2]);var request=require(_0x6352[3]);describe(_0x6352[4],function(){it(_0x6352[5],function(_0x4b35x4){request(app)[_0x6352[13]](_0x6352[12])[_0x6352[11]](200)[_0x6352[11]](_0x6352[10],/json/)[_0x6352[9]](function(_0x4b35x5,_0x4b35x6){if(_0x4b35x5){return _0x4b35x4(_0x4b35x5)};_0x4b35x6[_0x6352[8]][_0x6352[1]][_0x6352[7]][_0x6352[6]](Array);_0x4b35x4();})})});
\ No newline at end of file
-var _0xbe65=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xbe65[0];var express=require(_0xbe65[1]);var controller=require(_0xbe65[2]);var auth=require(_0xbe65[3]);var router=express.Router();router[_0xbe65[6]](_0xbe65[4],controller[_0xbe65[5]]);router[_0xbe65[6]](_0xbe65[7],controller[_0xbe65[8]]);router[_0xbe65[11]](_0xbe65[4],auth[_0xbe65[9]](),controller[_0xbe65[10]]);router[_0xbe65[13]](_0xbe65[7],controller[_0xbe65[12]]);router[_0xbe65[15]](_0xbe65[7],controller[_0xbe65[14]]);module[_0xbe65[16]]=router;
\ No newline at end of file
+var _0x57bd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x57bd[0];var express=require(_0x57bd[1]);var controller=require(_0x57bd[2]);var auth=require(_0x57bd[3]);var router=express.Router();router[_0x57bd[6]](_0x57bd[4],controller[_0x57bd[5]]);router[_0x57bd[6]](_0x57bd[7],controller[_0x57bd[8]]);router[_0x57bd[11]](_0x57bd[4],auth[_0x57bd[9]](),controller[_0x57bd[10]]);router[_0x57bd[13]](_0x57bd[7],controller[_0x57bd[12]]);router[_0x57bd[15]](_0x57bd[7],controller[_0x57bd[14]]);module[_0x57bd[16]]=router;
\ No newline at end of file
-var _0x5e1e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6D\x65","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x4E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x5e1e[0];var _=require(_0x5e1e[1]);var util=require(_0x5e1e[2]);var ChatQueue=require(_0x5e1e[4])[_0x5e1e[3]];var UserHasChatQueue=require(_0x5e1e[4])[_0x5e1e[5]];exports[_0x5e1e[6]]=function(_0x6fe6x5,_0x6fe6x6){var _0x6fe6x7=[_0x5e1e[7],_0x5e1e[8],_0x5e1e[9],_0x5e1e[10]];var _0x6fe6x8=_0x6fe6x5[_0x5e1e[12]][_0x5e1e[11]]?parseInt(_0x6fe6x5[_0x5e1e[12]][_0x5e1e[11]],10):100;var _0x6fe6x9=_0x6fe6x5[_0x5e1e[12]][_0x5e1e[13]]?parseInt(_0x6fe6x5[_0x5e1e[12]][_0x5e1e[13]],10):0;var _0x6fe6xa={where:{},limit:_0x6fe6x8,offset:_0x6fe6x9*_0x6fe6x8,include:[{all:true}]};_[_0x5e1e[27]](_0x6fe6x5[_0x5e1e[12]],function(_0x6fe6xb,_0x6fe6xc){switch(_0x6fe6xc){case _0x5e1e[11]:;case _0x5e1e[13]:break ;;case _0x5e1e[16]:_0x6fe6xa[_0x5e1e[14]]=util[_0x5e1e[19]](_0x5e1e[15],_0x6fe6x5[_0x5e1e[12]][_0x5e1e[16]],_0x6fe6x5[_0x5e1e[12]][_0x5e1e[17]]||_0x5e1e[18])||null;break ;;case _0x5e1e[17]:break ;;case _0x5e1e[25]:_0x6fe6xa[_0x5e1e[21]][_0x5e1e[20]]=[];_0x6fe6x7[_0x5e1e[24]](function(_0x6fe6xd){var _0x6fe6xe={};_0x6fe6xe[_0x6fe6xd]={$like:_0x5e1e[22]+_0x6fe6xb+_0x5e1e[22]};_0x6fe6xa[_0x5e1e[21]][_0x5e1e[20]][_0x5e1e[23]](_0x6fe6xe);});break ;;default:_0x6fe6xa[_0x5e1e[21]][_0x6fe6xc]={$like:{}};_0x6fe6xa[_0x5e1e[21]][_0x6fe6xc][_0x5e1e[26]]=_0x5e1e[22]+_0x6fe6xb+_0x5e1e[22];;}});ChatQueue[_0x5e1e[41]](_0x6fe6xa)[_0x5e1e[40]](function(_0x6fe6x10){var _0x6fe6x11=Math[_0x5e1e[30]](_0x6fe6x10[_0x5e1e[29]]/_0x6fe6x8);var _0x6fe6x12=_0x6fe6x11>(_0x6fe6xa[_0x5e1e[31]]+1)?util[_0x5e1e[19]](_0x5e1e[32],_0x6fe6x5[_0x5e1e[33]],_0x6fe6x5[_0x5e1e[35]][_0x5e1e[34]],_0x6fe6x5[_0x5e1e[36]],_0x6fe6x9+1):null;var _0x6fe6x13=_0x6fe6x9>0?util[_0x5e1e[19]](_0x5e1e[32],_0x6fe6x5[_0x5e1e[33]],_0x6fe6x5[_0x5e1e[35]][_0x5e1e[34]],_0x6fe6x5[_0x5e1e[36]],_0x6fe6x9-1):null;_0x6fe6x6[_0x5e1e[39]](200)[_0x5e1e[38]]({count:_0x6fe6x10[_0x5e1e[29]],rows:_0x6fe6x10[_0x5e1e[37]],next_page:_0x6fe6x12,previous_page:_0x6fe6x13,total_pages:_0x6fe6x11});})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)});};exports[_0x5e1e[42]]=function(_0x6fe6x5,_0x6fe6x6,_0x6fe6x14){UserHasChatQueue[_0x5e1e[45]]({where:{UserId:_0x6fe6x5[_0x5e1e[44]][_0x5e1e[43]]}})[_0x5e1e[40]](function(_0x6fe6x15){return _0x6fe6x6[_0x5e1e[39]](200)[_0x5e1e[38]](_0x6fe6x15)})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)})};exports[_0x5e1e[46]]=function(_0x6fe6x5,_0x6fe6x6){ChatQueue[_0x5e1e[49]](_0x6fe6x5[_0x5e1e[48]][_0x5e1e[43]])[_0x5e1e[40]](function(_0x6fe6x16){if(!_0x6fe6x16){return _0x6fe6x6[_0x5e1e[47]](404)};return _0x6fe6x6[_0x5e1e[38]](_0x6fe6x16);})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)})};exports[_0x5e1e[50]]=function(_0x6fe6x5,_0x6fe6x6){ChatQueue[_0x5e1e[50]](_0x6fe6x5[_0x5e1e[51]])[_0x5e1e[40]](function(_0x6fe6x16){return _0x6fe6x6[_0x5e1e[39]](201)[_0x5e1e[38]](_0x6fe6x16)})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)})};exports[_0x5e1e[52]]=function(_0x6fe6x5,_0x6fe6x6){if(_0x6fe6x5[_0x5e1e[51]][_0x5e1e[43]]){delete _0x6fe6x5[_0x5e1e[51]][_0x5e1e[43]]};ChatQueue[_0x5e1e[49]](_0x6fe6x5[_0x5e1e[48]][_0x5e1e[43]])[_0x5e1e[40]](function(_0x6fe6x16){if(!_0x6fe6x16){return _0x6fe6x6[_0x5e1e[47]](404)};var _0x6fe6x17=_[_0x5e1e[53]](_0x6fe6x16,_0x6fe6x5[_0x5e1e[51]]);_0x6fe6x17[_0x5e1e[54]]()[_0x5e1e[40]](function(){return _0x6fe6x6[_0x5e1e[39]](200)[_0x5e1e[38]](_0x6fe6x16)})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)});})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)});};exports[_0x5e1e[55]]=function(_0x6fe6x5,_0x6fe6x6,_0x6fe6x14){return ChatQueue[_0x5e1e[49]](_0x6fe6x5[_0x5e1e[48]][_0x5e1e[43]])[_0x5e1e[40]](function(_0x6fe6x18){if(_0x6fe6x18){return _0x6fe6x18[_0x5e1e[57]](_0x6fe6x5[_0x5e1e[51]][_0x5e1e[56]],{individualHooks:true})}else {throw new Error(_0x5e1e[58])}})[_0x5e1e[40]](function(){return _0x6fe6x6[_0x5e1e[47]](200)})[_0x5e1e[28]](function(_0x6fe6xf){return _0x6fe6x14(_0x6fe6xf)})};exports[_0x5e1e[59]]=function(_0x6fe6x5,_0x6fe6x6,_0x6fe6x14){return ChatQueue[_0x5e1e[49]](_0x6fe6x5[_0x5e1e[48]][_0x5e1e[43]])[_0x5e1e[40]](function(_0x6fe6x18){if(_0x6fe6x18){return _0x6fe6x18[_0x5e1e[60]](_0x6fe6x5[_0x5e1e[51]][_0x5e1e[56]],{individualHooks:true})}else {throw new Error(_0x5e1e[61])}})[_0x5e1e[40]](function(){return _0x6fe6x6[_0x5e1e[47]](200)})[_0x5e1e[28]](function(_0x6fe6xf){return _0x6fe6x14(_0x6fe6xf)})};exports[_0x5e1e[62]]=function(_0x6fe6x5,_0x6fe6x6){ChatQueue[_0x5e1e[49]](_0x6fe6x5[_0x5e1e[48]][_0x5e1e[43]])[_0x5e1e[40]](function(_0x6fe6x16){if(!_0x6fe6x16){return _0x6fe6x6[_0x5e1e[47]](404)};_0x6fe6x16[_0x5e1e[62]]()[_0x5e1e[40]](function(){return _0x6fe6x6[_0x5e1e[47]](204)})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)});})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)})};exports[_0x5e1e[63]]=function(_0x6fe6x5,_0x6fe6x6){ChatQueue[_0x5e1e[62]]({where:{id:_0x6fe6x5[_0x5e1e[12]][_0x5e1e[43]]},individualHooks:true})[_0x5e1e[40]](function(){return _0x6fe6x6[_0x5e1e[47]](204)})[_0x5e1e[28]](function(_0x6fe6xf){return handleError(_0x6fe6x6,_0x6fe6xf)})};function handleError(_0x6fe6x6,_0x6fe6xf){return _0x6fe6x6[_0x5e1e[39]](500)[_0x5e1e[38]](_0x6fe6xf)}
\ No newline at end of file
+var _0x5e20=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6D\x65","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x4E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x5e20[0];var _=require(_0x5e20[1]);var util=require(_0x5e20[2]);var ChatQueue=require(_0x5e20[4])[_0x5e20[3]];var UserHasChatQueue=require(_0x5e20[4])[_0x5e20[5]];exports[_0x5e20[6]]=function(_0x6361x5,_0x6361x6){var _0x6361x7=[_0x5e20[7],_0x5e20[8],_0x5e20[9],_0x5e20[10]];var _0x6361x8=_0x6361x5[_0x5e20[12]][_0x5e20[11]]?parseInt(_0x6361x5[_0x5e20[12]][_0x5e20[11]],10):100;var _0x6361x9=_0x6361x5[_0x5e20[12]][_0x5e20[13]]?parseInt(_0x6361x5[_0x5e20[12]][_0x5e20[13]],10):0;var _0x6361xa={where:{},limit:_0x6361x8,offset:_0x6361x9*_0x6361x8,include:[{all:true}]};_[_0x5e20[27]](_0x6361x5[_0x5e20[12]],function(_0x6361xb,_0x6361xc){switch(_0x6361xc){case _0x5e20[11]:;case _0x5e20[13]:break ;;case _0x5e20[16]:_0x6361xa[_0x5e20[14]]=util[_0x5e20[19]](_0x5e20[15],_0x6361x5[_0x5e20[12]][_0x5e20[16]],_0x6361x5[_0x5e20[12]][_0x5e20[17]]||_0x5e20[18])||null;break ;;case _0x5e20[17]:break ;;case _0x5e20[25]:_0x6361xa[_0x5e20[21]][_0x5e20[20]]=[];_0x6361x7[_0x5e20[24]](function(_0x6361xd){var _0x6361xe={};_0x6361xe[_0x6361xd]={$like:_0x5e20[22]+_0x6361xb+_0x5e20[22]};_0x6361xa[_0x5e20[21]][_0x5e20[20]][_0x5e20[23]](_0x6361xe);});break ;;default:_0x6361xa[_0x5e20[21]][_0x6361xc]={$like:{}};_0x6361xa[_0x5e20[21]][_0x6361xc][_0x5e20[26]]=_0x5e20[22]+_0x6361xb+_0x5e20[22];;}});ChatQueue[_0x5e20[41]](_0x6361xa)[_0x5e20[40]](function(_0x6361x10){var _0x6361x11=Math[_0x5e20[30]](_0x6361x10[_0x5e20[29]]/_0x6361x8);var _0x6361x12=_0x6361x11>(_0x6361xa[_0x5e20[31]]+1)?util[_0x5e20[19]](_0x5e20[32],_0x6361x5[_0x5e20[33]],_0x6361x5[_0x5e20[35]][_0x5e20[34]],_0x6361x5[_0x5e20[36]],_0x6361x9+1):null;var _0x6361x13=_0x6361x9>0?util[_0x5e20[19]](_0x5e20[32],_0x6361x5[_0x5e20[33]],_0x6361x5[_0x5e20[35]][_0x5e20[34]],_0x6361x5[_0x5e20[36]],_0x6361x9-1):null;_0x6361x6[_0x5e20[39]](200)[_0x5e20[38]]({count:_0x6361x10[_0x5e20[29]],rows:_0x6361x10[_0x5e20[37]],next_page:_0x6361x12,previous_page:_0x6361x13,total_pages:_0x6361x11});})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)});};exports[_0x5e20[42]]=function(_0x6361x5,_0x6361x6,_0x6361x14){UserHasChatQueue[_0x5e20[45]]({where:{UserId:_0x6361x5[_0x5e20[44]][_0x5e20[43]]}})[_0x5e20[40]](function(_0x6361x15){return _0x6361x6[_0x5e20[39]](200)[_0x5e20[38]](_0x6361x15)})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)})};exports[_0x5e20[46]]=function(_0x6361x5,_0x6361x6){ChatQueue[_0x5e20[49]](_0x6361x5[_0x5e20[48]][_0x5e20[43]])[_0x5e20[40]](function(_0x6361x16){if(!_0x6361x16){return _0x6361x6[_0x5e20[47]](404)};return _0x6361x6[_0x5e20[38]](_0x6361x16);})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)})};exports[_0x5e20[50]]=function(_0x6361x5,_0x6361x6){ChatQueue[_0x5e20[50]](_0x6361x5[_0x5e20[51]])[_0x5e20[40]](function(_0x6361x16){return _0x6361x6[_0x5e20[39]](201)[_0x5e20[38]](_0x6361x16)})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)})};exports[_0x5e20[52]]=function(_0x6361x5,_0x6361x6){if(_0x6361x5[_0x5e20[51]][_0x5e20[43]]){delete _0x6361x5[_0x5e20[51]][_0x5e20[43]]};ChatQueue[_0x5e20[49]](_0x6361x5[_0x5e20[48]][_0x5e20[43]])[_0x5e20[40]](function(_0x6361x16){if(!_0x6361x16){return _0x6361x6[_0x5e20[47]](404)};var _0x6361x17=_[_0x5e20[53]](_0x6361x16,_0x6361x5[_0x5e20[51]]);_0x6361x17[_0x5e20[54]]()[_0x5e20[40]](function(){return _0x6361x6[_0x5e20[39]](200)[_0x5e20[38]](_0x6361x16)})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)});})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)});};exports[_0x5e20[55]]=function(_0x6361x5,_0x6361x6,_0x6361x14){return ChatQueue[_0x5e20[49]](_0x6361x5[_0x5e20[48]][_0x5e20[43]])[_0x5e20[40]](function(_0x6361x18){if(_0x6361x18){return _0x6361x18[_0x5e20[57]](_0x6361x5[_0x5e20[51]][_0x5e20[56]],{individualHooks:true})}else {throw new Error(_0x5e20[58])}})[_0x5e20[40]](function(){return _0x6361x6[_0x5e20[47]](200)})[_0x5e20[28]](function(_0x6361xf){return _0x6361x14(_0x6361xf)})};exports[_0x5e20[59]]=function(_0x6361x5,_0x6361x6,_0x6361x14){return ChatQueue[_0x5e20[49]](_0x6361x5[_0x5e20[48]][_0x5e20[43]])[_0x5e20[40]](function(_0x6361x18){if(_0x6361x18){return _0x6361x18[_0x5e20[60]](_0x6361x5[_0x5e20[51]][_0x5e20[56]],{individualHooks:true})}else {throw new Error(_0x5e20[61])}})[_0x5e20[40]](function(){return _0x6361x6[_0x5e20[47]](200)})[_0x5e20[28]](function(_0x6361xf){return _0x6361x14(_0x6361xf)})};exports[_0x5e20[62]]=function(_0x6361x5,_0x6361x6){ChatQueue[_0x5e20[49]](_0x6361x5[_0x5e20[48]][_0x5e20[43]])[_0x5e20[40]](function(_0x6361x16){if(!_0x6361x16){return _0x6361x6[_0x5e20[47]](404)};_0x6361x16[_0x5e20[62]]()[_0x5e20[40]](function(){return _0x6361x6[_0x5e20[47]](204)})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)});})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)})};exports[_0x5e20[63]]=function(_0x6361x5,_0x6361x6){ChatQueue[_0x5e20[62]]({where:{id:_0x6361x5[_0x5e20[12]][_0x5e20[43]]},individualHooks:true})[_0x5e20[40]](function(){return _0x6361x6[_0x5e20[47]](204)})[_0x5e20[28]](function(_0x6361xf){return handleError(_0x6361x6,_0x6361xf)})};function handleError(_0x6361x6,_0x6361xf){return _0x6361x6[_0x5e20[39]](500)[_0x5e20[38]](_0x6361xf)}
\ No newline at end of file
-var _0x2030=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2030[0];var chatQueue=require(_0x2030[2])[_0x2030[1]];exports[_0x2030[3]]=function(_0x932fx2){chatQueue[_0x2030[4]](function(_0x932fx3){onSave(_0x932fx2,_0x932fx3)});chatQueue[_0x2030[5]](function(_0x932fx3){onRemove(_0x932fx2,_0x932fx3)});};function onSave(_0x932fx2,_0x932fx3,_0x932fx5){_0x932fx2[_0x2030[7]](_0x2030[6],_0x932fx3)}function onRemove(_0x932fx2,_0x932fx3,_0x932fx5){_0x932fx2[_0x2030[7]](_0x2030[8],_0x932fx3)}
\ No newline at end of file
+var _0x8fc9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8fc9[0];var chatQueue=require(_0x8fc9[2])[_0x8fc9[1]];exports[_0x8fc9[3]]=function(_0xcd43x2){chatQueue[_0x8fc9[4]](function(_0xcd43x3){onSave(_0xcd43x2,_0xcd43x3)});chatQueue[_0x8fc9[5]](function(_0xcd43x3){onRemove(_0xcd43x2,_0xcd43x3)});};function onSave(_0xcd43x2,_0xcd43x3,_0xcd43x5){_0xcd43x2[_0x8fc9[7]](_0x8fc9[6],_0xcd43x3)}function onRemove(_0xcd43x2,_0xcd43x3,_0xcd43x5){_0xcd43x2[_0x8fc9[7]](_0x8fc9[8],_0xcd43x3)}
\ No newline at end of file
-var _0x7371=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x7371[0];var should=require(_0x7371[1]);var app=require(_0x7371[2]);var request=require(_0x7371[3]);describe(_0x7371[4],function(){it(_0x7371[5],function(_0xebf8x4){request(app)[_0x7371[13]](_0x7371[12])[_0x7371[11]](200)[_0x7371[11]](_0x7371[10],/json/)[_0x7371[9]](function(_0xebf8x5,_0xebf8x6){if(_0xebf8x5){return _0xebf8x4(_0xebf8x5)};_0xebf8x6[_0x7371[8]][_0x7371[1]][_0x7371[7]][_0x7371[6]](Array);_0xebf8x4();})})});
\ No newline at end of file
+var _0x8a53=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x8a53[0];var should=require(_0x8a53[1]);var app=require(_0x8a53[2]);var request=require(_0x8a53[3]);describe(_0x8a53[4],function(){it(_0x8a53[5],function(_0xd45fx4){request(app)[_0x8a53[13]](_0x8a53[12])[_0x8a53[11]](200)[_0x8a53[11]](_0x8a53[10],/json/)[_0x8a53[9]](function(_0xd45fx5,_0xd45fx6){if(_0xd45fx5){return _0xd45fx4(_0xd45fx5)};_0xd45fx6[_0x8a53[8]][_0x8a53[1]][_0x8a53[7]][_0x8a53[6]](Array);_0xd45fx4();})})});
\ No newline at end of file
-var _0x38e1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6D\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x38e1[0];var express=require(_0x38e1[1]);var controller=require(_0x38e1[2]);var auth=require(_0x38e1[3]);var router=express.Router();router[_0x38e1[6]](_0x38e1[4],controller[_0x38e1[5]]);router[_0x38e1[6]](_0x38e1[7],auth[_0x38e1[8]](),controller[_0x38e1[9]]);router[_0x38e1[6]](_0x38e1[10],controller[_0x38e1[11]]);router[_0x38e1[13]](_0x38e1[4],controller[_0x38e1[12]]);router[_0x38e1[13]](_0x38e1[14],controller[_0x38e1[15]]);router[_0x38e1[17]](_0x38e1[10],controller[_0x38e1[16]]);router[_0x38e1[17]](_0x38e1[14],controller[_0x38e1[18]]);router[_0x38e1[19]](_0x38e1[10],controller[_0x38e1[16]]);router[_0x38e1[21]](_0x38e1[4],controller[_0x38e1[20]]);router[_0x38e1[21]](_0x38e1[10],controller[_0x38e1[22]]);module[_0x38e1[23]]=router;
\ No newline at end of file
+var _0x9560=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6D\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x9560[0];var express=require(_0x9560[1]);var controller=require(_0x9560[2]);var auth=require(_0x9560[3]);var router=express.Router();router[_0x9560[6]](_0x9560[4],controller[_0x9560[5]]);router[_0x9560[6]](_0x9560[7],auth[_0x9560[8]](),controller[_0x9560[9]]);router[_0x9560[6]](_0x9560[10],controller[_0x9560[11]]);router[_0x9560[13]](_0x9560[4],controller[_0x9560[12]]);router[_0x9560[13]](_0x9560[14],controller[_0x9560[15]]);router[_0x9560[17]](_0x9560[10],controller[_0x9560[16]]);router[_0x9560[17]](_0x9560[14],controller[_0x9560[18]]);router[_0x9560[19]](_0x9560[10],controller[_0x9560[16]]);router[_0x9560[21]](_0x9560[4],controller[_0x9560[20]]);router[_0x9560[21]](_0x9560[10],controller[_0x9560[22]]);module[_0x9560[23]]=router;
\ No newline at end of file
-var _0xea50=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D\x73","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x55\x73\x65\x72\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x67\x65\x74\x55\x73\x65\x72\x73","\x75\x73\x65\x72\x73","\x71\x75\x65\x72\x79","\x73\x65\x74\x55\x73\x65\x72\x73","\x73\x70\x72\x65\x61\x64","\x62\x61\x73\x65\x36\x34","\x73\x6F\x72\x74","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6F\x70\x65\x6E","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x54\x79\x70\x65","\x74\x79\x70\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x47\x72\x6F\x75\x70\x73","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79"];_0xea50[0];var _=require(_0xea50[1]);var md5=require(_0xea50[2]);var moment=require(_0xea50[3]);var User=require(_0xea50[5])[_0xea50[4]];var ChatRoom=require(_0xea50[5])[_0xea50[6]];var ChatMessage=require(_0xea50[5])[_0xea50[7]];var ChatVisitor=require(_0xea50[5])[_0xea50[8]];var UserHasChatRoom=require(_0xea50[5])[_0xea50[9]];exports[_0xea50[10]]=function(_0x9fbax9,_0x9fbaxa){return ChatRoom[_0xea50[15]]({include:[User,ChatMessage,ChatVisitor]})[_0xea50[14]](function(_0x9fbaxc){return _0x9fbaxa[_0xea50[13]](200)[_0xea50[12]](_0x9fbaxc)})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};exports[_0xea50[16]]=function(_0x9fbax9,_0x9fbaxa){return User[_0xea50[26]](_0x9fbax9[_0xea50[25]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxe){return _0x9fbaxe[_0xea50[24]]({include:[{model:ChatVisitor,attributes:[_0xea50[18],_0xea50[19],_0xea50[20]]},{model:User,attributes:[_0xea50[18],_0xea50[21],_0xea50[19],_0xea50[20],_0xea50[22],_0xea50[23]]}]})})[_0xea50[14]](function(_0x9fbaxd){if(!_0x9fbaxd){return _0x9fbaxa[_0xea50[17]](404)};return _0x9fbaxa[_0xea50[12]](_0x9fbaxd);})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};exports[_0xea50[27]]=function(_0x9fbax9,_0x9fbaxa){return ChatRoom[_0xea50[26]](_0x9fbax9[_0xea50[28]][_0xea50[18]],{include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xea50[18],_0xea50[20],_0xea50[19]]},{model:User,attributes:[_0xea50[18],_0xea50[20],_0xea50[21],_0xea50[19]]}]},{model:User,attributes:[_0xea50[18],_0xea50[20],_0xea50[21],_0xea50[19]]}]})[_0xea50[14]](function(_0x9fbaxf){if(!_0x9fbaxf){return _0x9fbaxa[_0xea50[17]](404)};return _0x9fbaxa[_0xea50[12]](_0x9fbaxf);})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};exports[_0xea50[29]]=function(_0x9fbax9,_0x9fbaxa,_0x9fbax10){var _0x9fbax11;return ChatRoom[_0xea50[41]]({where:{token:md5(JSON[_0xea50[39]](_0x9fbax9[_0xea50[34]][_0xea50[33]][_0xea50[38]]())).toString(_0xea50[37])},defaults:{type:_0xea50[23],token:md5(JSON[_0xea50[39]](_0x9fbax9[_0xea50[34]][_0xea50[33]][_0xea50[38]]())).toString(_0xea50[37]),status:_0xea50[40]},include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xea50[18],_0xea50[20],_0xea50[19]]},{model:User,attributes:[_0xea50[18],_0xea50[21],_0xea50[19],_0xea50[20],_0xea50[22],_0xea50[23]]}]},{model:User,attributes:[_0xea50[18],_0xea50[21],_0xea50[19],_0xea50[20],_0xea50[22],_0xea50[23]]}]})[_0xea50[36]](function(_0x9fbaxf,_0x9fbax13){_0x9fbax11=_0x9fbaxf;if(_0x9fbax13){return _0x9fbax11[_0xea50[35]](_0x9fbax9[_0xea50[34]][_0xea50[33]])}else {return };})[_0xea50[14]](function(){return _0x9fbax11[_0xea50[32]]()})[_0xea50[14]](function(_0x9fbax12){return _0x9fbaxa[_0xea50[13]](200)[_0xea50[12]](_[_0xea50[31]](_0x9fbax11[_0xea50[30]],{Users:_0x9fbax12}))})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)});};exports[_0xea50[42]]=function(_0x9fbax9,_0x9fbaxa){User[_0xea50[26]](_0x9fbax9[_0xea50[25]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxe){_0x9fbaxe[_0xea50[24]]({where:{type:_0x9fbax9[_0xea50[28]][_0xea50[43]]},include:[{model:ChatVisitor,attributes:[_0xea50[18],_0xea50[19],_0xea50[20]]}]})[_0xea50[14]](function(_0x9fbaxd){if(!_0x9fbaxd){return _0x9fbaxa[_0xea50[17]](404)};return _0x9fbaxa[_0xea50[12]](_0x9fbaxd);})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};exports[_0xea50[44]]=function(_0x9fbax9,_0x9fbaxa){User[_0xea50[26]](_0x9fbax9[_0xea50[25]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxe){_0x9fbaxe[_0xea50[24]]({include:[{model:ChatVisitor,attributes:[_0xea50[18],_0xea50[19],_0xea50[20]]},{model:User,attributes:[_0xea50[18],_0xea50[21],_0xea50[19],_0xea50[20],_0xea50[22],_0xea50[23]]}]})[_0xea50[14]](function(_0x9fbaxd){if(!_0x9fbaxd){return _0x9fbaxa[_0xea50[17]](404)};return _0x9fbaxa[_0xea50[12]](_0x9fbaxd);})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};exports[_0xea50[45]]=function(_0x9fbax9,_0x9fbaxa){};exports[_0xea50[46]]=function(_0x9fbax9,_0x9fbaxa){if(_0x9fbax9[_0xea50[47]][_0xea50[18]]){delete _0x9fbax9[_0xea50[47]][_0xea50[18]]};ChatRoom[_0xea50[26]](_0x9fbax9[_0xea50[28]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxf){if(!_0x9fbaxf){return _0x9fbaxa[_0xea50[17]](404)};var _0x9fbax14=_[_0xea50[31]](_0x9fbaxf,_0x9fbax9[_0xea50[47]]);_0x9fbax14[_0xea50[48]]()[_0xea50[14]](function(){return _0x9fbaxa[_0xea50[13]](200)[_0xea50[12]](_0x9fbaxf)})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)});})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)});};exports[_0xea50[49]]=function(_0x9fbax9,_0x9fbaxa){var _0x9fbax11;if(_0x9fbax9[_0xea50[47]][_0xea50[18]]){delete _0x9fbax9[_0xea50[47]][_0xea50[18]]};return ChatRoom[_0xea50[26]](_0x9fbax9[_0xea50[28]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxf){if(!_0x9fbaxf||!_0x9fbax9[_0xea50[47]][_0xea50[33]]){return _0x9fbaxa[_0xea50[17]](404)};return _0x9fbaxf;})[_0xea50[14]](function(_0x9fbaxf){return _0x9fbaxf[_0xea50[46]]({token:md5(JSON[_0xea50[39]](_0x9fbax9[_0xea50[47]][_0xea50[33]][_0xea50[38]]())).toString(_0xea50[37])})})[_0xea50[14]](function(_0x9fbaxf){_0x9fbax11=_0x9fbaxf;return _0x9fbaxf[_0xea50[35]](_0x9fbax9[_0xea50[47]][_0xea50[33]][_0xea50[38]](),{individualHooks:true});})[_0xea50[14]](function(){return _0x9fbax11[_0xea50[32]]()})[_0xea50[14]](function(_0x9fbax12){return _0x9fbaxa[_0xea50[13]](200)[_0xea50[12]](_[_0xea50[31]](_0x9fbax11[_0xea50[30]],{Users:_0x9fbax12,ChatMessages:[]}))})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)});};exports[_0xea50[50]]=function(_0x9fbax9,_0x9fbaxa){ChatRoom[_0xea50[26]](_0x9fbax9[_0xea50[28]][_0xea50[18]])[_0xea50[14]](function(_0x9fbaxf){if(!_0x9fbaxf){return _0x9fbaxa[_0xea50[17]](404)};_0x9fbaxf[_0xea50[50]]()[_0xea50[14]](function(){return _0x9fbaxa[_0xea50[17]](204)})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)});})[_0xea50[11]](function(_0x9fbaxb){return handleError(_0x9fbaxa,_0x9fbaxb)})};function handleError(_0x9fbaxa,_0x9fbaxb){return _0x9fbaxa[_0xea50[13]](500)[_0xea50[12]](_0x9fbaxb)}
\ No newline at end of file
+var _0x2185=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x64\x35","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x69\x64","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x67\x65\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D\x73","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77","\x70\x61\x72\x61\x6D\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x55\x73\x65\x72\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x67\x65\x74\x55\x73\x65\x72\x73","\x75\x73\x65\x72\x73","\x71\x75\x65\x72\x79","\x73\x65\x74\x55\x73\x65\x72\x73","\x73\x70\x72\x65\x61\x64","\x62\x61\x73\x65\x36\x34","\x73\x6F\x72\x74","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6F\x70\x65\x6E","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x54\x79\x70\x65","\x74\x79\x70\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x47\x72\x6F\x75\x70\x73","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79"];_0x2185[0];var _=require(_0x2185[1]);var md5=require(_0x2185[2]);var moment=require(_0x2185[3]);var User=require(_0x2185[5])[_0x2185[4]];var ChatRoom=require(_0x2185[5])[_0x2185[6]];var ChatMessage=require(_0x2185[5])[_0x2185[7]];var ChatVisitor=require(_0x2185[5])[_0x2185[8]];var UserHasChatRoom=require(_0x2185[5])[_0x2185[9]];exports[_0x2185[10]]=function(_0x9ee5x9,_0x9ee5xa){return ChatRoom[_0x2185[21]]({include:[{model:User,attributes:[_0x2185[15],_0x2185[16],_0x2185[17],_0x2185[18],_0x2185[19],_0x2185[20]]},{model:ChatMessage},{model:ChatVisitor}]})[_0x2185[14]](function(_0x9ee5xc){return _0x9ee5xa[_0x2185[13]](200)[_0x2185[12]](_0x9ee5xc)})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};exports[_0x2185[22]]=function(_0x9ee5x9,_0x9ee5xa){return User[_0x2185[26]](_0x9ee5x9[_0x2185[25]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xe){return _0x9ee5xe[_0x2185[24]]({include:[{model:ChatVisitor,attributes:[_0x2185[15],_0x2185[17],_0x2185[18]]},{model:User,attributes:[_0x2185[15],_0x2185[16],_0x2185[17],_0x2185[18],_0x2185[19],_0x2185[20]]}]})})[_0x2185[14]](function(_0x9ee5xd){if(!_0x9ee5xd){return _0x9ee5xa[_0x2185[23]](404)};return _0x9ee5xa[_0x2185[12]](_0x9ee5xd);})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};exports[_0x2185[27]]=function(_0x9ee5x9,_0x9ee5xa){return ChatRoom[_0x2185[26]](_0x9ee5x9[_0x2185[28]][_0x2185[15]],{include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0x2185[15],_0x2185[18],_0x2185[17]]},{model:User,attributes:[_0x2185[15],_0x2185[18],_0x2185[16],_0x2185[17]]}]},{model:User,attributes:[_0x2185[15],_0x2185[18],_0x2185[16],_0x2185[17]]}]})[_0x2185[14]](function(_0x9ee5xf){if(!_0x9ee5xf){return _0x9ee5xa[_0x2185[23]](404)};return _0x9ee5xa[_0x2185[12]](_0x9ee5xf);})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};exports[_0x2185[29]]=function(_0x9ee5x9,_0x9ee5xa,_0x9ee5x10){var _0x9ee5x11;return ChatRoom[_0x2185[41]]({where:{token:md5(JSON[_0x2185[39]](_0x9ee5x9[_0x2185[34]][_0x2185[33]][_0x2185[38]]())).toString(_0x2185[37])},defaults:{type:_0x2185[20],token:md5(JSON[_0x2185[39]](_0x9ee5x9[_0x2185[34]][_0x2185[33]][_0x2185[38]]())).toString(_0x2185[37]),status:_0x2185[40]},include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0x2185[15],_0x2185[18],_0x2185[17]]},{model:User,attributes:[_0x2185[15],_0x2185[16],_0x2185[17],_0x2185[18],_0x2185[19],_0x2185[20]]}]},{model:User,attributes:[_0x2185[15],_0x2185[16],_0x2185[17],_0x2185[18],_0x2185[19],_0x2185[20]]}]})[_0x2185[36]](function(_0x9ee5xf,_0x9ee5x13){_0x9ee5x11=_0x9ee5xf;if(_0x9ee5x13){return _0x9ee5x11[_0x2185[35]](_0x9ee5x9[_0x2185[34]][_0x2185[33]])}else {return };})[_0x2185[14]](function(){return _0x9ee5x11[_0x2185[32]]()})[_0x2185[14]](function(_0x9ee5x12){return _0x9ee5xa[_0x2185[13]](200)[_0x2185[12]](_[_0x2185[31]](_0x9ee5x11[_0x2185[30]],{Users:_0x9ee5x12}))})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)});};exports[_0x2185[42]]=function(_0x9ee5x9,_0x9ee5xa){User[_0x2185[26]](_0x9ee5x9[_0x2185[25]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xe){_0x9ee5xe[_0x2185[24]]({where:{type:_0x9ee5x9[_0x2185[28]][_0x2185[43]]},include:[{model:ChatVisitor,attributes:[_0x2185[15],_0x2185[17],_0x2185[18]]}]})[_0x2185[14]](function(_0x9ee5xd){if(!_0x9ee5xd){return _0x9ee5xa[_0x2185[23]](404)};return _0x9ee5xa[_0x2185[12]](_0x9ee5xd);})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};exports[_0x2185[44]]=function(_0x9ee5x9,_0x9ee5xa){User[_0x2185[26]](_0x9ee5x9[_0x2185[25]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xe){_0x9ee5xe[_0x2185[24]]({include:[{model:ChatVisitor,attributes:[_0x2185[15],_0x2185[17],_0x2185[18]]},{model:User,attributes:[_0x2185[15],_0x2185[16],_0x2185[17],_0x2185[18],_0x2185[19],_0x2185[20]]}]})[_0x2185[14]](function(_0x9ee5xd){if(!_0x9ee5xd){return _0x9ee5xa[_0x2185[23]](404)};return _0x9ee5xa[_0x2185[12]](_0x9ee5xd);})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};exports[_0x2185[45]]=function(_0x9ee5x9,_0x9ee5xa){};exports[_0x2185[46]]=function(_0x9ee5x9,_0x9ee5xa){if(_0x9ee5x9[_0x2185[47]][_0x2185[15]]){delete _0x9ee5x9[_0x2185[47]][_0x2185[15]]};ChatRoom[_0x2185[26]](_0x9ee5x9[_0x2185[28]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xf){if(!_0x9ee5xf){return _0x9ee5xa[_0x2185[23]](404)};var _0x9ee5x14=_[_0x2185[31]](_0x9ee5xf,_0x9ee5x9[_0x2185[47]]);_0x9ee5x14[_0x2185[48]]()[_0x2185[14]](function(){return _0x9ee5xa[_0x2185[13]](200)[_0x2185[12]](_0x9ee5xf)})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)});})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)});};exports[_0x2185[49]]=function(_0x9ee5x9,_0x9ee5xa){var _0x9ee5x11;if(_0x9ee5x9[_0x2185[47]][_0x2185[15]]){delete _0x9ee5x9[_0x2185[47]][_0x2185[15]]};return ChatRoom[_0x2185[26]](_0x9ee5x9[_0x2185[28]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xf){if(!_0x9ee5xf||!_0x9ee5x9[_0x2185[47]][_0x2185[33]]){return _0x9ee5xa[_0x2185[23]](404)};return _0x9ee5xf;})[_0x2185[14]](function(_0x9ee5xf){return _0x9ee5xf[_0x2185[46]]({token:md5(JSON[_0x2185[39]](_0x9ee5x9[_0x2185[47]][_0x2185[33]][_0x2185[38]]())).toString(_0x2185[37])})})[_0x2185[14]](function(_0x9ee5xf){_0x9ee5x11=_0x9ee5xf;return _0x9ee5xf[_0x2185[35]](_0x9ee5x9[_0x2185[47]][_0x2185[33]][_0x2185[38]](),{individualHooks:true});})[_0x2185[14]](function(){return _0x9ee5x11[_0x2185[32]]()})[_0x2185[14]](function(_0x9ee5x12){return _0x9ee5xa[_0x2185[13]](200)[_0x2185[12]](_[_0x2185[31]](_0x9ee5x11[_0x2185[30]],{Users:_0x9ee5x12,ChatMessages:[]}))})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)});};exports[_0x2185[50]]=function(_0x9ee5x9,_0x9ee5xa){ChatRoom[_0x2185[26]](_0x9ee5x9[_0x2185[28]][_0x2185[15]])[_0x2185[14]](function(_0x9ee5xf){if(!_0x9ee5xf){return _0x9ee5xa[_0x2185[23]](404)};_0x9ee5xf[_0x2185[50]]()[_0x2185[14]](function(){return _0x9ee5xa[_0x2185[23]](204)})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)});})[_0x2185[11]](function(_0x9ee5xb){return handleError(_0x9ee5xa,_0x9ee5xb)})};function handleError(_0x9ee5xa,_0x9ee5xb){return _0x9ee5xa[_0x2185[13]](500)[_0x2185[12]](_0x9ee5xb)}
\ No newline at end of file
-var _0x5055=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5055[0];var User=require(_0x5055[2])[_0x5055[1]];var ChatRoom=require(_0x5055[2])[_0x5055[3]];var ChatMessage=require(_0x5055[2])[_0x5055[4]];var ChatVisitor=require(_0x5055[2])[_0x5055[5]];exports[_0x5055[6]]=function(_0xa510x5){ChatRoom[_0x5055[7]](function(_0xa510x6){onSave(_0xa510x5,_0xa510x6)});ChatRoom[_0x5055[8]](function(_0xa510x6){onSave(_0xa510x5,_0xa510x6)});ChatRoom[_0x5055[9]](function(_0xa510x6){onRemove(_0xa510x5,_0xa510x6)});};function onSave(_0xa510x5,_0xa510x6,_0xa510x8){_0xa510x5[_0x5055[11]](_0x5055[10],_0xa510x6)}function onRemove(_0xa510x5,_0xa510x6,_0xa510x8){_0xa510x5[_0x5055[11]](_0x5055[12],_0xa510x6)}
\ No newline at end of file
+var _0x54ed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x54ed[0];var User=require(_0x54ed[2])[_0x54ed[1]];var ChatRoom=require(_0x54ed[2])[_0x54ed[3]];var ChatMessage=require(_0x54ed[2])[_0x54ed[4]];var ChatVisitor=require(_0x54ed[2])[_0x54ed[5]];exports[_0x54ed[6]]=function(_0xc82fx5){ChatRoom[_0x54ed[7]](function(_0xc82fx6){onSave(_0xc82fx5,_0xc82fx6)});ChatRoom[_0x54ed[8]](function(_0xc82fx6){onSave(_0xc82fx5,_0xc82fx6)});ChatRoom[_0x54ed[9]](function(_0xc82fx6){onRemove(_0xc82fx5,_0xc82fx6)});};function onSave(_0xc82fx5,_0xc82fx6,_0xc82fx8){_0xc82fx5[_0x54ed[11]](_0x54ed[10],_0xc82fx6)}function onRemove(_0xc82fx5,_0xc82fx6,_0xc82fx8){_0xc82fx5[_0x54ed[11]](_0x54ed[12],_0xc82fx6)}
\ No newline at end of file
-var _0x2a1e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0x2a1e[0];var should=require(_0x2a1e[1]);var app=require(_0x2a1e[2]);var request=require(_0x2a1e[3]);describe(_0x2a1e[4],function(){it(_0x2a1e[5],function(_0x5855x4){request(app)[_0x2a1e[13]](_0x2a1e[12])[_0x2a1e[11]](200)[_0x2a1e[11]](_0x2a1e[10],/json/)[_0x2a1e[9]](function(_0x5855x5,_0x5855x6){if(_0x5855x5){return _0x5855x4(_0x5855x5)};_0x5855x6[_0x2a1e[8]][_0x2a1e[1]][_0x2a1e[7]][_0x2a1e[6]](Array);_0x5855x4();})})});
\ No newline at end of file
+var _0x8ab1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0x8ab1[0];var should=require(_0x8ab1[1]);var app=require(_0x8ab1[2]);var request=require(_0x8ab1[3]);describe(_0x8ab1[4],function(){it(_0x8ab1[5],function(_0x2027x4){request(app)[_0x8ab1[13]](_0x8ab1[12])[_0x8ab1[11]](200)[_0x8ab1[11]](_0x8ab1[10],/json/)[_0x8ab1[9]](function(_0x2027x5,_0x2027x6){if(_0x2027x5){return _0x2027x4(_0x2027x5)};_0x2027x6[_0x8ab1[8]][_0x8ab1[1]][_0x8ab1[7]][_0x8ab1[6]](Array);_0x2027x4();})})});
\ No newline at end of file
-var _0x9c63=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6D\x65","\x2F\x75\x73\x65\x72\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x55\x73\x65\x72\x73","\x2F\x67\x72\x6F\x75\x70\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x47\x72\x6F\x75\x70\x73","\x2F\x74\x79\x70\x65\x2F\x3A\x74\x79\x70\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x54\x79\x70\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x75\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65\x55\x73\x65\x72\x73","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9c63[0];var express=require(_0x9c63[1]);var controller=require(_0x9c63[2]);var auth=require(_0x9c63[3]);var router=express.Router();router[_0x9c63[6]](_0x9c63[4],controller[_0x9c63[5]]);router[_0x9c63[6]](_0x9c63[7],auth[_0x9c63[8]](),controller[_0x9c63[9]]);router[_0x9c63[6]](_0x9c63[10],auth[_0x9c63[8]](),controller[_0x9c63[11]]);router[_0x9c63[6]](_0x9c63[12],auth[_0x9c63[8]](),controller[_0x9c63[13]]);router[_0x9c63[6]](_0x9c63[14],auth[_0x9c63[8]](),controller[_0x9c63[15]]);router[_0x9c63[6]](_0x9c63[16],controller[_0x9c63[17]]);router[_0x9c63[19]](_0x9c63[4],auth[_0x9c63[8]](),controller[_0x9c63[18]]);router[_0x9c63[21]](_0x9c63[16],controller[_0x9c63[20]]);router[_0x9c63[21]](_0x9c63[22],controller[_0x9c63[23]]);router[_0x9c63[24]](_0x9c63[16],controller[_0x9c63[20]]);router[_0x9c63[26]](_0x9c63[16],controller[_0x9c63[25]]);module[_0x9c63[27]]=router;
\ No newline at end of file
+var _0x586a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x68\x61\x73\x43\x68\x61\x74","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6D\x65","\x2F\x75\x73\x65\x72\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x55\x73\x65\x72\x73","\x2F\x67\x72\x6F\x75\x70\x73","\x67\x65\x74\x52\x6F\x6F\x6D\x47\x72\x6F\x75\x70\x73","\x2F\x74\x79\x70\x65\x2F\x3A\x74\x79\x70\x65","\x67\x65\x74\x52\x6F\x6F\x6D\x42\x79\x54\x79\x70\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x75\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65\x55\x73\x65\x72\x73","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x586a[0];var express=require(_0x586a[1]);var controller=require(_0x586a[2]);var auth=require(_0x586a[3]);var license=require(_0x586a[4]);var router=express.Router();router[_0x586a[9]](_0x586a[5],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[8]]);router[_0x586a[9]](_0x586a[10],license[_0x586a[6]](),license[_0x586a[7]](),auth[_0x586a[11]](),controller[_0x586a[12]]);router[_0x586a[9]](_0x586a[13],license[_0x586a[6]](),license[_0x586a[7]](),auth[_0x586a[11]](),controller[_0x586a[14]]);router[_0x586a[9]](_0x586a[15],license[_0x586a[6]](),license[_0x586a[7]](),auth[_0x586a[11]](),controller[_0x586a[16]]);router[_0x586a[9]](_0x586a[17],license[_0x586a[6]](),license[_0x586a[7]](),auth[_0x586a[11]](),controller[_0x586a[18]]);router[_0x586a[9]](_0x586a[19],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[20]]);router[_0x586a[22]](_0x586a[5],license[_0x586a[6]](),license[_0x586a[7]](),auth[_0x586a[11]](),controller[_0x586a[21]]);router[_0x586a[24]](_0x586a[19],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[23]]);router[_0x586a[24]](_0x586a[25],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[26]]);router[_0x586a[27]](_0x586a[19],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[23]]);router[_0x586a[29]](_0x586a[19],license[_0x586a[6]](),license[_0x586a[7]](),controller[_0x586a[28]]);module[_0x586a[30]]=router;
\ No newline at end of file
-var _0xfd23=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xfd23[0];var _=require(_0xfd23[1]);var ChatVisitor=require(_0xfd23[3])[_0xfd23[2]];exports[_0xfd23[4]]=function(_0x4950x3,_0x4950x4){ChatVisitor[_0xfd23[9]]()[_0xfd23[8]](function(_0x4950x6){return _0x4950x4[_0xfd23[7]](200)[_0xfd23[6]](_0x4950x6)})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)})};exports[_0xfd23[10]]=function(_0x4950x3,_0x4950x4){ChatVisitor[_0xfd23[14]](_0x4950x3[_0xfd23[13]][_0xfd23[12]])[_0xfd23[8]](function(_0x4950x7){if(!_0x4950x7){return _0x4950x4[_0xfd23[11]](404)};return _0x4950x4[_0xfd23[6]](_0x4950x7);})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)})};exports[_0xfd23[15]]=function(_0x4950x3,_0x4950x4){ChatVisitor[_0xfd23[15]](_0x4950x3[_0xfd23[16]])[_0xfd23[8]](function(_0x4950x7){return _0x4950x4[_0xfd23[7]](201)[_0xfd23[6]](_0x4950x7)})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)})};exports[_0xfd23[17]]=function(_0x4950x3,_0x4950x4){if(_0x4950x3[_0xfd23[16]][_0xfd23[12]]){delete _0x4950x3[_0xfd23[16]][_0xfd23[12]]};ChatVisitor[_0xfd23[14]](_0x4950x3[_0xfd23[13]][_0xfd23[12]])[_0xfd23[8]](function(_0x4950x7){if(!_0x4950x7){return _0x4950x4[_0xfd23[11]](404)};var _0x4950x8=_[_0xfd23[18]](_0x4950x7,_0x4950x3[_0xfd23[16]]);_0x4950x8[_0xfd23[19]]()[_0xfd23[8]](function(){return _0x4950x4[_0xfd23[7]](200)[_0xfd23[6]](_0x4950x7)})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)});})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)});};exports[_0xfd23[20]]=function(_0x4950x3,_0x4950x4){ChatVisitor[_0xfd23[14]](_0x4950x3[_0xfd23[13]][_0xfd23[12]])[_0xfd23[8]](function(_0x4950x7){if(!_0x4950x7){return _0x4950x4[_0xfd23[11]](404)};_0x4950x7[_0xfd23[20]]()[_0xfd23[8]](function(){return _0x4950x4[_0xfd23[11]](204)})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)});})[_0xfd23[5]](function(_0x4950x5){return handleError(_0x4950x4,_0x4950x5)})};function handleError(_0x4950x4,_0x4950x5){return _0x4950x4[_0xfd23[7]](500)[_0xfd23[6]](_0x4950x5)}
\ No newline at end of file
+var _0xba18=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xba18[0];var _=require(_0xba18[1]);var ChatVisitor=require(_0xba18[3])[_0xba18[2]];exports[_0xba18[4]]=function(_0xce8bx3,_0xce8bx4){ChatVisitor[_0xba18[9]]()[_0xba18[8]](function(_0xce8bx6){return _0xce8bx4[_0xba18[7]](200)[_0xba18[6]](_0xce8bx6)})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)})};exports[_0xba18[10]]=function(_0xce8bx3,_0xce8bx4){ChatVisitor[_0xba18[14]](_0xce8bx3[_0xba18[13]][_0xba18[12]])[_0xba18[8]](function(_0xce8bx7){if(!_0xce8bx7){return _0xce8bx4[_0xba18[11]](404)};return _0xce8bx4[_0xba18[6]](_0xce8bx7);})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)})};exports[_0xba18[15]]=function(_0xce8bx3,_0xce8bx4){ChatVisitor[_0xba18[15]](_0xce8bx3[_0xba18[16]])[_0xba18[8]](function(_0xce8bx7){return _0xce8bx4[_0xba18[7]](201)[_0xba18[6]](_0xce8bx7)})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)})};exports[_0xba18[17]]=function(_0xce8bx3,_0xce8bx4){if(_0xce8bx3[_0xba18[16]][_0xba18[12]]){delete _0xce8bx3[_0xba18[16]][_0xba18[12]]};ChatVisitor[_0xba18[14]](_0xce8bx3[_0xba18[13]][_0xba18[12]])[_0xba18[8]](function(_0xce8bx7){if(!_0xce8bx7){return _0xce8bx4[_0xba18[11]](404)};var _0xce8bx8=_[_0xba18[18]](_0xce8bx7,_0xce8bx3[_0xba18[16]]);_0xce8bx8[_0xba18[19]]()[_0xba18[8]](function(){return _0xce8bx4[_0xba18[7]](200)[_0xba18[6]](_0xce8bx7)})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)});})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)});};exports[_0xba18[20]]=function(_0xce8bx3,_0xce8bx4){ChatVisitor[_0xba18[14]](_0xce8bx3[_0xba18[13]][_0xba18[12]])[_0xba18[8]](function(_0xce8bx7){if(!_0xce8bx7){return _0xce8bx4[_0xba18[11]](404)};_0xce8bx7[_0xba18[20]]()[_0xba18[8]](function(){return _0xce8bx4[_0xba18[11]](204)})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)});})[_0xba18[5]](function(_0xce8bx5){return handleError(_0xce8bx4,_0xce8bx5)})};function handleError(_0xce8bx4,_0xce8bx5){return _0xce8bx4[_0xba18[7]](500)[_0xba18[6]](_0xce8bx5)}
\ No newline at end of file
-var _0x1367=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1367[0];var chat_visitor=require(_0x1367[2])[_0x1367[1]];exports[_0x1367[3]]=function(_0xaddcx2){chat_visitor[_0x1367[4]](function(_0xaddcx3){onSave(_0xaddcx2,_0xaddcx3)});chat_visitor[_0x1367[5]](function(_0xaddcx3){onSave(_0xaddcx2,_0xaddcx3)});chat_visitor[_0x1367[6]](function(_0xaddcx3){onRemove(_0xaddcx2,_0xaddcx3)});};function onSave(_0xaddcx2,_0xaddcx3,_0xaddcx5){_0xaddcx2[_0x1367[8]](_0x1367[7],_0xaddcx3)}function onRemove(_0xaddcx2,_0xaddcx3,_0xaddcx5){_0xaddcx2[_0x1367[8]](_0x1367[9],_0xaddcx3)}
\ No newline at end of file
+var _0x96b0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x96b0[0];var chat_visitor=require(_0x96b0[2])[_0x96b0[1]];exports[_0x96b0[3]]=function(_0xacadx2){chat_visitor[_0x96b0[4]](function(_0xacadx3){onSave(_0xacadx2,_0xacadx3)});chat_visitor[_0x96b0[5]](function(_0xacadx3){onSave(_0xacadx2,_0xacadx3)});chat_visitor[_0x96b0[6]](function(_0xacadx3){onRemove(_0xacadx2,_0xacadx3)});};function onSave(_0xacadx2,_0xacadx3,_0xacadx5){_0xacadx2[_0x96b0[8]](_0x96b0[7],_0xacadx3)}function onRemove(_0xacadx2,_0xacadx3,_0xacadx5){_0xacadx2[_0x96b0[8]](_0x96b0[9],_0xacadx3)}
\ No newline at end of file
-var _0xe27b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x67\x65\x74"];_0xe27b[0];var should=require(_0xe27b[1]);var app=require(_0xe27b[2]);var request=require(_0xe27b[3]);describe(_0xe27b[4],function(){it(_0xe27b[5],function(_0x5469x4){request(app)[_0xe27b[13]](_0xe27b[12])[_0xe27b[11]](200)[_0xe27b[11]](_0xe27b[10],/json/)[_0xe27b[9]](function(_0x5469x5,_0x5469x6){if(_0x5469x5){return _0x5469x4(_0x5469x5)};_0x5469x6[_0xe27b[8]][_0xe27b[1]][_0xe27b[7]][_0xe27b[6]](Array);_0x5469x4();})})});
\ No newline at end of file
+var _0xe88c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x67\x65\x74"];_0xe88c[0];var should=require(_0xe88c[1]);var app=require(_0xe88c[2]);var request=require(_0xe88c[3]);describe(_0xe88c[4],function(){it(_0xe88c[5],function(_0x7c70x4){request(app)[_0xe88c[13]](_0xe88c[12])[_0xe88c[11]](200)[_0xe88c[11]](_0xe88c[10],/json/)[_0xe88c[9]](function(_0x7c70x5,_0x7c70x6){if(_0x7c70x5){return _0x7c70x4(_0x7c70x5)};_0x7c70x6[_0xe88c[8]][_0xe88c[1]][_0xe88c[7]][_0xe88c[6]](Array);_0x7c70x4();})})});
\ No newline at end of file
-var _0x22a0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x22a0[0];var express=require(_0x22a0[1]);var controller=require(_0x22a0[2]);var router=express.Router();router[_0x22a0[5]](_0x22a0[3],controller[_0x22a0[4]]);router[_0x22a0[5]](_0x22a0[6],controller[_0x22a0[7]]);router[_0x22a0[9]](_0x22a0[3],controller[_0x22a0[8]]);router[_0x22a0[11]](_0x22a0[6],controller[_0x22a0[10]]);router[_0x22a0[12]](_0x22a0[6],controller[_0x22a0[10]]);router[_0x22a0[14]](_0x22a0[6],controller[_0x22a0[13]]);module[_0x22a0[15]]=router;
\ No newline at end of file
+var _0xff8e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xff8e[0];var express=require(_0xff8e[1]);var controller=require(_0xff8e[2]);var router=express.Router();router[_0xff8e[5]](_0xff8e[3],controller[_0xff8e[4]]);router[_0xff8e[5]](_0xff8e[6],controller[_0xff8e[7]]);router[_0xff8e[9]](_0xff8e[3],controller[_0xff8e[8]]);router[_0xff8e[11]](_0xff8e[6],controller[_0xff8e[10]]);router[_0xff8e[12]](_0xff8e[6],controller[_0xff8e[10]]);router[_0xff8e[14]](_0xff8e[6],controller[_0xff8e[13]]);module[_0xff8e[15]]=router;
\ No newline at end of file
-var _0x8029=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x6D\x75\x73\x74\x61\x63\x68\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x6E\x69\x70\x70\x65\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x6E\x69\x70\x70\x65\x74\x43\x6F\x64\x65","\x72\x65\x6E\x64\x65\x72","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x8029[0];var _=require(_0x8029[1]);var util=require(_0x8029[2]);var async=require(_0x8029[3]);var Mustache=require(_0x8029[4]);var sequelize=require(_0x8029[6])[_0x8029[5]];var ChatWebsite=require(_0x8029[6])[_0x8029[7]];var ChatApplication=require(_0x8029[6])[_0x8029[8]];var snippet=require(_0x8029[10])[_0x8029[9]];exports[_0x8029[11]]=function(_0x7fbcx9,_0x7fbcxa,_0x7fbcxb){var _0x7fbcxc=[_0x8029[12],_0x8029[13],_0x8029[14],_0x8029[15]];var _0x7fbcxd=_0x7fbcx9[_0x8029[17]][_0x8029[16]]?parseInt(_0x7fbcx9[_0x8029[17]][_0x8029[16]],10):100;var _0x7fbcxe=_0x7fbcx9[_0x8029[17]][_0x8029[18]]?parseInt(_0x7fbcx9[_0x8029[17]][_0x8029[18]],10):0;var _0x7fbcxf={where:{},limit:_0x7fbcxd,offset:_0x7fbcxe*_0x7fbcxd};_[_0x8029[32]](_0x7fbcx9[_0x8029[17]],function(_0x7fbcx10,_0x7fbcx11){switch(_0x7fbcx11){case _0x8029[16]:;case _0x8029[18]:break ;;case _0x8029[21]:_0x7fbcxf[_0x8029[19]]=util[_0x8029[24]](_0x8029[20],_0x7fbcx9[_0x8029[17]][_0x8029[21]],_0x7fbcx9[_0x8029[17]][_0x8029[22]]||_0x8029[23])||null;break ;;case _0x8029[22]:break ;;case _0x8029[30]:_0x7fbcxf[_0x8029[26]][_0x8029[25]]=[];_0x7fbcxc[_0x8029[29]](function(_0x7fbcx12){var _0x7fbcx13={};_0x7fbcx13[_0x7fbcx12]={$like:_0x8029[27]+_0x7fbcx10+_0x8029[27]};_0x7fbcxf[_0x8029[26]][_0x8029[25]][_0x8029[28]](_0x7fbcx13);});break ;;default:_0x7fbcxf[_0x8029[26]][_0x7fbcx11]={$like:{}};_0x7fbcxf[_0x8029[26]][_0x7fbcx11][_0x8029[31]]=_0x8029[27]+_0x7fbcx10+_0x8029[27];;}});ChatWebsite[_0x8029[47]](_0x7fbcxf)[_0x8029[46]](function(_0x7fbcx15){var _0x7fbcx16=Math[_0x8029[38]](_0x7fbcx15[_0x8029[37]]/_0x7fbcxd);var _0x7fbcx17=_0x7fbcx16>(_0x7fbcxf[_0x8029[39]]+1)?util[_0x8029[24]](_0x8029[40],_0x7fbcx9[_0x8029[41]],_0x7fbcx9[_0x8029[43]][_0x8029[42]],_0x7fbcx9[_0x8029[44]],_0x7fbcxe+1):null;var _0x7fbcx18=_0x7fbcxe>0?util[_0x8029[24]](_0x8029[40],_0x7fbcx9[_0x8029[41]],_0x7fbcx9[_0x8029[43]][_0x8029[42]],_0x7fbcx9[_0x8029[44]],_0x7fbcxe-1):null;_0x7fbcxa[_0x8029[35]](200)[_0x8029[34]]({count:_0x7fbcx15[_0x8029[37]],rows:_0x7fbcx15[_0x8029[45]],next_page:_0x7fbcx17,previous_page:_0x7fbcx18,total_pages:_0x7fbcx16});})[_0x8029[36]](function(_0x7fbcx14){_0x7fbcxa[_0x8029[35]](500)[_0x8029[34]]({error:_0x8029[33]})});};exports[_0x8029[48]]=function(_0x7fbcx9,_0x7fbcxa){ChatWebsite[_0x8029[52]](_0x7fbcx9[_0x8029[51]][_0x8029[50]])[_0x8029[46]](function(_0x7fbcx19){if(!_0x7fbcx19){return _0x7fbcxa[_0x8029[49]](404)};return _0x7fbcxa[_0x8029[34]](_0x7fbcx19);})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};exports[_0x8029[53]]=function(_0x7fbcx9,_0x7fbcxa){ChatWebsite[_0x8029[52]](_0x7fbcx9[_0x8029[51]][_0x8029[50]])[_0x8029[46]](function(_0x7fbcx19){var _0x7fbcx1a={remote:_0x7fbcx19[_0x8029[15]],websiteId:_0x7fbcx9[_0x8029[51]][_0x8029[50]]};var _0x7fbcx1b=Mustache[_0x8029[54]](snippet,_0x7fbcx1a);return _0x7fbcxa[_0x8029[34]](_0x7fbcx1b);})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};exports[_0x8029[55]]=function(_0x7fbcx9,_0x7fbcxa){ChatWebsite[_0x8029[55]](_0x7fbcx9[_0x8029[56]])[_0x8029[46]](function(_0x7fbcx19){return _0x7fbcxa[_0x8029[35]](201)[_0x8029[34]](_0x7fbcx19)})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};exports[_0x8029[57]]=function(_0x7fbcx9,_0x7fbcxa){if(_0x7fbcx9[_0x8029[56]][_0x8029[50]]){delete _0x7fbcx9[_0x8029[56]][_0x8029[50]]};return ChatWebsite[_0x8029[52]](_0x7fbcx9[_0x8029[51]][_0x8029[50]])[_0x8029[46]](function(_0x7fbcx19){if(!_0x7fbcx19){return _0x7fbcxa[_0x8029[49]](404)};return _0x7fbcx19[_0x8029[57]](_0x7fbcx9[_0x8029[56]])[_0x8029[46]](function(_0x7fbcx19){return _0x7fbcxa[_0x8029[35]](200)[_0x8029[34]](_0x7fbcx19)});})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)});};exports[_0x8029[58]]=function(_0x7fbcx9,_0x7fbcxa){ChatWebsite[_0x8029[59]]({where:{id:_0x7fbcx9[_0x8029[51]][_0x8029[50]]}})[_0x8029[46]](function(_0x7fbcx19){if(!_0x7fbcx19){return _0x7fbcxa[_0x8029[49]](404)};_0x7fbcx19[_0x8029[58]]()[_0x8029[46]](function(){return _0x7fbcxa[_0x8029[49]](204)})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)});})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};exports[_0x8029[60]]=function(_0x7fbcx9,_0x7fbcxa,_0x7fbcxb){ChatApplication[_0x8029[66]]({where:{id:_0x7fbcx9[_0x8029[56]][_0x8029[61]]}})[_0x8029[46]](function(_0x7fbcx1c){var _0x7fbcx1d=_0x7fbcx1c;async[_0x8029[67]]([function(_0x7fbcx1e){ChatApplication[_0x8029[58]]({where:{id:_0x7fbcx9[_0x8029[56]][_0x8029[61]]}})[_0x8029[46]](function(){_0x7fbcx1e()})[_0x8029[36]](function(_0x7fbcx14){_0x7fbcx1e(_0x7fbcx14)})},function(_0x7fbcx1e){var _0x7fbcx1f=[];for(var _0x7fbcx20=0;_0x7fbcx20<_0x7fbcx9[_0x8029[56]][_0x8029[61]][_0x8029[62]];_0x7fbcx20++){var _0x7fbcx21=_[_0x8029[59]](_0x7fbcx1d,{"\x69\x64":_0x7fbcx9[_0x8029[56]][_0x8029[61]][_0x7fbcx20]});if(_0x7fbcx21){_0x7fbcx21[_0x8029[63]]=_0x7fbcx20+1;_0x7fbcx1f[_0x8029[28]](_0x7fbcx21[_0x8029[64]]);};};ChatApplication[_0x8029[65]](_0x7fbcx1f)[_0x8029[46]](function(){_0x7fbcx1e()})[_0x8029[36]](function(_0x7fbcx14){_0x7fbcx1e(_0x7fbcx14)});},function(_0x7fbcx1e){ChatApplication[_0x8029[66]]({where:{id:_0x7fbcx9[_0x8029[56]][_0x8029[61]]},order:_0x8029[63],include:[{all:true}]})[_0x8029[46]](function(_0x7fbcx1c){_0x7fbcx1e(null,_0x7fbcx1c)})[_0x8029[36]](function(_0x7fbcx14){_0x7fbcx1e(_0x7fbcx14)})}],function(_0x7fbcx14,_0x7fbcx15){if(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)}else {return _0x7fbcxa[_0x8029[35]](201)[_0x8029[34]](_0x7fbcx15)}});})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};exports[_0x8029[68]]=function(_0x7fbcx9,_0x7fbcxa){ChatWebsite[_0x8029[58]]({where:{id:_0x7fbcx9[_0x8029[17]][_0x8029[50]]},individualHooks:true})[_0x8029[46]](function(){return _0x7fbcxa[_0x8029[49]](204)})[_0x8029[36]](function(_0x7fbcx14){return handleError(_0x7fbcxa,_0x7fbcx14)})};function handleError(_0x7fbcxa,_0x7fbcx14){return _0x7fbcxa[_0x8029[35]](500)[_0x8029[34]](_0x7fbcx14)}
\ No newline at end of file
+var _0x2b85=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x6D\x75\x73\x74\x61\x63\x68\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x73\x6E\x69\x70\x70\x65\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x6E\x69\x70\x70\x65\x74\x43\x6F\x64\x65","\x72\x65\x6E\x64\x65\x72","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x2b85[0];var _=require(_0x2b85[1]);var util=require(_0x2b85[2]);var async=require(_0x2b85[3]);var Mustache=require(_0x2b85[4]);var sequelize=require(_0x2b85[6])[_0x2b85[5]];var ChatWebsite=require(_0x2b85[6])[_0x2b85[7]];var ChatApplication=require(_0x2b85[6])[_0x2b85[8]];var snippet=require(_0x2b85[10])[_0x2b85[9]];exports[_0x2b85[11]]=function(_0x2b4bx9,_0x2b4bxa,_0x2b4bxb){var _0x2b4bxc=[_0x2b85[12],_0x2b85[13],_0x2b85[14],_0x2b85[15]];var _0x2b4bxd=_0x2b4bx9[_0x2b85[17]][_0x2b85[16]]?parseInt(_0x2b4bx9[_0x2b85[17]][_0x2b85[16]],10):100;var _0x2b4bxe=_0x2b4bx9[_0x2b85[17]][_0x2b85[18]]?parseInt(_0x2b4bx9[_0x2b85[17]][_0x2b85[18]],10):0;var _0x2b4bxf={where:{},limit:_0x2b4bxd,offset:_0x2b4bxe*_0x2b4bxd};_[_0x2b85[32]](_0x2b4bx9[_0x2b85[17]],function(_0x2b4bx10,_0x2b4bx11){switch(_0x2b4bx11){case _0x2b85[16]:;case _0x2b85[18]:break ;;case _0x2b85[21]:_0x2b4bxf[_0x2b85[19]]=util[_0x2b85[24]](_0x2b85[20],_0x2b4bx9[_0x2b85[17]][_0x2b85[21]],_0x2b4bx9[_0x2b85[17]][_0x2b85[22]]||_0x2b85[23])||null;break ;;case _0x2b85[22]:break ;;case _0x2b85[30]:_0x2b4bxf[_0x2b85[26]][_0x2b85[25]]=[];_0x2b4bxc[_0x2b85[29]](function(_0x2b4bx12){var _0x2b4bx13={};_0x2b4bx13[_0x2b4bx12]={$like:_0x2b85[27]+_0x2b4bx10+_0x2b85[27]};_0x2b4bxf[_0x2b85[26]][_0x2b85[25]][_0x2b85[28]](_0x2b4bx13);});break ;;default:_0x2b4bxf[_0x2b85[26]][_0x2b4bx11]={$like:{}};_0x2b4bxf[_0x2b85[26]][_0x2b4bx11][_0x2b85[31]]=_0x2b85[27]+_0x2b4bx10+_0x2b85[27];;}});ChatWebsite[_0x2b85[47]](_0x2b4bxf)[_0x2b85[46]](function(_0x2b4bx15){var _0x2b4bx16=Math[_0x2b85[38]](_0x2b4bx15[_0x2b85[37]]/_0x2b4bxd);var _0x2b4bx17=_0x2b4bx16>(_0x2b4bxf[_0x2b85[39]]+1)?util[_0x2b85[24]](_0x2b85[40],_0x2b4bx9[_0x2b85[41]],_0x2b4bx9[_0x2b85[43]][_0x2b85[42]],_0x2b4bx9[_0x2b85[44]],_0x2b4bxe+1):null;var _0x2b4bx18=_0x2b4bxe>0?util[_0x2b85[24]](_0x2b85[40],_0x2b4bx9[_0x2b85[41]],_0x2b4bx9[_0x2b85[43]][_0x2b85[42]],_0x2b4bx9[_0x2b85[44]],_0x2b4bxe-1):null;_0x2b4bxa[_0x2b85[35]](200)[_0x2b85[34]]({count:_0x2b4bx15[_0x2b85[37]],rows:_0x2b4bx15[_0x2b85[45]],next_page:_0x2b4bx17,previous_page:_0x2b4bx18,total_pages:_0x2b4bx16});})[_0x2b85[36]](function(_0x2b4bx14){_0x2b4bxa[_0x2b85[35]](500)[_0x2b85[34]]({error:_0x2b85[33]})});};exports[_0x2b85[48]]=function(_0x2b4bx9,_0x2b4bxa){ChatWebsite[_0x2b85[52]](_0x2b4bx9[_0x2b85[51]][_0x2b85[50]])[_0x2b85[46]](function(_0x2b4bx19){if(!_0x2b4bx19){return _0x2b4bxa[_0x2b85[49]](404)};return _0x2b4bxa[_0x2b85[34]](_0x2b4bx19);})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};exports[_0x2b85[53]]=function(_0x2b4bx9,_0x2b4bxa){ChatWebsite[_0x2b85[52]](_0x2b4bx9[_0x2b85[51]][_0x2b85[50]])[_0x2b85[46]](function(_0x2b4bx19){var _0x2b4bx1a={remote:_0x2b4bx19[_0x2b85[15]],websiteId:_0x2b4bx9[_0x2b85[51]][_0x2b85[50]]};var _0x2b4bx1b=Mustache[_0x2b85[54]](snippet,_0x2b4bx1a);return _0x2b4bxa[_0x2b85[34]](_0x2b4bx1b);})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};exports[_0x2b85[55]]=function(_0x2b4bx9,_0x2b4bxa){ChatWebsite[_0x2b85[55]](_0x2b4bx9[_0x2b85[56]])[_0x2b85[46]](function(_0x2b4bx19){return _0x2b4bxa[_0x2b85[35]](201)[_0x2b85[34]](_0x2b4bx19)})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};exports[_0x2b85[57]]=function(_0x2b4bx9,_0x2b4bxa){if(_0x2b4bx9[_0x2b85[56]][_0x2b85[50]]){delete _0x2b4bx9[_0x2b85[56]][_0x2b85[50]]};return ChatWebsite[_0x2b85[52]](_0x2b4bx9[_0x2b85[51]][_0x2b85[50]])[_0x2b85[46]](function(_0x2b4bx19){if(!_0x2b4bx19){return _0x2b4bxa[_0x2b85[49]](404)};return _0x2b4bx19[_0x2b85[57]](_0x2b4bx9[_0x2b85[56]])[_0x2b85[46]](function(_0x2b4bx19){return _0x2b4bxa[_0x2b85[35]](200)[_0x2b85[34]](_0x2b4bx19)});})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)});};exports[_0x2b85[58]]=function(_0x2b4bx9,_0x2b4bxa){ChatWebsite[_0x2b85[59]]({where:{id:_0x2b4bx9[_0x2b85[51]][_0x2b85[50]]}})[_0x2b85[46]](function(_0x2b4bx19){if(!_0x2b4bx19){return _0x2b4bxa[_0x2b85[49]](404)};_0x2b4bx19[_0x2b85[58]]()[_0x2b85[46]](function(){return _0x2b4bxa[_0x2b85[49]](204)})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)});})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};exports[_0x2b85[60]]=function(_0x2b4bx9,_0x2b4bxa,_0x2b4bxb){ChatApplication[_0x2b85[66]]({where:{id:_0x2b4bx9[_0x2b85[56]][_0x2b85[61]]}})[_0x2b85[46]](function(_0x2b4bx1c){var _0x2b4bx1d=_0x2b4bx1c;async[_0x2b85[67]]([function(_0x2b4bx1e){ChatApplication[_0x2b85[58]]({where:{id:_0x2b4bx9[_0x2b85[56]][_0x2b85[61]]}})[_0x2b85[46]](function(){_0x2b4bx1e()})[_0x2b85[36]](function(_0x2b4bx14){_0x2b4bx1e(_0x2b4bx14)})},function(_0x2b4bx1e){var _0x2b4bx1f=[];for(var _0x2b4bx20=0;_0x2b4bx20<_0x2b4bx9[_0x2b85[56]][_0x2b85[61]][_0x2b85[62]];_0x2b4bx20++){var _0x2b4bx21=_[_0x2b85[59]](_0x2b4bx1d,{"\x69\x64":_0x2b4bx9[_0x2b85[56]][_0x2b85[61]][_0x2b4bx20]});if(_0x2b4bx21){_0x2b4bx21[_0x2b85[63]]=_0x2b4bx20+1;_0x2b4bx1f[_0x2b85[28]](_0x2b4bx21[_0x2b85[64]]);};};ChatApplication[_0x2b85[65]](_0x2b4bx1f)[_0x2b85[46]](function(){_0x2b4bx1e()})[_0x2b85[36]](function(_0x2b4bx14){_0x2b4bx1e(_0x2b4bx14)});},function(_0x2b4bx1e){ChatApplication[_0x2b85[66]]({where:{id:_0x2b4bx9[_0x2b85[56]][_0x2b85[61]]},order:_0x2b85[63],include:[{all:true}]})[_0x2b85[46]](function(_0x2b4bx1c){_0x2b4bx1e(null,_0x2b4bx1c)})[_0x2b85[36]](function(_0x2b4bx14){_0x2b4bx1e(_0x2b4bx14)})}],function(_0x2b4bx14,_0x2b4bx15){if(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)}else {return _0x2b4bxa[_0x2b85[35]](201)[_0x2b85[34]](_0x2b4bx15)}});})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};exports[_0x2b85[68]]=function(_0x2b4bx9,_0x2b4bxa){ChatWebsite[_0x2b85[58]]({where:{id:_0x2b4bx9[_0x2b85[17]][_0x2b85[50]]},individualHooks:true})[_0x2b85[46]](function(){return _0x2b4bxa[_0x2b85[49]](204)})[_0x2b85[36]](function(_0x2b4bx14){return handleError(_0x2b4bxa,_0x2b4bx14)})};function handleError(_0x2b4bxa,_0x2b4bx14){return _0x2b4bxa[_0x2b85[35]](500)[_0x2b85[34]](_0x2b4bx14)}
\ No newline at end of file
-var _0x7737=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7737[0];var chat_website=require(_0x7737[2])[_0x7737[1]];exports[_0x7737[3]]=function(_0x212bx2){chat_website[_0x7737[4]](function(_0x212bx3){onSave(_0x212bx2,_0x212bx3)});chat_website[_0x7737[5]](function(_0x212bx3){onRemove(_0x212bx2,_0x212bx3)});};function onSave(_0x212bx2,_0x212bx3,_0x212bx5){_0x212bx2[_0x7737[7]](_0x7737[6],_0x212bx3)}function onRemove(_0x212bx2,_0x212bx3,_0x212bx5){_0x212bx2[_0x7737[7]](_0x7737[8],_0x212bx3)}
\ No newline at end of file
+var _0x4da2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4da2[0];var chat_website=require(_0x4da2[2])[_0x4da2[1]];exports[_0x4da2[3]]=function(_0x8766x2){chat_website[_0x4da2[4]](function(_0x8766x3){onSave(_0x8766x2,_0x8766x3)});chat_website[_0x4da2[5]](function(_0x8766x3){onRemove(_0x8766x2,_0x8766x3)});};function onSave(_0x8766x2,_0x8766x3,_0x8766x5){_0x8766x2[_0x4da2[7]](_0x4da2[6],_0x8766x3)}function onRemove(_0x8766x2,_0x8766x3,_0x8766x5){_0x8766x2[_0x4da2[7]](_0x4da2[8],_0x8766x3)}
\ No newline at end of file
-var _0x3f0d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x67\x65\x74"];_0x3f0d[0];var should=require(_0x3f0d[1]);var app=require(_0x3f0d[2]);var request=require(_0x3f0d[3]);describe(_0x3f0d[4],function(){it(_0x3f0d[5],function(_0x692bx4){request(app)[_0x3f0d[13]](_0x3f0d[12])[_0x3f0d[11]](200)[_0x3f0d[11]](_0x3f0d[10],/json/)[_0x3f0d[9]](function(_0x692bx5,_0x692bx6){if(_0x692bx5){return _0x692bx4(_0x692bx5)};_0x692bx6[_0x3f0d[8]][_0x3f0d[1]][_0x3f0d[7]][_0x3f0d[6]](Array);_0x692bx4();})})});
\ No newline at end of file
+var _0xddd3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x67\x65\x74"];_0xddd3[0];var should=require(_0xddd3[1]);var app=require(_0xddd3[2]);var request=require(_0xddd3[3]);describe(_0xddd3[4],function(){it(_0xddd3[5],function(_0xdf2bx4){request(app)[_0xddd3[13]](_0xddd3[12])[_0xddd3[11]](200)[_0xddd3[11]](_0xddd3[10],/json/)[_0xddd3[9]](function(_0xdf2bx5,_0xdf2bx6){if(_0xdf2bx5){return _0xdf2bx4(_0xdf2bx5)};_0xdf2bx6[_0xddd3[8]][_0xddd3[1]][_0xddd3[7]][_0xddd3[6]](Array);_0xdf2bx4();})})});
\ No newline at end of file
-var _0x1c9f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x73\x6E\x69\x70\x70\x65\x74","\x67\x65\x74\x53\x6E\x69\x70\x70\x65\x74\x43\x6F\x64\x65","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x1c9f[0];var express=require(_0x1c9f[1]);var controller=require(_0x1c9f[2]);var auth=require(_0x1c9f[3]);var router=express.Router();router[_0x1c9f[7]](_0x1c9f[4],auth[_0x1c9f[5]](),controller[_0x1c9f[6]]);router[_0x1c9f[7]](_0x1c9f[8],auth[_0x1c9f[5]](),controller[_0x1c9f[9]]);router[_0x1c9f[7]](_0x1c9f[10],auth[_0x1c9f[5]](),controller[_0x1c9f[11]]);router[_0x1c9f[13]](_0x1c9f[4],auth[_0x1c9f[5]](),controller[_0x1c9f[12]]);router[_0x1c9f[13]](_0x1c9f[14],auth[_0x1c9f[5]](),controller[_0x1c9f[15]]);router[_0x1c9f[17]](_0x1c9f[8],auth[_0x1c9f[5]](),controller[_0x1c9f[16]]);router[_0x1c9f[18]](_0x1c9f[8],auth[_0x1c9f[5]](),controller[_0x1c9f[16]]);router[_0x1c9f[20]](_0x1c9f[4],auth[_0x1c9f[5]](),controller[_0x1c9f[19]]);router[_0x1c9f[20]](_0x1c9f[8],auth[_0x1c9f[5]](),controller[_0x1c9f[21]]);module[_0x1c9f[22]]=router;
\ No newline at end of file
+var _0x2f9d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x73\x6E\x69\x70\x70\x65\x74","\x67\x65\x74\x53\x6E\x69\x70\x70\x65\x74\x43\x6F\x64\x65","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2f9d[0];var express=require(_0x2f9d[1]);var controller=require(_0x2f9d[2]);var auth=require(_0x2f9d[3]);var router=express.Router();router[_0x2f9d[7]](_0x2f9d[4],auth[_0x2f9d[5]](),controller[_0x2f9d[6]]);router[_0x2f9d[7]](_0x2f9d[8],auth[_0x2f9d[5]](),controller[_0x2f9d[9]]);router[_0x2f9d[7]](_0x2f9d[10],auth[_0x2f9d[5]](),controller[_0x2f9d[11]]);router[_0x2f9d[13]](_0x2f9d[4],auth[_0x2f9d[5]](),controller[_0x2f9d[12]]);router[_0x2f9d[13]](_0x2f9d[14],auth[_0x2f9d[5]](),controller[_0x2f9d[15]]);router[_0x2f9d[17]](_0x2f9d[8],auth[_0x2f9d[5]](),controller[_0x2f9d[16]]);router[_0x2f9d[18]](_0x2f9d[8],auth[_0x2f9d[5]](),controller[_0x2f9d[16]]);router[_0x2f9d[20]](_0x2f9d[4],auth[_0x2f9d[5]](),controller[_0x2f9d[19]]);router[_0x2f9d[20]](_0x2f9d[8],auth[_0x2f9d[5]](),controller[_0x2f9d[21]]);module[_0x2f9d[22]]=router;
\ No newline at end of file
-var _0x6fa9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6D\x70\x61\x6E\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x63\x6F\x6D\x70\x61\x6E\x79\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x4F\x4D\x50\x41\x4E\x59","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6fa9[0];var _=require(_0x6fa9[1]);var Company=require(_0x6fa9[3])[_0x6fa9[2]];var util=require(_0x6fa9[4]);exports[_0x6fa9[5]]=function(_0x2d12x4,_0x2d12x5){var _0x2d12x6=[_0x6fa9[6],_0x6fa9[7]];var _0x2d12x7=_0x2d12x4[_0x6fa9[9]][_0x6fa9[8]]?parseInt(_0x2d12x4[_0x6fa9[9]][_0x6fa9[8]],10):100;var _0x2d12x8=_0x2d12x4[_0x6fa9[9]][_0x6fa9[10]]?parseInt(_0x2d12x4[_0x6fa9[9]][_0x6fa9[10]],10):0;var _0x2d12x9={where:{},limit:_0x2d12x7,offset:_0x2d12x8*_0x2d12x7};_[_0x6fa9[24]](_0x2d12x4[_0x6fa9[9]],function(_0x2d12xa,_0x2d12xb){switch(_0x2d12xb){case _0x6fa9[8]:;case _0x6fa9[10]:break ;;case _0x6fa9[13]:_0x2d12x9[_0x6fa9[11]]=util[_0x6fa9[16]](_0x6fa9[12],_0x2d12x4[_0x6fa9[9]][_0x6fa9[13]],_0x2d12x4[_0x6fa9[9]][_0x6fa9[14]]||_0x6fa9[15])||null;break ;;case _0x6fa9[14]:break ;;case _0x6fa9[22]:_0x2d12x9[_0x6fa9[18]][_0x6fa9[17]]=[];_0x2d12x6[_0x6fa9[21]](function(_0x2d12xc){var _0x2d12xd={};_0x2d12xd[_0x2d12xc]={$like:_0x6fa9[19]+_0x2d12xa+_0x6fa9[19]};_0x2d12x9[_0x6fa9[18]][_0x6fa9[17]][_0x6fa9[20]](_0x2d12xd);});break ;;default:_0x2d12x9[_0x6fa9[18]][_0x2d12xb]={$like:{}};_0x2d12x9[_0x6fa9[18]][_0x2d12xb][_0x6fa9[23]]=_0x6fa9[19]+_0x2d12xa+_0x6fa9[19];;}});Company[_0x6fa9[39]](_0x2d12x9)[_0x6fa9[38]](function(_0x2d12xf){var _0x2d12x10=Math[_0x6fa9[30]](_0x2d12xf[_0x6fa9[29]]/_0x2d12x7);var _0x2d12x11=_0x2d12x10>(_0x2d12x9[_0x6fa9[31]]+1)?util[_0x6fa9[16]](_0x6fa9[32],_0x2d12x4[_0x6fa9[33]],_0x2d12x4[_0x6fa9[35]][_0x6fa9[34]],_0x2d12x4[_0x6fa9[36]],_0x2d12x8+1):null;var _0x2d12x12=_0x2d12x8>0?util[_0x6fa9[16]](_0x6fa9[32],_0x2d12x4[_0x6fa9[33]],_0x2d12x4[_0x6fa9[35]][_0x6fa9[34]],_0x2d12x4[_0x6fa9[36]],_0x2d12x8-1):null;_0x2d12x5[_0x6fa9[27]](200)[_0x6fa9[26]]({count:_0x2d12xf[_0x6fa9[29]],rows:_0x2d12xf[_0x6fa9[37]],next_page:_0x2d12x11,previous_page:_0x2d12x12,total_pages:_0x2d12x10});})[_0x6fa9[28]](function(_0x2d12xe){_0x2d12x5[_0x6fa9[27]](500)[_0x6fa9[26]]({error:_0x6fa9[25]})});};exports[_0x6fa9[40]]=function(_0x2d12x4,_0x2d12x5){console[_0x6fa9[42]](_0x2d12x4[_0x6fa9[41]]);Company[_0x6fa9[44]]({where:{name:_0x2d12x4[_0x6fa9[41]][_0x6fa9[6]]}})[_0x6fa9[38]](function(_0x2d12x13){if(!_0x2d12x13){return _0x2d12x5[_0x6fa9[43]](404)};return _0x2d12x5[_0x6fa9[26]](_0x2d12x13);})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)});};exports[_0x6fa9[45]]=function(_0x2d12x4,_0x2d12x5){Company[_0x6fa9[48]](_0x2d12x4[_0x6fa9[47]][_0x6fa9[46]])[_0x6fa9[38]](function(_0x2d12x14){if(!_0x2d12x14){return _0x2d12x5[_0x6fa9[43]](404)};return _0x2d12x5[_0x6fa9[26]](_0x2d12x14);})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)})};exports[_0x6fa9[49]]=function(_0x2d12x4,_0x2d12x5){Company[_0x6fa9[49]](_0x2d12x4[_0x6fa9[41]])[_0x6fa9[38]](function(_0x2d12x14){return _0x2d12x5[_0x6fa9[27]](201)[_0x6fa9[26]](_0x2d12x14)})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)})};exports[_0x6fa9[50]]=function(_0x2d12x4,_0x2d12x5){Company[_0x6fa9[44]]({where:{name:_0x2d12x4[_0x6fa9[41]][_0x6fa9[6]],id:{$ne:_0x2d12x4[_0x6fa9[41]][_0x6fa9[46]]}}})[_0x6fa9[38]](function(_0x2d12x13){if(!_0x2d12x13){return _0x2d12x5[_0x6fa9[43]](404)};if(_0x2d12x13[_0x6fa9[51]]>0){return _0x2d12x5[_0x6fa9[27]](500)[_0x6fa9[26]]({message:_0x6fa9[52]})};if(_0x2d12x4[_0x6fa9[41]][_0x6fa9[46]]){delete _0x2d12x4[_0x6fa9[41]][_0x6fa9[46]]};Company[_0x6fa9[55]]({where:{id:_0x2d12x4[_0x6fa9[47]][_0x6fa9[46]]}})[_0x6fa9[38]](function(_0x2d12x14){if(!_0x2d12x14){return _0x2d12x5[_0x6fa9[43]](404)};var _0x2d12x15=_[_0x6fa9[53]](_0x2d12x14,_0x2d12x4[_0x6fa9[41]]);_0x2d12x15[_0x6fa9[54]]()[_0x6fa9[38]](function(){return _0x2d12x5[_0x6fa9[27]](200)[_0x6fa9[26]](_0x2d12x14)})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)});})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)});})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)})};exports[_0x6fa9[56]]=function(_0x2d12x4,_0x2d12x5){Company[_0x6fa9[48]](_0x2d12x4[_0x6fa9[47]][_0x6fa9[46]])[_0x6fa9[38]](function(_0x2d12x14){if(!_0x2d12x14){return _0x2d12x5[_0x6fa9[43]](404)};_0x2d12x14[_0x6fa9[56]]()[_0x6fa9[38]](function(){return _0x2d12x5[_0x6fa9[43]](204)})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)});})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)})};exports[_0x6fa9[57]]=function(_0x2d12x4,_0x2d12x5){Company[_0x6fa9[56]]({where:{id:_0x2d12x4[_0x6fa9[9]][_0x6fa9[46]]},individualHooks:true})[_0x6fa9[38]](function(){return _0x2d12x5[_0x6fa9[43]](204)})[_0x6fa9[28]](function(_0x2d12xe){return handleError(_0x2d12x5,_0x2d12xe)})};function handleError(_0x2d12x5,_0x2d12xe){return _0x2d12x5[_0x6fa9[27]](500)[_0x6fa9[26]](_0x2d12xe)}
\ No newline at end of file
+var _0x6b09=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6D\x70\x61\x6E\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x63\x6F\x6D\x70\x61\x6E\x79\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x4F\x4D\x50\x41\x4E\x59","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6b09[0];var _=require(_0x6b09[1]);var Company=require(_0x6b09[3])[_0x6b09[2]];var util=require(_0x6b09[4]);exports[_0x6b09[5]]=function(_0x3ff2x4,_0x3ff2x5){var _0x3ff2x6=[_0x6b09[6],_0x6b09[7]];var _0x3ff2x7=_0x3ff2x4[_0x6b09[9]][_0x6b09[8]]?parseInt(_0x3ff2x4[_0x6b09[9]][_0x6b09[8]],10):100;var _0x3ff2x8=_0x3ff2x4[_0x6b09[9]][_0x6b09[10]]?parseInt(_0x3ff2x4[_0x6b09[9]][_0x6b09[10]],10):0;var _0x3ff2x9={where:{},limit:_0x3ff2x7,offset:_0x3ff2x8*_0x3ff2x7};_[_0x6b09[24]](_0x3ff2x4[_0x6b09[9]],function(_0x3ff2xa,_0x3ff2xb){switch(_0x3ff2xb){case _0x6b09[8]:;case _0x6b09[10]:break ;;case _0x6b09[13]:_0x3ff2x9[_0x6b09[11]]=util[_0x6b09[16]](_0x6b09[12],_0x3ff2x4[_0x6b09[9]][_0x6b09[13]],_0x3ff2x4[_0x6b09[9]][_0x6b09[14]]||_0x6b09[15])||null;break ;;case _0x6b09[14]:break ;;case _0x6b09[22]:_0x3ff2x9[_0x6b09[18]][_0x6b09[17]]=[];_0x3ff2x6[_0x6b09[21]](function(_0x3ff2xc){var _0x3ff2xd={};_0x3ff2xd[_0x3ff2xc]={$like:_0x6b09[19]+_0x3ff2xa+_0x6b09[19]};_0x3ff2x9[_0x6b09[18]][_0x6b09[17]][_0x6b09[20]](_0x3ff2xd);});break ;;default:_0x3ff2x9[_0x6b09[18]][_0x3ff2xb]={$like:{}};_0x3ff2x9[_0x6b09[18]][_0x3ff2xb][_0x6b09[23]]=_0x6b09[19]+_0x3ff2xa+_0x6b09[19];;}});Company[_0x6b09[39]](_0x3ff2x9)[_0x6b09[38]](function(_0x3ff2xf){var _0x3ff2x10=Math[_0x6b09[30]](_0x3ff2xf[_0x6b09[29]]/_0x3ff2x7);var _0x3ff2x11=_0x3ff2x10>(_0x3ff2x9[_0x6b09[31]]+1)?util[_0x6b09[16]](_0x6b09[32],_0x3ff2x4[_0x6b09[33]],_0x3ff2x4[_0x6b09[35]][_0x6b09[34]],_0x3ff2x4[_0x6b09[36]],_0x3ff2x8+1):null;var _0x3ff2x12=_0x3ff2x8>0?util[_0x6b09[16]](_0x6b09[32],_0x3ff2x4[_0x6b09[33]],_0x3ff2x4[_0x6b09[35]][_0x6b09[34]],_0x3ff2x4[_0x6b09[36]],_0x3ff2x8-1):null;_0x3ff2x5[_0x6b09[27]](200)[_0x6b09[26]]({count:_0x3ff2xf[_0x6b09[29]],rows:_0x3ff2xf[_0x6b09[37]],next_page:_0x3ff2x11,previous_page:_0x3ff2x12,total_pages:_0x3ff2x10});})[_0x6b09[28]](function(_0x3ff2xe){_0x3ff2x5[_0x6b09[27]](500)[_0x6b09[26]]({error:_0x6b09[25]})});};exports[_0x6b09[40]]=function(_0x3ff2x4,_0x3ff2x5){console[_0x6b09[42]](_0x3ff2x4[_0x6b09[41]]);Company[_0x6b09[44]]({where:{name:_0x3ff2x4[_0x6b09[41]][_0x6b09[6]]}})[_0x6b09[38]](function(_0x3ff2x13){if(!_0x3ff2x13){return _0x3ff2x5[_0x6b09[43]](404)};return _0x3ff2x5[_0x6b09[26]](_0x3ff2x13);})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)});};exports[_0x6b09[45]]=function(_0x3ff2x4,_0x3ff2x5){Company[_0x6b09[48]](_0x3ff2x4[_0x6b09[47]][_0x6b09[46]])[_0x6b09[38]](function(_0x3ff2x14){if(!_0x3ff2x14){return _0x3ff2x5[_0x6b09[43]](404)};return _0x3ff2x5[_0x6b09[26]](_0x3ff2x14);})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)})};exports[_0x6b09[49]]=function(_0x3ff2x4,_0x3ff2x5){Company[_0x6b09[49]](_0x3ff2x4[_0x6b09[41]])[_0x6b09[38]](function(_0x3ff2x14){return _0x3ff2x5[_0x6b09[27]](201)[_0x6b09[26]](_0x3ff2x14)})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)})};exports[_0x6b09[50]]=function(_0x3ff2x4,_0x3ff2x5){Company[_0x6b09[44]]({where:{name:_0x3ff2x4[_0x6b09[41]][_0x6b09[6]],id:{$ne:_0x3ff2x4[_0x6b09[41]][_0x6b09[46]]}}})[_0x6b09[38]](function(_0x3ff2x13){if(!_0x3ff2x13){return _0x3ff2x5[_0x6b09[43]](404)};if(_0x3ff2x13[_0x6b09[51]]>0){return _0x3ff2x5[_0x6b09[27]](500)[_0x6b09[26]]({message:_0x6b09[52]})};if(_0x3ff2x4[_0x6b09[41]][_0x6b09[46]]){delete _0x3ff2x4[_0x6b09[41]][_0x6b09[46]]};Company[_0x6b09[55]]({where:{id:_0x3ff2x4[_0x6b09[47]][_0x6b09[46]]}})[_0x6b09[38]](function(_0x3ff2x14){if(!_0x3ff2x14){return _0x3ff2x5[_0x6b09[43]](404)};var _0x3ff2x15=_[_0x6b09[53]](_0x3ff2x14,_0x3ff2x4[_0x6b09[41]]);_0x3ff2x15[_0x6b09[54]]()[_0x6b09[38]](function(){return _0x3ff2x5[_0x6b09[27]](200)[_0x6b09[26]](_0x3ff2x14)})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)});})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)});})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)})};exports[_0x6b09[56]]=function(_0x3ff2x4,_0x3ff2x5){Company[_0x6b09[48]](_0x3ff2x4[_0x6b09[47]][_0x6b09[46]])[_0x6b09[38]](function(_0x3ff2x14){if(!_0x3ff2x14){return _0x3ff2x5[_0x6b09[43]](404)};_0x3ff2x14[_0x6b09[56]]()[_0x6b09[38]](function(){return _0x3ff2x5[_0x6b09[43]](204)})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)});})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)})};exports[_0x6b09[57]]=function(_0x3ff2x4,_0x3ff2x5){Company[_0x6b09[56]]({where:{id:_0x3ff2x4[_0x6b09[9]][_0x6b09[46]]},individualHooks:true})[_0x6b09[38]](function(){return _0x3ff2x5[_0x6b09[43]](204)})[_0x6b09[28]](function(_0x3ff2xe){return handleError(_0x3ff2x5,_0x3ff2xe)})};function handleError(_0x3ff2x5,_0x3ff2xe){return _0x3ff2x5[_0x6b09[27]](500)[_0x6b09[26]](_0x3ff2xe)}
\ No newline at end of file
-var _0x9b48=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6D\x70\x61\x6E\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6D\x70\x61\x6E\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6D\x70\x61\x6E\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9b48[0];var Company=require(_0x9b48[2])[_0x9b48[1]];exports[_0x9b48[3]]=function(_0x1930x2){Company[_0x9b48[4]](function(_0x1930x3){onSave(_0x1930x2,_0x1930x3)});Company[_0x9b48[5]](function(_0x1930x3){onRemove(_0x1930x2,_0x1930x3)});};function onSave(_0x1930x2,_0x1930x3,_0x1930x5){_0x1930x2[_0x9b48[7]](_0x9b48[6],_0x1930x3)}function onRemove(_0x1930x2,_0x1930x3,_0x1930x5){_0x1930x2[_0x9b48[7]](_0x9b48[8],_0x1930x3)}
\ No newline at end of file
+var _0x34ea=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6D\x70\x61\x6E\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6D\x70\x61\x6E\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6D\x70\x61\x6E\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0x34ea[0];var Company=require(_0x34ea[2])[_0x34ea[1]];exports[_0x34ea[3]]=function(_0x88cex2){Company[_0x34ea[4]](function(_0x88cex3){onSave(_0x88cex2,_0x88cex3)});Company[_0x34ea[5]](function(_0x88cex3){onRemove(_0x88cex2,_0x88cex3)});};function onSave(_0x88cex2,_0x88cex3,_0x88cex5){_0x88cex2[_0x34ea[7]](_0x34ea[6],_0x88cex3)}function onRemove(_0x88cex2,_0x88cex3,_0x88cex5){_0x88cex2[_0x34ea[7]](_0x34ea[8],_0x88cex3)}
\ No newline at end of file
-var _0xb245=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x67\x65\x74"];_0xb245[0];var should=require(_0xb245[1]);var app=require(_0xb245[2]);var request=require(_0xb245[3]);describe(_0xb245[4],function(){it(_0xb245[5],function(_0x204ax4){request(app)[_0xb245[13]](_0xb245[12])[_0xb245[11]](200)[_0xb245[11]](_0xb245[10],/json/)[_0xb245[9]](function(_0x204ax5,_0x204ax6){if(_0x204ax5){return _0x204ax4(_0x204ax5)};_0x204ax6[_0xb245[8]][_0xb245[1]][_0xb245[7]][_0xb245[6]](Array);_0x204ax4();})})});
\ No newline at end of file
+var _0xfd25=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x67\x65\x74"];_0xfd25[0];var should=require(_0xfd25[1]);var app=require(_0xfd25[2]);var request=require(_0xfd25[3]);describe(_0xfd25[4],function(){it(_0xfd25[5],function(_0xdc8dx4){request(app)[_0xfd25[13]](_0xfd25[12])[_0xfd25[11]](200)[_0xfd25[11]](_0xfd25[10],/json/)[_0xfd25[9]](function(_0xdc8dx5,_0xdc8dx6){if(_0xdc8dx5){return _0xdc8dx4(_0xdc8dx5)};_0xdc8dx6[_0xfd25[8]][_0xfd25[1]][_0xfd25[7]][_0xfd25[6]](Array);_0xdc8dx4();})})});
\ No newline at end of file
-var _0xba47=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6D\x70\x61\x6E\x79\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xba47[0];var express=require(_0xba47[1]);var controller=require(_0xba47[2]);var auth=require(_0xba47[3]);var router=express.Router();router[_0xba47[7]](_0xba47[4],auth[_0xba47[5]](),controller[_0xba47[6]]);router[_0xba47[7]](_0xba47[8],auth[_0xba47[5]](),controller[_0xba47[9]]);router[_0xba47[11]](_0xba47[4],auth[_0xba47[5]](),controller[_0xba47[10]]);router[_0xba47[11]](_0xba47[12],auth[_0xba47[5]](),controller[_0xba47[13]]);router[_0xba47[15]](_0xba47[8],auth[_0xba47[5]](),controller[_0xba47[14]]);router[_0xba47[16]](_0xba47[8],auth[_0xba47[5]](),controller[_0xba47[14]]);router[_0xba47[18]](_0xba47[4],auth[_0xba47[5]](),controller[_0xba47[17]]);router[_0xba47[18]](_0xba47[8],auth[_0xba47[5]](),controller[_0xba47[19]]);module[_0xba47[20]]=router;
\ No newline at end of file
+var _0xd622=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6D\x70\x61\x6E\x79\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xd622[0];var express=require(_0xd622[1]);var controller=require(_0xd622[2]);var auth=require(_0xd622[3]);var router=express.Router();router[_0xd622[7]](_0xd622[4],auth[_0xd622[5]](),controller[_0xd622[6]]);router[_0xd622[7]](_0xd622[8],auth[_0xd622[5]](),controller[_0xd622[9]]);router[_0xd622[11]](_0xd622[4],auth[_0xd622[5]](),controller[_0xd622[10]]);router[_0xd622[11]](_0xd622[12],auth[_0xd622[5]](),controller[_0xd622[13]]);router[_0xd622[15]](_0xd622[8],auth[_0xd622[5]](),controller[_0xd622[14]]);router[_0xd622[16]](_0xd622[8],auth[_0xd622[5]](),controller[_0xd622[14]]);router[_0xd622[18]](_0xd622[4],auth[_0xd622[5]](),controller[_0xd622[17]]);router[_0xd622[18]](_0xd622[8],auth[_0xd622[5]](),controller[_0xd622[19]]);module[_0xd622[20]]=router;
\ No newline at end of file
-var _0x9b01=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x9b01[0];var _=require(_0x9b01[1]);var Contact=require(_0x9b01[3])[_0x9b01[2]];exports[_0x9b01[4]]=function(_0xf9c0x3,_0xf9c0x4){Contact[_0x9b01[9]]()[_0x9b01[8]](function(_0xf9c0x6){return _0xf9c0x4[_0x9b01[7]](200)[_0x9b01[6]](_0xf9c0x6)})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)})};exports[_0x9b01[10]]=function(_0xf9c0x3,_0xf9c0x4){Contact[_0x9b01[14]](_0xf9c0x3[_0x9b01[13]][_0x9b01[12]])[_0x9b01[8]](function(_0xf9c0x7){if(!_0xf9c0x7){return _0xf9c0x4[_0x9b01[11]](404)};return _0xf9c0x4[_0x9b01[6]](_0xf9c0x7);})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)})};exports[_0x9b01[15]]=function(_0xf9c0x3,_0xf9c0x4){Contact[_0x9b01[15]](_0xf9c0x3[_0x9b01[16]])[_0x9b01[8]](function(_0xf9c0x7){return _0xf9c0x4[_0x9b01[7]](201)[_0x9b01[6]](_0xf9c0x7)})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)})};exports[_0x9b01[17]]=function(_0xf9c0x3,_0xf9c0x4){if(_0xf9c0x3[_0x9b01[16]][_0x9b01[12]]){delete _0xf9c0x3[_0x9b01[16]][_0x9b01[12]]};Contact[_0x9b01[14]](_0xf9c0x3[_0x9b01[13]][_0x9b01[12]])[_0x9b01[8]](function(_0xf9c0x7){if(!_0xf9c0x7){return _0xf9c0x4[_0x9b01[11]](404)};var _0xf9c0x8=_[_0x9b01[18]](_0xf9c0x7,_0xf9c0x3[_0x9b01[16]]);_0xf9c0x8[_0x9b01[19]]()[_0x9b01[8]](function(){return _0xf9c0x4[_0x9b01[7]](200)[_0x9b01[6]](_0xf9c0x7)})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)});})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)});};exports[_0x9b01[20]]=function(_0xf9c0x3,_0xf9c0x4){Contact[_0x9b01[14]](_0xf9c0x3[_0x9b01[13]][_0x9b01[12]])[_0x9b01[8]](function(_0xf9c0x7){if(!_0xf9c0x7){return _0xf9c0x4[_0x9b01[11]](404)};_0xf9c0x7[_0x9b01[20]]()[_0x9b01[8]](function(){return _0xf9c0x4[_0x9b01[11]](204)})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)});})[_0x9b01[5]](function(_0xf9c0x5){return handleError(_0xf9c0x4,_0xf9c0x5)})};function handleError(_0xf9c0x4,_0xf9c0x5){return _0xf9c0x4[_0x9b01[7]](500)[_0x9b01[6]](_0xf9c0x5)}
\ No newline at end of file
+var _0x207b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x207b[0];var _=require(_0x207b[1]);var Contact=require(_0x207b[3])[_0x207b[2]];exports[_0x207b[4]]=function(_0x35b1x3,_0x35b1x4){Contact[_0x207b[9]]()[_0x207b[8]](function(_0x35b1x6){return _0x35b1x4[_0x207b[7]](200)[_0x207b[6]](_0x35b1x6)})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)})};exports[_0x207b[10]]=function(_0x35b1x3,_0x35b1x4){Contact[_0x207b[14]](_0x35b1x3[_0x207b[13]][_0x207b[12]])[_0x207b[8]](function(_0x35b1x7){if(!_0x35b1x7){return _0x35b1x4[_0x207b[11]](404)};return _0x35b1x4[_0x207b[6]](_0x35b1x7);})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)})};exports[_0x207b[15]]=function(_0x35b1x3,_0x35b1x4){Contact[_0x207b[15]](_0x35b1x3[_0x207b[16]])[_0x207b[8]](function(_0x35b1x7){return _0x35b1x4[_0x207b[7]](201)[_0x207b[6]](_0x35b1x7)})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)})};exports[_0x207b[17]]=function(_0x35b1x3,_0x35b1x4){if(_0x35b1x3[_0x207b[16]][_0x207b[12]]){delete _0x35b1x3[_0x207b[16]][_0x207b[12]]};Contact[_0x207b[14]](_0x35b1x3[_0x207b[13]][_0x207b[12]])[_0x207b[8]](function(_0x35b1x7){if(!_0x35b1x7){return _0x35b1x4[_0x207b[11]](404)};var _0x35b1x8=_[_0x207b[18]](_0x35b1x7,_0x35b1x3[_0x207b[16]]);_0x35b1x8[_0x207b[19]]()[_0x207b[8]](function(){return _0x35b1x4[_0x207b[7]](200)[_0x207b[6]](_0x35b1x7)})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)});})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)});};exports[_0x207b[20]]=function(_0x35b1x3,_0x35b1x4){Contact[_0x207b[14]](_0x35b1x3[_0x207b[13]][_0x207b[12]])[_0x207b[8]](function(_0x35b1x7){if(!_0x35b1x7){return _0x35b1x4[_0x207b[11]](404)};_0x35b1x7[_0x207b[20]]()[_0x207b[8]](function(){return _0x35b1x4[_0x207b[11]](204)})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)});})[_0x207b[5]](function(_0x35b1x5){return handleError(_0x35b1x4,_0x35b1x5)})};function handleError(_0x35b1x4,_0x35b1x5){return _0x35b1x4[_0x207b[7]](500)[_0x207b[6]](_0x35b1x5)}
\ No newline at end of file
-var _0xac1b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x64\x65\x66\x69\x6E\x65"];_0xac1b[0];module[_0xac1b[1]]=function(_0x4596x1,_0x4596x2){var _0x4596x3=_0x4596x1[_0xac1b[3]](_0xac1b[2],{name:String,info:String,active:Boolean});return _0x4596x3;};
\ No newline at end of file
+var _0xfd09=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x64\x65\x66\x69\x6E\x65"];_0xfd09[0];module[_0xfd09[1]]=function(_0x3ffdx1,_0x3ffdx2){var _0x3ffdx3=_0x3ffdx1[_0xfd09[3]](_0xfd09[2],{name:String,info:String,active:Boolean});return _0x3ffdx3;};
\ No newline at end of file
-var _0xfcfb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6E\x74\x61\x63\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6E\x74\x61\x63\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfcfb[0];var contact=require(_0xfcfb[2])[_0xfcfb[1]];exports[_0xfcfb[3]]=function(_0x27e6x2){contact[_0xfcfb[4]](function(_0x27e6x3){onSave(_0x27e6x2,_0x27e6x3)});contact[_0xfcfb[5]](function(_0x27e6x3){onRemove(_0x27e6x2,_0x27e6x3)});};function onSave(_0x27e6x2,_0x27e6x3,_0x27e6x5){_0x27e6x2[_0xfcfb[7]](_0xfcfb[6],_0x27e6x3)}function onRemove(_0x27e6x2,_0x27e6x3,_0x27e6x5){_0x27e6x2[_0xfcfb[7]](_0xfcfb[8],_0x27e6x3)}
\ No newline at end of file
+var _0x1be6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6E\x74\x61\x63\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6E\x74\x61\x63\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1be6[0];var contact=require(_0x1be6[2])[_0x1be6[1]];exports[_0x1be6[3]]=function(_0x4892x2){contact[_0x1be6[4]](function(_0x4892x3){onSave(_0x4892x2,_0x4892x3)});contact[_0x1be6[5]](function(_0x4892x3){onRemove(_0x4892x2,_0x4892x3)});};function onSave(_0x4892x2,_0x4892x3,_0x4892x5){_0x4892x2[_0x1be6[7]](_0x1be6[6],_0x4892x3)}function onRemove(_0x4892x2,_0x4892x3,_0x4892x5){_0x4892x2[_0x1be6[7]](_0x1be6[8],_0x4892x3)}
\ No newline at end of file
-var _0x1063=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x67\x65\x74"];_0x1063[0];var should=require(_0x1063[1]);var app=require(_0x1063[2]);var request=require(_0x1063[3]);describe(_0x1063[4],function(){it(_0x1063[5],function(_0x8b78x4){request(app)[_0x1063[13]](_0x1063[12])[_0x1063[11]](200)[_0x1063[11]](_0x1063[10],/json/)[_0x1063[9]](function(_0x8b78x5,_0x8b78x6){if(_0x8b78x5){return _0x8b78x4(_0x8b78x5)};_0x8b78x6[_0x1063[8]][_0x1063[1]][_0x1063[7]][_0x1063[6]](Array);_0x8b78x4();})})});
\ No newline at end of file
+var _0x30e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x67\x65\x74"];_0x30e8[0];var should=require(_0x30e8[1]);var app=require(_0x30e8[2]);var request=require(_0x30e8[3]);describe(_0x30e8[4],function(){it(_0x30e8[5],function(_0xd854x4){request(app)[_0x30e8[13]](_0x30e8[12])[_0x30e8[11]](200)[_0x30e8[11]](_0x30e8[10],/json/)[_0x30e8[9]](function(_0xd854x5,_0xd854x6){if(_0xd854x5){return _0xd854x4(_0xd854x5)};_0xd854x6[_0x30e8[8]][_0x30e8[1]][_0x30e8[7]][_0x30e8[6]](Array);_0xd854x4();})})});
\ No newline at end of file
-var _0x15a7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x15a7[0];var express=require(_0x15a7[1]);var controller=require(_0x15a7[2]);var router=express.Router();router[_0x15a7[5]](_0x15a7[3],controller[_0x15a7[4]]);router[_0x15a7[5]](_0x15a7[6],controller[_0x15a7[7]]);router[_0x15a7[9]](_0x15a7[3],controller[_0x15a7[8]]);router[_0x15a7[11]](_0x15a7[6],controller[_0x15a7[10]]);router[_0x15a7[12]](_0x15a7[6],controller[_0x15a7[10]]);router[_0x15a7[14]](_0x15a7[6],controller[_0x15a7[13]]);module[_0x15a7[15]]=router;
\ No newline at end of file
+var _0x8039=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x8039[0];var express=require(_0x8039[1]);var controller=require(_0x8039[2]);var router=express.Router();router[_0x8039[5]](_0x8039[3],controller[_0x8039[4]]);router[_0x8039[5]](_0x8039[6],controller[_0x8039[7]]);router[_0x8039[9]](_0x8039[3],controller[_0x8039[8]]);router[_0x8039[11]](_0x8039[6],controller[_0x8039[10]]);router[_0x8039[12]](_0x8039[6],controller[_0x8039[10]]);router[_0x8039[14]](_0x8039[6],controller[_0x8039[13]]);module[_0x8039[15]]=router;
\ No newline at end of file
-var _0x6db5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x54\x61\x67","\x73\x74\x72\x65\x61\x6D","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x73\x75\x72\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x50\x68\x6F\x6E\x65\x73","\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x45\x6D\x61\x69\x6C\x73","\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x63\x6F\x6E\x74\x61\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x68\x6F\x6E\x65\x73","\x62\x6F\x64\x79","\x65\x6D\x61\x69\x6C\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x73\x65\x74\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x6B\x65\x79\x73","\x73\x65\x74\x45\x6D\x61\x69\x6C\x73","\x73\x65\x74\x50\x68\x6F\x6E\x65\x73","\x6D\x61\x70","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x63\x6C\x6F\x6E\x65","\x61\x6C\x6C","\x65\x6D\x61\x69\x6C","\x70\x6C\x75\x63\x6B","\x75\x6E\x69\x71","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x74\x61\x67\x73","\x2C","\x73\x70\x6C\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x55\x73\x65\x72\x49\x64","\x75\x73\x65\x72","\x70\x68\x6F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6db5[0];var _=require(_0x6db5[1]);var Contact=require(_0x6db5[3])[_0x6db5[2]];var ContactPhone=require(_0x6db5[3])[_0x6db5[4]];var ContactEmail=require(_0x6db5[3])[_0x6db5[5]];var CustomField=require(_0x6db5[3])[_0x6db5[6]];var ReportCall=require(_0x6db5[3])[_0x6db5[7]];var ReportCallHistory=require(_0x6db5[3])[_0x6db5[9]][_0x6db5[8]];var ReportMailSession=require(_0x6db5[3])[_0x6db5[10]];var ReportMailSessionHistory=require(_0x6db5[3])[_0x6db5[9]][_0x6db5[11]];var Tag=require(_0x6db5[3])[_0x6db5[12]];var stream=require(_0x6db5[13]);var sequelize=require(_0x6db5[3])[_0x6db5[14]];var util=require(_0x6db5[15]);exports[_0x6db5[16]]=function(_0xefb3xe,_0xefb3xf){var _0xefb3x10=[_0x6db5[17],_0x6db5[18],_0x6db5[19]];var _0xefb3x11=_0xefb3xe[_0x6db5[21]][_0x6db5[20]]?parseInt(_0xefb3xe[_0x6db5[21]][_0x6db5[20]],10):100;var _0xefb3x12=_0xefb3xe[_0x6db5[21]][_0x6db5[22]]?parseInt(_0xefb3xe[_0x6db5[21]][_0x6db5[22]],10):0;var _0xefb3x13={where:{},limit:_0xefb3x11,offset:_0xefb3x12*_0xefb3x11};_[_0x6db5[36]](_0xefb3xe[_0x6db5[21]],function(_0xefb3x14,_0xefb3x15){switch(_0xefb3x15){case _0x6db5[20]:;case _0x6db5[22]:break ;;case _0x6db5[25]:_0xefb3x13[_0x6db5[23]]=util[_0x6db5[28]](_0x6db5[24],_0xefb3xe[_0x6db5[21]][_0x6db5[25]],_0xefb3xe[_0x6db5[21]][_0x6db5[26]]||_0x6db5[27])||null;break ;;case _0x6db5[26]:break ;;case _0x6db5[34]:_0xefb3x13[_0x6db5[30]][_0x6db5[29]]=[];_0xefb3x10[_0x6db5[33]](function(_0xefb3x16){var _0xefb3x17={};_0xefb3x17[_0xefb3x16]={$like:_0x6db5[31]+_0xefb3x14+_0x6db5[31]};_0xefb3x13[_0x6db5[30]][_0x6db5[29]][_0x6db5[32]](_0xefb3x17);});break ;;default:_0xefb3x13[_0x6db5[30]][_0xefb3x15]={$like:{}};_0xefb3x13[_0x6db5[30]][_0xefb3x15][_0x6db5[35]]=_0x6db5[31]+_0xefb3x14+_0x6db5[31];;}});Contact[_0x6db5[51]](_0xefb3x13)[_0x6db5[50]](function(_0xefb3x19){var _0xefb3x1a=Math[_0x6db5[42]](_0xefb3x19[_0x6db5[41]]/_0xefb3x11);var _0xefb3x1b=_0xefb3x1a>(_0xefb3x13[_0x6db5[43]]+1)?util[_0x6db5[28]](_0x6db5[44],_0xefb3xe[_0x6db5[45]],_0xefb3xe[_0x6db5[47]][_0x6db5[46]],_0xefb3xe[_0x6db5[48]],_0xefb3x12+1):null;var _0xefb3x1c=_0xefb3x12>0?util[_0x6db5[28]](_0x6db5[44],_0xefb3xe[_0x6db5[45]],_0xefb3xe[_0x6db5[47]][_0x6db5[46]],_0xefb3xe[_0x6db5[48]],_0xefb3x12-1):null;_0xefb3xf[_0x6db5[39]](200)[_0x6db5[38]]({count:_0xefb3x19[_0x6db5[41]],rows:_0xefb3x19[_0x6db5[49]],next_page:_0xefb3x1b,previous_page:_0xefb3x1c,total_pages:_0xefb3x1a});})[_0x6db5[40]](function(_0xefb3x18){_0xefb3xf[_0x6db5[39]](500)[_0x6db5[38]]({error:_0x6db5[37]})});};exports[_0x6db5[52]]=function(_0xefb3xe,_0xefb3xf){Contact[_0x6db5[68]](_0xefb3xe[_0x6db5[56]][_0x6db5[55]],{include:[{model:ContactPhone,as:_0x6db5[57],include:[{model:ReportCall,as:_0x6db5[58],include:[{all:true}]},{model:ReportCall,as:_0x6db5[59],include:[{all:true}]},{model:ReportCallHistory,as:_0x6db5[60],include:[{all:true}]},{model:ReportCallHistory,as:_0x6db5[61],include:[{all:true}]}]},{model:ContactEmail,as:_0x6db5[62],include:[{model:ReportMailSession,as:_0x6db5[63],include:[{all:true}]},{model:ReportMailSession,as:_0x6db5[64],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x6db5[65],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x6db5[66],include:[{all:true}]}]},{model:CustomField,as:_0x6db5[67]}]})[_0x6db5[50]](function(_0xefb3x1d){if(!_0xefb3x1d){return _0xefb3xf[_0x6db5[54]](404)};return _0xefb3xf[_0x6db5[38]](_0xefb3x1d);})[_0x6db5[40]](function(_0xefb3x18){console[_0x6db5[53]](_0xefb3x18);return handleError(_0xefb3xf,_0xefb3x18);})};exports[_0x6db5[69]]=function(_0xefb3xe,_0xefb3xf){};exports[_0x6db5[70]]=function(_0xefb3xe,_0xefb3xf){Contact[_0x6db5[74]]({where:{$or:{"\x24\x50\x68\x6F\x6E\x65\x73\x2E\x70\x68\x6F\x6E\x65\x24":_0xefb3xe[_0x6db5[72]][_0x6db5[71]],"\x24\x45\x6D\x61\x69\x6C\x73\x2E\x65\x6D\x61\x69\x6C\x24":_0xefb3xe[_0x6db5[72]][_0x6db5[73]]}},include:[{all:true}]})[_0x6db5[50]](function(_0xefb3x1e){console[_0x6db5[53]](_0xefb3x1e);return _0xefb3xf[_0x6db5[39]](200)[_0x6db5[38]](_0xefb3x1e);})[_0x6db5[40]](function(_0xefb3x18){console[_0x6db5[53]](_0xefb3x18);return handleError(_0xefb3xf,_0xefb3x18);})};exports[_0x6db5[75]]=function(_0xefb3xe,_0xefb3xf,_0xefb3x1f){var _0xefb3x20=[],_0xefb3x21=[],_0xefb3x22={};Tag[_0x6db5[74]]()[_0x6db5[50]](function(_0xefb3x29){var _0xefb3x2a=[];var _0xefb3x2b=_[_0x6db5[87]](_[_0x6db5[87]](_0xefb3x29,_0x6db5[90]),_0x6db5[17]);if(_0xefb3xe[_0x6db5[72]][_0x6db5[91]]){var _0xefb3x2c=_0xefb3xe[_0x6db5[72]][_0x6db5[91]][_0x6db5[93]](_0x6db5[92]);_0xefb3x2c[_0x6db5[33]](function(_0xefb3x25){if(!_[_0x6db5[94]](_0xefb3x29,_0xefb3x25)){_0xefb3x2a[_0x6db5[32]]({name:_0xefb3x25})}});if(_0xefb3x2a[_0x6db5[95]]){Tag[_0x6db5[96]](_0xefb3x2a,{individualHooks:true})};};_0xefb3xe[_0x6db5[72]][_0x6db5[97]]=_0xefb3xe[_0x6db5[98]][_0x6db5[55]];var _0xefb3x2d=_[_0x6db5[88]](_[_0x6db5[87]](_0xefb3xe[_0x6db5[72]].Phones,_0x6db5[99]));var _0xefb3x2e=[];_0xefb3x2d[_0x6db5[33]](function(_0xefb3x25){_0xefb3x2e[_0x6db5[32]](ContactPhone[_0x6db5[89]]({where:{phone:_0xefb3x25},defaults:{phone:_0xefb3x25}}))});return _0xefb3x2e;})[_0x6db5[85]]()[_0x6db5[50]](function(_0xefb3xf){_0xefb3x20=_[_0x6db5[82]](_0xefb3xf,function(_0xefb3x25){return _0xefb3x25[0]});var _0xefb3x27=[];var _0xefb3x28=_[_0x6db5[88]](_[_0x6db5[87]](_0xefb3xe[_0x6db5[72]].Emails,_0x6db5[86]));_0xefb3x28[_0x6db5[33]](function(_0xefb3x25){_0xefb3x27[_0x6db5[32]](ContactEmail[_0x6db5[89]]({where:{email:_0xefb3x25},defaults:{email:_0xefb3x25}}))});return _0xefb3x27;})[_0x6db5[85]]()[_0x6db5[50]](function(_0xefb3xf){_0xefb3x21=_[_0x6db5[82]](_0xefb3xf,function(_0xefb3x25){return _0xefb3x25[0]});delete _0xefb3xe[_0x6db5[72]][_0x6db5[57]];delete _0xefb3xe[_0x6db5[72]][_0x6db5[62]];_0xefb3x22=_[_0x6db5[84]](_0xefb3xe[_0x6db5[72]][_0x6db5[83]]);delete _0xefb3xe[_0x6db5[72]][_0x6db5[83]];return Contact[_0x6db5[75]](_0xefb3xe[_0x6db5[72]]);})[_0x6db5[50]](function(_0xefb3x23){return [_0xefb3x23,_0xefb3x23[_0x6db5[81]](_0xefb3x20)]})[_0x6db5[76]](function(_0xefb3x23){return [_0xefb3x23,_0xefb3x23[_0x6db5[80]](_0xefb3x21)]})[_0x6db5[76]](function(_0xefb3x23){var _0xefb3x26=_[_0x6db5[79]](_0xefb3x22);return [_0xefb3x23,CustomField[_0x6db5[74]]({where:{id:_0xefb3x26}})];})[_0x6db5[76]](function(_0xefb3x23,_0xefb3x24){_0xefb3x24[_0x6db5[33]](function(_0xefb3x25){_0xefb3x25[_0x6db5[77]]={value:_0xefb3x22[String(_0xefb3x25[_0x6db5[55]])]}});return [_0xefb3x23,_0xefb3x23[_0x6db5[78]](_0xefb3x24)];})[_0x6db5[76]](function(_0xefb3x23){return _0xefb3xf[_0x6db5[39]](201)[_0x6db5[38]](_0xefb3x23)})[_0x6db5[40]](function(_0xefb3x18){console[_0x6db5[53]](_0xefb3x18);return _0xefb3x1f(_0xefb3x18);});};exports[_0x6db5[100]]=function(_0xefb3xe,_0xefb3xf,_0xefb3x1f){var _0xefb3x20=[],_0xefb3x21=[],_0xefb3x22={};Tag[_0x6db5[74]]()[_0x6db5[50]](function(_0xefb3x29){var _0xefb3x2a=[];var _0xefb3x2b=_[_0x6db5[87]](_[_0x6db5[87]](_0xefb3x29,_0x6db5[90]),_0x6db5[17]);if(_0xefb3xe[_0x6db5[72]][_0x6db5[91]]){var _0xefb3x2c=_0xefb3xe[_0x6db5[72]][_0x6db5[91]][_0x6db5[93]](_0x6db5[92]);_0xefb3x2c[_0x6db5[33]](function(_0xefb3x25){if(!_[_0x6db5[94]](_0xefb3x29,_0xefb3x25)){_0xefb3x2a[_0x6db5[32]]({name:_0xefb3x25})}});if(_0xefb3x2a[_0x6db5[95]]){Tag[_0x6db5[96]](_0xefb3x2a,{individualHooks:true})};};var _0xefb3x2e=[];var _0xefb3x2d=_[_0x6db5[88]](_[_0x6db5[87]](_0xefb3xe[_0x6db5[72]].Phones,_0x6db5[99]));_0xefb3x2d[_0x6db5[33]](function(_0xefb3x25){_0xefb3x2e[_0x6db5[32]](ContactPhone[_0x6db5[89]]({where:{phone:_0xefb3x25},defaults:{phone:_0xefb3x25}}))});return _0xefb3x2e;})[_0x6db5[85]]()[_0x6db5[50]](function(_0xefb3xf){_0xefb3x20=_[_0x6db5[82]](_0xefb3xf,function(_0xefb3x25){return _0xefb3x25[0]});var _0xefb3x27=[];var _0xefb3x28=_[_0x6db5[88]](_[_0x6db5[87]](_0xefb3xe[_0x6db5[72]].Emails,_0x6db5[86]));_0xefb3x28[_0x6db5[33]](function(_0xefb3x25){_0xefb3x27[_0x6db5[32]](ContactEmail[_0x6db5[89]]({where:{email:_0xefb3x25},defaults:{email:_0xefb3x25}}))});return _0xefb3x27;})[_0x6db5[85]]()[_0x6db5[50]](function(_0xefb3xf){_0xefb3x21=_[_0x6db5[82]](_0xefb3xf,function(_0xefb3x25){return _0xefb3x25[0]});delete _0xefb3xe[_0x6db5[72]][_0x6db5[57]];delete _0xefb3xe[_0x6db5[72]][_0x6db5[62]];_0xefb3x22=_[_0x6db5[84]](_0xefb3xe[_0x6db5[72]][_0x6db5[83]]);delete _0xefb3xe[_0x6db5[72]][_0x6db5[83]];delete _0xefb3xe[_0x6db5[72]][_0x6db5[67]];var _0xefb3x2f=_0xefb3xe[_0x6db5[72]][_0x6db5[55]];delete _0xefb3xe[_0x6db5[72]][_0x6db5[55]];return Contact[_0x6db5[68]](_0xefb3x2f);})[_0x6db5[50]](function(_0xefb3x23){return [_0xefb3x23,_0xefb3x23[_0x6db5[81]](_0xefb3x20)]})[_0x6db5[76]](function(_0xefb3x23){return [_0xefb3x23,_0xefb3x23[_0x6db5[80]](_0xefb3x21)]})[_0x6db5[76]](function(_0xefb3x23){var _0xefb3x26=_[_0x6db5[79]](_0xefb3x22);return [_0xefb3x23,CustomField[_0x6db5[74]]({where:{id:_0xefb3x26}})];})[_0x6db5[76]](function(_0xefb3x23,_0xefb3x24){_0xefb3x24[_0x6db5[33]](function(_0xefb3x25){_0xefb3x25[_0x6db5[77]]={value:_0xefb3x22[String(_0xefb3x25[_0x6db5[55]])]}});return [_0xefb3x23,_0xefb3x23[_0x6db5[78]](_0xefb3x24)];})[_0x6db5[76]](function(_0xefb3x23){return _0xefb3x23[_0x6db5[101]](_0xefb3xe[_0x6db5[72]])})[_0x6db5[50]](function(_0xefb3x23){return _0xefb3xf[_0x6db5[39]](200)[_0x6db5[38]](_0xefb3x23)})[_0x6db5[40]](function(_0xefb3x18){console[_0x6db5[53]](_0xefb3x18);return handleError(_0xefb3xf,_0xefb3x18);});};exports[_0x6db5[102]]=function(_0xefb3xe,_0xefb3xf){Contact[_0x6db5[68]](_0xefb3xe[_0x6db5[56]][_0x6db5[55]])[_0x6db5[50]](function(_0xefb3x1d){if(!_0xefb3x1d){return _0xefb3xf[_0x6db5[54]](404)};_0xefb3x1d[_0x6db5[102]]()[_0x6db5[50]](function(){return _0xefb3xf[_0x6db5[54]](204)})[_0x6db5[40]](function(_0xefb3x18){return handleError(_0xefb3xf,_0xefb3x18)});})[_0x6db5[40]](function(_0xefb3x18){return handleError(_0xefb3xf,_0xefb3x18)})};exports[_0x6db5[103]]=function(_0xefb3xe,_0xefb3xf){Contact[_0x6db5[102]]({where:{id:_0xefb3xe[_0x6db5[21]][_0x6db5[55]]},individualHooks:true})[_0x6db5[50]](function(){return _0xefb3xf[_0x6db5[54]](204)})[_0x6db5[40]](function(_0xefb3x18){return handleError(_0xefb3xf,_0xefb3x18)})};function handleError(_0xefb3xf,_0xefb3x18){return _0xefb3xf[_0x6db5[39]](500)[_0x6db5[38]](_0xefb3x18)}
\ No newline at end of file
+var _0xed86=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x54\x61\x67","\x73\x74\x72\x65\x61\x6D","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x73\x75\x72\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x50\x68\x6F\x6E\x65\x73","\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x45\x6D\x61\x69\x6C\x73","\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x63\x6F\x6E\x74\x61\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x68\x6F\x6E\x65\x73","\x62\x6F\x64\x79","\x65\x6D\x61\x69\x6C\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x73\x65\x74\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x6B\x65\x79\x73","\x73\x65\x74\x45\x6D\x61\x69\x6C\x73","\x73\x65\x74\x50\x68\x6F\x6E\x65\x73","\x6D\x61\x70","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x63\x6C\x6F\x6E\x65","\x61\x6C\x6C","\x65\x6D\x61\x69\x6C","\x70\x6C\x75\x63\x6B","\x75\x6E\x69\x71","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x74\x61\x67\x73","\x2C","\x73\x70\x6C\x69\x74","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x55\x73\x65\x72\x49\x64","\x75\x73\x65\x72","\x70\x68\x6F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xed86[0];var _=require(_0xed86[1]);var Contact=require(_0xed86[3])[_0xed86[2]];var ContactPhone=require(_0xed86[3])[_0xed86[4]];var ContactEmail=require(_0xed86[3])[_0xed86[5]];var CustomField=require(_0xed86[3])[_0xed86[6]];var ReportCall=require(_0xed86[3])[_0xed86[7]];var ReportCallHistory=require(_0xed86[3])[_0xed86[9]][_0xed86[8]];var ReportMailSession=require(_0xed86[3])[_0xed86[10]];var ReportMailSessionHistory=require(_0xed86[3])[_0xed86[9]][_0xed86[11]];var Tag=require(_0xed86[3])[_0xed86[12]];var stream=require(_0xed86[13]);var sequelize=require(_0xed86[3])[_0xed86[14]];var util=require(_0xed86[15]);exports[_0xed86[16]]=function(_0x8ed3xe,_0x8ed3xf){var _0x8ed3x10=[_0xed86[17],_0xed86[18],_0xed86[19]];var _0x8ed3x11=_0x8ed3xe[_0xed86[21]][_0xed86[20]]?parseInt(_0x8ed3xe[_0xed86[21]][_0xed86[20]],10):100;var _0x8ed3x12=_0x8ed3xe[_0xed86[21]][_0xed86[22]]?parseInt(_0x8ed3xe[_0xed86[21]][_0xed86[22]],10):0;var _0x8ed3x13={where:{},limit:_0x8ed3x11,offset:_0x8ed3x12*_0x8ed3x11};_[_0xed86[36]](_0x8ed3xe[_0xed86[21]],function(_0x8ed3x14,_0x8ed3x15){switch(_0x8ed3x15){case _0xed86[20]:;case _0xed86[22]:break ;;case _0xed86[25]:_0x8ed3x13[_0xed86[23]]=util[_0xed86[28]](_0xed86[24],_0x8ed3xe[_0xed86[21]][_0xed86[25]],_0x8ed3xe[_0xed86[21]][_0xed86[26]]||_0xed86[27])||null;break ;;case _0xed86[26]:break ;;case _0xed86[34]:_0x8ed3x13[_0xed86[30]][_0xed86[29]]=[];_0x8ed3x10[_0xed86[33]](function(_0x8ed3x16){var _0x8ed3x17={};_0x8ed3x17[_0x8ed3x16]={$like:_0xed86[31]+_0x8ed3x14+_0xed86[31]};_0x8ed3x13[_0xed86[30]][_0xed86[29]][_0xed86[32]](_0x8ed3x17);});break ;;default:_0x8ed3x13[_0xed86[30]][_0x8ed3x15]={$like:{}};_0x8ed3x13[_0xed86[30]][_0x8ed3x15][_0xed86[35]]=_0xed86[31]+_0x8ed3x14+_0xed86[31];;}});Contact[_0xed86[51]](_0x8ed3x13)[_0xed86[50]](function(_0x8ed3x19){var _0x8ed3x1a=Math[_0xed86[42]](_0x8ed3x19[_0xed86[41]]/_0x8ed3x11);var _0x8ed3x1b=_0x8ed3x1a>(_0x8ed3x13[_0xed86[43]]+1)?util[_0xed86[28]](_0xed86[44],_0x8ed3xe[_0xed86[45]],_0x8ed3xe[_0xed86[47]][_0xed86[46]],_0x8ed3xe[_0xed86[48]],_0x8ed3x12+1):null;var _0x8ed3x1c=_0x8ed3x12>0?util[_0xed86[28]](_0xed86[44],_0x8ed3xe[_0xed86[45]],_0x8ed3xe[_0xed86[47]][_0xed86[46]],_0x8ed3xe[_0xed86[48]],_0x8ed3x12-1):null;_0x8ed3xf[_0xed86[39]](200)[_0xed86[38]]({count:_0x8ed3x19[_0xed86[41]],rows:_0x8ed3x19[_0xed86[49]],next_page:_0x8ed3x1b,previous_page:_0x8ed3x1c,total_pages:_0x8ed3x1a});})[_0xed86[40]](function(_0x8ed3x18){_0x8ed3xf[_0xed86[39]](500)[_0xed86[38]]({error:_0xed86[37]})});};exports[_0xed86[52]]=function(_0x8ed3xe,_0x8ed3xf){Contact[_0xed86[68]](_0x8ed3xe[_0xed86[56]][_0xed86[55]],{include:[{model:ContactPhone,as:_0xed86[57],include:[{model:ReportCall,as:_0xed86[58],include:[{all:true}]},{model:ReportCall,as:_0xed86[59],include:[{all:true}]},{model:ReportCallHistory,as:_0xed86[60],include:[{all:true}]},{model:ReportCallHistory,as:_0xed86[61],include:[{all:true}]}]},{model:ContactEmail,as:_0xed86[62],include:[{model:ReportMailSession,as:_0xed86[63],include:[{all:true}]},{model:ReportMailSession,as:_0xed86[64],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0xed86[65],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0xed86[66],include:[{all:true}]}]},{model:CustomField,as:_0xed86[67]}]})[_0xed86[50]](function(_0x8ed3x1d){if(!_0x8ed3x1d){return _0x8ed3xf[_0xed86[54]](404)};return _0x8ed3xf[_0xed86[38]](_0x8ed3x1d);})[_0xed86[40]](function(_0x8ed3x18){console[_0xed86[53]](_0x8ed3x18);return handleError(_0x8ed3xf,_0x8ed3x18);})};exports[_0xed86[69]]=function(_0x8ed3xe,_0x8ed3xf){};exports[_0xed86[70]]=function(_0x8ed3xe,_0x8ed3xf){Contact[_0xed86[74]]({where:{$or:{"\x24\x50\x68\x6F\x6E\x65\x73\x2E\x70\x68\x6F\x6E\x65\x24":_0x8ed3xe[_0xed86[72]][_0xed86[71]],"\x24\x45\x6D\x61\x69\x6C\x73\x2E\x65\x6D\x61\x69\x6C\x24":_0x8ed3xe[_0xed86[72]][_0xed86[73]]}},include:[{all:true}]})[_0xed86[50]](function(_0x8ed3x1e){console[_0xed86[53]](_0x8ed3x1e);return _0x8ed3xf[_0xed86[39]](200)[_0xed86[38]](_0x8ed3x1e);})[_0xed86[40]](function(_0x8ed3x18){console[_0xed86[53]](_0x8ed3x18);return handleError(_0x8ed3xf,_0x8ed3x18);})};exports[_0xed86[75]]=function(_0x8ed3xe,_0x8ed3xf,_0x8ed3x1f){var _0x8ed3x20=[],_0x8ed3x21=[],_0x8ed3x22={};Tag[_0xed86[74]]()[_0xed86[50]](function(_0x8ed3x29){var _0x8ed3x2a=[];var _0x8ed3x2b=_[_0xed86[87]](_[_0xed86[87]](_0x8ed3x29,_0xed86[90]),_0xed86[17]);if(_0x8ed3xe[_0xed86[72]][_0xed86[91]]){var _0x8ed3x2c=_0x8ed3xe[_0xed86[72]][_0xed86[91]][_0xed86[93]](_0xed86[92]);_0x8ed3x2c[_0xed86[33]](function(_0x8ed3x25){if(!_[_0xed86[94]](_0x8ed3x29,_0x8ed3x25)){_0x8ed3x2a[_0xed86[32]]({name:_0x8ed3x25})}});if(_0x8ed3x2a[_0xed86[95]]){Tag[_0xed86[96]](_0x8ed3x2a,{individualHooks:true})};};_0x8ed3xe[_0xed86[72]][_0xed86[97]]=_0x8ed3xe[_0xed86[98]][_0xed86[55]];var _0x8ed3x2d=_[_0xed86[88]](_[_0xed86[87]](_0x8ed3xe[_0xed86[72]].Phones,_0xed86[99]));var _0x8ed3x2e=[];_0x8ed3x2d[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x2e[_0xed86[32]](ContactPhone[_0xed86[89]]({where:{phone:_0x8ed3x25},defaults:{phone:_0x8ed3x25}}))});return _0x8ed3x2e;})[_0xed86[85]]()[_0xed86[50]](function(_0x8ed3xf){_0x8ed3x20=_[_0xed86[82]](_0x8ed3xf,function(_0x8ed3x25){return _0x8ed3x25[0]});var _0x8ed3x27=[];var _0x8ed3x28=_[_0xed86[88]](_[_0xed86[87]](_0x8ed3xe[_0xed86[72]].Emails,_0xed86[86]));_0x8ed3x28[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x27[_0xed86[32]](ContactEmail[_0xed86[89]]({where:{email:_0x8ed3x25},defaults:{email:_0x8ed3x25}}))});return _0x8ed3x27;})[_0xed86[85]]()[_0xed86[50]](function(_0x8ed3xf){_0x8ed3x21=_[_0xed86[82]](_0x8ed3xf,function(_0x8ed3x25){return _0x8ed3x25[0]});delete _0x8ed3xe[_0xed86[72]][_0xed86[57]];delete _0x8ed3xe[_0xed86[72]][_0xed86[62]];_0x8ed3x22=_[_0xed86[84]](_0x8ed3xe[_0xed86[72]][_0xed86[83]]);delete _0x8ed3xe[_0xed86[72]][_0xed86[83]];return Contact[_0xed86[75]](_0x8ed3xe[_0xed86[72]]);})[_0xed86[50]](function(_0x8ed3x23){return [_0x8ed3x23,_0x8ed3x23[_0xed86[81]](_0x8ed3x20)]})[_0xed86[76]](function(_0x8ed3x23){return [_0x8ed3x23,_0x8ed3x23[_0xed86[80]](_0x8ed3x21)]})[_0xed86[76]](function(_0x8ed3x23){var _0x8ed3x26=_[_0xed86[79]](_0x8ed3x22);return [_0x8ed3x23,CustomField[_0xed86[74]]({where:{id:_0x8ed3x26}})];})[_0xed86[76]](function(_0x8ed3x23,_0x8ed3x24){_0x8ed3x24[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x25[_0xed86[77]]={value:_0x8ed3x22[String(_0x8ed3x25[_0xed86[55]])]}});return [_0x8ed3x23,_0x8ed3x23[_0xed86[78]](_0x8ed3x24)];})[_0xed86[76]](function(_0x8ed3x23){return _0x8ed3xf[_0xed86[39]](201)[_0xed86[38]](_0x8ed3x23)})[_0xed86[40]](function(_0x8ed3x18){console[_0xed86[53]](_0x8ed3x18);return _0x8ed3x1f(_0x8ed3x18);});};exports[_0xed86[100]]=function(_0x8ed3xe,_0x8ed3xf,_0x8ed3x1f){var _0x8ed3x20=[],_0x8ed3x21=[],_0x8ed3x22={};Tag[_0xed86[74]]()[_0xed86[50]](function(_0x8ed3x29){var _0x8ed3x2a=[];var _0x8ed3x2b=_[_0xed86[87]](_[_0xed86[87]](_0x8ed3x29,_0xed86[90]),_0xed86[17]);if(_0x8ed3xe[_0xed86[72]][_0xed86[91]]){var _0x8ed3x2c=_0x8ed3xe[_0xed86[72]][_0xed86[91]][_0xed86[93]](_0xed86[92]);_0x8ed3x2c[_0xed86[33]](function(_0x8ed3x25){if(!_[_0xed86[94]](_0x8ed3x29,_0x8ed3x25)){_0x8ed3x2a[_0xed86[32]]({name:_0x8ed3x25})}});if(_0x8ed3x2a[_0xed86[95]]){Tag[_0xed86[96]](_0x8ed3x2a,{individualHooks:true})};};var _0x8ed3x2e=[];var _0x8ed3x2d=_[_0xed86[88]](_[_0xed86[87]](_0x8ed3xe[_0xed86[72]].Phones,_0xed86[99]));_0x8ed3x2d[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x2e[_0xed86[32]](ContactPhone[_0xed86[89]]({where:{phone:_0x8ed3x25},defaults:{phone:_0x8ed3x25}}))});return _0x8ed3x2e;})[_0xed86[85]]()[_0xed86[50]](function(_0x8ed3xf){_0x8ed3x20=_[_0xed86[82]](_0x8ed3xf,function(_0x8ed3x25){return _0x8ed3x25[0]});var _0x8ed3x27=[];var _0x8ed3x28=_[_0xed86[88]](_[_0xed86[87]](_0x8ed3xe[_0xed86[72]].Emails,_0xed86[86]));_0x8ed3x28[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x27[_0xed86[32]](ContactEmail[_0xed86[89]]({where:{email:_0x8ed3x25},defaults:{email:_0x8ed3x25}}))});return _0x8ed3x27;})[_0xed86[85]]()[_0xed86[50]](function(_0x8ed3xf){_0x8ed3x21=_[_0xed86[82]](_0x8ed3xf,function(_0x8ed3x25){return _0x8ed3x25[0]});delete _0x8ed3xe[_0xed86[72]][_0xed86[57]];delete _0x8ed3xe[_0xed86[72]][_0xed86[62]];_0x8ed3x22=_[_0xed86[84]](_0x8ed3xe[_0xed86[72]][_0xed86[83]]);delete _0x8ed3xe[_0xed86[72]][_0xed86[83]];delete _0x8ed3xe[_0xed86[72]][_0xed86[67]];var _0x8ed3x2f=_0x8ed3xe[_0xed86[72]][_0xed86[55]];delete _0x8ed3xe[_0xed86[72]][_0xed86[55]];return Contact[_0xed86[68]](_0x8ed3x2f);})[_0xed86[50]](function(_0x8ed3x23){return [_0x8ed3x23,_0x8ed3x23[_0xed86[81]](_0x8ed3x20)]})[_0xed86[76]](function(_0x8ed3x23){return [_0x8ed3x23,_0x8ed3x23[_0xed86[80]](_0x8ed3x21)]})[_0xed86[76]](function(_0x8ed3x23){var _0x8ed3x26=_[_0xed86[79]](_0x8ed3x22);return [_0x8ed3x23,CustomField[_0xed86[74]]({where:{id:_0x8ed3x26}})];})[_0xed86[76]](function(_0x8ed3x23,_0x8ed3x24){_0x8ed3x24[_0xed86[33]](function(_0x8ed3x25){_0x8ed3x25[_0xed86[77]]={value:_0x8ed3x22[String(_0x8ed3x25[_0xed86[55]])]}});return [_0x8ed3x23,_0x8ed3x23[_0xed86[78]](_0x8ed3x24)];})[_0xed86[76]](function(_0x8ed3x23){return _0x8ed3x23[_0xed86[101]](_0x8ed3xe[_0xed86[72]])})[_0xed86[50]](function(_0x8ed3x23){return _0x8ed3xf[_0xed86[39]](200)[_0xed86[38]](_0x8ed3x23)})[_0xed86[40]](function(_0x8ed3x18){console[_0xed86[53]](_0x8ed3x18);return handleError(_0x8ed3xf,_0x8ed3x18);});};exports[_0xed86[102]]=function(_0x8ed3xe,_0x8ed3xf){Contact[_0xed86[68]](_0x8ed3xe[_0xed86[56]][_0xed86[55]])[_0xed86[50]](function(_0x8ed3x1d){if(!_0x8ed3x1d){return _0x8ed3xf[_0xed86[54]](404)};_0x8ed3x1d[_0xed86[102]]()[_0xed86[50]](function(){return _0x8ed3xf[_0xed86[54]](204)})[_0xed86[40]](function(_0x8ed3x18){return handleError(_0x8ed3xf,_0x8ed3x18)});})[_0xed86[40]](function(_0x8ed3x18){return handleError(_0x8ed3xf,_0x8ed3x18)})};exports[_0xed86[103]]=function(_0x8ed3xe,_0x8ed3xf){Contact[_0xed86[102]]({where:{id:_0x8ed3xe[_0xed86[21]][_0xed86[55]]},individualHooks:true})[_0xed86[50]](function(){return _0x8ed3xf[_0xed86[54]](204)})[_0xed86[40]](function(_0x8ed3x18){return handleError(_0x8ed3xf,_0x8ed3x18)})};function handleError(_0x8ed3xf,_0x8ed3x18){return _0x8ed3xf[_0xed86[39]](500)[_0xed86[38]](_0x8ed3x18)}
\ No newline at end of file
-var _0x9373=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9373[0];var Contact=require(_0x9373[2])[_0x9373[1]];exports[_0x9373[3]]=function(_0xa859x2){Contact[_0x9373[4]](function(_0xa859x3){onSave(_0xa859x2,_0xa859x3)});Contact[_0x9373[5]](function(_0xa859x3){onRemove(_0xa859x2,_0xa859x3)});};function onSave(_0xa859x2,_0xa859x3,_0xa859x5){_0xa859x2[_0x9373[7]](_0x9373[6],_0xa859x3)}function onRemove(_0xa859x2,_0xa859x3,_0xa859x5){_0xa859x2[_0x9373[7]](_0x9373[8],_0xa859x3)}
\ No newline at end of file
+var _0x2dbb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2dbb[0];var Contact=require(_0x2dbb[2])[_0x2dbb[1]];exports[_0x2dbb[3]]=function(_0xd416x2){Contact[_0x2dbb[4]](function(_0xd416x3){onSave(_0xd416x2,_0xd416x3)});Contact[_0x2dbb[5]](function(_0xd416x3){onRemove(_0xd416x2,_0xd416x3)});};function onSave(_0xd416x2,_0xd416x3,_0xd416x5){_0xd416x2[_0x2dbb[7]](_0x2dbb[6],_0xd416x3)}function onRemove(_0xd416x2,_0xd416x3,_0xd416x5){_0xd416x2[_0x2dbb[7]](_0x2dbb[8],_0xd416x3)}
\ No newline at end of file
-var _0x2691=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x67\x65\x74"];_0x2691[0];var should=require(_0x2691[1]);var app=require(_0x2691[2]);var request=require(_0x2691[3]);describe(_0x2691[4],function(){it(_0x2691[5],function(_0x449dx4){request(app)[_0x2691[13]](_0x2691[12])[_0x2691[11]](200)[_0x2691[11]](_0x2691[10],/json/)[_0x2691[9]](function(_0x449dx5,_0x449dx6){if(_0x449dx5){return _0x449dx4(_0x449dx5)};_0x449dx6[_0x2691[8]][_0x2691[1]][_0x2691[7]][_0x2691[6]](Array);_0x449dx4();})})});
\ No newline at end of file
+var _0x1507=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x67\x65\x74"];_0x1507[0];var should=require(_0x1507[1]);var app=require(_0x1507[2]);var request=require(_0x1507[3]);describe(_0x1507[4],function(){it(_0x1507[5],function(_0xc17dx4){request(app)[_0x1507[13]](_0x1507[12])[_0x1507[11]](200)[_0x1507[11]](_0x1507[10],/json/)[_0x1507[9]](function(_0xc17dx5,_0xc17dx6){if(_0xc17dx5){return _0xc17dx4(_0xc17dx5)};_0xc17dx6[_0x1507[8]][_0x1507[1]][_0x1507[7]][_0x1507[6]](Array);_0xc17dx4();})})});
\ No newline at end of file
-var _0x4844=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x68\x69\x73\x74\x6F\x72\x79","\x67\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6E\x74\x61\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4844[0];var express=require(_0x4844[1]);var controller=require(_0x4844[2]);var auth=require(_0x4844[3]);var router=express.Router();router[_0x4844[7]](_0x4844[4],auth[_0x4844[5]](),controller[_0x4844[6]]);router[_0x4844[7]](_0x4844[8],auth[_0x4844[5]](),controller[_0x4844[9]]);router[_0x4844[7]](_0x4844[10],auth[_0x4844[5]](),controller[_0x4844[11]]);router[_0x4844[13]](_0x4844[4],auth[_0x4844[5]](),controller[_0x4844[12]]);router[_0x4844[13]](_0x4844[14],auth[_0x4844[5]](),controller[_0x4844[15]]);router[_0x4844[17]](_0x4844[8],auth[_0x4844[5]](),controller[_0x4844[16]]);router[_0x4844[18]](_0x4844[8],auth[_0x4844[5]](),controller[_0x4844[16]]);router[_0x4844[20]](_0x4844[4],auth[_0x4844[5]](),controller[_0x4844[19]]);router[_0x4844[20]](_0x4844[8],auth[_0x4844[5]](),controller[_0x4844[21]]);module[_0x4844[22]]=router;
\ No newline at end of file
+var _0x8bce=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x68\x69\x73\x74\x6F\x72\x79","\x67\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6E\x74\x61\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x8bce[0];var express=require(_0x8bce[1]);var controller=require(_0x8bce[2]);var auth=require(_0x8bce[3]);var router=express.Router();router[_0x8bce[7]](_0x8bce[4],auth[_0x8bce[5]](),controller[_0x8bce[6]]);router[_0x8bce[7]](_0x8bce[8],auth[_0x8bce[5]](),controller[_0x8bce[9]]);router[_0x8bce[7]](_0x8bce[10],auth[_0x8bce[5]](),controller[_0x8bce[11]]);router[_0x8bce[13]](_0x8bce[4],auth[_0x8bce[5]](),controller[_0x8bce[12]]);router[_0x8bce[13]](_0x8bce[14],auth[_0x8bce[5]](),controller[_0x8bce[15]]);router[_0x8bce[17]](_0x8bce[8],auth[_0x8bce[5]](),controller[_0x8bce[16]]);router[_0x8bce[18]](_0x8bce[8],auth[_0x8bce[5]](),controller[_0x8bce[16]]);router[_0x8bce[20]](_0x8bce[4],auth[_0x8bce[5]](),controller[_0x8bce[19]]);router[_0x8bce[20]](_0x8bce[8],auth[_0x8bce[5]](),controller[_0x8bce[21]]);module[_0x8bce[22]]=router;
\ No newline at end of file
-var _0xe217=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x55\x53\x54\x4F\x4D\x5F\x46\x49\x45\x4C\x44","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x61\x63\x74\x69\x76\x61\x74\x65"];_0xe217[0];var _=require(_0xe217[1]);var CustomField=require(_0xe217[3])[_0xe217[2]];var util=require(_0xe217[4]);exports[_0xe217[5]]=function(_0x6d12x4,_0x6d12x5){var _0x6d12x6=[_0xe217[6],_0xe217[7]];var _0x6d12x7=_0x6d12x4[_0xe217[9]][_0xe217[8]]?parseInt(_0x6d12x4[_0xe217[9]][_0xe217[8]],10):100;var _0x6d12x8=_0x6d12x4[_0xe217[9]][_0xe217[10]]?parseInt(_0x6d12x4[_0xe217[9]][_0xe217[10]],10):0;var _0x6d12x9={where:{active:true},limit:_0x6d12x7,offset:_0x6d12x8*_0x6d12x7};_[_0xe217[24]](_0x6d12x4[_0xe217[9]],function(_0x6d12xa,_0x6d12xb){switch(_0x6d12xb){case _0xe217[8]:;case _0xe217[10]:break ;;case _0xe217[13]:_0x6d12x9[_0xe217[11]]=util[_0xe217[16]](_0xe217[12],_0x6d12x4[_0xe217[9]][_0xe217[13]],_0x6d12x4[_0xe217[9]][_0xe217[14]]||_0xe217[15])||null;break ;;case _0xe217[14]:break ;;case _0xe217[22]:_0x6d12x9[_0xe217[18]][_0xe217[17]]=[];_0x6d12x6[_0xe217[21]](function(_0x6d12xc){var _0x6d12xd={};_0x6d12xd[_0x6d12xc]={$like:_0xe217[19]+_0x6d12xa+_0xe217[19]};_0x6d12x9[_0xe217[18]][_0xe217[17]][_0xe217[20]](_0x6d12xd);});break ;;default:_0x6d12x9[_0xe217[18]][_0x6d12xb]={$like:{}};_0x6d12x9[_0xe217[18]][_0x6d12xb][_0xe217[23]]=_0xe217[19]+_0x6d12xa+_0xe217[19];;}});CustomField[_0xe217[39]](_0x6d12x9)[_0xe217[38]](function(_0x6d12xf){var _0x6d12x10=Math[_0xe217[30]](_0x6d12xf[_0xe217[29]]/_0x6d12x7);var _0x6d12x11=_0x6d12x10>(_0x6d12x9[_0xe217[31]]+1)?util[_0xe217[16]](_0xe217[32],_0x6d12x4[_0xe217[33]],_0x6d12x4[_0xe217[35]][_0xe217[34]],_0x6d12x4[_0xe217[36]],_0x6d12x8+1):null;var _0x6d12x12=_0x6d12x8>0?util[_0xe217[16]](_0xe217[32],_0x6d12x4[_0xe217[33]],_0x6d12x4[_0xe217[35]][_0xe217[34]],_0x6d12x4[_0xe217[36]],_0x6d12x8-1):null;_0x6d12x5[_0xe217[27]](200)[_0xe217[26]]({count:_0x6d12xf[_0xe217[29]],rows:_0x6d12xf[_0xe217[37]],next_page:_0x6d12x11,previous_page:_0x6d12x12,total_pages:_0x6d12x10});})[_0xe217[28]](function(_0x6d12xe){_0x6d12x5[_0xe217[27]](500)[_0xe217[26]]({error:_0xe217[25]})});};exports[_0xe217[40]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[41]]()[_0xe217[38]](function(_0x6d12x13){return _0x6d12x5[_0xe217[27]](200)[_0xe217[26]](_0x6d12x13)})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};exports[_0xe217[42]]=function(_0x6d12x4,_0x6d12x5){console[_0xe217[44]](_0x6d12x4[_0xe217[43]]);CustomField[_0xe217[41]]({where:{name:_0x6d12x4[_0xe217[43]][_0xe217[6]]}})[_0xe217[38]](function(_0x6d12x13){if(!_0x6d12x13){return _0x6d12x5[_0xe217[45]](404)};return _0x6d12x5[_0xe217[26]](_0x6d12x13);})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)});};exports[_0xe217[46]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[49]](_0x6d12x4[_0xe217[48]][_0xe217[47]])[_0xe217[38]](function(_0x6d12x14){if(!_0x6d12x14){return _0x6d12x5[_0xe217[45]](404)};return _0x6d12x5[_0xe217[26]](_0x6d12x14);})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};exports[_0xe217[50]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[50]](_0x6d12x4[_0xe217[43]])[_0xe217[38]](function(_0x6d12x14){return _0x6d12x5[_0xe217[27]](201)[_0xe217[26]](_0x6d12x14)})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};exports[_0xe217[51]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[41]]({where:{name:_0x6d12x4[_0xe217[43]][_0xe217[6]],id:{$ne:_0x6d12x4[_0xe217[43]][_0xe217[47]]}}})[_0xe217[38]](function(_0x6d12x13){if(!_0x6d12x13){return _0x6d12x5[_0xe217[45]](404)};if(_0x6d12x13[_0xe217[52]]>0){return _0x6d12x5[_0xe217[27]](500)[_0xe217[26]]({message:_0xe217[53]})};if(_0x6d12x4[_0xe217[43]][_0xe217[47]]){delete _0x6d12x4[_0xe217[43]][_0xe217[47]]};CustomField[_0xe217[49]](_0x6d12x4[_0xe217[48]][_0xe217[47]])[_0xe217[38]](function(_0x6d12x14){if(!_0x6d12x14){return _0x6d12x5[_0xe217[45]](404)};var _0x6d12x15=_[_0xe217[54]](_0x6d12x14,_0x6d12x4[_0xe217[43]]);_0x6d12x15[_0xe217[55]]()[_0xe217[38]](function(){return _0x6d12x5[_0xe217[27]](200)[_0xe217[26]](_0x6d12x14)})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)});})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)});})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};exports[_0xe217[56]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[49]](_0x6d12x4[_0xe217[48]][_0xe217[47]])[_0xe217[38]](function(_0x6d12x14){if(!_0x6d12x14){return _0x6d12x5[_0xe217[45]](404)};_0x6d12x14[_0xe217[51]]({active:false})[_0xe217[38]](function(){return _0x6d12x5[_0xe217[45]](204)})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)});})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};exports[_0xe217[57]]=function(_0x6d12x4,_0x6d12x5){CustomField[_0xe217[51]]({active:false},{where:{id:_0x6d12x4[_0xe217[9]][_0xe217[47]]},individualHooks:true})[_0xe217[38]](function(){return _0x6d12x5[_0xe217[45]](204)})[_0xe217[28]](function(_0x6d12xe){return handleError(_0x6d12x5,_0x6d12xe)})};function handleError(_0x6d12x5,_0x6d12xe){return _0x6d12x5[_0xe217[27]](500)[_0xe217[26]](_0x6d12xe)}
\ No newline at end of file
+var _0xaab5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x43\x55\x53\x54\x4F\x4D\x5F\x46\x49\x45\x4C\x44","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x61\x63\x74\x69\x76\x61\x74\x65"];_0xaab5[0];var _=require(_0xaab5[1]);var CustomField=require(_0xaab5[3])[_0xaab5[2]];var util=require(_0xaab5[4]);exports[_0xaab5[5]]=function(_0xe14ex4,_0xe14ex5){var _0xe14ex6=[_0xaab5[6],_0xaab5[7]];var _0xe14ex7=_0xe14ex4[_0xaab5[9]][_0xaab5[8]]?parseInt(_0xe14ex4[_0xaab5[9]][_0xaab5[8]],10):100;var _0xe14ex8=_0xe14ex4[_0xaab5[9]][_0xaab5[10]]?parseInt(_0xe14ex4[_0xaab5[9]][_0xaab5[10]],10):0;var _0xe14ex9={where:{active:true},limit:_0xe14ex7,offset:_0xe14ex8*_0xe14ex7};_[_0xaab5[24]](_0xe14ex4[_0xaab5[9]],function(_0xe14exa,_0xe14exb){switch(_0xe14exb){case _0xaab5[8]:;case _0xaab5[10]:break ;;case _0xaab5[13]:_0xe14ex9[_0xaab5[11]]=util[_0xaab5[16]](_0xaab5[12],_0xe14ex4[_0xaab5[9]][_0xaab5[13]],_0xe14ex4[_0xaab5[9]][_0xaab5[14]]||_0xaab5[15])||null;break ;;case _0xaab5[14]:break ;;case _0xaab5[22]:_0xe14ex9[_0xaab5[18]][_0xaab5[17]]=[];_0xe14ex6[_0xaab5[21]](function(_0xe14exc){var _0xe14exd={};_0xe14exd[_0xe14exc]={$like:_0xaab5[19]+_0xe14exa+_0xaab5[19]};_0xe14ex9[_0xaab5[18]][_0xaab5[17]][_0xaab5[20]](_0xe14exd);});break ;;default:_0xe14ex9[_0xaab5[18]][_0xe14exb]={$like:{}};_0xe14ex9[_0xaab5[18]][_0xe14exb][_0xaab5[23]]=_0xaab5[19]+_0xe14exa+_0xaab5[19];;}});CustomField[_0xaab5[39]](_0xe14ex9)[_0xaab5[38]](function(_0xe14exf){var _0xe14ex10=Math[_0xaab5[30]](_0xe14exf[_0xaab5[29]]/_0xe14ex7);var _0xe14ex11=_0xe14ex10>(_0xe14ex9[_0xaab5[31]]+1)?util[_0xaab5[16]](_0xaab5[32],_0xe14ex4[_0xaab5[33]],_0xe14ex4[_0xaab5[35]][_0xaab5[34]],_0xe14ex4[_0xaab5[36]],_0xe14ex8+1):null;var _0xe14ex12=_0xe14ex8>0?util[_0xaab5[16]](_0xaab5[32],_0xe14ex4[_0xaab5[33]],_0xe14ex4[_0xaab5[35]][_0xaab5[34]],_0xe14ex4[_0xaab5[36]],_0xe14ex8-1):null;_0xe14ex5[_0xaab5[27]](200)[_0xaab5[26]]({count:_0xe14exf[_0xaab5[29]],rows:_0xe14exf[_0xaab5[37]],next_page:_0xe14ex11,previous_page:_0xe14ex12,total_pages:_0xe14ex10});})[_0xaab5[28]](function(_0xe14exe){_0xe14ex5[_0xaab5[27]](500)[_0xaab5[26]]({error:_0xaab5[25]})});};exports[_0xaab5[40]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[41]]()[_0xaab5[38]](function(_0xe14ex13){return _0xe14ex5[_0xaab5[27]](200)[_0xaab5[26]](_0xe14ex13)})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};exports[_0xaab5[42]]=function(_0xe14ex4,_0xe14ex5){console[_0xaab5[44]](_0xe14ex4[_0xaab5[43]]);CustomField[_0xaab5[41]]({where:{name:_0xe14ex4[_0xaab5[43]][_0xaab5[6]]}})[_0xaab5[38]](function(_0xe14ex13){if(!_0xe14ex13){return _0xe14ex5[_0xaab5[45]](404)};return _0xe14ex5[_0xaab5[26]](_0xe14ex13);})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)});};exports[_0xaab5[46]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[49]](_0xe14ex4[_0xaab5[48]][_0xaab5[47]])[_0xaab5[38]](function(_0xe14ex14){if(!_0xe14ex14){return _0xe14ex5[_0xaab5[45]](404)};return _0xe14ex5[_0xaab5[26]](_0xe14ex14);})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};exports[_0xaab5[50]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[50]](_0xe14ex4[_0xaab5[43]])[_0xaab5[38]](function(_0xe14ex14){return _0xe14ex5[_0xaab5[27]](201)[_0xaab5[26]](_0xe14ex14)})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};exports[_0xaab5[51]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[41]]({where:{name:_0xe14ex4[_0xaab5[43]][_0xaab5[6]],id:{$ne:_0xe14ex4[_0xaab5[43]][_0xaab5[47]]}}})[_0xaab5[38]](function(_0xe14ex13){if(!_0xe14ex13){return _0xe14ex5[_0xaab5[45]](404)};if(_0xe14ex13[_0xaab5[52]]>0){return _0xe14ex5[_0xaab5[27]](500)[_0xaab5[26]]({message:_0xaab5[53]})};if(_0xe14ex4[_0xaab5[43]][_0xaab5[47]]){delete _0xe14ex4[_0xaab5[43]][_0xaab5[47]]};CustomField[_0xaab5[49]](_0xe14ex4[_0xaab5[48]][_0xaab5[47]])[_0xaab5[38]](function(_0xe14ex14){if(!_0xe14ex14){return _0xe14ex5[_0xaab5[45]](404)};var _0xe14ex15=_[_0xaab5[54]](_0xe14ex14,_0xe14ex4[_0xaab5[43]]);_0xe14ex15[_0xaab5[55]]()[_0xaab5[38]](function(){return _0xe14ex5[_0xaab5[27]](200)[_0xaab5[26]](_0xe14ex14)})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)});})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)});})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};exports[_0xaab5[56]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[49]](_0xe14ex4[_0xaab5[48]][_0xaab5[47]])[_0xaab5[38]](function(_0xe14ex14){if(!_0xe14ex14){return _0xe14ex5[_0xaab5[45]](404)};_0xe14ex14[_0xaab5[51]]({active:false})[_0xaab5[38]](function(){return _0xe14ex5[_0xaab5[45]](204)})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)});})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};exports[_0xaab5[57]]=function(_0xe14ex4,_0xe14ex5){CustomField[_0xaab5[51]]({active:false},{where:{id:_0xe14ex4[_0xaab5[9]][_0xaab5[47]]},individualHooks:true})[_0xaab5[38]](function(){return _0xe14ex5[_0xaab5[45]](204)})[_0xaab5[28]](function(_0xe14exe){return handleError(_0xe14ex5,_0xe14exe)})};function handleError(_0xe14ex5,_0xe14exe){return _0xe14ex5[_0xaab5[27]](500)[_0xaab5[26]](_0xe14exe)}
\ No newline at end of file
-var _0x9487=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x63\x74\x69\x76\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9487[0];var CustomField=require(_0x9487[2])[_0x9487[1]];exports[_0x9487[3]]=function(_0xc9f3x2){CustomField[_0x9487[4]](function(_0xc9f3x3){onSave(_0xc9f3x2,_0xc9f3x3)});CustomField[_0x9487[6]](function(_0xc9f3x3){if(!_0xc9f3x3[_0x9487[5]]){onRemove(_0xc9f3x2,_0xc9f3x3)}});CustomField[_0x9487[7]](function(_0xc9f3x3){onRemove(_0xc9f3x2,_0xc9f3x3)});};function onSave(_0xc9f3x2,_0xc9f3x3,_0xc9f3x5){_0xc9f3x2[_0x9487[9]](_0x9487[8],_0xc9f3x3)}function onRemove(_0xc9f3x2,_0xc9f3x3,_0xc9f3x5){_0xc9f3x2[_0x9487[9]](_0x9487[10],_0xc9f3x3)}
\ No newline at end of file
+var _0xdf64=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x63\x74\x69\x76\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xdf64[0];var CustomField=require(_0xdf64[2])[_0xdf64[1]];exports[_0xdf64[3]]=function(_0x1eaax2){CustomField[_0xdf64[4]](function(_0x1eaax3){onSave(_0x1eaax2,_0x1eaax3)});CustomField[_0xdf64[6]](function(_0x1eaax3){if(!_0x1eaax3[_0xdf64[5]]){onRemove(_0x1eaax2,_0x1eaax3)}});CustomField[_0xdf64[7]](function(_0x1eaax3){onRemove(_0x1eaax2,_0x1eaax3)});};function onSave(_0x1eaax2,_0x1eaax3,_0x1eaax5){_0x1eaax2[_0xdf64[9]](_0xdf64[8],_0x1eaax3)}function onRemove(_0x1eaax2,_0x1eaax3,_0x1eaax5){_0x1eaax2[_0xdf64[9]](_0xdf64[10],_0x1eaax3)}
\ No newline at end of file
-var _0x81e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x67\x65\x74"];_0x81e8[0];var should=require(_0x81e8[1]);var app=require(_0x81e8[2]);var request=require(_0x81e8[3]);describe(_0x81e8[4],function(){it(_0x81e8[5],function(_0x33b8x4){request(app)[_0x81e8[13]](_0x81e8[12])[_0x81e8[11]](200)[_0x81e8[11]](_0x81e8[10],/json/)[_0x81e8[9]](function(_0x33b8x5,_0x33b8x6){if(_0x33b8x5){return _0x33b8x4(_0x33b8x5)};_0x33b8x6[_0x81e8[8]][_0x81e8[1]][_0x81e8[7]][_0x81e8[6]](Array);_0x33b8x4();})})});
\ No newline at end of file
+var _0x1494=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x67\x65\x74"];_0x1494[0];var should=require(_0x1494[1]);var app=require(_0x1494[2]);var request=require(_0x1494[3]);describe(_0x1494[4],function(){it(_0x1494[5],function(_0xfacax4){request(app)[_0x1494[13]](_0x1494[12])[_0x1494[11]](200)[_0x1494[11]](_0x1494[10],/json/)[_0x1494[9]](function(_0xfacax5,_0xfacax6){if(_0xfacax5){return _0xfacax4(_0xfacax5)};_0xfacax6[_0x1494[8]][_0x1494[1]][_0x1494[7]][_0x1494[6]](Array);_0xfacax4();})})});
\ No newline at end of file
-var _0xbe9a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xbe9a[0];var express=require(_0xbe9a[1]);var controller=require(_0xbe9a[2]);var auth=require(_0xbe9a[3]);var router=express.Router();router[_0xbe9a[7]](_0xbe9a[4],auth[_0xbe9a[5]](),controller[_0xbe9a[6]]);router[_0xbe9a[7]](_0xbe9a[8],auth[_0xbe9a[5]](),controller[_0xbe9a[9]]);router[_0xbe9a[7]](_0xbe9a[10],auth[_0xbe9a[5]](),controller[_0xbe9a[11]]);router[_0xbe9a[13]](_0xbe9a[4],auth[_0xbe9a[5]](),controller[_0xbe9a[12]]);router[_0xbe9a[13]](_0xbe9a[14],auth[_0xbe9a[5]](),controller[_0xbe9a[15]]);router[_0xbe9a[17]](_0xbe9a[10],auth[_0xbe9a[5]](),controller[_0xbe9a[16]]);router[_0xbe9a[18]](_0xbe9a[10],auth[_0xbe9a[5]](),controller[_0xbe9a[16]]);router[_0xbe9a[20]](_0xbe9a[4],auth[_0xbe9a[5]](),controller[_0xbe9a[19]]);router[_0xbe9a[20]](_0xbe9a[10],auth[_0xbe9a[5]](),controller[_0xbe9a[21]]);module[_0xbe9a[22]]=router;
\ No newline at end of file
+var _0xd227=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x65\x61\x63\x74\x69\x76\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xd227[0];var express=require(_0xd227[1]);var controller=require(_0xd227[2]);var auth=require(_0xd227[3]);var router=express.Router();router[_0xd227[7]](_0xd227[4],auth[_0xd227[5]](),controller[_0xd227[6]]);router[_0xd227[7]](_0xd227[8],auth[_0xd227[5]](),controller[_0xd227[9]]);router[_0xd227[7]](_0xd227[10],auth[_0xd227[5]](),controller[_0xd227[11]]);router[_0xd227[13]](_0xd227[4],auth[_0xd227[5]](),controller[_0xd227[12]]);router[_0xd227[13]](_0xd227[14],auth[_0xd227[5]](),controller[_0xd227[15]]);router[_0xd227[17]](_0xd227[10],auth[_0xd227[5]](),controller[_0xd227[16]]);router[_0xd227[18]](_0xd227[10],auth[_0xd227[5]](),controller[_0xd227[16]]);router[_0xd227[20]](_0xd227[4],auth[_0xd227[5]](),controller[_0xd227[19]]);router[_0xd227[20]](_0xd227[10],auth[_0xd227[5]](),controller[_0xd227[21]]);module[_0xd227[22]]=router;
\ No newline at end of file
-var _0xe0b6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x65\x6E\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x70\x61\x72\x73\x65","\x66\x6F\x72\x4F\x77\x6E","\x63\x6C\x69\x65\x6E\x74\x51\x75\x65\x72\x79","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xe0b6[0];var _=require(_0xe0b6[1]);var util=require(_0xe0b6[2]);var CustomReport=require(_0xe0b6[4])[_0xe0b6[3]];var ReportTree=require(_0xe0b6[4])[_0xe0b6[5]];exports[_0xe0b6[6]]=function(_0x8584x5,_0x8584x6,_0x8584x7){var _0x8584x8=[_0xe0b6[7],_0xe0b6[8],_0xe0b6[9]];var _0x8584x9=_0x8584x5[_0xe0b6[11]][_0xe0b6[10]]?parseInt(_0x8584x5[_0xe0b6[11]][_0xe0b6[10]],10):100;var _0x8584xa=_0x8584x5[_0xe0b6[11]][_0xe0b6[12]]?parseInt(_0x8584x5[_0xe0b6[11]][_0xe0b6[12]],10):0;var _0x8584xb={where:{},limit:_0x8584x9,offset:_0x8584xa*_0x8584x9};_[_0xe0b6[31]](_0x8584x5[_0xe0b6[11]],function(_0x8584xc,_0x8584xd){switch(_0x8584xd){case _0xe0b6[10]:;case _0xe0b6[12]:break ;;case _0xe0b6[15]:_0x8584xb[_0xe0b6[13]]=util[_0xe0b6[18]](_0xe0b6[14],_0x8584x5[_0xe0b6[11]][_0xe0b6[15]],_0x8584x5[_0xe0b6[11]][_0xe0b6[16]]||_0xe0b6[17])||null;break ;;case _0xe0b6[16]:break ;;case _0xe0b6[24]:_0x8584xb[_0xe0b6[20]][_0xe0b6[19]]=[];_0x8584x8[_0xe0b6[23]](function(_0x8584xe){var _0x8584xf={};_0x8584xf[_0x8584xe]={$like:_0xe0b6[21]+_0x8584xc+_0xe0b6[21]};_0x8584xb[_0xe0b6[20]][_0xe0b6[19]][_0xe0b6[22]](_0x8584xf);});break ;;case _0xe0b6[25]:_0x8584xb[_0xe0b6[20]][_0xe0b6[25]]={$or:_0x8584xc[_0xe0b6[26]](/[\s,]+/)};break ;;case _0xe0b6[29]:var _0x8584x10=JSON[_0xe0b6[27]](_0x8584xc);_[_0xe0b6[28]](_0x8584x10,function(_0x8584x11,_0x8584x12){_0x8584xb[_0xe0b6[20]][_0x8584x12]=_0x8584x11});break ;;default:_0x8584xb[_0xe0b6[20]][_0x8584xd]={$like:{}};_0x8584xb[_0xe0b6[20]][_0x8584xd][_0xe0b6[30]]=_0xe0b6[21]+_0x8584xc+_0xe0b6[21];;}});CustomReport[_0xe0b6[46]](_0x8584xb)[_0xe0b6[45]](function(_0x8584x14){var _0x8584x15=Math[_0xe0b6[37]](_0x8584x14[_0xe0b6[36]]/_0x8584x9);var _0x8584x16=_0x8584x15>(_0x8584xb[_0xe0b6[38]]+1)?util[_0xe0b6[18]](_0xe0b6[39],_0x8584x5[_0xe0b6[40]],_0x8584x5[_0xe0b6[42]][_0xe0b6[41]],_0x8584x5[_0xe0b6[43]],_0x8584xa+1):null;var _0x8584x17=_0x8584xa>0?util[_0xe0b6[18]](_0xe0b6[39],_0x8584x5[_0xe0b6[40]],_0x8584x5[_0xe0b6[42]][_0xe0b6[41]],_0x8584x5[_0xe0b6[43]],_0x8584xa-1):null;_0x8584x6[_0xe0b6[34]](200)[_0xe0b6[33]]({count:_0x8584x14[_0xe0b6[36]],rows:_0x8584x14[_0xe0b6[44]],next_page:_0x8584x16,previous_page:_0x8584x17,total_pages:_0x8584x15});})[_0xe0b6[35]](function(_0x8584x13){_0x8584x6[_0xe0b6[34]](500)[_0xe0b6[33]]({error:_0xe0b6[32]})});};exports[_0xe0b6[47]]=function(_0x8584x5,_0x8584x6){CustomReport[_0xe0b6[51]](_0x8584x5[_0xe0b6[50]][_0xe0b6[49]])[_0xe0b6[45]](function(_0x8584x18){if(!_0x8584x18){return _0x8584x6[_0xe0b6[48]](404)};return _0x8584x6[_0xe0b6[33]](_0x8584x18);})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)})};exports[_0xe0b6[52]]=function(_0x8584x5,_0x8584x6){CustomReport[_0xe0b6[52]](_0x8584x5[_0xe0b6[53]])[_0xe0b6[45]](function(_0x8584x18){return _0x8584x6[_0xe0b6[34]](201)[_0xe0b6[33]](_0x8584x18)})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)})};exports[_0xe0b6[54]]=function(_0x8584x5,_0x8584x6){if(_0x8584x5[_0xe0b6[53]][_0xe0b6[49]]){delete _0x8584x5[_0xe0b6[53]][_0xe0b6[49]]};CustomReport[_0xe0b6[51]](_0x8584x5[_0xe0b6[50]][_0xe0b6[49]])[_0xe0b6[45]](function(_0x8584x18){if(!_0x8584x18){return _0x8584x6[_0xe0b6[48]](404)};var _0x8584x19=_[_0xe0b6[55]](_0x8584x18,_0x8584x5[_0xe0b6[53]]);_0x8584x19[_0xe0b6[56]]()[_0xe0b6[45]](function(){return _0x8584x6[_0xe0b6[34]](200)[_0xe0b6[33]](_0x8584x18)})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)});})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)});};exports[_0xe0b6[57]]=function(_0x8584x5,_0x8584x6){CustomReport[_0xe0b6[51]](_0x8584x5[_0xe0b6[50]][_0xe0b6[49]])[_0xe0b6[45]](function(_0x8584x18){if(!_0x8584x18){return _0x8584x6[_0xe0b6[48]](404)};_0x8584x18[_0xe0b6[57]]()[_0xe0b6[45]](function(){return _0x8584x6[_0xe0b6[48]](204)})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)});})[_0xe0b6[35]](function(_0x8584x13){return handleError(_0x8584x6,_0x8584x13)})};function handleError(_0x8584x6,_0x8584x13){return _0x8584x6[_0xe0b6[34]](500)[_0xe0b6[33]](_0x8584x13)}
\ No newline at end of file
+var _0xeb78=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x65\x6E\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x70\x61\x72\x73\x65","\x66\x6F\x72\x4F\x77\x6E","\x63\x6C\x69\x65\x6E\x74\x51\x75\x65\x72\x79","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x6F\x70\x79","\x6C\x6F\x67","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x62\x6F\x64\x79","\x46\x69\x65\x6C\x64\x73","\x70\x6C\x75\x63\x6B","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74\x49\x64","\x63\x72\x65\x61\x74\x65","\x69\x6D\x70\x6F\x72\x74","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x5F\x41\x5F\x46\x49\x45\x4C\x44","\x20\x4C\x49\x4D\x49\x54\x20\x32\x30","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x43\x4F\x55\x4E\x54\x28\x44\x49\x53\x54\x49\x4E\x43\x54\x20\x25\x73\x29","\x66\x69\x65\x6C\x64","\x43\x4F\x55\x4E\x54\x20\x44\x49\x53\x54\x49\x4E\x43\x54","\x47\x52\x4F\x55\x50\x5F\x43\x4F\x4E\x43\x41\x54\x28\x25\x73\x20\x4F\x52\x44\x45\x52\x20\x42\x59\x20\x25\x73\x20\x41\x53\x43\x29","\x47\x52\x4F\x55\x50\x5F\x43\x4F\x4E\x43\x41\x54\x20\x41\x53\x43","\x47\x52\x4F\x55\x50\x5F\x43\x4F\x4E\x43\x41\x54\x28\x25\x73\x20\x4F\x52\x44\x45\x52\x20\x42\x59\x20\x25\x73\x20\x44\x45\x53\x43\x29","\x47\x52\x4F\x55\x50\x5F\x43\x4F\x4E\x43\x41\x54\x20\x44\x45\x53\x43","\x25\x73\x28\x25\x73\x29","\x25\x73\x20\x41\x53\x20\x27\x25\x73\x27","\x61\x6C\x69\x61\x73","\x67\x72\x6F\x75\x70\x42\x79","\x6F\x72\x64\x65\x72\x42\x79","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x20","\x2C","\x6A\x6F\x69\x6E","\x20\x46\x52\x4F\x4D\x20","\x74\x61\x62\x6C\x65","\x28\x29","\x20\x57\x48\x45\x52\x45\x20","\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20","\x20\x4F\x52\x44\x45\x52\x20\x42\x59\x20","\x28","\x72\x75\x6C\x65\x73","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x20\x27","\x4C\x49\x4B\x45","\x76\x61\x6C\x75\x65","\x27","\x29","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xeb78[0];var _=require(_0xeb78[1]);var util=require(_0xeb78[2]);var sequelize=require(_0xeb78[4])[_0xeb78[3]];var CustomReport=require(_0xeb78[4])[_0xeb78[5]];var ReportField=require(_0xeb78[4])[_0xeb78[6]];var ReportTree=require(_0xeb78[4])[_0xeb78[7]];exports[_0xeb78[8]]=function(_0x97ecx7,_0x97ecx8,_0x97ecx9){var _0x97ecxa=[_0xeb78[9],_0xeb78[10],_0xeb78[11]];var _0x97ecxb=_0x97ecx7[_0xeb78[13]][_0xeb78[12]]?parseInt(_0x97ecx7[_0xeb78[13]][_0xeb78[12]],10):100;var _0x97ecxc=_0x97ecx7[_0xeb78[13]][_0xeb78[14]]?parseInt(_0x97ecx7[_0xeb78[13]][_0xeb78[14]],10):0;var _0x97ecxd={where:{},limit:_0x97ecxb,offset:_0x97ecxc*_0x97ecxb};_[_0xeb78[33]](_0x97ecx7[_0xeb78[13]],function(_0x97ecxe,_0x97ecxf){switch(_0x97ecxf){case _0xeb78[12]:;case _0xeb78[14]:break ;;case _0xeb78[17]:_0x97ecxd[_0xeb78[15]]=util[_0xeb78[20]](_0xeb78[16],_0x97ecx7[_0xeb78[13]][_0xeb78[17]],_0x97ecx7[_0xeb78[13]][_0xeb78[18]]||_0xeb78[19])||null;break ;;case _0xeb78[18]:break ;;case _0xeb78[26]:_0x97ecxd[_0xeb78[22]][_0xeb78[21]]=[];_0x97ecxa[_0xeb78[25]](function(_0x97ecx10){var _0x97ecx11={};_0x97ecx11[_0x97ecx10]={$like:_0xeb78[23]+_0x97ecxe+_0xeb78[23]};_0x97ecxd[_0xeb78[22]][_0xeb78[21]][_0xeb78[24]](_0x97ecx11);});break ;;case _0xeb78[27]:_0x97ecxd[_0xeb78[22]][_0xeb78[27]]={$or:_0x97ecxe[_0xeb78[28]](/[\s,]+/)};break ;;case _0xeb78[31]:var _0x97ecx12=JSON[_0xeb78[29]](_0x97ecxe);_[_0xeb78[30]](_0x97ecx12,function(_0x97ecx13,_0x97ecx14){_0x97ecxd[_0xeb78[22]][_0x97ecx14]=_0x97ecx13});break ;;default:_0x97ecxd[_0xeb78[22]][_0x97ecxf]={$like:{}};_0x97ecxd[_0xeb78[22]][_0x97ecxf][_0xeb78[32]]=_0xeb78[23]+_0x97ecxe+_0xeb78[23];;}});CustomReport[_0xeb78[48]](_0x97ecxd)[_0xeb78[47]](function(_0x97ecx16){var _0x97ecx17=Math[_0xeb78[39]](_0x97ecx16[_0xeb78[38]]/_0x97ecxb);var _0x97ecx18=_0x97ecx17>(_0x97ecxd[_0xeb78[40]]+1)?util[_0xeb78[20]](_0xeb78[41],_0x97ecx7[_0xeb78[42]],_0x97ecx7[_0xeb78[44]][_0xeb78[43]],_0x97ecx7[_0xeb78[45]],_0x97ecxc+1):null;var _0x97ecx19=_0x97ecxc>0?util[_0xeb78[20]](_0xeb78[41],_0x97ecx7[_0xeb78[42]],_0x97ecx7[_0xeb78[44]][_0xeb78[43]],_0x97ecx7[_0xeb78[45]],_0x97ecxc-1):null;_0x97ecx8[_0xeb78[36]](200)[_0xeb78[35]]({count:_0x97ecx16[_0xeb78[38]],rows:_0x97ecx16[_0xeb78[46]],next_page:_0x97ecx18,previous_page:_0x97ecx19,total_pages:_0x97ecx17});})[_0xeb78[37]](function(_0x97ecx15){_0x97ecx8[_0xeb78[36]](500)[_0xeb78[35]]({error:_0xeb78[34]})});};exports[_0xeb78[49]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[53]](_0x97ecx7[_0xeb78[52]][_0xeb78[51]],{include:[{all:true}]})[_0xeb78[47]](function(_0x97ecx1a){if(!_0x97ecx1a){return _0x97ecx8[_0xeb78[50]](404)};return _0x97ecx8[_0xeb78[35]](_0x97ecx1a);})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};exports[_0xeb78[54]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[53]](_0x97ecx7[_0xeb78[52]][_0xeb78[51]],{include:[{all:true}]})[_0xeb78[47]](function(_0x97ecx1a){if(!_0x97ecx1a){return _0x97ecx8[_0xeb78[50]](404)};var _0x97ecx1b=_0x97ecx1a[_0xeb78[56]];delete _0x97ecx1b[_0xeb78[51]];delete _0x97ecx1b[_0xeb78[57]];delete _0x97ecx1b[_0xeb78[58]];_0x97ecx1b[_0xeb78[11]]=_0x97ecx7[_0xeb78[59]][_0xeb78[11]];_0x97ecx1b[_0xeb78[60]]=_[_0xeb78[61]](_0x97ecx1b.Fields,_0xeb78[56]);_[_0xeb78[25]](_0x97ecx1b.Fields,function(_0x97ecx1c){delete _0x97ecx1c[_0xeb78[51]];delete _0x97ecx1c[_0xeb78[62]];delete _0x97ecx1c[_0xeb78[57]];delete _0x97ecx1c[_0xeb78[58]];});return CustomReport[_0xeb78[63]](_0x97ecx1b,{include:[{all:true}]});})[_0xeb78[47]](function(){return _0x97ecx8[_0xeb78[50]](201)})[_0xeb78[37]](function(_0x97ecx15){console[_0xeb78[55]](_0x97ecx15);return handleError(_0x97ecx8,_0x97ecx15);})};exports[_0xeb78[64]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[63]](_0x97ecx7[_0xeb78[59]],{include:[{all:true}]})[_0xeb78[47]](function(_0x97ecx1a){return _0x97ecx8[_0xeb78[36]](201)[_0xeb78[35]](_0x97ecx1a)})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};exports[_0xeb78[65]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[53]](_0x97ecx7[_0xeb78[52]][_0xeb78[51]],{include:[{all:true}]})[_0xeb78[47]](function(_0x97ecx1a){if(!_0x97ecx1a){return _0x97ecx8[_0xeb78[50]](404)};if(!_0x97ecx1a[_0xeb78[60]][_0xeb78[66]]){return _0x97ecx8[_0xeb78[36]](500)[_0xeb78[35]]({message:_0xeb78[67]})};var _0x97ecxd=buildReport(_0x97ecx1a[_0xeb78[56]]);return sequelize[_0xeb78[13]](_0x97ecxd+_0xeb78[68],{type:sequelize[_0xeb78[70]][_0xeb78[69]]});})[_0xeb78[47]](function(_0x97ecx1d){return _0x97ecx8[_0xeb78[36]](200)[_0xeb78[35]](_0x97ecx1d)})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};function buildReport(_0x97ecx1a){var _0x97ecx1f=[],_0x97ecx20=[],_0x97ecx21=[];_[_0xeb78[25]](_0x97ecx1a.Fields,function(_0x97ecx1c){var _0x97ecx22=_0xeb78[71];if(_0x97ecx1c[_0xeb78[72]]){switch(_0x97ecx1c[_0xeb78[72]]){case _0xeb78[75]:_0x97ecx22=util[_0xeb78[20]](_0xeb78[73],_0x97ecx1c[_0xeb78[74]]);break ;;case _0xeb78[77]:_0x97ecx22=util[_0xeb78[20]](_0xeb78[76],_0x97ecx1c[_0xeb78[74]],_0x97ecx1c[_0xeb78[74]]);break ;;case _0xeb78[79]:_0x97ecx22=util[_0xeb78[20]](_0xeb78[78],_0x97ecx1c[_0xeb78[74]],_0x97ecx1c[_0xeb78[74]]);break ;;default:_0x97ecx22=util[_0xeb78[20]](_0xeb78[80],_0x97ecx1c[_0xeb78[72]],_0x97ecx1c[_0xeb78[74]]);;}}else {_0x97ecx22=_0x97ecx1c[_0xeb78[74]]};_0x97ecx1f[_0xeb78[24]](util[_0xeb78[20]](_0xeb78[81],_0x97ecx22,_0x97ecx1c[_0xeb78[82]]));if(_0x97ecx1c[_0xeb78[83]]){_0x97ecx20[_0xeb78[24]](_0x97ecx1c[_0xeb78[74]])};if(_0x97ecx1c[_0xeb78[84]]){_0x97ecx21[_0xeb78[24]](util[_0xeb78[20]](_0xeb78[16],_0x97ecx1c[_0xeb78[74]],_0x97ecx1c[_0xeb78[84]]))};});var _0x97ecx23=getConditions(JSON[_0xeb78[29]](_0x97ecx1a[_0xeb78[86]])[_0xeb78[85]]);var _0x97ecxd=_0xeb78[69];_0x97ecxd+=_0xeb78[87]+_0x97ecx1f[_0xeb78[89]](_0xeb78[88]);_0x97ecxd+=_0xeb78[90]+_0x97ecx1a[_0xeb78[91]];_0x97ecxd+=_0x97ecx23!==_0xeb78[92]?_0xeb78[93]+_0x97ecx23:_0xeb78[71];_0x97ecxd+=_0x97ecx20[_0xeb78[66]]?_0xeb78[94]+_0x97ecx20[_0xeb78[89]](_0xeb78[88]):_0xeb78[71];_0x97ecxd+=_0x97ecx21[_0xeb78[66]]?_0xeb78[95]+_0x97ecx21[_0xeb78[89]](_0xeb78[88]):_0xeb78[71];return _0x97ecxd;}function getConditions(_0x97ecx25){if(!_0x97ecx25){return _0xeb78[71]};for(var _0x97ecx26=_0xeb78[96],_0x97ecx27=0;_0x97ecx27<_0x97ecx25[_0xeb78[97]][_0xeb78[66]];_0x97ecx27++){_0x97ecx27>0&&(_0x97ecx26+=_0xeb78[87]+_0x97ecx25[_0xeb78[98]]+_0xeb78[87]);_0x97ecx26+=_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[85]]?getConditions(_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[85]]):_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[74]]+_0xeb78[87]+_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[99]]+_0xeb78[100]+(_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[99]]===_0xeb78[101]?_0xeb78[23]+_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[102]]+_0xeb78[23]:_0x97ecx25[_0xeb78[97]][_0x97ecx27][_0xeb78[102]])+_0xeb78[103];};return _0x97ecx26+_0xeb78[104];}exports[_0xeb78[63]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[63]](_0x97ecx7[_0xeb78[59]])[_0xeb78[47]](function(_0x97ecx1a){return _0x97ecx8[_0xeb78[36]](201)[_0xeb78[35]](_0x97ecx1a)})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};exports[_0xeb78[105]]=function(_0x97ecx7,_0x97ecx8){if(_0x97ecx7[_0xeb78[59]][_0xeb78[51]]){delete _0x97ecx7[_0xeb78[59]][_0xeb78[51]]};ReportField[_0xeb78[107]]({where:{CustomReportId:_0x97ecx7[_0xeb78[52]][_0xeb78[51]]}})[_0xeb78[47]](function(){return ReportField[_0xeb78[106]](_0x97ecx7[_0xeb78[59]].Fields)})[_0xeb78[47]](function(){delete _0x97ecx7[_0xeb78[59]][_0xeb78[60]];return CustomReport[_0xeb78[105]](_0x97ecx7[_0xeb78[59]],{where:{id:_0x97ecx7[_0xeb78[52]][_0xeb78[51]]}});})[_0xeb78[47]](function(){return _0x97ecx8[_0xeb78[50]](200)})[_0xeb78[37]](function(_0x97ecx15){console[_0xeb78[55]](_0x97ecx15);return handleError(_0x97ecx8,_0x97ecx15);});};exports[_0xeb78[107]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[53]](_0x97ecx7[_0xeb78[52]][_0xeb78[51]])[_0xeb78[47]](function(_0x97ecx1a){if(!_0x97ecx1a){return _0x97ecx8[_0xeb78[50]](404)};_0x97ecx1a[_0xeb78[107]]()[_0xeb78[47]](function(){return _0x97ecx8[_0xeb78[50]](204)})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)});})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};exports[_0xeb78[108]]=function(_0x97ecx7,_0x97ecx8){CustomReport[_0xeb78[107]]({where:{id:_0x97ecx7[_0xeb78[13]][_0xeb78[51]]},individualHooks:true})[_0xeb78[47]](function(){return _0x97ecx8[_0xeb78[50]](204)})[_0xeb78[37]](function(_0x97ecx15){return handleError(_0x97ecx8,_0x97ecx15)})};function handleError(_0x97ecx8,_0x97ecx15){return _0x97ecx8[_0xeb78[36]](500)[_0xeb78[35]](_0x97ecx15)}
\ No newline at end of file
-var _0xd561=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xd561[0];var CustomReport=require(_0xd561[2])[_0xd561[1]];exports[_0xd561[3]]=function(_0xe35ex2){CustomReport[_0xd561[4]](function(_0xe35ex3){onSave(_0xe35ex2,_0xe35ex3)});CustomReport[_0xd561[5]](function(_0xe35ex3){onRemove(_0xe35ex2,_0xe35ex3)});};function onSave(_0xe35ex2,_0xe35ex3,_0xe35ex5){_0xe35ex2[_0xd561[7]](_0xd561[6],_0xe35ex3)}function onRemove(_0xe35ex2,_0xe35ex3,_0xe35ex5){_0xe35ex2[_0xd561[7]](_0xd561[8],_0xe35ex3)}
\ No newline at end of file
+var _0xb9c8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb9c8[0];var CustomReport=require(_0xb9c8[2])[_0xb9c8[1]];exports[_0xb9c8[3]]=function(_0x1d29x2){CustomReport[_0xb9c8[4]](function(_0x1d29x3){onSave(_0x1d29x2,_0x1d29x3)});CustomReport[_0xb9c8[5]](function(_0x1d29x3){onRemove(_0x1d29x2,_0x1d29x3)});};function onSave(_0x1d29x2,_0x1d29x3,_0x1d29x5){_0x1d29x2[_0xb9c8[7]](_0xb9c8[6],_0x1d29x3)}function onRemove(_0x1d29x2,_0x1d29x3,_0x1d29x5){_0x1d29x2[_0xb9c8[7]](_0xb9c8[8],_0x1d29x3)}
\ No newline at end of file
-var _0x75e2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74"];_0x75e2[0];var should=require(_0x75e2[1]);var app=require(_0x75e2[2]);var request=require(_0x75e2[3]);describe(_0x75e2[4],function(){it(_0x75e2[5],function(_0xeed4x4){request(app)[_0x75e2[13]](_0x75e2[12])[_0x75e2[11]](200)[_0x75e2[11]](_0x75e2[10],/json/)[_0x75e2[9]](function(_0xeed4x5,_0xeed4x6){if(_0xeed4x5){return _0xeed4x4(_0xeed4x5)};_0xeed4x6[_0x75e2[8]][_0x75e2[1]][_0x75e2[7]][_0x75e2[6]](Array);_0xeed4x4();})})});
\ No newline at end of file
+var _0x73f3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74"];_0x73f3[0];var should=require(_0x73f3[1]);var app=require(_0x73f3[2]);var request=require(_0x73f3[3]);describe(_0x73f3[4],function(){it(_0x73f3[5],function(_0x3ac7x4){request(app)[_0x73f3[13]](_0x73f3[12])[_0x73f3[11]](200)[_0x73f3[11]](_0x73f3[10],/json/)[_0x73f3[9]](function(_0x3ac7x5,_0x3ac7x6){if(_0x3ac7x5){return _0x3ac7x4(_0x3ac7x5)};_0x3ac7x6[_0x73f3[8]][_0x73f3[1]][_0x73f3[7]][_0x73f3[6]](Array);_0x3ac7x4();})})});
\ No newline at end of file
-var _0x5b0c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5b0c[0];var express=require(_0x5b0c[1]);var controller=require(_0x5b0c[2]);var router=express.Router();router[_0x5b0c[5]](_0x5b0c[3],controller[_0x5b0c[4]]);router[_0x5b0c[5]](_0x5b0c[6],controller[_0x5b0c[7]]);router[_0x5b0c[9]](_0x5b0c[3],controller[_0x5b0c[8]]);router[_0x5b0c[11]](_0x5b0c[6],controller[_0x5b0c[10]]);router[_0x5b0c[12]](_0x5b0c[6],controller[_0x5b0c[10]]);router[_0x5b0c[14]](_0x5b0c[6],controller[_0x5b0c[13]]);module[_0x5b0c[15]]=router;
\ No newline at end of file
+var _0xffb9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x70\x72\x65\x76\x69\x65\x77\x2F\x3A\x69\x64","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x69\x6D\x70\x6F\x72\x74","\x69\x6D\x70\x6F\x72\x74","\x2F\x63\x6F\x70\x79\x2F\x3A\x69\x64","\x63\x6F\x70\x79","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xffb9[0];var express=require(_0xffb9[1]);var controller=require(_0xffb9[2]);var router=express.Router();router[_0xffb9[5]](_0xffb9[3],controller[_0xffb9[4]]);router[_0xffb9[5]](_0xffb9[6],controller[_0xffb9[7]]);router[_0xffb9[5]](_0xffb9[8],controller[_0xffb9[9]]);router[_0xffb9[11]](_0xffb9[3],controller[_0xffb9[10]]);router[_0xffb9[11]](_0xffb9[12],controller[_0xffb9[13]]);router[_0xffb9[11]](_0xffb9[14],controller[_0xffb9[15]]);router[_0xffb9[17]](_0xffb9[8],controller[_0xffb9[16]]);router[_0xffb9[18]](_0xffb9[8],controller[_0xffb9[16]]);router[_0xffb9[20]](_0xffb9[3],controller[_0xffb9[19]]);router[_0xffb9[20]](_0xffb9[8],controller[_0xffb9[21]]);module[_0xffb9[22]]=router;
\ No newline at end of file
-var _0x404a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x61\x6C\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x404a[0];var _=require(_0x404a[1]);var util=require(_0x404a[2]);var Dashboard=require(_0x404a[4])[_0x404a[3]];exports[_0x404a[5]]=function(_0xc868x4,_0xc868x5){var _0xc868x6=[_0x404a[6],_0x404a[7]];var _0xc868x7=_0xc868x4[_0x404a[9]][_0x404a[8]]?parseInt(_0xc868x4[_0x404a[9]][_0x404a[8]],10):100;var _0xc868x8=_0xc868x4[_0x404a[9]][_0x404a[10]]?parseInt(_0xc868x4[_0x404a[9]][_0x404a[10]],10):0;var _0xc868x9={where:{},limit:_0xc868x7,offset:_0xc868x8*_0xc868x7};_[_0x404a[24]](_0xc868x4[_0x404a[9]],function(_0xc868xa,_0xc868xb){switch(_0xc868xb){case _0x404a[8]:;case _0x404a[10]:break ;;case _0x404a[13]:_0xc868x9[_0x404a[11]]=util[_0x404a[16]](_0x404a[12],_0xc868x4[_0x404a[9]][_0x404a[13]],_0xc868x4[_0x404a[9]][_0x404a[14]]||_0x404a[15])||null;break ;;case _0x404a[14]:break ;;case _0x404a[22]:_0xc868x9[_0x404a[18]][_0x404a[17]]=[];_0xc868x6[_0x404a[21]](function(_0xc868xc){var _0xc868xd={};_0xc868xd[_0xc868xc]={$like:_0x404a[19]+_0xc868xa+_0x404a[19]};_0xc868x9[_0x404a[18]][_0x404a[17]][_0x404a[20]](_0xc868xd);});break ;;default:_0xc868x9[_0x404a[18]][_0xc868xb]={$like:{}};_0xc868x9[_0x404a[18]][_0xc868xb][_0x404a[23]]=_0x404a[19]+_0xc868xa+_0x404a[19];;}});Dashboard[_0x404a[39]](_0xc868x9)[_0x404a[38]](function(_0xc868xf){var _0xc868x10=Math[_0x404a[30]](_0xc868xf[_0x404a[29]]/_0xc868x7);var _0xc868x11=_0xc868x10>(_0xc868x9[_0x404a[31]]+1)?util[_0x404a[16]](_0x404a[32],_0xc868x4[_0x404a[33]],_0xc868x4[_0x404a[35]][_0x404a[34]],_0xc868x4[_0x404a[36]],_0xc868x8+1):null;var _0xc868x12=_0xc868x8>0?util[_0x404a[16]](_0x404a[32],_0xc868x4[_0x404a[33]],_0xc868x4[_0x404a[35]][_0x404a[34]],_0xc868x4[_0x404a[36]],_0xc868x8-1):null;return _0xc868x5[_0x404a[27]](200)[_0x404a[26]]({count:_0xc868xf[_0x404a[29]],rows:_0xc868xf[_0x404a[37]],next_page:_0xc868x11,previous_page:_0xc868x12,total_pages:_0xc868x10});})[_0x404a[28]](function(_0xc868xe){return _0xc868x5[_0x404a[27]](500)[_0x404a[26]]({error:_0x404a[25]})});};exports[_0x404a[40]]=function(_0xc868x4,_0xc868x5){Dashboard[_0x404a[42]]()[_0x404a[38]](function(_0xc868x13){if(!_0xc868x13){return _0xc868x5[_0x404a[41]](404)};return _0xc868x5[_0x404a[27]](200)[_0x404a[26]](_0xc868x13);})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)})};exports[_0x404a[43]]=function(_0xc868x4,_0xc868x5){Dashboard[_0x404a[46]](_0xc868x4[_0x404a[45]][_0x404a[44]])[_0x404a[38]](function(_0xc868x14){if(!_0xc868x14){return _0xc868x5[_0x404a[41]](404)};return _0xc868x5[_0x404a[26]](_0xc868x14);})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)})};exports[_0x404a[47]]=function(_0xc868x4,_0xc868x5){Dashboard[_0x404a[47]](_0xc868x4[_0x404a[48]])[_0x404a[38]](function(_0xc868x14){return _0xc868x5[_0x404a[27]](201)[_0x404a[26]](_0xc868x14)})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)})};exports[_0x404a[49]]=function(_0xc868x4,_0xc868x5){if(_0xc868x4[_0x404a[48]][_0x404a[44]]){delete _0xc868x4[_0x404a[48]][_0x404a[44]]};Dashboard[_0x404a[46]](_0xc868x4[_0x404a[45]][_0x404a[44]])[_0x404a[38]](function(_0xc868x14){if(!_0xc868x14){return _0xc868x5[_0x404a[41]](404)};var _0xc868x15=_[_0x404a[50]](_0xc868x14,_0xc868x4[_0x404a[48]]);_0xc868x15[_0x404a[51]]()[_0x404a[38]](function(){return _0xc868x5[_0x404a[27]](200)[_0x404a[26]](_0xc868x14)})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)});})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)});};exports[_0x404a[52]]=function(_0xc868x4,_0xc868x5){Dashboard[_0x404a[46]](_0xc868x4[_0x404a[45]][_0x404a[44]])[_0x404a[38]](function(_0xc868x14){if(!_0xc868x14){return _0xc868x5[_0x404a[41]](404)};_0xc868x14[_0x404a[52]]()[_0x404a[38]](function(){return _0xc868x5[_0x404a[41]](204)})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)});})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)})};exports[_0x404a[53]]=function(_0xc868x4,_0xc868x5){Dashboard[_0x404a[52]]({where:{id:_0xc868x4[_0x404a[9]][_0x404a[44]]},individualHooks:true})[_0x404a[38]](function(){return _0xc868x5[_0x404a[41]](204)})[_0x404a[28]](function(_0xc868xe){return handleError(_0xc868x5,_0xc868xe)})};function handleError(_0xc868x5,_0xc868xe){return _0xc868x5[_0x404a[27]](500)[_0x404a[26]](_0xc868xe)}
\ No newline at end of file
+var _0x7b5d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x61\x6C\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x7b5d[0];var _=require(_0x7b5d[1]);var util=require(_0x7b5d[2]);var Dashboard=require(_0x7b5d[4])[_0x7b5d[3]];exports[_0x7b5d[5]]=function(_0x678cx4,_0x678cx5){var _0x678cx6=[_0x7b5d[6],_0x7b5d[7]];var _0x678cx7=_0x678cx4[_0x7b5d[9]][_0x7b5d[8]]?parseInt(_0x678cx4[_0x7b5d[9]][_0x7b5d[8]],10):100;var _0x678cx8=_0x678cx4[_0x7b5d[9]][_0x7b5d[10]]?parseInt(_0x678cx4[_0x7b5d[9]][_0x7b5d[10]],10):0;var _0x678cx9={where:{},limit:_0x678cx7,offset:_0x678cx8*_0x678cx7};_[_0x7b5d[24]](_0x678cx4[_0x7b5d[9]],function(_0x678cxa,_0x678cxb){switch(_0x678cxb){case _0x7b5d[8]:;case _0x7b5d[10]:break ;;case _0x7b5d[13]:_0x678cx9[_0x7b5d[11]]=util[_0x7b5d[16]](_0x7b5d[12],_0x678cx4[_0x7b5d[9]][_0x7b5d[13]],_0x678cx4[_0x7b5d[9]][_0x7b5d[14]]||_0x7b5d[15])||null;break ;;case _0x7b5d[14]:break ;;case _0x7b5d[22]:_0x678cx9[_0x7b5d[18]][_0x7b5d[17]]=[];_0x678cx6[_0x7b5d[21]](function(_0x678cxc){var _0x678cxd={};_0x678cxd[_0x678cxc]={$like:_0x7b5d[19]+_0x678cxa+_0x7b5d[19]};_0x678cx9[_0x7b5d[18]][_0x7b5d[17]][_0x7b5d[20]](_0x678cxd);});break ;;default:_0x678cx9[_0x7b5d[18]][_0x678cxb]={$like:{}};_0x678cx9[_0x7b5d[18]][_0x678cxb][_0x7b5d[23]]=_0x7b5d[19]+_0x678cxa+_0x7b5d[19];;}});Dashboard[_0x7b5d[39]](_0x678cx9)[_0x7b5d[38]](function(_0x678cxf){var _0x678cx10=Math[_0x7b5d[30]](_0x678cxf[_0x7b5d[29]]/_0x678cx7);var _0x678cx11=_0x678cx10>(_0x678cx9[_0x7b5d[31]]+1)?util[_0x7b5d[16]](_0x7b5d[32],_0x678cx4[_0x7b5d[33]],_0x678cx4[_0x7b5d[35]][_0x7b5d[34]],_0x678cx4[_0x7b5d[36]],_0x678cx8+1):null;var _0x678cx12=_0x678cx8>0?util[_0x7b5d[16]](_0x7b5d[32],_0x678cx4[_0x7b5d[33]],_0x678cx4[_0x7b5d[35]][_0x7b5d[34]],_0x678cx4[_0x7b5d[36]],_0x678cx8-1):null;return _0x678cx5[_0x7b5d[27]](200)[_0x7b5d[26]]({count:_0x678cxf[_0x7b5d[29]],rows:_0x678cxf[_0x7b5d[37]],next_page:_0x678cx11,previous_page:_0x678cx12,total_pages:_0x678cx10});})[_0x7b5d[28]](function(_0x678cxe){return _0x678cx5[_0x7b5d[27]](500)[_0x7b5d[26]]({error:_0x7b5d[25]})});};exports[_0x7b5d[40]]=function(_0x678cx4,_0x678cx5){Dashboard[_0x7b5d[42]]()[_0x7b5d[38]](function(_0x678cx13){if(!_0x678cx13){return _0x678cx5[_0x7b5d[41]](404)};return _0x678cx5[_0x7b5d[27]](200)[_0x7b5d[26]](_0x678cx13);})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)})};exports[_0x7b5d[43]]=function(_0x678cx4,_0x678cx5){Dashboard[_0x7b5d[46]](_0x678cx4[_0x7b5d[45]][_0x7b5d[44]])[_0x7b5d[38]](function(_0x678cx14){if(!_0x678cx14){return _0x678cx5[_0x7b5d[41]](404)};return _0x678cx5[_0x7b5d[26]](_0x678cx14);})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)})};exports[_0x7b5d[47]]=function(_0x678cx4,_0x678cx5){Dashboard[_0x7b5d[47]](_0x678cx4[_0x7b5d[48]])[_0x7b5d[38]](function(_0x678cx14){return _0x678cx5[_0x7b5d[27]](201)[_0x7b5d[26]](_0x678cx14)})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)})};exports[_0x7b5d[49]]=function(_0x678cx4,_0x678cx5){if(_0x678cx4[_0x7b5d[48]][_0x7b5d[44]]){delete _0x678cx4[_0x7b5d[48]][_0x7b5d[44]]};Dashboard[_0x7b5d[46]](_0x678cx4[_0x7b5d[45]][_0x7b5d[44]])[_0x7b5d[38]](function(_0x678cx14){if(!_0x678cx14){return _0x678cx5[_0x7b5d[41]](404)};var _0x678cx15=_[_0x7b5d[50]](_0x678cx14,_0x678cx4[_0x7b5d[48]]);_0x678cx15[_0x7b5d[51]]()[_0x7b5d[38]](function(){return _0x678cx5[_0x7b5d[27]](200)[_0x7b5d[26]](_0x678cx14)})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)});})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)});};exports[_0x7b5d[52]]=function(_0x678cx4,_0x678cx5){Dashboard[_0x7b5d[46]](_0x678cx4[_0x7b5d[45]][_0x7b5d[44]])[_0x7b5d[38]](function(_0x678cx14){if(!_0x678cx14){return _0x678cx5[_0x7b5d[41]](404)};_0x678cx14[_0x7b5d[52]]()[_0x7b5d[38]](function(){return _0x678cx5[_0x7b5d[41]](204)})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)});})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)})};exports[_0x7b5d[53]]=function(_0x678cx4,_0x678cx5){Dashboard[_0x7b5d[52]]({where:{id:_0x678cx4[_0x7b5d[9]][_0x7b5d[44]]},individualHooks:true})[_0x7b5d[38]](function(){return _0x678cx5[_0x7b5d[41]](204)})[_0x7b5d[28]](function(_0x678cxe){return handleError(_0x678cx5,_0x678cxe)})};function handleError(_0x678cx5,_0x678cxe){return _0x678cx5[_0x7b5d[27]](500)[_0x7b5d[26]](_0x678cxe)}
\ No newline at end of file
-var _0xb177=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb177[0];var Dashboard=require(_0xb177[2])[_0xb177[1]];exports[_0xb177[3]]=function(_0x39f4x2){Dashboard[_0xb177[4]](function(_0x39f4x3){onSave(_0x39f4x2,_0x39f4x3)});Dashboard[_0xb177[5]](function(_0x39f4x3){onSave(_0x39f4x2,_0x39f4x3)});Dashboard[_0xb177[6]](function(_0x39f4x3){onRemove(_0x39f4x2,_0x39f4x3)});};function onSave(_0x39f4x2,_0x39f4x3,_0x39f4x5){_0x39f4x2[_0xb177[8]](_0xb177[7],_0x39f4x3)}function onRemove(_0x39f4x2,_0x39f4x3,_0x39f4x5){_0x39f4x2[_0xb177[8]](_0xb177[9],_0x39f4x3)}
\ No newline at end of file
+var _0xd798=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xd798[0];var Dashboard=require(_0xd798[2])[_0xd798[1]];exports[_0xd798[3]]=function(_0xbcafx2){Dashboard[_0xd798[4]](function(_0xbcafx3){onSave(_0xbcafx2,_0xbcafx3)});Dashboard[_0xd798[5]](function(_0xbcafx3){onSave(_0xbcafx2,_0xbcafx3)});Dashboard[_0xd798[6]](function(_0xbcafx3){onRemove(_0xbcafx2,_0xbcafx3)});};function onSave(_0xbcafx2,_0xbcafx3,_0xbcafx5){_0xbcafx2[_0xd798[8]](_0xd798[7],_0xbcafx3)}function onRemove(_0xbcafx2,_0xbcafx3,_0xbcafx5){_0xbcafx2[_0xd798[8]](_0xd798[9],_0xbcafx3)}
\ No newline at end of file
-var _0x5907=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x67\x65\x74"];_0x5907[0];var should=require(_0x5907[1]);var app=require(_0x5907[2]);var request=require(_0x5907[3]);describe(_0x5907[4],function(){it(_0x5907[5],function(_0xe168x4){request(app)[_0x5907[13]](_0x5907[12])[_0x5907[11]](200)[_0x5907[11]](_0x5907[10],/json/)[_0x5907[9]](function(_0xe168x5,_0xe168x6){if(_0xe168x5){return _0xe168x4(_0xe168x5)};_0xe168x6[_0x5907[8]][_0x5907[1]][_0x5907[7]][_0x5907[6]](Array);_0xe168x4();})})});
\ No newline at end of file
+var _0xa017=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x67\x65\x74"];_0xa017[0];var should=require(_0xa017[1]);var app=require(_0xa017[2]);var request=require(_0xa017[3]);describe(_0xa017[4],function(){it(_0xa017[5],function(_0xa4cfx4){request(app)[_0xa017[13]](_0xa017[12])[_0xa017[11]](200)[_0xa017[11]](_0xa017[10],/json/)[_0xa017[9]](function(_0xa4cfx5,_0xa4cfx6){if(_0xa4cfx5){return _0xa4cfx4(_0xa4cfx5)};_0xa4cfx6[_0xa017[8]][_0xa017[1]][_0xa017[7]][_0xa017[6]](Array);_0xa4cfx4();})})});
\ No newline at end of file
-var _0xc091=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x61\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xc091[0];var express=require(_0xc091[1]);var controller=require(_0xc091[2]);var auth=require(_0xc091[3]);var router=express.Router();router[_0xc091[7]](_0xc091[4],auth[_0xc091[5]](),controller[_0xc091[6]]);router[_0xc091[7]](_0xc091[8],auth[_0xc091[5]](),controller[_0xc091[9]]);router[_0xc091[7]](_0xc091[10],auth[_0xc091[5]](),controller[_0xc091[11]]);router[_0xc091[13]](_0xc091[4],auth[_0xc091[5]](),controller[_0xc091[12]]);router[_0xc091[15]](_0xc091[10],auth[_0xc091[5]](),controller[_0xc091[14]]);router[_0xc091[16]](_0xc091[10],auth[_0xc091[5]](),controller[_0xc091[14]]);router[_0xc091[18]](_0xc091[4],auth[_0xc091[5]](),controller[_0xc091[17]]);router[_0xc091[18]](_0xc091[10],auth[_0xc091[5]](),controller[_0xc091[19]]);module[_0xc091[20]]=router;
\ No newline at end of file
+var _0xd234=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x61\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xd234[0];var express=require(_0xd234[1]);var controller=require(_0xd234[2]);var auth=require(_0xd234[3]);var router=express.Router();router[_0xd234[7]](_0xd234[4],auth[_0xd234[5]](),controller[_0xd234[6]]);router[_0xd234[7]](_0xd234[8],auth[_0xd234[5]](),controller[_0xd234[9]]);router[_0xd234[7]](_0xd234[10],auth[_0xd234[5]](),controller[_0xd234[11]]);router[_0xd234[13]](_0xd234[4],auth[_0xd234[5]](),controller[_0xd234[12]]);router[_0xd234[15]](_0xd234[10],auth[_0xd234[5]](),controller[_0xd234[14]]);router[_0xd234[16]](_0xd234[10],auth[_0xd234[5]](),controller[_0xd234[14]]);router[_0xd234[18]](_0xd234[4],auth[_0xd234[5]](),controller[_0xd234[17]]);router[_0xd234[18]](_0xd234[10],auth[_0xd234[5]](),controller[_0xd234[19]]);module[_0xd234[20]]=router;
\ No newline at end of file
-var _0x485a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x65\x6E\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x70\x61\x72\x73\x65","\x66\x6F\x72\x4F\x77\x6E","\x63\x6C\x69\x65\x6E\x74\x51\x75\x65\x72\x79","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x485a[0];var _=require(_0x485a[1]);var util=require(_0x485a[2]);var DefaultReport=require(_0x485a[4])[_0x485a[3]];exports[_0x485a[5]]=function(_0x442bx4,_0x442bx5,_0x442bx6){var _0x442bx7=[_0x485a[6],_0x485a[7],_0x485a[8]];var _0x442bx8=_0x442bx4[_0x485a[10]][_0x485a[9]]?parseInt(_0x442bx4[_0x485a[10]][_0x485a[9]],10):100;var _0x442bx9=_0x442bx4[_0x485a[10]][_0x485a[11]]?parseInt(_0x442bx4[_0x485a[10]][_0x485a[11]],10):0;var _0x442bxa={where:{},limit:_0x442bx8,offset:_0x442bx9*_0x442bx8};_[_0x485a[30]](_0x442bx4[_0x485a[10]],function(_0x442bxb,_0x442bxc){switch(_0x442bxc){case _0x485a[9]:;case _0x485a[11]:break ;;case _0x485a[14]:_0x442bxa[_0x485a[12]]=util[_0x485a[17]](_0x485a[13],_0x442bx4[_0x485a[10]][_0x485a[14]],_0x442bx4[_0x485a[10]][_0x485a[15]]||_0x485a[16])||null;break ;;case _0x485a[15]:break ;;case _0x485a[23]:_0x442bxa[_0x485a[19]][_0x485a[18]]=[];_0x442bx7[_0x485a[22]](function(_0x442bxd){var _0x442bxe={};_0x442bxe[_0x442bxd]={$like:_0x485a[20]+_0x442bxb+_0x485a[20]};_0x442bxa[_0x485a[19]][_0x485a[18]][_0x485a[21]](_0x442bxe);});break ;;case _0x485a[24]:_0x442bxa[_0x485a[19]][_0x485a[24]]={$or:_0x442bxb[_0x485a[25]](/[\s,]+/)};break ;;case _0x485a[28]:var _0x442bxf=JSON[_0x485a[26]](_0x442bxb);_[_0x485a[27]](_0x442bxf,function(_0x442bx10,_0x442bx11){_0x442bxa[_0x485a[19]][_0x442bx11]=_0x442bx10});break ;;default:_0x442bxa[_0x485a[19]][_0x442bxc]={$like:{}};_0x442bxa[_0x485a[19]][_0x442bxc][_0x485a[29]]=_0x485a[20]+_0x442bxb+_0x485a[20];;}});DefaultReport[_0x485a[45]](_0x442bxa)[_0x485a[44]](function(_0x442bx13){var _0x442bx14=Math[_0x485a[36]](_0x442bx13[_0x485a[35]]/_0x442bx8);var _0x442bx15=_0x442bx14>(_0x442bxa[_0x485a[37]]+1)?util[_0x485a[17]](_0x485a[38],_0x442bx4[_0x485a[39]],_0x442bx4[_0x485a[41]][_0x485a[40]],_0x442bx4[_0x485a[42]],_0x442bx9+1):null;var _0x442bx16=_0x442bx9>0?util[_0x485a[17]](_0x485a[38],_0x442bx4[_0x485a[39]],_0x442bx4[_0x485a[41]][_0x485a[40]],_0x442bx4[_0x485a[42]],_0x442bx9-1):null;_0x442bx5[_0x485a[33]](200)[_0x485a[32]]({count:_0x442bx13[_0x485a[35]],rows:_0x442bx13[_0x485a[43]],next_page:_0x442bx15,previous_page:_0x442bx16,total_pages:_0x442bx14});})[_0x485a[34]](function(_0x442bx12){_0x442bx5[_0x485a[33]](500)[_0x485a[32]]({error:_0x485a[31]})});};exports[_0x485a[46]]=function(_0x442bx4,_0x442bx5){DefaultReport[_0x485a[50]](_0x442bx4[_0x485a[49]][_0x485a[48]])[_0x485a[44]](function(_0x442bx17){if(!_0x442bx17){return _0x442bx5[_0x485a[47]](404)};return _0x442bx5[_0x485a[32]](_0x442bx17);})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)})};exports[_0x485a[51]]=function(_0x442bx4,_0x442bx5){DefaultReport[_0x485a[51]](_0x442bx4[_0x485a[52]])[_0x485a[44]](function(_0x442bx17){return _0x442bx5[_0x485a[33]](201)[_0x485a[32]](_0x442bx17)})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)})};exports[_0x485a[53]]=function(_0x442bx4,_0x442bx5){if(_0x442bx4[_0x485a[52]][_0x485a[48]]){delete _0x442bx4[_0x485a[52]][_0x485a[48]]};DefaultReport[_0x485a[50]](_0x442bx4[_0x485a[49]][_0x485a[48]])[_0x485a[44]](function(_0x442bx17){if(!_0x442bx17){return _0x442bx5[_0x485a[47]](404)};var _0x442bx18=_[_0x485a[54]](_0x442bx17,_0x442bx4[_0x485a[52]]);_0x442bx18[_0x485a[55]]()[_0x485a[44]](function(){return _0x442bx5[_0x485a[33]](200)[_0x485a[32]](_0x442bx17)})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)});})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)});};exports[_0x485a[56]]=function(_0x442bx4,_0x442bx5){DefaultReport[_0x485a[50]](_0x442bx4[_0x485a[49]][_0x485a[48]])[_0x485a[44]](function(_0x442bx17){if(!_0x442bx17){return _0x442bx5[_0x485a[47]](404)};_0x442bx17[_0x485a[56]]()[_0x485a[44]](function(){return _0x442bx5[_0x485a[47]](204)})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)});})[_0x485a[34]](function(_0x442bx12){return handleError(_0x442bx5,_0x442bx12)})};function handleError(_0x442bx5,_0x442bx12){return _0x442bx5[_0x485a[33]](500)[_0x485a[32]](_0x442bx12)}
\ No newline at end of file
+var _0xeae2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x65\x6E\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x70\x61\x72\x73\x65","\x66\x6F\x72\x4F\x77\x6E","\x63\x6C\x69\x65\x6E\x74\x51\x75\x65\x72\x79","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x6F\x70\x79","\x6C\x6F\x67","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x62\x6F\x64\x79","\x46\x69\x65\x6C\x64\x73","\x70\x6C\x75\x63\x6B","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xeae2[0];var _=require(_0xeae2[1]);var util=require(_0xeae2[2]);var DefaultReport=require(_0xeae2[4])[_0xeae2[3]];var CustomReport=require(_0xeae2[4])[_0xeae2[5]];exports[_0xeae2[6]]=function(_0xbb4fx5,_0xbb4fx6,_0xbb4fx7){var _0xbb4fx8=[_0xeae2[7],_0xeae2[8],_0xeae2[9]];var _0xbb4fx9=_0xbb4fx5[_0xeae2[11]][_0xeae2[10]]?parseInt(_0xbb4fx5[_0xeae2[11]][_0xeae2[10]],10):100;var _0xbb4fxa=_0xbb4fx5[_0xeae2[11]][_0xeae2[12]]?parseInt(_0xbb4fx5[_0xeae2[11]][_0xeae2[12]],10):0;var _0xbb4fxb={where:{},limit:_0xbb4fx9,offset:_0xbb4fxa*_0xbb4fx9};_[_0xeae2[31]](_0xbb4fx5[_0xeae2[11]],function(_0xbb4fxc,_0xbb4fxd){switch(_0xbb4fxd){case _0xeae2[10]:;case _0xeae2[12]:break ;;case _0xeae2[15]:_0xbb4fxb[_0xeae2[13]]=util[_0xeae2[18]](_0xeae2[14],_0xbb4fx5[_0xeae2[11]][_0xeae2[15]],_0xbb4fx5[_0xeae2[11]][_0xeae2[16]]||_0xeae2[17])||null;break ;;case _0xeae2[16]:break ;;case _0xeae2[24]:_0xbb4fxb[_0xeae2[20]][_0xeae2[19]]=[];_0xbb4fx8[_0xeae2[23]](function(_0xbb4fxe){var _0xbb4fxf={};_0xbb4fxf[_0xbb4fxe]={$like:_0xeae2[21]+_0xbb4fxc+_0xeae2[21]};_0xbb4fxb[_0xeae2[20]][_0xeae2[19]][_0xeae2[22]](_0xbb4fxf);});break ;;case _0xeae2[25]:_0xbb4fxb[_0xeae2[20]][_0xeae2[25]]={$or:_0xbb4fxc[_0xeae2[26]](/[\s,]+/)};break ;;case _0xeae2[29]:var _0xbb4fx10=JSON[_0xeae2[27]](_0xbb4fxc);_[_0xeae2[28]](_0xbb4fx10,function(_0xbb4fx11,_0xbb4fx12){_0xbb4fxb[_0xeae2[20]][_0xbb4fx12]=_0xbb4fx11});break ;;default:_0xbb4fxb[_0xeae2[20]][_0xbb4fxd]={$like:{}};_0xbb4fxb[_0xeae2[20]][_0xbb4fxd][_0xeae2[30]]=_0xeae2[21]+_0xbb4fxc+_0xeae2[21];;}});DefaultReport[_0xeae2[46]](_0xbb4fxb)[_0xeae2[45]](function(_0xbb4fx14){var _0xbb4fx15=Math[_0xeae2[37]](_0xbb4fx14[_0xeae2[36]]/_0xbb4fx9);var _0xbb4fx16=_0xbb4fx15>(_0xbb4fxb[_0xeae2[38]]+1)?util[_0xeae2[18]](_0xeae2[39],_0xbb4fx5[_0xeae2[40]],_0xbb4fx5[_0xeae2[42]][_0xeae2[41]],_0xbb4fx5[_0xeae2[43]],_0xbb4fxa+1):null;var _0xbb4fx17=_0xbb4fxa>0?util[_0xeae2[18]](_0xeae2[39],_0xbb4fx5[_0xeae2[40]],_0xbb4fx5[_0xeae2[42]][_0xeae2[41]],_0xbb4fx5[_0xeae2[43]],_0xbb4fxa-1):null;_0xbb4fx6[_0xeae2[34]](200)[_0xeae2[33]]({count:_0xbb4fx14[_0xeae2[36]],rows:_0xbb4fx14[_0xeae2[44]],next_page:_0xbb4fx16,previous_page:_0xbb4fx17,total_pages:_0xbb4fx15});})[_0xeae2[35]](function(_0xbb4fx13){_0xbb4fx6[_0xeae2[34]](500)[_0xeae2[33]]({error:_0xeae2[32]})});};exports[_0xeae2[47]]=function(_0xbb4fx5,_0xbb4fx6){DefaultReport[_0xeae2[51]](_0xbb4fx5[_0xeae2[50]][_0xeae2[49]],{include:[{all:true}]})[_0xeae2[45]](function(_0xbb4fx18){if(!_0xbb4fx18){return _0xbb4fx6[_0xeae2[48]](404)};return _0xbb4fx6[_0xeae2[33]](_0xbb4fx18);})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)})};exports[_0xeae2[52]]=function(_0xbb4fx5,_0xbb4fx6){DefaultReport[_0xeae2[51]](_0xbb4fx5[_0xeae2[50]][_0xeae2[49]],{include:[{all:true}]})[_0xeae2[45]](function(_0xbb4fx18){if(!_0xbb4fx18){return _0xbb4fx6[_0xeae2[48]](404)};var _0xbb4fx19=_0xbb4fx18[_0xeae2[54]];delete _0xbb4fx19[_0xeae2[49]];delete _0xbb4fx19[_0xeae2[55]];delete _0xbb4fx19[_0xeae2[56]];_0xbb4fx19[_0xeae2[9]]=_0xbb4fx5[_0xeae2[57]][_0xeae2[9]];_0xbb4fx19[_0xeae2[58]]=_[_0xeae2[59]](_0xbb4fx19.Fields,_0xeae2[54]);_[_0xeae2[23]](_0xbb4fx19.Fields,function(_0xbb4fx1a){delete _0xbb4fx1a[_0xeae2[49]];delete _0xbb4fx1a[_0xeae2[60]];delete _0xbb4fx1a[_0xeae2[55]];delete _0xbb4fx1a[_0xeae2[56]];});return CustomReport[_0xeae2[61]](_0xbb4fx19,{include:[{all:true}]});})[_0xeae2[45]](function(){return _0xbb4fx6[_0xeae2[48]](201)})[_0xeae2[35]](function(_0xbb4fx13){console[_0xeae2[53]](_0xbb4fx13);return handleError(_0xbb4fx6,_0xbb4fx13);})};exports[_0xeae2[61]]=function(_0xbb4fx5,_0xbb4fx6){DefaultReport[_0xeae2[61]](_0xbb4fx5[_0xeae2[57]])[_0xeae2[45]](function(_0xbb4fx18){return _0xbb4fx6[_0xeae2[34]](201)[_0xeae2[33]](_0xbb4fx18)})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)})};exports[_0xeae2[62]]=function(_0xbb4fx5,_0xbb4fx6){if(_0xbb4fx5[_0xeae2[57]][_0xeae2[49]]){delete _0xbb4fx5[_0xeae2[57]][_0xeae2[49]]};DefaultReport[_0xeae2[51]](_0xbb4fx5[_0xeae2[50]][_0xeae2[49]])[_0xeae2[45]](function(_0xbb4fx18){if(!_0xbb4fx18){return _0xbb4fx6[_0xeae2[48]](404)};var _0xbb4fx1b=_[_0xeae2[63]](_0xbb4fx18,_0xbb4fx5[_0xeae2[57]]);_0xbb4fx1b[_0xeae2[64]]()[_0xeae2[45]](function(){return _0xbb4fx6[_0xeae2[34]](200)[_0xeae2[33]](_0xbb4fx18)})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)});})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)});};exports[_0xeae2[65]]=function(_0xbb4fx5,_0xbb4fx6){DefaultReport[_0xeae2[51]](_0xbb4fx5[_0xeae2[50]][_0xeae2[49]])[_0xeae2[45]](function(_0xbb4fx18){if(!_0xbb4fx18){return _0xbb4fx6[_0xeae2[48]](404)};_0xbb4fx18[_0xeae2[65]]()[_0xeae2[45]](function(){return _0xbb4fx6[_0xeae2[48]](204)})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)});})[_0xeae2[35]](function(_0xbb4fx13){return handleError(_0xbb4fx6,_0xbb4fx13)})};function handleError(_0xbb4fx6,_0xbb4fx13){return _0xbb4fx6[_0xeae2[34]](500)[_0xeae2[33]](_0xbb4fx13)}
\ No newline at end of file
-var _0x533e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x533e[0];var DefaultReport=require(_0x533e[2])[_0x533e[1]];exports[_0x533e[3]]=function(_0xa6c4x2){DefaultReport[_0x533e[4]](function(_0xa6c4x3){onSave(_0xa6c4x2,_0xa6c4x3)});DefaultReport[_0x533e[5]](function(_0xa6c4x3){onRemove(_0xa6c4x2,_0xa6c4x3)});};function onSave(_0xa6c4x2,_0xa6c4x3,_0xa6c4x5){_0xa6c4x2[_0x533e[7]](_0x533e[6],_0xa6c4x3)}function onRemove(_0xa6c4x2,_0xa6c4x3,_0xa6c4x5){_0xa6c4x2[_0x533e[7]](_0x533e[8],_0xa6c4x3)}
\ No newline at end of file
+var _0xb7e2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb7e2[0];var DefaultReport=require(_0xb7e2[2])[_0xb7e2[1]];exports[_0xb7e2[3]]=function(_0x18b2x2){DefaultReport[_0xb7e2[4]](function(_0x18b2x3){onSave(_0x18b2x2,_0x18b2x3)});DefaultReport[_0xb7e2[5]](function(_0x18b2x3){onRemove(_0x18b2x2,_0x18b2x3)});};function onSave(_0x18b2x2,_0x18b2x3,_0x18b2x5){_0x18b2x2[_0xb7e2[7]](_0xb7e2[6],_0x18b2x3)}function onRemove(_0x18b2x2,_0x18b2x3,_0x18b2x5){_0x18b2x2[_0xb7e2[7]](_0xb7e2[8],_0x18b2x3)}
\ No newline at end of file
-var _0x6b36=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x67\x65\x74"];_0x6b36[0];var should=require(_0x6b36[1]);var app=require(_0x6b36[2]);var request=require(_0x6b36[3]);describe(_0x6b36[4],function(){it(_0x6b36[5],function(_0xe539x4){request(app)[_0x6b36[13]](_0x6b36[12])[_0x6b36[11]](200)[_0x6b36[11]](_0x6b36[10],/json/)[_0x6b36[9]](function(_0xe539x5,_0xe539x6){if(_0xe539x5){return _0xe539x4(_0xe539x5)};_0xe539x6[_0x6b36[8]][_0x6b36[1]][_0x6b36[7]][_0x6b36[6]](Array);_0xe539x4();})})});
\ No newline at end of file
+var _0x873f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x67\x65\x74"];_0x873f[0];var should=require(_0x873f[1]);var app=require(_0x873f[2]);var request=require(_0x873f[3]);describe(_0x873f[4],function(){it(_0x873f[5],function(_0xffe4x4){request(app)[_0x873f[13]](_0x873f[12])[_0x873f[11]](200)[_0x873f[11]](_0x873f[10],/json/)[_0x873f[9]](function(_0xffe4x5,_0xffe4x6){if(_0xffe4x5){return _0xffe4x4(_0xffe4x5)};_0xffe4x6[_0x873f[8]][_0x873f[1]][_0x873f[7]][_0x873f[6]](Array);_0xffe4x4();})})});
\ No newline at end of file
-var _0xe08a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xe08a[0];var express=require(_0xe08a[1]);var controller=require(_0xe08a[2]);var router=express.Router();router[_0xe08a[5]](_0xe08a[3],controller[_0xe08a[4]]);router[_0xe08a[5]](_0xe08a[6],controller[_0xe08a[7]]);router[_0xe08a[9]](_0xe08a[3],controller[_0xe08a[8]]);router[_0xe08a[11]](_0xe08a[6],controller[_0xe08a[10]]);router[_0xe08a[12]](_0xe08a[6],controller[_0xe08a[10]]);router[_0xe08a[14]](_0xe08a[6],controller[_0xe08a[13]]);module[_0xe08a[15]]=router;
\ No newline at end of file
+var _0x1571=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x63\x6F\x70\x79\x2F\x3A\x69\x64","\x63\x6F\x70\x79","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1571[0];var express=require(_0x1571[1]);var controller=require(_0x1571[2]);var router=express.Router();router[_0x1571[5]](_0x1571[3],controller[_0x1571[4]]);router[_0x1571[5]](_0x1571[6],controller[_0x1571[7]]);router[_0x1571[9]](_0x1571[3],controller[_0x1571[8]]);router[_0x1571[9]](_0x1571[10],controller[_0x1571[11]]);router[_0x1571[13]](_0x1571[6],controller[_0x1571[12]]);router[_0x1571[14]](_0x1571[6],controller[_0x1571[12]]);router[_0x1571[16]](_0x1571[6],controller[_0x1571[15]]);module[_0x1571[17]]=router;
\ No newline at end of file
-var _0x5aa0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x64\x65\x73\x6B\x2E\x6A\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x62\x61\x73\x69\x63","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6F\x61\x75\x74\x68","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x4B\x65\x79","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x53\x65\x63\x72\x65\x74","\x74\x6F\x6B\x65\x6E","\x74\x6F\x6B\x65\x6E\x53\x65\x63\x72\x65\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65","\x67\x65\x74","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x65\x6E\x74\x72\x69\x65\x73","\x5F\x65\x6D\x62\x65\x64\x64\x65\x64","\x6A\x73\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0x5aa0[0];var _=require(_0x5aa0[1]);var util=require(_0x5aa0[2]);var desk=require(_0x5aa0[3]);var DeskAccount=require(_0x5aa0[5])[_0x5aa0[4]];exports[_0x5aa0[6]]=function(_0x4306x5,_0x4306x6){var _0x4306x7=[_0x5aa0[7],_0x5aa0[8],_0x5aa0[9],_0x5aa0[10]];var _0x4306x8=_0x4306x5[_0x5aa0[12]][_0x5aa0[11]]?parseInt(_0x4306x5[_0x5aa0[12]][_0x5aa0[11]],10):100;var _0x4306x9=_0x4306x5[_0x5aa0[12]][_0x5aa0[13]]?parseInt(_0x4306x5[_0x5aa0[12]][_0x5aa0[13]],10):0;var _0x4306xa={where:{},limit:_0x4306x8,offset:_0x4306x9*_0x4306x8};_[_0x5aa0[27]](_0x4306x5[_0x5aa0[12]],function(_0x4306xb,_0x4306xc){switch(_0x4306xc){case _0x5aa0[11]:;case _0x5aa0[13]:break ;;case _0x5aa0[16]:_0x4306xa[_0x5aa0[14]]=util[_0x5aa0[19]](_0x5aa0[15],_0x4306x5[_0x5aa0[12]][_0x5aa0[16]],_0x4306x5[_0x5aa0[12]][_0x5aa0[17]]||_0x5aa0[18])||null;break ;;case _0x5aa0[17]:break ;;case _0x5aa0[25]:_0x4306xa[_0x5aa0[21]][_0x5aa0[20]]=[];_0x4306x7[_0x5aa0[24]](function(_0x4306xd){var _0x4306xe={};_0x4306xe[_0x4306xd]={$like:_0x5aa0[22]+_0x4306xb+_0x5aa0[22]};_0x4306xa[_0x5aa0[21]][_0x5aa0[20]][_0x5aa0[23]](_0x4306xe);});break ;;default:_0x4306xa[_0x5aa0[21]][_0x4306xc]={$like:{}};_0x4306xa[_0x5aa0[21]][_0x4306xc][_0x5aa0[26]]=_0x5aa0[22]+_0x4306xb+_0x5aa0[22];;}});DeskAccount[_0x5aa0[42]](_0x4306xa)[_0x5aa0[41]](function(_0x4306x10){var _0x4306x11=Math[_0x5aa0[33]](_0x4306x10[_0x5aa0[32]]/_0x4306x8);var _0x4306x12=_0x4306x11>(_0x4306xa[_0x5aa0[34]]+1)?util[_0x5aa0[19]](_0x5aa0[35],_0x4306x5[_0x5aa0[36]],_0x4306x5[_0x5aa0[38]][_0x5aa0[37]],_0x4306x5[_0x5aa0[39]],_0x4306x9+1):null;var _0x4306x13=_0x4306x9>0?util[_0x5aa0[19]](_0x5aa0[35],_0x4306x5[_0x5aa0[36]],_0x4306x5[_0x5aa0[38]][_0x5aa0[37]],_0x4306x5[_0x5aa0[39]],_0x4306x9-1):null;return _0x4306x6[_0x5aa0[30]](200)[_0x5aa0[29]]({count:_0x4306x10[_0x5aa0[32]],rows:_0x4306x10[_0x5aa0[40]],next_page:_0x4306x12,previous_page:_0x4306x13,total_pages:_0x4306x11});})[_0x5aa0[31]](function(_0x4306xf){return _0x4306x6[_0x5aa0[30]](500)[_0x5aa0[29]]({error:_0x5aa0[28]})});};exports[_0x5aa0[43]]=function(_0x4306x5,_0x4306x6){DeskAccount[_0x5aa0[47]](_0x4306x5[_0x5aa0[46]][_0x5aa0[45]])[_0x5aa0[41]](function(_0x4306x14){if(!_0x4306x14){return _0x4306x6[_0x5aa0[44]](404)};return _0x4306x6[_0x5aa0[29]](_0x4306x14);})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};exports[_0x5aa0[48]]=function(_0x4306x5,_0x4306x6,_0x4306x15){DeskAccount[_0x5aa0[48]](_0x4306x5[_0x5aa0[49]])[_0x5aa0[41]](function(_0x4306x14){return _0x4306x6[_0x5aa0[30]](201)[_0x5aa0[29]](_0x4306x14)})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};exports[_0x5aa0[50]]=function(_0x4306x5,_0x4306x6){if(_0x4306x5[_0x5aa0[49]][_0x5aa0[45]]){delete _0x4306x5[_0x5aa0[49]][_0x5aa0[45]]};DeskAccount[_0x5aa0[47]](_0x4306x5[_0x5aa0[46]][_0x5aa0[45]])[_0x5aa0[41]](function(_0x4306x14){if(!_0x4306x14){return _0x4306x6[_0x5aa0[44]](404)};var _0x4306x16=_[_0x5aa0[51]](_0x4306x14,_0x4306x5[_0x5aa0[49]]);_0x4306x16[_0x5aa0[52]]()[_0x5aa0[41]](function(){return _0x4306x6[_0x5aa0[30]](200)[_0x5aa0[29]](_0x4306x14)})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)});})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)});};exports[_0x5aa0[53]]=function(_0x4306x5,_0x4306x6){DeskAccount[_0x5aa0[47]](_0x4306x5[_0x5aa0[46]][_0x5aa0[45]])[_0x5aa0[41]](function(_0x4306x14){if(!_0x4306x14){return _0x4306x6[_0x5aa0[44]](404)};_0x4306x14[_0x5aa0[53]]()[_0x5aa0[41]](function(){return _0x4306x6[_0x5aa0[44]](204)})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)});})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};exports[_0x5aa0[54]]=function(_0x4306x5,_0x4306x6){DeskAccount[_0x5aa0[47]](_0x4306x5[_0x5aa0[46]][_0x5aa0[45]])[_0x5aa0[41]](function(_0x4306x17){var _0x4306x14={endpoint:stripTrailingSlash(_0x4306x17[_0x5aa0[10]]),retry:false};if(_0x4306x17[_0x5aa0[55]]===_0x5aa0[56]){_0x4306x14[_0x5aa0[9]]=_0x4306x17[_0x5aa0[9]];_0x4306x14[_0x5aa0[57]]=_0x4306x17[_0x5aa0[57]];}else {if(_0x4306x17[_0x5aa0[55]]===_0x5aa0[58]){_0x4306x14[_0x5aa0[59]]=_0x4306x17[_0x5aa0[59]];_0x4306x14[_0x5aa0[60]]=_0x4306x17[_0x5aa0[60]];_0x4306x14[_0x5aa0[61]]=_0x4306x17[_0x5aa0[61]];_0x4306x14[_0x5aa0[62]]=_0x4306x17[_0x5aa0[62]];}};var _0x4306x18=desk[_0x5aa0[63]](_0x4306x14);_0x4306x18[_0x5aa0[65]](_0x5aa0[64],function(_0x4306xf,_0x4306x19,_0x4306x1a){if(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)};return _0x4306x6[_0x5aa0[44]](200);});})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};exports[_0x5aa0[66]]=function(_0x4306x5,_0x4306x6){var _0x4306x1b={};_0x4306x1b[_0x4306x5[_0x5aa0[46]][_0x5aa0[67]]]=_0x4306x5[_0x5aa0[49]][_0x5aa0[68]];DeskAccount[_0x5aa0[42]]({where:_0x4306x1b})[_0x5aa0[41]](function(_0x4306x10){if(_0x4306x10[_0x5aa0[32]]){return _0x4306x6[_0x5aa0[30]](200)[_0x5aa0[29]]({isValid:false,value:_0x4306x5[_0x5aa0[49]][_0x5aa0[68]]})};return _0x4306x6[_0x5aa0[30]](200)[_0x5aa0[29]]({isValid:true,value:_0x4306x5[_0x5aa0[49]][_0x5aa0[68]]});})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)});};exports[_0x5aa0[69]]=function(_0x4306x5,_0x4306x6){DeskAccount[_0x5aa0[47]](_0x4306x5[_0x5aa0[46]][_0x5aa0[45]])[_0x5aa0[41]](function(_0x4306x17){var _0x4306x14={endpoint:stripTrailingSlash(_0x4306x17[_0x5aa0[10]]),retry:false};if(_0x4306x17[_0x5aa0[55]]===_0x5aa0[56]){_0x4306x14[_0x5aa0[9]]=_0x4306x17[_0x5aa0[9]];_0x4306x14[_0x5aa0[57]]=_0x4306x17[_0x5aa0[57]];}else {if(_0x4306x17[_0x5aa0[55]]===_0x5aa0[58]){_0x4306x14[_0x5aa0[59]]=_0x4306x17[_0x5aa0[59]];_0x4306x14[_0x5aa0[60]]=_0x4306x17[_0x5aa0[60]];_0x4306x14[_0x5aa0[61]]=_0x4306x17[_0x5aa0[61]];_0x4306x14[_0x5aa0[62]]=_0x4306x17[_0x5aa0[62]];}};var _0x4306x18=desk[_0x5aa0[63]](_0x4306x14);_0x4306x18[_0x5aa0[65]](_0x5aa0[70],function(_0x4306xf,_0x4306x19,_0x4306x1a){if(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)};return _0x4306x6[_0x5aa0[30]](200)[_0x5aa0[73]](_0x4306x19[_0x5aa0[72]][_0x5aa0[71]]);});})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};exports[_0x5aa0[74]]=function(_0x4306x5,_0x4306x6){DeskAccount[_0x5aa0[53]]({where:{id:_0x4306x5[_0x5aa0[12]][_0x5aa0[45]]},individualHooks:true})[_0x5aa0[41]](function(){return _0x4306x6[_0x5aa0[44]](204)})[_0x5aa0[31]](function(_0x4306xf){return handleError(_0x4306x6,_0x4306xf)})};function stripTrailingSlash(_0x4306x1d){if(_0x4306x1d[_0x5aa0[75]](-1)===_0x5aa0[76]){return _0x4306x1d[_0x5aa0[75]](0,_0x4306x1d[_0x5aa0[77]]-1)};return _0x4306x1d;}function handleError(_0x4306x6,_0x4306xf){return _0x4306x6[_0x5aa0[30]](500)[_0x5aa0[29]](_0x4306xf)}
\ No newline at end of file
+var _0x194d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x64\x65\x73\x6B\x2E\x6A\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x62\x61\x73\x69\x63","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6F\x61\x75\x74\x68","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x4B\x65\x79","\x63\x6F\x6E\x73\x75\x6D\x65\x72\x53\x65\x63\x72\x65\x74","\x74\x6F\x6B\x65\x6E","\x74\x6F\x6B\x65\x6E\x53\x65\x63\x72\x65\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65","\x67\x65\x74","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x61\x70\x69\x2F\x76\x32\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x65\x6E\x74\x72\x69\x65\x73","\x5F\x65\x6D\x62\x65\x64\x64\x65\x64","\x6A\x73\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0x194d[0];var _=require(_0x194d[1]);var util=require(_0x194d[2]);var desk=require(_0x194d[3]);var DeskAccount=require(_0x194d[5])[_0x194d[4]];exports[_0x194d[6]]=function(_0xbce4x5,_0xbce4x6){var _0xbce4x7=[_0x194d[7],_0x194d[8],_0x194d[9],_0x194d[10]];var _0xbce4x8=_0xbce4x5[_0x194d[12]][_0x194d[11]]?parseInt(_0xbce4x5[_0x194d[12]][_0x194d[11]],10):100;var _0xbce4x9=_0xbce4x5[_0x194d[12]][_0x194d[13]]?parseInt(_0xbce4x5[_0x194d[12]][_0x194d[13]],10):0;var _0xbce4xa={where:{},limit:_0xbce4x8,offset:_0xbce4x9*_0xbce4x8};_[_0x194d[27]](_0xbce4x5[_0x194d[12]],function(_0xbce4xb,_0xbce4xc){switch(_0xbce4xc){case _0x194d[11]:;case _0x194d[13]:break ;;case _0x194d[16]:_0xbce4xa[_0x194d[14]]=util[_0x194d[19]](_0x194d[15],_0xbce4x5[_0x194d[12]][_0x194d[16]],_0xbce4x5[_0x194d[12]][_0x194d[17]]||_0x194d[18])||null;break ;;case _0x194d[17]:break ;;case _0x194d[25]:_0xbce4xa[_0x194d[21]][_0x194d[20]]=[];_0xbce4x7[_0x194d[24]](function(_0xbce4xd){var _0xbce4xe={};_0xbce4xe[_0xbce4xd]={$like:_0x194d[22]+_0xbce4xb+_0x194d[22]};_0xbce4xa[_0x194d[21]][_0x194d[20]][_0x194d[23]](_0xbce4xe);});break ;;default:_0xbce4xa[_0x194d[21]][_0xbce4xc]={$like:{}};_0xbce4xa[_0x194d[21]][_0xbce4xc][_0x194d[26]]=_0x194d[22]+_0xbce4xb+_0x194d[22];;}});DeskAccount[_0x194d[42]](_0xbce4xa)[_0x194d[41]](function(_0xbce4x10){var _0xbce4x11=Math[_0x194d[33]](_0xbce4x10[_0x194d[32]]/_0xbce4x8);var _0xbce4x12=_0xbce4x11>(_0xbce4xa[_0x194d[34]]+1)?util[_0x194d[19]](_0x194d[35],_0xbce4x5[_0x194d[36]],_0xbce4x5[_0x194d[38]][_0x194d[37]],_0xbce4x5[_0x194d[39]],_0xbce4x9+1):null;var _0xbce4x13=_0xbce4x9>0?util[_0x194d[19]](_0x194d[35],_0xbce4x5[_0x194d[36]],_0xbce4x5[_0x194d[38]][_0x194d[37]],_0xbce4x5[_0x194d[39]],_0xbce4x9-1):null;return _0xbce4x6[_0x194d[30]](200)[_0x194d[29]]({count:_0xbce4x10[_0x194d[32]],rows:_0xbce4x10[_0x194d[40]],next_page:_0xbce4x12,previous_page:_0xbce4x13,total_pages:_0xbce4x11});})[_0x194d[31]](function(_0xbce4xf){return _0xbce4x6[_0x194d[30]](500)[_0x194d[29]]({error:_0x194d[28]})});};exports[_0x194d[43]]=function(_0xbce4x5,_0xbce4x6){DeskAccount[_0x194d[47]](_0xbce4x5[_0x194d[46]][_0x194d[45]])[_0x194d[41]](function(_0xbce4x14){if(!_0xbce4x14){return _0xbce4x6[_0x194d[44]](404)};return _0xbce4x6[_0x194d[29]](_0xbce4x14);})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};exports[_0x194d[48]]=function(_0xbce4x5,_0xbce4x6,_0xbce4x15){DeskAccount[_0x194d[48]](_0xbce4x5[_0x194d[49]])[_0x194d[41]](function(_0xbce4x14){return _0xbce4x6[_0x194d[30]](201)[_0x194d[29]](_0xbce4x14)})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};exports[_0x194d[50]]=function(_0xbce4x5,_0xbce4x6){if(_0xbce4x5[_0x194d[49]][_0x194d[45]]){delete _0xbce4x5[_0x194d[49]][_0x194d[45]]};DeskAccount[_0x194d[47]](_0xbce4x5[_0x194d[46]][_0x194d[45]])[_0x194d[41]](function(_0xbce4x14){if(!_0xbce4x14){return _0xbce4x6[_0x194d[44]](404)};var _0xbce4x16=_[_0x194d[51]](_0xbce4x14,_0xbce4x5[_0x194d[49]]);_0xbce4x16[_0x194d[52]]()[_0x194d[41]](function(){return _0xbce4x6[_0x194d[30]](200)[_0x194d[29]](_0xbce4x14)})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)});})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)});};exports[_0x194d[53]]=function(_0xbce4x5,_0xbce4x6){DeskAccount[_0x194d[47]](_0xbce4x5[_0x194d[46]][_0x194d[45]])[_0x194d[41]](function(_0xbce4x14){if(!_0xbce4x14){return _0xbce4x6[_0x194d[44]](404)};_0xbce4x14[_0x194d[53]]()[_0x194d[41]](function(){return _0xbce4x6[_0x194d[44]](204)})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)});})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};exports[_0x194d[54]]=function(_0xbce4x5,_0xbce4x6){DeskAccount[_0x194d[47]](_0xbce4x5[_0x194d[46]][_0x194d[45]])[_0x194d[41]](function(_0xbce4x17){var _0xbce4x14={endpoint:stripTrailingSlash(_0xbce4x17[_0x194d[10]]),retry:false};if(_0xbce4x17[_0x194d[55]]===_0x194d[56]){_0xbce4x14[_0x194d[9]]=_0xbce4x17[_0x194d[9]];_0xbce4x14[_0x194d[57]]=_0xbce4x17[_0x194d[57]];}else {if(_0xbce4x17[_0x194d[55]]===_0x194d[58]){_0xbce4x14[_0x194d[59]]=_0xbce4x17[_0x194d[59]];_0xbce4x14[_0x194d[60]]=_0xbce4x17[_0x194d[60]];_0xbce4x14[_0x194d[61]]=_0xbce4x17[_0x194d[61]];_0xbce4x14[_0x194d[62]]=_0xbce4x17[_0x194d[62]];}};var _0xbce4x18=desk[_0x194d[63]](_0xbce4x14);_0xbce4x18[_0x194d[65]](_0x194d[64],function(_0xbce4xf,_0xbce4x19,_0xbce4x1a){if(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)};return _0xbce4x6[_0x194d[44]](200);});})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};exports[_0x194d[66]]=function(_0xbce4x5,_0xbce4x6){var _0xbce4x1b={};_0xbce4x1b[_0xbce4x5[_0x194d[46]][_0x194d[67]]]=_0xbce4x5[_0x194d[49]][_0x194d[68]];DeskAccount[_0x194d[42]]({where:_0xbce4x1b})[_0x194d[41]](function(_0xbce4x10){if(_0xbce4x10[_0x194d[32]]){return _0xbce4x6[_0x194d[30]](200)[_0x194d[29]]({isValid:false,value:_0xbce4x5[_0x194d[49]][_0x194d[68]]})};return _0xbce4x6[_0x194d[30]](200)[_0x194d[29]]({isValid:true,value:_0xbce4x5[_0x194d[49]][_0x194d[68]]});})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)});};exports[_0x194d[69]]=function(_0xbce4x5,_0xbce4x6){DeskAccount[_0x194d[47]](_0xbce4x5[_0x194d[46]][_0x194d[45]])[_0x194d[41]](function(_0xbce4x17){var _0xbce4x14={endpoint:stripTrailingSlash(_0xbce4x17[_0x194d[10]]),retry:false};if(_0xbce4x17[_0x194d[55]]===_0x194d[56]){_0xbce4x14[_0x194d[9]]=_0xbce4x17[_0x194d[9]];_0xbce4x14[_0x194d[57]]=_0xbce4x17[_0x194d[57]];}else {if(_0xbce4x17[_0x194d[55]]===_0x194d[58]){_0xbce4x14[_0x194d[59]]=_0xbce4x17[_0x194d[59]];_0xbce4x14[_0x194d[60]]=_0xbce4x17[_0x194d[60]];_0xbce4x14[_0x194d[61]]=_0xbce4x17[_0x194d[61]];_0xbce4x14[_0x194d[62]]=_0xbce4x17[_0x194d[62]];}};var _0xbce4x18=desk[_0x194d[63]](_0xbce4x14);_0xbce4x18[_0x194d[65]](_0x194d[70],function(_0xbce4xf,_0xbce4x19,_0xbce4x1a){if(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)};return _0xbce4x6[_0x194d[30]](200)[_0x194d[73]](_0xbce4x19[_0x194d[72]][_0x194d[71]]);});})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};exports[_0x194d[74]]=function(_0xbce4x5,_0xbce4x6){DeskAccount[_0x194d[53]]({where:{id:_0xbce4x5[_0x194d[12]][_0x194d[45]]},individualHooks:true})[_0x194d[41]](function(){return _0xbce4x6[_0x194d[44]](204)})[_0x194d[31]](function(_0xbce4xf){return handleError(_0xbce4x6,_0xbce4xf)})};function stripTrailingSlash(_0xbce4x1d){if(_0xbce4x1d[_0x194d[75]](-1)===_0x194d[76]){return _0xbce4x1d[_0x194d[75]](0,_0xbce4x1d[_0x194d[77]]-1)};return _0xbce4x1d;}function handleError(_0xbce4x6,_0xbce4xf){return _0xbce4x6[_0x194d[30]](500)[_0x194d[29]](_0xbce4xf)}
\ No newline at end of file
-var _0xa1ad=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa1ad[0];var DeskAccount=require(_0xa1ad[2])[_0xa1ad[1]];exports[_0xa1ad[3]]=function(_0x80c1x2){DeskAccount[_0xa1ad[4]](function(_0x80c1x3){onSave(_0x80c1x2,_0x80c1x3)});DeskAccount[_0xa1ad[5]](function(_0x80c1x3){onRemove(_0x80c1x2,_0x80c1x3)});};function onSave(_0x80c1x2,_0x80c1x3,_0x80c1x5){_0x80c1x2[_0xa1ad[7]](_0xa1ad[6],_0x80c1x3)}function onRemove(_0x80c1x2,_0x80c1x3,_0x80c1x5){_0x80c1x2[_0xa1ad[7]](_0xa1ad[8],_0x80c1x3)}
\ No newline at end of file
+var _0x4d55=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4d55[0];var DeskAccount=require(_0x4d55[2])[_0x4d55[1]];exports[_0x4d55[3]]=function(_0x4883x2){DeskAccount[_0x4d55[4]](function(_0x4883x3){onSave(_0x4883x2,_0x4883x3)});DeskAccount[_0x4d55[5]](function(_0x4883x3){onRemove(_0x4883x2,_0x4883x3)});};function onSave(_0x4883x2,_0x4883x3,_0x4883x5){_0x4883x2[_0x4d55[7]](_0x4d55[6],_0x4883x3)}function onRemove(_0x4883x2,_0x4883x3,_0x4883x5){_0x4883x2[_0x4d55[7]](_0x4d55[8],_0x4883x3)}
\ No newline at end of file
-var _0xbe00=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xbe00[0];var should=require(_0xbe00[1]);var app=require(_0xbe00[2]);var request=require(_0xbe00[3]);describe(_0xbe00[4],function(){it(_0xbe00[5],function(_0x1ac3x4){request(app)[_0xbe00[13]](_0xbe00[12])[_0xbe00[11]](200)[_0xbe00[11]](_0xbe00[10],/json/)[_0xbe00[9]](function(_0x1ac3x5,_0x1ac3x6){if(_0x1ac3x5){return _0x1ac3x4(_0x1ac3x5)};_0x1ac3x6[_0xbe00[8]][_0xbe00[1]][_0xbe00[7]][_0xbe00[6]](Array);_0x1ac3x4();})})});
\ No newline at end of file
+var _0x2215=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0x2215[0];var should=require(_0x2215[1]);var app=require(_0x2215[2]);var request=require(_0x2215[3]);describe(_0x2215[4],function(){it(_0x2215[5],function(_0x98cex4){request(app)[_0x2215[13]](_0x2215[12])[_0x2215[11]](200)[_0x2215[11]](_0x2215[10],/json/)[_0x2215[9]](function(_0x98cex5,_0x98cex6){if(_0x98cex5){return _0x98cex4(_0x98cex5)};_0x98cex6[_0x2215[8]][_0x2215[1]][_0x2215[7]][_0x2215[6]](Array);_0x98cex4();})})});
\ No newline at end of file
-var _0x3211=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x3211[0];var express=require(_0x3211[1]);var controller=require(_0x3211[2]);var auth=require(_0x3211[3]);var router=express.Router();router[_0x3211[7]](_0x3211[4],auth[_0x3211[5]](),controller[_0x3211[6]]);router[_0x3211[7]](_0x3211[8],auth[_0x3211[5]](),controller[_0x3211[9]]);router[_0x3211[7]](_0x3211[10],auth[_0x3211[5]](),controller[_0x3211[11]]);router[_0x3211[7]](_0x3211[12],auth[_0x3211[5]](),controller[_0x3211[13]]);router[_0x3211[16]](_0x3211[14],auth[_0x3211[5]](),controller[_0x3211[15]]);router[_0x3211[16]](_0x3211[4],auth[_0x3211[5]](),controller[_0x3211[17]]);router[_0x3211[19]](_0x3211[8],auth[_0x3211[5]](),controller[_0x3211[18]]);router[_0x3211[20]](_0x3211[8],auth[_0x3211[5]](),controller[_0x3211[18]]);router[_0x3211[22]](_0x3211[4],auth[_0x3211[5]](),controller[_0x3211[21]]);router[_0x3211[22]](_0x3211[8],auth[_0x3211[5]](),controller[_0x3211[23]]);module[_0x3211[24]]=router;
\ No newline at end of file
+var _0x502e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x502e[0];var express=require(_0x502e[1]);var controller=require(_0x502e[2]);var auth=require(_0x502e[3]);var router=express.Router();router[_0x502e[7]](_0x502e[4],auth[_0x502e[5]](),controller[_0x502e[6]]);router[_0x502e[7]](_0x502e[8],auth[_0x502e[5]](),controller[_0x502e[9]]);router[_0x502e[7]](_0x502e[10],auth[_0x502e[5]](),controller[_0x502e[11]]);router[_0x502e[7]](_0x502e[12],auth[_0x502e[5]](),controller[_0x502e[13]]);router[_0x502e[16]](_0x502e[14],auth[_0x502e[5]](),controller[_0x502e[15]]);router[_0x502e[16]](_0x502e[4],auth[_0x502e[5]](),controller[_0x502e[17]]);router[_0x502e[19]](_0x502e[8],auth[_0x502e[5]](),controller[_0x502e[18]]);router[_0x502e[20]](_0x502e[8],auth[_0x502e[5]](),controller[_0x502e[18]]);router[_0x502e[22]](_0x502e[4],auth[_0x502e[5]](),controller[_0x502e[21]]);router[_0x502e[22]](_0x502e[8],auth[_0x502e[5]](),controller[_0x502e[23]]);module[_0x502e[24]]=router;
\ No newline at end of file
-var _0x1f96=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x1f96[0];var _=require(_0x1f96[1]);var DeskConfiguration=require(_0x1f96[3])[_0x1f96[2]];var DeskField=require(_0x1f96[3])[_0x1f96[4]];function handleError(_0xfb0ex5,_0xfb0ex6){_0xfb0ex6=_0xfb0ex6||500;return function(_0xfb0ex7){_0xfb0ex5[_0x1f96[6]](_0xfb0ex6)[_0x1f96[5]](_0xfb0ex7)};}function responseWithResult(_0xfb0ex5,_0xfb0ex6){_0xfb0ex6=_0xfb0ex6||200;return function(_0xfb0ex9){if(_0xfb0ex9){_0xfb0ex5[_0x1f96[6]](_0xfb0ex6)[_0x1f96[7]](_0xfb0ex9)}};}function handleEntityNotFound(_0xfb0ex5){return function(_0xfb0ex9){if(!_0xfb0ex9){_0xfb0ex5[_0x1f96[6]](404)[_0x1f96[8]]();return null;};return _0xfb0ex9;}}function saveUpdates(_0xfb0exc){return function(_0xfb0ex9){return _0xfb0ex9[_0x1f96[10]](_0xfb0exc)[_0x1f96[9]](function(_0xfb0exd){return _0xfb0exd})}}function removeEntity(_0xfb0ex5){return function(_0xfb0ex9){if(_0xfb0ex9){return _0xfb0ex9[_0x1f96[11]]()[_0x1f96[9]](function(){_0xfb0ex5[_0x1f96[6]](204)[_0x1f96[8]]()})}}}exports[_0x1f96[12]]=function(_0xfb0exf,_0xfb0ex5){DeskConfiguration[_0x1f96[15]]({where:_0xfb0exf[_0x1f96[14]]})[_0x1f96[9]](responseWithResult(_0xfb0ex5))[_0x1f96[13]](handleError(_0xfb0ex5))};exports[_0x1f96[16]]=function(_0xfb0exf,_0xfb0ex5){DeskConfiguration[_0x1f96[22]]({where:{id:_0xfb0exf[_0x1f96[18]][_0x1f96[17]]},include:[{model:DeskField,as:_0x1f96[19]},{model:DeskField,as:_0x1f96[20]},{model:DeskField,as:_0x1f96[21]}]})[_0x1f96[9]](handleEntityNotFound(_0xfb0ex5))[_0x1f96[9]](responseWithResult(_0xfb0ex5))[_0x1f96[13]](handleError(_0xfb0ex5))};exports[_0x1f96[23]]=function(_0xfb0exf,_0xfb0ex5){DeskConfiguration[_0x1f96[23]](_0xfb0exf[_0x1f96[24]])[_0x1f96[9]](responseWithResult(_0xfb0ex5,201))[_0x1f96[13]](handleError(_0xfb0ex5))};exports[_0x1f96[25]]=function(_0xfb0exf,_0xfb0ex5){if(_0xfb0exf[_0x1f96[24]][_0x1f96[17]]){delete _0xfb0exf[_0x1f96[24]][_0x1f96[17]]};DeskConfiguration[_0x1f96[26]](_0xfb0exf[_0x1f96[18]][_0x1f96[17]])[_0x1f96[9]](handleEntityNotFound(_0xfb0ex5))[_0x1f96[9]](saveUpdates(_0xfb0exf[_0x1f96[24]]))[_0x1f96[9]](responseWithResult(_0xfb0ex5))[_0x1f96[13]](handleError(_0xfb0ex5));};exports[_0x1f96[11]]=function(_0xfb0exf,_0xfb0ex5){DeskConfiguration[_0x1f96[26]](_0xfb0exf[_0x1f96[18]][_0x1f96[17]])[_0x1f96[9]](handleEntityNotFound(_0xfb0ex5))[_0x1f96[9]](removeEntity(_0xfb0ex5))[_0x1f96[13]](handleError(_0xfb0ex5))};exports[_0x1f96[27]]=function(_0xfb0exf,_0xfb0ex5,_0xfb0ex10){var _0xfb0ex11;DeskConfiguration[_0x1f96[26]](_0xfb0exf[_0x1f96[18]][_0x1f96[17]])[_0x1f96[9]](handleEntityNotFound(_0xfb0ex5))[_0x1f96[9]](function(_0xfb0ex14){_0xfb0ex11=_0xfb0ex14;return DeskField[_0x1f96[23]](_0xfb0exf[_0x1f96[24]]);})[_0x1f96[9]](function(_0xfb0ex13){switch(_0xfb0exf[_0x1f96[18]][_0x1f96[35]]){case _0x1f96[30]:return [_0xfb0ex11[_0x1f96[29]](_0xfb0ex13),_0xfb0ex13];;case _0x1f96[32]:return [_0xfb0ex11[_0x1f96[31]](_0xfb0ex13),_0xfb0ex13];;case _0x1f96[34]:return [_0xfb0ex11[_0x1f96[33]](_0xfb0ex13),_0xfb0ex13];;}})[_0x1f96[28]](function(_0xfb0ex12,_0xfb0ex13){return _0xfb0ex5[_0x1f96[6]](201)[_0x1f96[7]](_0xfb0ex13)})[_0x1f96[13]](handleError(_0xfb0ex5));};
\ No newline at end of file
+var _0xbfca=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xbfca[0];var _=require(_0xbfca[1]);var DeskConfiguration=require(_0xbfca[3])[_0xbfca[2]];var DeskField=require(_0xbfca[3])[_0xbfca[4]];function handleError(_0x6f26x5,_0x6f26x6){_0x6f26x6=_0x6f26x6||500;return function(_0x6f26x7){_0x6f26x5[_0xbfca[6]](_0x6f26x6)[_0xbfca[5]](_0x6f26x7)};}function responseWithResult(_0x6f26x5,_0x6f26x6){_0x6f26x6=_0x6f26x6||200;return function(_0x6f26x9){if(_0x6f26x9){_0x6f26x5[_0xbfca[6]](_0x6f26x6)[_0xbfca[7]](_0x6f26x9)}};}function handleEntityNotFound(_0x6f26x5){return function(_0x6f26x9){if(!_0x6f26x9){_0x6f26x5[_0xbfca[6]](404)[_0xbfca[8]]();return null;};return _0x6f26x9;}}function saveUpdates(_0x6f26xc){return function(_0x6f26x9){return _0x6f26x9[_0xbfca[10]](_0x6f26xc)[_0xbfca[9]](function(_0x6f26xd){return _0x6f26xd})}}function removeEntity(_0x6f26x5){return function(_0x6f26x9){if(_0x6f26x9){return _0x6f26x9[_0xbfca[11]]()[_0xbfca[9]](function(){_0x6f26x5[_0xbfca[6]](204)[_0xbfca[8]]()})}}}exports[_0xbfca[12]]=function(_0x6f26xf,_0x6f26x5){DeskConfiguration[_0xbfca[15]]({where:_0x6f26xf[_0xbfca[14]]})[_0xbfca[9]](responseWithResult(_0x6f26x5))[_0xbfca[13]](handleError(_0x6f26x5))};exports[_0xbfca[16]]=function(_0x6f26xf,_0x6f26x5){DeskConfiguration[_0xbfca[22]]({where:{id:_0x6f26xf[_0xbfca[18]][_0xbfca[17]]},include:[{model:DeskField,as:_0xbfca[19]},{model:DeskField,as:_0xbfca[20]},{model:DeskField,as:_0xbfca[21]}]})[_0xbfca[9]](handleEntityNotFound(_0x6f26x5))[_0xbfca[9]](responseWithResult(_0x6f26x5))[_0xbfca[13]](handleError(_0x6f26x5))};exports[_0xbfca[23]]=function(_0x6f26xf,_0x6f26x5){DeskConfiguration[_0xbfca[23]](_0x6f26xf[_0xbfca[24]])[_0xbfca[9]](responseWithResult(_0x6f26x5,201))[_0xbfca[13]](handleError(_0x6f26x5))};exports[_0xbfca[25]]=function(_0x6f26xf,_0x6f26x5){if(_0x6f26xf[_0xbfca[24]][_0xbfca[17]]){delete _0x6f26xf[_0xbfca[24]][_0xbfca[17]]};DeskConfiguration[_0xbfca[26]](_0x6f26xf[_0xbfca[18]][_0xbfca[17]])[_0xbfca[9]](handleEntityNotFound(_0x6f26x5))[_0xbfca[9]](saveUpdates(_0x6f26xf[_0xbfca[24]]))[_0xbfca[9]](responseWithResult(_0x6f26x5))[_0xbfca[13]](handleError(_0x6f26x5));};exports[_0xbfca[11]]=function(_0x6f26xf,_0x6f26x5){DeskConfiguration[_0xbfca[26]](_0x6f26xf[_0xbfca[18]][_0xbfca[17]])[_0xbfca[9]](handleEntityNotFound(_0x6f26x5))[_0xbfca[9]](removeEntity(_0x6f26x5))[_0xbfca[13]](handleError(_0x6f26x5))};exports[_0xbfca[27]]=function(_0x6f26xf,_0x6f26x5,_0x6f26x10){var _0x6f26x11;DeskConfiguration[_0xbfca[26]](_0x6f26xf[_0xbfca[18]][_0xbfca[17]])[_0xbfca[9]](handleEntityNotFound(_0x6f26x5))[_0xbfca[9]](function(_0x6f26x14){_0x6f26x11=_0x6f26x14;return DeskField[_0xbfca[23]](_0x6f26xf[_0xbfca[24]]);})[_0xbfca[9]](function(_0x6f26x13){switch(_0x6f26xf[_0xbfca[18]][_0xbfca[35]]){case _0xbfca[30]:return [_0x6f26x11[_0xbfca[29]](_0x6f26x13),_0x6f26x13];;case _0xbfca[32]:return [_0x6f26x11[_0xbfca[31]](_0x6f26x13),_0x6f26x13];;case _0xbfca[34]:return [_0x6f26x11[_0xbfca[33]](_0x6f26x13),_0x6f26x13];;}})[_0xbfca[28]](function(_0x6f26x12,_0x6f26x13){return _0x6f26x5[_0xbfca[6]](201)[_0xbfca[7]](_0x6f26x13)})[_0xbfca[13]](handleError(_0x6f26x5));};
\ No newline at end of file
-var _0xfc7f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfc7f[0];var DeskConfiguration=require(_0xfc7f[2])[_0xfc7f[1]];exports[_0xfc7f[3]]=function(_0xe905x2){DeskConfiguration[_0xfc7f[4]](function(_0xe905x3){onSave(_0xe905x2,_0xe905x3)});DeskConfiguration[_0xfc7f[5]](function(_0xe905x3){onRemove(_0xe905x2,_0xe905x3)});};function onSave(_0xe905x2,_0xe905x3,_0xe905x5){_0xe905x2[_0xfc7f[7]](_0xfc7f[6],_0xe905x3)}function onRemove(_0xe905x2,_0xe905x3,_0xe905x5){_0xe905x2[_0xfc7f[7]](_0xfc7f[8],_0xe905x3)}
\ No newline at end of file
+var _0xa418=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa418[0];var DeskConfiguration=require(_0xa418[2])[_0xa418[1]];exports[_0xa418[3]]=function(_0x265ax2){DeskConfiguration[_0xa418[4]](function(_0x265ax3){onSave(_0x265ax2,_0x265ax3)});DeskConfiguration[_0xa418[5]](function(_0x265ax3){onRemove(_0x265ax2,_0x265ax3)});};function onSave(_0x265ax2,_0x265ax3,_0x265ax5){_0x265ax2[_0xa418[7]](_0xa418[6],_0x265ax3)}function onRemove(_0x265ax2,_0x265ax3,_0x265ax5){_0x265ax2[_0xa418[7]](_0xa418[8],_0x265ax3)}
\ No newline at end of file
-var _0xef25=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xef25[0];var express=require(_0xef25[1]);var auth=require(_0xef25[2]);var controller=require(_0xef25[3]);var router=express.Router();router[_0xef25[7]](_0xef25[4],auth[_0xef25[5]](),controller[_0xef25[6]]);router[_0xef25[7]](_0xef25[8],auth[_0xef25[5]](),controller[_0xef25[9]]);router[_0xef25[11]](_0xef25[4],auth[_0xef25[5]](),controller[_0xef25[10]]);router[_0xef25[13]](_0xef25[8],auth[_0xef25[5]](),controller[_0xef25[12]]);router[_0xef25[11]](_0xef25[14],auth[_0xef25[5]](),controller[_0xef25[15]]);router[_0xef25[16]](_0xef25[8],auth[_0xef25[5]](),controller[_0xef25[12]]);router[_0xef25[18]](_0xef25[8],auth[_0xef25[5]](),controller[_0xef25[17]]);module[_0xef25[19]]=router;
\ No newline at end of file
+var _0x5cb5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5cb5[0];var express=require(_0x5cb5[1]);var auth=require(_0x5cb5[2]);var controller=require(_0x5cb5[3]);var router=express.Router();router[_0x5cb5[7]](_0x5cb5[4],auth[_0x5cb5[5]](),controller[_0x5cb5[6]]);router[_0x5cb5[7]](_0x5cb5[8],auth[_0x5cb5[5]](),controller[_0x5cb5[9]]);router[_0x5cb5[11]](_0x5cb5[4],auth[_0x5cb5[5]](),controller[_0x5cb5[10]]);router[_0x5cb5[13]](_0x5cb5[8],auth[_0x5cb5[5]](),controller[_0x5cb5[12]]);router[_0x5cb5[11]](_0x5cb5[14],auth[_0x5cb5[5]](),controller[_0x5cb5[15]]);router[_0x5cb5[16]](_0x5cb5[8],auth[_0x5cb5[5]](),controller[_0x5cb5[12]]);router[_0x5cb5[18]](_0x5cb5[8],auth[_0x5cb5[5]](),controller[_0x5cb5[17]]);module[_0x5cb5[19]]=router;
\ No newline at end of file
-var _0x726d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x726d[0];var proxyquire=require(_0x726d[2])[_0x726d[1]]();var deskConfigurationCtrlStub={index:_0x726d[3],show:_0x726d[4],create:_0x726d[5],update:_0x726d[6],destroy:_0x726d[7]};var routerStub={get:sinon[_0x726d[8]](),put:sinon[_0x726d[8]](),patch:sinon[_0x726d[8]](),post:sinon[_0x726d[8]](),delete:sinon[_0x726d[8]]()};var deskConfigurationIndex=proxyquire(_0x726d[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":deskConfigurationCtrlStub});describe(_0x726d[10],function(){it(_0x726d[11],function(){expect(deskConfigurationIndex)[_0x726d[13]][_0x726d[12]](routerStub)});describe(_0x726d[14],function(){it(_0x726d[15],function(){expect(routerStub[_0x726d[21]][_0x726d[20]](_0x726d[19],_0x726d[3]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});describe(_0x726d[22],function(){it(_0x726d[23],function(){expect(routerStub[_0x726d[21]][_0x726d[20]](_0x726d[24],_0x726d[4]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});describe(_0x726d[25],function(){it(_0x726d[26],function(){expect(routerStub[_0x726d[27]][_0x726d[20]](_0x726d[19],_0x726d[5]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});describe(_0x726d[28],function(){it(_0x726d[29],function(){expect(routerStub[_0x726d[30]][_0x726d[20]](_0x726d[24],_0x726d[6]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});describe(_0x726d[31],function(){it(_0x726d[29],function(){expect(routerStub[_0x726d[32]][_0x726d[20]](_0x726d[24],_0x726d[6]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});describe(_0x726d[33],function(){it(_0x726d[34],function(){expect(routerStub[_0x726d[35]][_0x726d[20]](_0x726d[24],_0x726d[7]))[_0x726d[13]][_0x726d[18]][_0x726d[17]][_0x726d[16]]})});});
\ No newline at end of file
+var _0x5b8e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x5b8e[0];var proxyquire=require(_0x5b8e[2])[_0x5b8e[1]]();var deskConfigurationCtrlStub={index:_0x5b8e[3],show:_0x5b8e[4],create:_0x5b8e[5],update:_0x5b8e[6],destroy:_0x5b8e[7]};var routerStub={get:sinon[_0x5b8e[8]](),put:sinon[_0x5b8e[8]](),patch:sinon[_0x5b8e[8]](),post:sinon[_0x5b8e[8]](),delete:sinon[_0x5b8e[8]]()};var deskConfigurationIndex=proxyquire(_0x5b8e[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":deskConfigurationCtrlStub});describe(_0x5b8e[10],function(){it(_0x5b8e[11],function(){expect(deskConfigurationIndex)[_0x5b8e[13]][_0x5b8e[12]](routerStub)});describe(_0x5b8e[14],function(){it(_0x5b8e[15],function(){expect(routerStub[_0x5b8e[21]][_0x5b8e[20]](_0x5b8e[19],_0x5b8e[3]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});describe(_0x5b8e[22],function(){it(_0x5b8e[23],function(){expect(routerStub[_0x5b8e[21]][_0x5b8e[20]](_0x5b8e[24],_0x5b8e[4]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});describe(_0x5b8e[25],function(){it(_0x5b8e[26],function(){expect(routerStub[_0x5b8e[27]][_0x5b8e[20]](_0x5b8e[19],_0x5b8e[5]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});describe(_0x5b8e[28],function(){it(_0x5b8e[29],function(){expect(routerStub[_0x5b8e[30]][_0x5b8e[20]](_0x5b8e[24],_0x5b8e[6]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});describe(_0x5b8e[31],function(){it(_0x5b8e[29],function(){expect(routerStub[_0x5b8e[32]][_0x5b8e[20]](_0x5b8e[24],_0x5b8e[6]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});describe(_0x5b8e[33],function(){it(_0x5b8e[34],function(){expect(routerStub[_0x5b8e[35]][_0x5b8e[20]](_0x5b8e[24],_0x5b8e[7]))[_0x5b8e[13]][_0x5b8e[18]][_0x5b8e[17]][_0x5b8e[16]]})});});
\ No newline at end of file
-var _0x818d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x818d[0];var _=require(_0x818d[1]);var DeskField=require(_0x818d[3])[_0x818d[2]];function handleError(_0xcc50x4,_0xcc50x5){_0xcc50x5=_0xcc50x5||500;return function(_0xcc50x6){_0xcc50x4[_0x818d[5]](_0xcc50x5)[_0x818d[4]](_0xcc50x6)};}function responseWithResult(_0xcc50x4,_0xcc50x5){_0xcc50x5=_0xcc50x5||200;return function(_0xcc50x8){if(_0xcc50x8){_0xcc50x4[_0x818d[5]](_0xcc50x5)[_0x818d[6]](_0xcc50x8)}};}function handleEntityNotFound(_0xcc50x4){return function(_0xcc50x8){if(!_0xcc50x8){_0xcc50x4[_0x818d[5]](404)[_0x818d[7]]();return null;};return _0xcc50x8;}}function saveUpdates(_0xcc50xb){return function(_0xcc50x8){return _0xcc50x8[_0x818d[9]](_0xcc50xb)[_0x818d[8]](function(_0xcc50xc){return _0xcc50xc})}}function removeEntity(_0xcc50x4){return function(_0xcc50x8){if(_0xcc50x8){return _0xcc50x8[_0x818d[10]]()[_0x818d[8]](function(){_0xcc50x4[_0x818d[5]](204)[_0x818d[7]]()})}}}exports[_0x818d[11]]=function(_0xcc50xe,_0xcc50x4){DeskField[_0x818d[13]]()[_0x818d[8]](responseWithResult(_0xcc50x4))[_0x818d[12]](handleError(_0xcc50x4))};exports[_0x818d[14]]=function(_0xcc50xe,_0xcc50x4){DeskField[_0x818d[17]](_0xcc50xe[_0x818d[16]][_0x818d[15]])[_0x818d[8]](handleEntityNotFound(_0xcc50x4))[_0x818d[8]](responseWithResult(_0xcc50x4))[_0x818d[12]](handleError(_0xcc50x4))};exports[_0x818d[18]]=function(_0xcc50xe,_0xcc50x4){DeskField[_0x818d[18]](_0xcc50xe[_0x818d[19]])[_0x818d[8]](responseWithResult(_0xcc50x4,201))[_0x818d[12]](handleError(_0xcc50x4))};exports[_0x818d[20]]=function(_0xcc50xe,_0xcc50x4){if(_0xcc50xe[_0x818d[19]][_0x818d[15]]){delete _0xcc50xe[_0x818d[19]][_0x818d[15]]};DeskField[_0x818d[17]](_0xcc50xe[_0x818d[16]][_0x818d[15]])[_0x818d[8]](handleEntityNotFound(_0xcc50x4))[_0x818d[8]](saveUpdates(_0xcc50xe[_0x818d[19]]))[_0x818d[8]](responseWithResult(_0xcc50x4))[_0x818d[12]](handleError(_0xcc50x4));};exports[_0x818d[10]]=function(_0xcc50xe,_0xcc50x4){DeskField[_0x818d[17]](_0xcc50xe[_0x818d[16]][_0x818d[15]])[_0x818d[8]](handleEntityNotFound(_0xcc50x4))[_0x818d[8]](removeEntity(_0xcc50x4))[_0x818d[12]](handleError(_0xcc50x4))};
\ No newline at end of file
+var _0xe0f3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0xe0f3[0];var _=require(_0xe0f3[1]);var DeskField=require(_0xe0f3[3])[_0xe0f3[2]];function handleError(_0xa653x4,_0xa653x5){_0xa653x5=_0xa653x5||500;return function(_0xa653x6){_0xa653x4[_0xe0f3[5]](_0xa653x5)[_0xe0f3[4]](_0xa653x6)};}function responseWithResult(_0xa653x4,_0xa653x5){_0xa653x5=_0xa653x5||200;return function(_0xa653x8){if(_0xa653x8){_0xa653x4[_0xe0f3[5]](_0xa653x5)[_0xe0f3[6]](_0xa653x8)}};}function handleEntityNotFound(_0xa653x4){return function(_0xa653x8){if(!_0xa653x8){_0xa653x4[_0xe0f3[5]](404)[_0xe0f3[7]]();return null;};return _0xa653x8;}}function saveUpdates(_0xa653xb){return function(_0xa653x8){return _0xa653x8[_0xe0f3[9]](_0xa653xb)[_0xe0f3[8]](function(_0xa653xc){return _0xa653xc})}}function removeEntity(_0xa653x4){return function(_0xa653x8){if(_0xa653x8){return _0xa653x8[_0xe0f3[10]]()[_0xe0f3[8]](function(){_0xa653x4[_0xe0f3[5]](204)[_0xe0f3[7]]()})}}}exports[_0xe0f3[11]]=function(_0xa653xe,_0xa653x4){DeskField[_0xe0f3[13]]()[_0xe0f3[8]](responseWithResult(_0xa653x4))[_0xe0f3[12]](handleError(_0xa653x4))};exports[_0xe0f3[14]]=function(_0xa653xe,_0xa653x4){DeskField[_0xe0f3[17]](_0xa653xe[_0xe0f3[16]][_0xe0f3[15]])[_0xe0f3[8]](handleEntityNotFound(_0xa653x4))[_0xe0f3[8]](responseWithResult(_0xa653x4))[_0xe0f3[12]](handleError(_0xa653x4))};exports[_0xe0f3[18]]=function(_0xa653xe,_0xa653x4){DeskField[_0xe0f3[18]](_0xa653xe[_0xe0f3[19]])[_0xe0f3[8]](responseWithResult(_0xa653x4,201))[_0xe0f3[12]](handleError(_0xa653x4))};exports[_0xe0f3[20]]=function(_0xa653xe,_0xa653x4){if(_0xa653xe[_0xe0f3[19]][_0xe0f3[15]]){delete _0xa653xe[_0xe0f3[19]][_0xe0f3[15]]};DeskField[_0xe0f3[17]](_0xa653xe[_0xe0f3[16]][_0xe0f3[15]])[_0xe0f3[8]](handleEntityNotFound(_0xa653x4))[_0xe0f3[8]](saveUpdates(_0xa653xe[_0xe0f3[19]]))[_0xe0f3[8]](responseWithResult(_0xa653x4))[_0xe0f3[12]](handleError(_0xa653x4));};exports[_0xe0f3[10]]=function(_0xa653xe,_0xa653x4){DeskField[_0xe0f3[17]](_0xa653xe[_0xe0f3[16]][_0xe0f3[15]])[_0xe0f3[8]](handleEntityNotFound(_0xa653x4))[_0xe0f3[8]](removeEntity(_0xa653x4))[_0xe0f3[12]](handleError(_0xa653x4))};
\ No newline at end of file
-var _0x8aa7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8aa7[0];var DeskField=require(_0x8aa7[2])[_0x8aa7[1]];exports[_0x8aa7[3]]=function(_0x22d1x2){DeskField[_0x8aa7[4]](function(_0x22d1x3){onSave(_0x22d1x2,_0x22d1x3)});DeskField[_0x8aa7[5]](function(_0x22d1x3){onRemove(_0x22d1x2,_0x22d1x3)});};function onSave(_0x22d1x2,_0x22d1x3,_0x22d1x5){_0x22d1x2[_0x8aa7[7]](_0x8aa7[6],_0x22d1x3)}function onRemove(_0x22d1x2,_0x22d1x3,_0x22d1x5){_0x22d1x2[_0x8aa7[7]](_0x8aa7[8],_0x22d1x3)}
\ No newline at end of file
+var _0x9a55=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9a55[0];var DeskField=require(_0x9a55[2])[_0x9a55[1]];exports[_0x9a55[3]]=function(_0xcc51x2){DeskField[_0x9a55[4]](function(_0xcc51x3){onSave(_0xcc51x2,_0xcc51x3)});DeskField[_0x9a55[5]](function(_0xcc51x3){onRemove(_0xcc51x2,_0xcc51x3)});};function onSave(_0xcc51x2,_0xcc51x3,_0xcc51x5){_0xcc51x2[_0x9a55[7]](_0x9a55[6],_0xcc51x3)}function onRemove(_0xcc51x2,_0xcc51x3,_0xcc51x5){_0xcc51x2[_0x9a55[7]](_0x9a55[8],_0xcc51x3)}
\ No newline at end of file
-var _0xb1c0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xb1c0[0];var express=require(_0xb1c0[1]);var auth=require(_0xb1c0[2]);var controller=require(_0xb1c0[3]);var router=express.Router();router[_0xb1c0[7]](_0xb1c0[4],auth[_0xb1c0[5]](),controller[_0xb1c0[6]]);router[_0xb1c0[7]](_0xb1c0[8],auth[_0xb1c0[5]](),controller[_0xb1c0[9]]);router[_0xb1c0[11]](_0xb1c0[4],auth[_0xb1c0[5]](),controller[_0xb1c0[10]]);router[_0xb1c0[13]](_0xb1c0[8],auth[_0xb1c0[5]](),controller[_0xb1c0[12]]);router[_0xb1c0[14]](_0xb1c0[8],auth[_0xb1c0[5]](),controller[_0xb1c0[12]]);router[_0xb1c0[16]](_0xb1c0[8],auth[_0xb1c0[5]](),controller[_0xb1c0[15]]);module[_0xb1c0[17]]=router;
\ No newline at end of file
+var _0x1ea0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1ea0[0];var express=require(_0x1ea0[1]);var auth=require(_0x1ea0[2]);var controller=require(_0x1ea0[3]);var router=express.Router();router[_0x1ea0[7]](_0x1ea0[4],auth[_0x1ea0[5]](),controller[_0x1ea0[6]]);router[_0x1ea0[7]](_0x1ea0[8],auth[_0x1ea0[5]](),controller[_0x1ea0[9]]);router[_0x1ea0[11]](_0x1ea0[4],auth[_0x1ea0[5]](),controller[_0x1ea0[10]]);router[_0x1ea0[13]](_0x1ea0[8],auth[_0x1ea0[5]](),controller[_0x1ea0[12]]);router[_0x1ea0[14]](_0x1ea0[8],auth[_0x1ea0[5]](),controller[_0x1ea0[12]]);router[_0x1ea0[16]](_0x1ea0[8],auth[_0x1ea0[5]](),controller[_0x1ea0[15]]);module[_0x1ea0[17]]=router;
\ No newline at end of file
-var _0xcd01=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xcd01[0];var proxyquire=require(_0xcd01[2])[_0xcd01[1]]();var deskFieldCtrlStub={index:_0xcd01[3],show:_0xcd01[4],create:_0xcd01[5],update:_0xcd01[6],destroy:_0xcd01[7]};var routerStub={get:sinon[_0xcd01[8]](),put:sinon[_0xcd01[8]](),patch:sinon[_0xcd01[8]](),post:sinon[_0xcd01[8]](),delete:sinon[_0xcd01[8]]()};var deskFieldIndex=proxyquire(_0xcd01[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":deskFieldCtrlStub});describe(_0xcd01[10],function(){it(_0xcd01[11],function(){expect(deskFieldIndex)[_0xcd01[13]][_0xcd01[12]](routerStub)});describe(_0xcd01[14],function(){it(_0xcd01[15],function(){expect(routerStub[_0xcd01[21]][_0xcd01[20]](_0xcd01[19],_0xcd01[3]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});describe(_0xcd01[22],function(){it(_0xcd01[23],function(){expect(routerStub[_0xcd01[21]][_0xcd01[20]](_0xcd01[24],_0xcd01[4]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});describe(_0xcd01[25],function(){it(_0xcd01[26],function(){expect(routerStub[_0xcd01[27]][_0xcd01[20]](_0xcd01[19],_0xcd01[5]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});describe(_0xcd01[28],function(){it(_0xcd01[29],function(){expect(routerStub[_0xcd01[30]][_0xcd01[20]](_0xcd01[24],_0xcd01[6]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});describe(_0xcd01[31],function(){it(_0xcd01[29],function(){expect(routerStub[_0xcd01[32]][_0xcd01[20]](_0xcd01[24],_0xcd01[6]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});describe(_0xcd01[33],function(){it(_0xcd01[34],function(){expect(routerStub[_0xcd01[35]][_0xcd01[20]](_0xcd01[24],_0xcd01[7]))[_0xcd01[13]][_0xcd01[18]][_0xcd01[17]][_0xcd01[16]]})});});
\ No newline at end of file
+var _0x8339=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x8339[0];var proxyquire=require(_0x8339[2])[_0x8339[1]]();var deskFieldCtrlStub={index:_0x8339[3],show:_0x8339[4],create:_0x8339[5],update:_0x8339[6],destroy:_0x8339[7]};var routerStub={get:sinon[_0x8339[8]](),put:sinon[_0x8339[8]](),patch:sinon[_0x8339[8]](),post:sinon[_0x8339[8]](),delete:sinon[_0x8339[8]]()};var deskFieldIndex=proxyquire(_0x8339[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":deskFieldCtrlStub});describe(_0x8339[10],function(){it(_0x8339[11],function(){expect(deskFieldIndex)[_0x8339[13]][_0x8339[12]](routerStub)});describe(_0x8339[14],function(){it(_0x8339[15],function(){expect(routerStub[_0x8339[21]][_0x8339[20]](_0x8339[19],_0x8339[3]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});describe(_0x8339[22],function(){it(_0x8339[23],function(){expect(routerStub[_0x8339[21]][_0x8339[20]](_0x8339[24],_0x8339[4]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});describe(_0x8339[25],function(){it(_0x8339[26],function(){expect(routerStub[_0x8339[27]][_0x8339[20]](_0x8339[19],_0x8339[5]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});describe(_0x8339[28],function(){it(_0x8339[29],function(){expect(routerStub[_0x8339[30]][_0x8339[20]](_0x8339[24],_0x8339[6]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});describe(_0x8339[31],function(){it(_0x8339[29],function(){expect(routerStub[_0x8339[32]][_0x8339[20]](_0x8339[24],_0x8339[6]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});describe(_0x8339[33],function(){it(_0x8339[34],function(){expect(routerStub[_0x8339[35]][_0x8339[20]](_0x8339[24],_0x8339[7]))[_0x8339[13]][_0x8339[18]][_0x8339[17]][_0x8339[16]]})});});
\ No newline at end of file
-var _0x533d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x45\x76\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x42\x79\x43\x68\x61\x6E\x6E\x65\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x533d[0];var _=require(_0x533d[1]);var Event=require(_0x533d[3])[_0x533d[2]];exports[_0x533d[4]]=function(_0x2863x3,_0x2863x4){Event[_0x533d[9]]({include:[{all:true}]})[_0x533d[8]](function(_0x2863x6){return _0x2863x4[_0x533d[7]](200)[_0x533d[6]](_0x2863x6)})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)})};exports[_0x533d[10]]=function(_0x2863x3,_0x2863x4){Event[_0x533d[9]]({where:{channel:_0x2863x3[_0x533d[14]][_0x533d[13]][_0x533d[12]]()},include:[{all:true}]})[_0x533d[8]](function(_0x2863x7){if(!_0x2863x7){return _0x2863x4[_0x533d[11]](404)};return _0x2863x4[_0x533d[6]](_0x2863x7);})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)})};exports[_0x533d[15]]=function(_0x2863x3,_0x2863x4){Event[_0x533d[17]](_0x2863x3[_0x533d[14]][_0x533d[16]])[_0x533d[8]](function(_0x2863x7){if(!_0x2863x7){return _0x2863x4[_0x533d[11]](404)};return _0x2863x4[_0x533d[6]](_0x2863x7);})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)})};exports[_0x533d[18]]=function(_0x2863x3,_0x2863x4){Event[_0x533d[18]](_0x2863x3[_0x533d[19]])[_0x533d[8]](function(_0x2863x7){return _0x2863x4[_0x533d[7]](201)[_0x533d[6]](_0x2863x7)})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)})};exports[_0x533d[20]]=function(_0x2863x3,_0x2863x4){if(_0x2863x3[_0x533d[19]][_0x533d[16]]){delete _0x2863x3[_0x533d[19]][_0x533d[16]]};Event[_0x533d[17]](_0x2863x3[_0x533d[14]][_0x533d[16]])[_0x533d[8]](function(_0x2863x7){if(!_0x2863x7){return _0x2863x4[_0x533d[11]](404)};var _0x2863x8=_[_0x533d[21]](_0x2863x7,_0x2863x3[_0x533d[19]]);_0x2863x8[_0x533d[22]]()[_0x533d[8]](function(){return _0x2863x4[_0x533d[7]](200)[_0x533d[6]](_0x2863x7)})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)});})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)});};exports[_0x533d[23]]=function(_0x2863x3,_0x2863x4){Event[_0x533d[17]](_0x2863x3[_0x533d[14]][_0x533d[16]])[_0x533d[8]](function(_0x2863x7){if(!_0x2863x7){return _0x2863x4[_0x533d[11]](404)};_0x2863x7[_0x533d[23]]()[_0x533d[8]](function(){return _0x2863x4[_0x533d[11]](204)})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)});})[_0x533d[5]](function(_0x2863x5){return handleError(_0x2863x4,_0x2863x5)})};function handleError(_0x2863x4,_0x2863x5){return _0x2863x4[_0x533d[7]](500)[_0x533d[6]](_0x2863x5)}
\ No newline at end of file
+var _0x1e51=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x45\x76\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x42\x79\x43\x68\x61\x6E\x6E\x65\x6C","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x1e51[0];var _=require(_0x1e51[1]);var Event=require(_0x1e51[3])[_0x1e51[2]];exports[_0x1e51[4]]=function(_0x5da2x3,_0x5da2x4){Event[_0x1e51[9]]({include:[{all:true}]})[_0x1e51[8]](function(_0x5da2x6){return _0x5da2x4[_0x1e51[7]](200)[_0x1e51[6]](_0x5da2x6)})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)})};exports[_0x1e51[10]]=function(_0x5da2x3,_0x5da2x4){Event[_0x1e51[9]]({where:{channel:_0x5da2x3[_0x1e51[14]][_0x1e51[13]][_0x1e51[12]]()},include:[{all:true}]})[_0x1e51[8]](function(_0x5da2x7){if(!_0x5da2x7){return _0x5da2x4[_0x1e51[11]](404)};return _0x5da2x4[_0x1e51[6]](_0x5da2x7);})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)})};exports[_0x1e51[15]]=function(_0x5da2x3,_0x5da2x4){Event[_0x1e51[17]](_0x5da2x3[_0x1e51[14]][_0x1e51[16]])[_0x1e51[8]](function(_0x5da2x7){if(!_0x5da2x7){return _0x5da2x4[_0x1e51[11]](404)};return _0x5da2x4[_0x1e51[6]](_0x5da2x7);})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)})};exports[_0x1e51[18]]=function(_0x5da2x3,_0x5da2x4){Event[_0x1e51[18]](_0x5da2x3[_0x1e51[19]])[_0x1e51[8]](function(_0x5da2x7){return _0x5da2x4[_0x1e51[7]](201)[_0x1e51[6]](_0x5da2x7)})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)})};exports[_0x1e51[20]]=function(_0x5da2x3,_0x5da2x4){if(_0x5da2x3[_0x1e51[19]][_0x1e51[16]]){delete _0x5da2x3[_0x1e51[19]][_0x1e51[16]]};Event[_0x1e51[17]](_0x5da2x3[_0x1e51[14]][_0x1e51[16]])[_0x1e51[8]](function(_0x5da2x7){if(!_0x5da2x7){return _0x5da2x4[_0x1e51[11]](404)};var _0x5da2x8=_[_0x1e51[21]](_0x5da2x7,_0x5da2x3[_0x1e51[19]]);_0x5da2x8[_0x1e51[22]]()[_0x1e51[8]](function(){return _0x5da2x4[_0x1e51[7]](200)[_0x1e51[6]](_0x5da2x7)})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)});})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)});};exports[_0x1e51[23]]=function(_0x5da2x3,_0x5da2x4){Event[_0x1e51[17]](_0x5da2x3[_0x1e51[14]][_0x1e51[16]])[_0x1e51[8]](function(_0x5da2x7){if(!_0x5da2x7){return _0x5da2x4[_0x1e51[11]](404)};_0x5da2x7[_0x1e51[23]]()[_0x1e51[8]](function(){return _0x5da2x4[_0x1e51[11]](204)})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)});})[_0x1e51[5]](function(_0x5da2x5){return handleError(_0x5da2x4,_0x5da2x5)})};function handleError(_0x5da2x4,_0x5da2x5){return _0x5da2x4[_0x1e51[7]](500)[_0x1e51[6]](_0x5da2x5)}
\ No newline at end of file
-var _0x3782=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x45\x76\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x65\x76\x65\x6E\x74\x3A","\x63\x68\x61\x6E\x6E\x65\x6C","\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x65\x76\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3782[0];var Event=require(_0x3782[2])[_0x3782[1]];exports[_0x3782[3]]=function(_0xc326x2){Event[_0x3782[7]](function(_0xc326x3){Event[_0x3782[6]]({where:{id:_0xc326x3[_0x3782[5]]},include:[{all:true}]})[_0x3782[4]](function(_0xc326x4){onSave(_0xc326x2,_0xc326x4)})});Event[_0x3782[8]](function(_0xc326x3){onRemove(_0xc326x2,_0xc326x3)});};function onSave(_0xc326x2,_0xc326x3,_0xc326x6){_0xc326x2[_0x3782[13]]((_0x3782[10]+_0xc326x3[_0x3782[11]]+_0x3782[12])[_0x3782[9]](),_0xc326x3)}function onRemove(_0xc326x2,_0xc326x3,_0xc326x6){_0xc326x2[_0x3782[13]](_0x3782[14],_0xc326x3)}
\ No newline at end of file
+var _0x1f74=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x45\x76\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x65\x76\x65\x6E\x74\x3A","\x63\x68\x61\x6E\x6E\x65\x6C","\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x65\x76\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1f74[0];var Event=require(_0x1f74[2])[_0x1f74[1]];exports[_0x1f74[3]]=function(_0xe42ax2){Event[_0x1f74[7]](function(_0xe42ax3){Event[_0x1f74[6]]({where:{id:_0xe42ax3[_0x1f74[5]]},include:[{all:true}]})[_0x1f74[4]](function(_0xe42ax4){onSave(_0xe42ax2,_0xe42ax4)})});Event[_0x1f74[8]](function(_0xe42ax3){onRemove(_0xe42ax2,_0xe42ax3)});};function onSave(_0xe42ax2,_0xe42ax3,_0xe42ax6){_0xe42ax2[_0x1f74[13]]((_0x1f74[10]+_0xe42ax3[_0x1f74[11]]+_0x1f74[12])[_0x1f74[9]](),_0xe42ax3)}function onRemove(_0xe42ax2,_0xe42ax3,_0xe42ax6){_0xe42ax2[_0x1f74[13]](_0x1f74[14],_0xe42ax3)}
\ No newline at end of file
-var _0x3371=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x67\x65\x74"];_0x3371[0];var should=require(_0x3371[1]);var app=require(_0x3371[2]);var request=require(_0x3371[3]);describe(_0x3371[4],function(){it(_0x3371[5],function(_0xe71fx4){request(app)[_0x3371[13]](_0x3371[12])[_0x3371[11]](200)[_0x3371[11]](_0x3371[10],/json/)[_0x3371[9]](function(_0xe71fx5,_0xe71fx6){if(_0xe71fx5){return _0xe71fx4(_0xe71fx5)};_0xe71fx6[_0x3371[8]][_0x3371[1]][_0x3371[7]][_0x3371[6]](Array);_0xe71fx4();})})});
\ No newline at end of file
+var _0x6150=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x67\x65\x74"];_0x6150[0];var should=require(_0x6150[1]);var app=require(_0x6150[2]);var request=require(_0x6150[3]);describe(_0x6150[4],function(){it(_0x6150[5],function(_0x3b1bx4){request(app)[_0x6150[13]](_0x6150[12])[_0x6150[11]](200)[_0x6150[11]](_0x6150[10],/json/)[_0x6150[9]](function(_0x3b1bx5,_0x3b1bx6){if(_0x3b1bx5){return _0x3b1bx4(_0x3b1bx5)};_0x3b1bx6[_0x6150[8]][_0x6150[1]][_0x6150[7]][_0x6150[6]](Array);_0x3b1bx4();})})});
\ No newline at end of file
-var _0x1800=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x65\x76\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x63\x68\x61\x6E\x6E\x65\x6C\x2F\x3A\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x68\x6F\x77\x42\x79\x43\x68\x61\x6E\x6E\x65\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1800[0];var express=require(_0x1800[1]);var controller=require(_0x1800[2]);var router=express.Router();router[_0x1800[5]](_0x1800[3],controller[_0x1800[4]]);router[_0x1800[5]](_0x1800[6],controller[_0x1800[7]]);router[_0x1800[5]](_0x1800[8],controller[_0x1800[9]]);router[_0x1800[11]](_0x1800[3],controller[_0x1800[10]]);router[_0x1800[13]](_0x1800[8],controller[_0x1800[12]]);router[_0x1800[14]](_0x1800[8],controller[_0x1800[12]]);router[_0x1800[16]](_0x1800[8],controller[_0x1800[15]]);module[_0x1800[17]]=router;
\ No newline at end of file
+var _0xf045=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x65\x76\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x63\x68\x61\x6E\x6E\x65\x6C\x2F\x3A\x63\x68\x61\x6E\x6E\x65\x6C","\x73\x68\x6F\x77\x42\x79\x43\x68\x61\x6E\x6E\x65\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf045[0];var express=require(_0xf045[1]);var controller=require(_0xf045[2]);var router=express.Router();router[_0xf045[5]](_0xf045[3],controller[_0xf045[4]]);router[_0xf045[5]](_0xf045[6],controller[_0xf045[7]]);router[_0xf045[5]](_0xf045[8],controller[_0xf045[9]]);router[_0xf045[11]](_0xf045[3],controller[_0xf045[10]]);router[_0xf045[13]](_0xf045[8],controller[_0xf045[12]]);router[_0xf045[14]](_0xf045[8],controller[_0xf045[12]]);router[_0xf045[16]](_0xf045[8],controller[_0xf045[15]]);module[_0xf045[17]]=router;
\ No newline at end of file
-var _0xa020=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x70\x68\x6F\x6E\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x63\x6F\x6E\x74\x65\x78\x74","\x47\x6F\x74\x6F","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78\x2C\x73\x2C\x31","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6C\x6F\x67","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x6F\x6B","\x63\x6F\x6D\x6D\x69\x74","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x76\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x65\x64\x69\x74\x65\x64","\x55\x73\x65\x72\x49\x64","\x6D\x65\x72\x67\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x20\x73\x61\x76\x65\x64","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x61\x64\x64\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xa020[0];var _=require(_0xa020[1]);var util=require(_0xa020[2]);var async=require(_0xa020[3]);var Trunk=require(_0xa020[5])[_0xa020[4]];var FaxAccount=require(_0xa020[5])[_0xa020[6]];var FaxApplication=require(_0xa020[5])[_0xa020[7]];var VoiceExtension=require(_0xa020[5])[_0xa020[8]];var sequelize=require(_0xa020[5])[_0xa020[9]];exports[_0xa020[10]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){var _0x7e4axc=[_0xa020[11],_0xa020[12],_0xa020[13]];var _0x7e4axd=_0x7e4ax9[_0xa020[15]][_0xa020[14]]?parseInt(_0x7e4ax9[_0xa020[15]][_0xa020[14]],10):100;var _0x7e4axe=_0x7e4ax9[_0xa020[15]][_0xa020[16]]?parseInt(_0x7e4ax9[_0xa020[15]][_0xa020[16]],10):0;var _0x7e4axf={where:{},limit:_0x7e4axd,offset:_0x7e4axe*_0x7e4axd};_[_0xa020[30]](_0x7e4ax9[_0xa020[15]],function(_0x7e4ax10,_0x7e4ax11){switch(_0x7e4ax11){case _0xa020[14]:;case _0xa020[16]:break ;;case _0xa020[19]:_0x7e4axf[_0xa020[17]]=util[_0xa020[22]](_0xa020[18],_0x7e4ax9[_0xa020[15]][_0xa020[19]],_0x7e4ax9[_0xa020[15]][_0xa020[20]]||_0xa020[21])||null;break ;;case _0xa020[20]:break ;;case _0xa020[28]:_0x7e4axf[_0xa020[24]][_0xa020[23]]=[];_0x7e4axc[_0xa020[27]](function(_0x7e4ax12){var _0x7e4ax13={};_0x7e4ax13[_0x7e4ax12]={$like:_0xa020[25]+_0x7e4ax10+_0xa020[25]};_0x7e4axf[_0xa020[24]][_0xa020[23]][_0xa020[26]](_0x7e4ax13);});break ;;default:_0x7e4axf[_0xa020[24]][_0x7e4ax11]={$like:{}};_0x7e4axf[_0xa020[24]][_0x7e4ax11][_0xa020[29]]=_0xa020[25]+_0x7e4ax10+_0xa020[25];;}});FaxAccount[_0xa020[45]](_0x7e4axf)[_0xa020[44]](function(_0x7e4ax15){var _0x7e4ax16=Math[_0xa020[36]](_0x7e4ax15[_0xa020[35]]/_0x7e4axd);var _0x7e4ax17=_0x7e4ax16>(_0x7e4axf[_0xa020[37]]+1)?util[_0xa020[22]](_0xa020[38],_0x7e4ax9[_0xa020[39]],_0x7e4ax9[_0xa020[41]][_0xa020[40]],_0x7e4ax9[_0xa020[42]],_0x7e4axe+1):null;var _0x7e4ax18=_0x7e4axe>0?util[_0xa020[22]](_0xa020[38],_0x7e4ax9[_0xa020[39]],_0x7e4ax9[_0xa020[41]][_0xa020[40]],_0x7e4ax9[_0xa020[42]],_0x7e4axe-1):null;_0x7e4axa[_0xa020[33]](200)[_0xa020[32]]({count:_0x7e4ax15[_0xa020[35]],rows:_0x7e4ax15[_0xa020[43]],next_page:_0x7e4ax17,previous_page:_0x7e4ax18,total_pages:_0x7e4ax16});})[_0xa020[34]](function(_0x7e4ax14){_0x7e4axa[_0xa020[33]](500)[_0xa020[32]]({error:_0xa020[31]})});};exports[_0xa020[46]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){FaxAccount[_0xa020[50]](_0x7e4ax9[_0xa020[49]][_0xa020[48]])[_0xa020[44]](function(_0x7e4ax19){if(!_0x7e4ax19){return _0x7e4axa[_0xa020[47]](404)};return _0x7e4axa[_0xa020[32]](_0x7e4ax19);})[_0xa020[34]](function(_0x7e4ax14){return _0x7e4axb(_0x7e4ax14)})};exports[_0xa020[51]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){return sequelize[_0xa020[62]]()[_0xa020[44]](function(_0x7e4ax1a){async[_0xa020[61]]([function(_0x7e4ax1b){return FaxAccount[_0xa020[51]](_0x7e4ax9[_0xa020[52]],{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax19){_0x7e4ax1b(null,_0x7e4ax19)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})},function(_0x7e4ax19,_0x7e4ax1b){return Trunk[_0xa020[50]](_0x7e4ax9[_0xa020[52]].TrunkId,{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1c){_0x7e4ax1b(null,_0x7e4ax19,_0x7e4ax1c)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})},function(_0x7e4ax19,_0x7e4ax1c,_0x7e4ax1b){return VoiceExtension[_0xa020[51]]({context:_0x7e4ax1c[_0xa020[53]],exten:_0x7e4ax9[_0xa020[52]][_0xa020[13]],priority:1,app:_0xa020[54],appdata:_0xa020[55],type:_0xa020[56],TrunkId:_0x7e4ax1c[_0xa020[48]]},{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1d){_0x7e4ax1b(null,_0x7e4ax19)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})}],function(_0x7e4ax14,_0x7e4ax19){if(_0x7e4ax14){console[_0xa020[57]](_0x7e4ax14);_0x7e4ax1a[_0xa020[58]]();return _0x7e4axa[_0xa020[33]](404)[_0xa020[32]](_0x7e4ax14);}else {console[_0xa020[57]](_0xa020[59]);_0x7e4ax1a[_0xa020[60]]();return _0x7e4axa[_0xa020[33]](201)[_0xa020[32]](_0x7e4ax19);}})})};exports[_0xa020[63]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){if(_0x7e4ax9[_0xa020[52]][_0xa020[48]]){delete _0x7e4ax9[_0xa020[52]][_0xa020[48]]};return sequelize[_0xa020[62]]()[_0xa020[44]](function(_0x7e4ax1a){async[_0xa020[61]]([function(_0x7e4ax1b){return FaxAccount[_0xa020[64]]({where:{id:_0x7e4ax9[_0xa020[49]][_0xa020[48]]},include:[{model:Trunk}]},{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax19){_0x7e4ax1b(null,_0x7e4ax19)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})},function(_0x7e4ax19,_0x7e4ax1b){return Trunk[_0xa020[50]](_0x7e4ax9[_0xa020[52]].TrunkId,{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1e){return _0x7e4ax19[_0xa020[65]]({TrunkId:_0x7e4ax1e[_0xa020[48]]},{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1f){_0x7e4ax1b(null,_0x7e4ax19,_0x7e4ax1e)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})},function(_0x7e4ax19,_0x7e4ax1e,_0x7e4ax1b){return VoiceExtension[_0xa020[64]]({where:{priority:1,exten:_0x7e4ax19[_0xa020[13]],context:_0x7e4ax19[_0xa020[4]][_0xa020[53]]}},{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1d){if(!_0x7e4ax1d){_0x7e4ax1b(null,_0x7e4ax19)};return _0x7e4ax1d[_0xa020[65]]({exten:_0x7e4ax9[_0xa020[52]][_0xa020[13]],context:_0x7e4ax1e[_0xa020[53]],TrunkId:_0x7e4ax9[_0xa020[52]][_0xa020[67]]},{transaction:_0x7e4ax1a})[_0xa020[44]](function(){console[_0xa020[57]](_0xa020[66]);_0x7e4ax1b(null,_0x7e4ax19);})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)});})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)})},function(_0x7e4ax19,_0x7e4ax1b){var _0x7e4ax20=_[_0xa020[68]](_0x7e4ax19,_0x7e4ax9[_0xa020[52]]);return _0x7e4ax20[_0xa020[70]]({transaction:_0x7e4ax1a})[_0xa020[44]](function(){console[_0xa020[57]](_0xa020[69]);_0x7e4ax1b(null,_0x7e4ax19);})[_0xa020[34]](function(_0x7e4ax14){_0x7e4ax1b(_0x7e4ax14)});}],function(_0x7e4ax14,_0x7e4ax19){if(_0x7e4ax14){console[_0xa020[57]](_0x7e4ax14);_0x7e4ax1a[_0xa020[58]]();return _0x7e4axa[_0xa020[33]](404)[_0xa020[32]](_0x7e4ax14);}else {console[_0xa020[57]](_0xa020[59]);_0x7e4ax1a[_0xa020[60]]();return _0x7e4axa[_0xa020[33]](201)[_0xa020[32]](_0x7e4ax19);}})});};exports[_0xa020[71]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){FaxAccount[_0xa020[72]]({where:{id:_0x7e4ax9[_0xa020[49]][_0xa020[48]]}})[_0xa020[44]](function(_0x7e4ax19){if(!_0x7e4ax19){return _0x7e4axa[_0xa020[47]](404)};_0x7e4ax19[_0xa020[71]]()[_0xa020[44]](function(){return _0x7e4axa[_0xa020[47]](204)})[_0xa020[34]](function(_0x7e4ax14){_0x7e4axb(_0x7e4ax14)});})[_0xa020[34]](function(_0x7e4ax14){_0x7e4axb(_0x7e4ax14)})};exports[_0xa020[73]]=function(_0x7e4ax9,_0x7e4axa,_0x7e4axb){FaxApplication[_0xa020[79]]({where:{id:_0x7e4ax9[_0xa020[52]][_0xa020[75]]}})[_0xa020[44]](function(_0x7e4ax21){var _0x7e4ax22=_0x7e4ax21;return sequelize[_0xa020[62]](function(_0x7e4ax1a){return FaxApplication[_0xa020[71]]({where:{id:_0x7e4ax9[_0xa020[52]][_0xa020[75]]}},{transaction:_0x7e4ax1a})[_0xa020[44]](function(){var _0x7e4ax23=[];for(var _0x7e4ax24=0;_0x7e4ax24<_0x7e4ax9[_0xa020[52]][_0xa020[75]][_0xa020[74]];_0x7e4ax24++){var _0x7e4ax25=_[_0xa020[72]](_0x7e4ax22,{"\x69\x64":_0x7e4ax9[_0xa020[52]][_0xa020[75]][_0x7e4ax24]});if(_0x7e4ax25){_0x7e4ax25[_0xa020[76]]=_0x7e4ax24+1;_0x7e4ax23[_0xa020[26]](_0x7e4ax25[_0xa020[77]]);};};return FaxApplication[_0xa020[78]](_0x7e4ax23,{transaction:_0x7e4ax1a})[_0xa020[44]](function(_0x7e4ax1f){return _0x7e4ax1f});})})[_0xa020[44]](function(_0x7e4ax15){return _0x7e4axa[_0xa020[33]](200)[_0xa020[32]](_0x7e4ax15)})[_0xa020[34]](function(_0x7e4ax14){return handleError(_0x7e4axa,_0x7e4ax14)});})[_0xa020[34]](function(_0x7e4ax14){return _0x7e4axb(_0x7e4ax14)})};exports[_0xa020[80]]=function(_0x7e4ax9,_0x7e4axa){FaxAccount[_0xa020[71]]({where:{id:_0x7e4ax9[_0xa020[15]][_0xa020[48]]},individualHooks:true})[_0xa020[44]](function(){return _0x7e4axa[_0xa020[47]](204)})[_0xa020[34]](function(_0x7e4ax14){return handleError(_0x7e4axa,_0x7e4ax14)})};function handleError(_0x7e4axa,_0x7e4ax14){return _0x7e4axa[_0xa020[33]](500)[_0xa020[32]](_0x7e4ax14)}
\ No newline at end of file
+var _0x9444=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x70\x68\x6F\x6E\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x63\x6F\x6E\x74\x65\x78\x74","\x47\x6F\x74\x6F","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78\x2C\x73\x2C\x31","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6C\x6F\x67","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x6F\x6B","\x63\x6F\x6D\x6D\x69\x74","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x76\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x65\x64\x69\x74\x65\x64","\x55\x73\x65\x72\x49\x64","\x6D\x65\x72\x67\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x20\x73\x61\x76\x65\x64","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x61\x64\x64\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x9444[0];var _=require(_0x9444[1]);var util=require(_0x9444[2]);var async=require(_0x9444[3]);var Trunk=require(_0x9444[5])[_0x9444[4]];var FaxAccount=require(_0x9444[5])[_0x9444[6]];var FaxApplication=require(_0x9444[5])[_0x9444[7]];var VoiceExtension=require(_0x9444[5])[_0x9444[8]];var sequelize=require(_0x9444[5])[_0x9444[9]];exports[_0x9444[10]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){var _0x83fdxc=[_0x9444[11],_0x9444[12],_0x9444[13]];var _0x83fdxd=_0x83fdx9[_0x9444[15]][_0x9444[14]]?parseInt(_0x83fdx9[_0x9444[15]][_0x9444[14]],10):100;var _0x83fdxe=_0x83fdx9[_0x9444[15]][_0x9444[16]]?parseInt(_0x83fdx9[_0x9444[15]][_0x9444[16]],10):0;var _0x83fdxf={where:{},limit:_0x83fdxd,offset:_0x83fdxe*_0x83fdxd};_[_0x9444[30]](_0x83fdx9[_0x9444[15]],function(_0x83fdx10,_0x83fdx11){switch(_0x83fdx11){case _0x9444[14]:;case _0x9444[16]:break ;;case _0x9444[19]:_0x83fdxf[_0x9444[17]]=util[_0x9444[22]](_0x9444[18],_0x83fdx9[_0x9444[15]][_0x9444[19]],_0x83fdx9[_0x9444[15]][_0x9444[20]]||_0x9444[21])||null;break ;;case _0x9444[20]:break ;;case _0x9444[28]:_0x83fdxf[_0x9444[24]][_0x9444[23]]=[];_0x83fdxc[_0x9444[27]](function(_0x83fdx12){var _0x83fdx13={};_0x83fdx13[_0x83fdx12]={$like:_0x9444[25]+_0x83fdx10+_0x9444[25]};_0x83fdxf[_0x9444[24]][_0x9444[23]][_0x9444[26]](_0x83fdx13);});break ;;default:_0x83fdxf[_0x9444[24]][_0x83fdx11]={$like:{}};_0x83fdxf[_0x9444[24]][_0x83fdx11][_0x9444[29]]=_0x9444[25]+_0x83fdx10+_0x9444[25];;}});FaxAccount[_0x9444[45]](_0x83fdxf)[_0x9444[44]](function(_0x83fdx15){var _0x83fdx16=Math[_0x9444[36]](_0x83fdx15[_0x9444[35]]/_0x83fdxd);var _0x83fdx17=_0x83fdx16>(_0x83fdxf[_0x9444[37]]+1)?util[_0x9444[22]](_0x9444[38],_0x83fdx9[_0x9444[39]],_0x83fdx9[_0x9444[41]][_0x9444[40]],_0x83fdx9[_0x9444[42]],_0x83fdxe+1):null;var _0x83fdx18=_0x83fdxe>0?util[_0x9444[22]](_0x9444[38],_0x83fdx9[_0x9444[39]],_0x83fdx9[_0x9444[41]][_0x9444[40]],_0x83fdx9[_0x9444[42]],_0x83fdxe-1):null;_0x83fdxa[_0x9444[33]](200)[_0x9444[32]]({count:_0x83fdx15[_0x9444[35]],rows:_0x83fdx15[_0x9444[43]],next_page:_0x83fdx17,previous_page:_0x83fdx18,total_pages:_0x83fdx16});})[_0x9444[34]](function(_0x83fdx14){_0x83fdxa[_0x9444[33]](500)[_0x9444[32]]({error:_0x9444[31]})});};exports[_0x9444[46]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){FaxAccount[_0x9444[50]](_0x83fdx9[_0x9444[49]][_0x9444[48]])[_0x9444[44]](function(_0x83fdx19){if(!_0x83fdx19){return _0x83fdxa[_0x9444[47]](404)};return _0x83fdxa[_0x9444[32]](_0x83fdx19);})[_0x9444[34]](function(_0x83fdx14){return _0x83fdxb(_0x83fdx14)})};exports[_0x9444[51]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){return sequelize[_0x9444[62]]()[_0x9444[44]](function(_0x83fdx1a){async[_0x9444[61]]([function(_0x83fdx1b){return FaxAccount[_0x9444[51]](_0x83fdx9[_0x9444[52]],{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx19){_0x83fdx1b(null,_0x83fdx19)})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})},function(_0x83fdx19,_0x83fdx1b){return Trunk[_0x9444[50]](_0x83fdx9[_0x9444[52]].TrunkId,{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1c){_0x83fdx1b(null,_0x83fdx19,_0x83fdx1c)})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})},function(_0x83fdx19,_0x83fdx1c,_0x83fdx1b){return VoiceExtension[_0x9444[51]]({context:_0x83fdx1c[_0x9444[53]],exten:_0x83fdx9[_0x9444[52]][_0x9444[13]],priority:1,app:_0x9444[54],appdata:_0x9444[55],type:_0x9444[56],TrunkId:_0x83fdx1c[_0x9444[48]]},{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1d){_0x83fdx1b(null,_0x83fdx19)})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})}],function(_0x83fdx14,_0x83fdx19){if(_0x83fdx14){console[_0x9444[57]](_0x83fdx14);_0x83fdx1a[_0x9444[58]]();return _0x83fdxa[_0x9444[33]](404)[_0x9444[32]](_0x83fdx14);}else {console[_0x9444[57]](_0x9444[59]);_0x83fdx1a[_0x9444[60]]();return _0x83fdxa[_0x9444[33]](201)[_0x9444[32]](_0x83fdx19);}})})};exports[_0x9444[63]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){if(_0x83fdx9[_0x9444[52]][_0x9444[48]]){delete _0x83fdx9[_0x9444[52]][_0x9444[48]]};return sequelize[_0x9444[62]]()[_0x9444[44]](function(_0x83fdx1a){async[_0x9444[61]]([function(_0x83fdx1b){return FaxAccount[_0x9444[64]]({where:{id:_0x83fdx9[_0x9444[49]][_0x9444[48]]},include:[{model:Trunk}]},{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx19){_0x83fdx1b(null,_0x83fdx19)})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})},function(_0x83fdx19,_0x83fdx1b){return Trunk[_0x9444[50]](_0x83fdx9[_0x9444[52]].TrunkId,{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1e){return _0x83fdx19[_0x9444[65]]({TrunkId:_0x83fdx1e[_0x9444[48]]},{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1f){_0x83fdx1b(null,_0x83fdx19,_0x83fdx1e)})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})},function(_0x83fdx19,_0x83fdx1e,_0x83fdx1b){return VoiceExtension[_0x9444[64]]({where:{priority:1,exten:_0x83fdx19[_0x9444[13]],context:_0x83fdx19[_0x9444[4]][_0x9444[53]]}},{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1d){if(!_0x83fdx1d){_0x83fdx1b(null,_0x83fdx19)};return _0x83fdx1d[_0x9444[65]]({exten:_0x83fdx9[_0x9444[52]][_0x9444[13]],context:_0x83fdx1e[_0x9444[53]],TrunkId:_0x83fdx9[_0x9444[52]][_0x9444[67]]},{transaction:_0x83fdx1a})[_0x9444[44]](function(){console[_0x9444[57]](_0x9444[66]);_0x83fdx1b(null,_0x83fdx19);})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)});})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)})},function(_0x83fdx19,_0x83fdx1b){var _0x83fdx20=_[_0x9444[68]](_0x83fdx19,_0x83fdx9[_0x9444[52]]);return _0x83fdx20[_0x9444[70]]({transaction:_0x83fdx1a})[_0x9444[44]](function(){console[_0x9444[57]](_0x9444[69]);_0x83fdx1b(null,_0x83fdx19);})[_0x9444[34]](function(_0x83fdx14){_0x83fdx1b(_0x83fdx14)});}],function(_0x83fdx14,_0x83fdx19){if(_0x83fdx14){console[_0x9444[57]](_0x83fdx14);_0x83fdx1a[_0x9444[58]]();return _0x83fdxa[_0x9444[33]](404)[_0x9444[32]](_0x83fdx14);}else {console[_0x9444[57]](_0x9444[59]);_0x83fdx1a[_0x9444[60]]();return _0x83fdxa[_0x9444[33]](201)[_0x9444[32]](_0x83fdx19);}})});};exports[_0x9444[71]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){FaxAccount[_0x9444[72]]({where:{id:_0x83fdx9[_0x9444[49]][_0x9444[48]]}})[_0x9444[44]](function(_0x83fdx19){if(!_0x83fdx19){return _0x83fdxa[_0x9444[47]](404)};_0x83fdx19[_0x9444[71]]()[_0x9444[44]](function(){return _0x83fdxa[_0x9444[47]](204)})[_0x9444[34]](function(_0x83fdx14){_0x83fdxb(_0x83fdx14)});})[_0x9444[34]](function(_0x83fdx14){_0x83fdxb(_0x83fdx14)})};exports[_0x9444[73]]=function(_0x83fdx9,_0x83fdxa,_0x83fdxb){FaxApplication[_0x9444[79]]({where:{id:_0x83fdx9[_0x9444[52]][_0x9444[75]]}})[_0x9444[44]](function(_0x83fdx21){var _0x83fdx22=_0x83fdx21;return sequelize[_0x9444[62]](function(_0x83fdx1a){return FaxApplication[_0x9444[71]]({where:{id:_0x83fdx9[_0x9444[52]][_0x9444[75]]}},{transaction:_0x83fdx1a})[_0x9444[44]](function(){var _0x83fdx23=[];for(var _0x83fdx24=0;_0x83fdx24<_0x83fdx9[_0x9444[52]][_0x9444[75]][_0x9444[74]];_0x83fdx24++){var _0x83fdx25=_[_0x9444[72]](_0x83fdx22,{"\x69\x64":_0x83fdx9[_0x9444[52]][_0x9444[75]][_0x83fdx24]});if(_0x83fdx25){_0x83fdx25[_0x9444[76]]=_0x83fdx24+1;_0x83fdx23[_0x9444[26]](_0x83fdx25[_0x9444[77]]);};};return FaxApplication[_0x9444[78]](_0x83fdx23,{transaction:_0x83fdx1a})[_0x9444[44]](function(_0x83fdx1f){return _0x83fdx1f});})})[_0x9444[44]](function(_0x83fdx15){return _0x83fdxa[_0x9444[33]](200)[_0x9444[32]](_0x83fdx15)})[_0x9444[34]](function(_0x83fdx14){return handleError(_0x83fdxa,_0x83fdx14)});})[_0x9444[34]](function(_0x83fdx14){return _0x83fdxb(_0x83fdx14)})};exports[_0x9444[80]]=function(_0x83fdx9,_0x83fdxa){FaxAccount[_0x9444[71]]({where:{id:_0x83fdx9[_0x9444[15]][_0x9444[48]]},individualHooks:true})[_0x9444[44]](function(){return _0x83fdxa[_0x9444[47]](204)})[_0x9444[34]](function(_0x83fdx14){return handleError(_0x83fdxa,_0x83fdx14)})};function handleError(_0x83fdxa,_0x83fdx14){return _0x83fdxa[_0x9444[33]](500)[_0x9444[32]](_0x83fdx14)}
\ No newline at end of file
-var _0x5e70=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5e70[0];var fax_account=require(_0x5e70[2])[_0x5e70[1]];exports[_0x5e70[3]]=function(_0x84a0x2){fax_account[_0x5e70[4]](function(_0x84a0x3){onSave(_0x84a0x2,_0x84a0x3)});fax_account[_0x5e70[5]](function(_0x84a0x3){onRemove(_0x84a0x2,_0x84a0x3)});};function onSave(_0x84a0x2,_0x84a0x3,_0x84a0x5){_0x84a0x2[_0x5e70[7]](_0x5e70[6],_0x84a0x3)}function onRemove(_0x84a0x2,_0x84a0x3,_0x84a0x5){_0x84a0x2[_0x5e70[7]](_0x5e70[8],_0x84a0x3)}
\ No newline at end of file
+var _0xc3a8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xc3a8[0];var fax_account=require(_0xc3a8[2])[_0xc3a8[1]];exports[_0xc3a8[3]]=function(_0x4228x2){fax_account[_0xc3a8[4]](function(_0x4228x3){onSave(_0x4228x2,_0x4228x3)});fax_account[_0xc3a8[5]](function(_0x4228x3){onRemove(_0x4228x2,_0x4228x3)});};function onSave(_0x4228x2,_0x4228x3,_0x4228x5){_0x4228x2[_0xc3a8[7]](_0xc3a8[6],_0x4228x3)}function onRemove(_0x4228x2,_0x4228x3,_0x4228x5){_0x4228x2[_0xc3a8[7]](_0xc3a8[8],_0x4228x3)}
\ No newline at end of file
-var _0xe718=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xe718[0];var should=require(_0xe718[1]);var app=require(_0xe718[2]);var request=require(_0xe718[3]);describe(_0xe718[4],function(){it(_0xe718[5],function(_0xb808x4){request(app)[_0xe718[13]](_0xe718[12])[_0xe718[11]](200)[_0xe718[11]](_0xe718[10],/json/)[_0xe718[9]](function(_0xb808x5,_0xb808x6){if(_0xb808x5){return _0xb808x4(_0xb808x5)};_0xb808x6[_0xe718[8]][_0xe718[1]][_0xe718[7]][_0xe718[6]](Array);_0xb808x4();})})});
\ No newline at end of file
+var _0xb2a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xb2a6[0];var should=require(_0xb2a6[1]);var app=require(_0xb2a6[2]);var request=require(_0xb2a6[3]);describe(_0xb2a6[4],function(){it(_0xb2a6[5],function(_0x7bd1x4){request(app)[_0xb2a6[13]](_0xb2a6[12])[_0xb2a6[11]](200)[_0xb2a6[11]](_0xb2a6[10],/json/)[_0xb2a6[9]](function(_0x7bd1x5,_0x7bd1x6){if(_0x7bd1x5){return _0x7bd1x4(_0x7bd1x5)};_0x7bd1x6[_0xb2a6[8]][_0xb2a6[1]][_0xb2a6[7]][_0xb2a6[6]](Array);_0x7bd1x4();})})});
\ No newline at end of file
-var _0x1dcf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x64\x64\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x1dcf[0];var express=require(_0x1dcf[1]);var controller=require(_0x1dcf[2]);var auth=require(_0x1dcf[3]);var router=express.Router();router[_0x1dcf[7]](_0x1dcf[4],auth[_0x1dcf[5]](),controller[_0x1dcf[6]]);router[_0x1dcf[7]](_0x1dcf[8],controller[_0x1dcf[9]]);router[_0x1dcf[11]](_0x1dcf[4],controller[_0x1dcf[10]]);router[_0x1dcf[11]](_0x1dcf[12],controller[_0x1dcf[13]]);router[_0x1dcf[15]](_0x1dcf[8],controller[_0x1dcf[14]]);router[_0x1dcf[16]](_0x1dcf[8],controller[_0x1dcf[14]]);router[_0x1dcf[18]](_0x1dcf[4],controller[_0x1dcf[17]]);router[_0x1dcf[18]](_0x1dcf[8],controller[_0x1dcf[19]]);module[_0x1dcf[20]]=router;
\ No newline at end of file
+var _0x7858=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x61\x64\x64\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7858[0];var express=require(_0x7858[1]);var controller=require(_0x7858[2]);var auth=require(_0x7858[3]);var router=express.Router();router[_0x7858[7]](_0x7858[4],auth[_0x7858[5]](),controller[_0x7858[6]]);router[_0x7858[7]](_0x7858[8],controller[_0x7858[9]]);router[_0x7858[11]](_0x7858[4],controller[_0x7858[10]]);router[_0x7858[11]](_0x7858[12],controller[_0x7858[13]]);router[_0x7858[15]](_0x7858[8],controller[_0x7858[14]]);router[_0x7858[16]](_0x7858[8],controller[_0x7858[14]]);router[_0x7858[18]](_0x7858[4],controller[_0x7858[17]]);router[_0x7858[18]](_0x7858[8],controller[_0x7858[19]]);module[_0x7858[20]]=router;
\ No newline at end of file
-var _0xd644=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x6C\x6F\x67","\x70\x72\x69\x6F\x72\x69\x74\x79","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64"];_0xd644[0];var _=require(_0xd644[1]);var FaxApplication=require(_0xd644[3])[_0xd644[2]];exports[_0xd644[4]]=function(_0xaa66x3,_0xaa66x4){FaxApplication[_0xd644[10]]({where:_0xaa66x3[_0xd644[9]]})[_0xd644[8]](function(_0xaa66x6){return _0xaa66x4[_0xd644[7]](200)[_0xd644[6]](_0xaa66x6)})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)})};exports[_0xd644[11]]=function(_0xaa66x3,_0xaa66x4){FaxApplication[_0xd644[15]](_0xaa66x3[_0xd644[14]][_0xd644[13]])[_0xd644[8]](function(_0xaa66x7){if(!_0xaa66x7){return _0xaa66x4[_0xd644[12]](404)};return _0xaa66x4[_0xd644[6]](_0xaa66x7);})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)})};exports[_0xd644[16]]=function(_0xaa66x3,_0xaa66x4,_0xaa66x8){console[_0xd644[18]](_0xaa66x3[_0xd644[17]]);FaxApplication[_0xd644[21]](_0xd644[19],{where:{FaxAccountId:_0xaa66x3[_0xd644[17]][_0xd644[20]]}})[_0xd644[8]](function(_0xaa66x9){_0xaa66x3[_0xd644[17]][_0xd644[19]]=_0xaa66x9?++_0xaa66x9:1;FaxApplication[_0xd644[16]](_0xaa66x3[_0xd644[17]])[_0xd644[8]](function(_0xaa66xa){return _0xaa66x4[_0xd644[7]](201)[_0xd644[6]](_0xaa66xa)})[_0xd644[5]](function(_0xaa66x5){return _0xaa66x8(_0xaa66x5)});console[_0xd644[18]](_0xaa66x9);})[_0xd644[5]](function(_0xaa66x5){_0xaa66x8(_0xaa66x5)});};exports[_0xd644[22]]=function(_0xaa66x3,_0xaa66x4){if(_0xaa66x3[_0xd644[17]][_0xd644[13]]){delete _0xaa66x3[_0xd644[17]][_0xd644[13]]};FaxApplication[_0xd644[15]](_0xaa66x3[_0xd644[14]][_0xd644[13]])[_0xd644[8]](function(_0xaa66x7){if(!_0xaa66x7){return _0xaa66x4[_0xd644[12]](404)};var _0xaa66xb=_[_0xd644[23]](_0xaa66x7,_0xaa66x3[_0xd644[17]]);_0xaa66xb[_0xd644[24]]()[_0xd644[8]](function(){return _0xaa66x4[_0xd644[7]](200)[_0xd644[6]](_0xaa66x7)})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)});})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)});};exports[_0xd644[25]]=function(_0xaa66x3,_0xaa66x4){FaxApplication[_0xd644[26]]({where:{id:_0xaa66x3[_0xd644[14]][_0xd644[13]]}})[_0xd644[8]](function(_0xaa66x7){if(!_0xaa66x7){return _0xaa66x4[_0xd644[12]](404)};_0xaa66x7[_0xd644[25]]()[_0xd644[8]](function(){return _0xaa66x4[_0xd644[12]](204)})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)});})[_0xd644[5]](function(_0xaa66x5){return handleError(_0xaa66x4,_0xaa66x5)})};function handleError(_0xaa66x4,_0xaa66x5){return _0xaa66x4[_0xd644[7]](500)[_0xd644[6]](_0xaa66x5)}
\ No newline at end of file
+var _0xe6d5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x6C\x6F\x67","\x70\x72\x69\x6F\x72\x69\x74\x79","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64"];_0xe6d5[0];var _=require(_0xe6d5[1]);var FaxApplication=require(_0xe6d5[3])[_0xe6d5[2]];exports[_0xe6d5[4]]=function(_0xae20x3,_0xae20x4){FaxApplication[_0xe6d5[10]]({where:_0xae20x3[_0xe6d5[9]]})[_0xe6d5[8]](function(_0xae20x6){return _0xae20x4[_0xe6d5[7]](200)[_0xe6d5[6]](_0xae20x6)})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)})};exports[_0xe6d5[11]]=function(_0xae20x3,_0xae20x4){FaxApplication[_0xe6d5[15]](_0xae20x3[_0xe6d5[14]][_0xe6d5[13]])[_0xe6d5[8]](function(_0xae20x7){if(!_0xae20x7){return _0xae20x4[_0xe6d5[12]](404)};return _0xae20x4[_0xe6d5[6]](_0xae20x7);})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)})};exports[_0xe6d5[16]]=function(_0xae20x3,_0xae20x4,_0xae20x8){console[_0xe6d5[18]](_0xae20x3[_0xe6d5[17]]);FaxApplication[_0xe6d5[21]](_0xe6d5[19],{where:{FaxAccountId:_0xae20x3[_0xe6d5[17]][_0xe6d5[20]]}})[_0xe6d5[8]](function(_0xae20x9){_0xae20x3[_0xe6d5[17]][_0xe6d5[19]]=_0xae20x9?++_0xae20x9:1;FaxApplication[_0xe6d5[16]](_0xae20x3[_0xe6d5[17]])[_0xe6d5[8]](function(_0xae20xa){return _0xae20x4[_0xe6d5[7]](201)[_0xe6d5[6]](_0xae20xa)})[_0xe6d5[5]](function(_0xae20x5){return _0xae20x8(_0xae20x5)});console[_0xe6d5[18]](_0xae20x9);})[_0xe6d5[5]](function(_0xae20x5){_0xae20x8(_0xae20x5)});};exports[_0xe6d5[22]]=function(_0xae20x3,_0xae20x4){if(_0xae20x3[_0xe6d5[17]][_0xe6d5[13]]){delete _0xae20x3[_0xe6d5[17]][_0xe6d5[13]]};FaxApplication[_0xe6d5[15]](_0xae20x3[_0xe6d5[14]][_0xe6d5[13]])[_0xe6d5[8]](function(_0xae20x7){if(!_0xae20x7){return _0xae20x4[_0xe6d5[12]](404)};var _0xae20xb=_[_0xe6d5[23]](_0xae20x7,_0xae20x3[_0xe6d5[17]]);_0xae20xb[_0xe6d5[24]]()[_0xe6d5[8]](function(){return _0xae20x4[_0xe6d5[7]](200)[_0xe6d5[6]](_0xae20x7)})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)});})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)});};exports[_0xe6d5[25]]=function(_0xae20x3,_0xae20x4){FaxApplication[_0xe6d5[26]]({where:{id:_0xae20x3[_0xe6d5[14]][_0xe6d5[13]]}})[_0xe6d5[8]](function(_0xae20x7){if(!_0xae20x7){return _0xae20x4[_0xe6d5[12]](404)};_0xae20x7[_0xe6d5[25]]()[_0xe6d5[8]](function(){return _0xae20x4[_0xe6d5[12]](204)})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)});})[_0xe6d5[5]](function(_0xae20x5){return handleError(_0xae20x4,_0xae20x5)})};function handleError(_0xae20x4,_0xae20x5){return _0xae20x4[_0xe6d5[7]](500)[_0xe6d5[6]](_0xae20x5)}
\ No newline at end of file
-var _0xb5fc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb5fc[0];var fax_application=require(_0xb5fc[2])[_0xb5fc[1]];exports[_0xb5fc[3]]=function(_0x32f9x2){fax_application[_0xb5fc[4]](function(_0x32f9x3){onSave(_0x32f9x2,_0x32f9x3)});fax_application[_0xb5fc[5]](function(_0x32f9x3){onRemove(_0x32f9x2,_0x32f9x3)});};function onSave(_0x32f9x2,_0x32f9x3,_0x32f9x5){_0x32f9x2[_0xb5fc[7]](_0xb5fc[6],_0x32f9x3)}function onRemove(_0x32f9x2,_0x32f9x3,_0x32f9x5){_0x32f9x2[_0xb5fc[7]](_0xb5fc[8],_0x32f9x3)}
\ No newline at end of file
+var _0xd672=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xd672[0];var fax_application=require(_0xd672[2])[_0xd672[1]];exports[_0xd672[3]]=function(_0x2165x2){fax_application[_0xd672[4]](function(_0x2165x3){onSave(_0x2165x2,_0x2165x3)});fax_application[_0xd672[5]](function(_0x2165x3){onRemove(_0x2165x2,_0x2165x3)});};function onSave(_0x2165x2,_0x2165x3,_0x2165x5){_0x2165x2[_0xd672[7]](_0xd672[6],_0x2165x3)}function onRemove(_0x2165x2,_0x2165x3,_0x2165x5){_0x2165x2[_0xd672[7]](_0xd672[8],_0x2165x3)}
\ No newline at end of file
-var _0x5844=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x5844[0];var should=require(_0x5844[1]);var app=require(_0x5844[2]);var request=require(_0x5844[3]);describe(_0x5844[4],function(){it(_0x5844[5],function(_0xbb73x4){request(app)[_0x5844[13]](_0x5844[12])[_0x5844[11]](200)[_0x5844[11]](_0x5844[10],/json/)[_0x5844[9]](function(_0xbb73x5,_0xbb73x6){if(_0xbb73x5){return _0xbb73x4(_0xbb73x5)};_0xbb73x6[_0x5844[8]][_0x5844[1]][_0x5844[7]][_0x5844[6]](Array);_0xbb73x4();})})});
\ No newline at end of file
+var _0xc342=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xc342[0];var should=require(_0xc342[1]);var app=require(_0xc342[2]);var request=require(_0xc342[3]);describe(_0xc342[4],function(){it(_0xc342[5],function(_0x5ab1x4){request(app)[_0xc342[13]](_0xc342[12])[_0xc342[11]](200)[_0xc342[11]](_0xc342[10],/json/)[_0xc342[9]](function(_0x5ab1x5,_0x5ab1x6){if(_0x5ab1x5){return _0x5ab1x4(_0x5ab1x5)};_0x5ab1x6[_0xc342[8]][_0xc342[1]][_0xc342[7]][_0xc342[6]](Array);_0x5ab1x4();})})});
\ No newline at end of file
-var _0x10e5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x10e5[0];var express=require(_0x10e5[1]);var controller=require(_0x10e5[2]);var router=express.Router();router[_0x10e5[5]](_0x10e5[3],controller[_0x10e5[4]]);router[_0x10e5[5]](_0x10e5[6],controller[_0x10e5[7]]);router[_0x10e5[9]](_0x10e5[3],controller[_0x10e5[8]]);router[_0x10e5[11]](_0x10e5[6],controller[_0x10e5[10]]);router[_0x10e5[12]](_0x10e5[6],controller[_0x10e5[10]]);router[_0x10e5[14]](_0x10e5[6],controller[_0x10e5[13]]);module[_0x10e5[15]]=router;
\ No newline at end of file
+var _0xc052=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xc052[0];var express=require(_0xc052[1]);var controller=require(_0xc052[2]);var router=express.Router();router[_0xc052[5]](_0xc052[3],controller[_0xc052[4]]);router[_0xc052[5]](_0xc052[6],controller[_0xc052[7]]);router[_0xc052[9]](_0xc052[3],controller[_0xc052[8]]);router[_0xc052[11]](_0xc052[6],controller[_0xc052[10]]);router[_0xc052[12]](_0xc052[6],controller[_0xc052[10]]);router[_0xc052[14]](_0xc052[6],controller[_0xc052[13]]);module[_0xc052[15]]=router;
\ No newline at end of file
-var _0xe0e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72","\x62\x6F\x64\x79","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x49\x64","\x63\x6F\x6E\x63\x61\x74","\x61\x6E\x64","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xe0e0[0];var _=require(_0xe0e0[1]);var util=require(_0xe0e0[2]);var FaxBusinessAutomation=require(_0xe0e0[4])[_0xe0e0[3]];var BusinessCondition=require(_0xe0e0[4])[_0xe0e0[5]];var BusinessAction=require(_0xe0e0[4])[_0xe0e0[6]];var sequelize=require(_0xe0e0[4])[_0xe0e0[7]];exports[_0xe0e0[8]]=function(_0x399fx7,_0x399fx8,_0x399fx9){var _0x399fxa=[_0xe0e0[9],_0xe0e0[10]];var _0x399fxb=_0x399fx7[_0xe0e0[12]][_0xe0e0[11]]?parseInt(_0x399fx7[_0xe0e0[12]][_0xe0e0[11]],10):100;var _0x399fxc=_0x399fx7[_0xe0e0[12]][_0xe0e0[13]]?parseInt(_0x399fx7[_0xe0e0[12]][_0xe0e0[13]],10):0;var _0x399fxd={where:{},limit:_0x399fxb,offset:_0x399fxc*_0x399fxb};_[_0xe0e0[27]](_0x399fx7[_0xe0e0[12]],function(_0x399fxe,_0x399fxf){switch(_0x399fxf){case _0xe0e0[11]:;case _0xe0e0[13]:break ;;case _0xe0e0[16]:_0x399fxd[_0xe0e0[14]]=util[_0xe0e0[19]](_0xe0e0[15],_0x399fx7[_0xe0e0[12]][_0xe0e0[16]],_0x399fx7[_0xe0e0[12]][_0xe0e0[17]]||_0xe0e0[18])||null;break ;;case _0xe0e0[17]:break ;;case _0xe0e0[25]:_0x399fxd[_0xe0e0[21]][_0xe0e0[20]]=[];_0x399fxa[_0xe0e0[24]](function(_0x399fx10){var _0x399fx11={};_0x399fx11[_0x399fx10]={$like:_0xe0e0[22]+_0x399fxe+_0xe0e0[22]};_0x399fxd[_0xe0e0[21]][_0xe0e0[20]][_0xe0e0[23]](_0x399fx11);});break ;;default:_0x399fxd[_0xe0e0[21]][_0x399fxf]={$like:{}};_0x399fxd[_0xe0e0[21]][_0x399fxf][_0xe0e0[26]]=_0xe0e0[22]+_0x399fxe+_0xe0e0[22];;}});FaxBusinessAutomation[_0xe0e0[42]](_0x399fxd)[_0xe0e0[41]](function(_0x399fx13){var _0x399fx14=Math[_0xe0e0[33]](_0x399fx13[_0xe0e0[32]]/_0x399fxb);var _0x399fx15=_0x399fx14>(_0x399fxd[_0xe0e0[34]]+1)?util[_0xe0e0[19]](_0xe0e0[35],_0x399fx7[_0xe0e0[36]],_0x399fx7[_0xe0e0[38]][_0xe0e0[37]],_0x399fx7[_0xe0e0[39]],_0x399fxc+1):null;var _0x399fx16=_0x399fxc>0?util[_0xe0e0[19]](_0xe0e0[35],_0x399fx7[_0xe0e0[36]],_0x399fx7[_0xe0e0[38]][_0xe0e0[37]],_0x399fx7[_0xe0e0[39]],_0x399fxc-1):null;_0x399fx8[_0xe0e0[30]](200)[_0xe0e0[29]]({count:_0x399fx13[_0xe0e0[32]],rows:_0x399fx13[_0xe0e0[40]],next_page:_0x399fx15,previous_page:_0x399fx16,total_pages:_0x399fx14});})[_0xe0e0[31]](function(_0x399fx12){_0x399fx8[_0xe0e0[30]](500)[_0xe0e0[29]]({error:_0xe0e0[28]})});};exports[_0xe0e0[43]]=function(_0x399fx7,_0x399fx8){FaxBusinessAutomation[_0xe0e0[47]](_0x399fx7[_0xe0e0[46]][_0xe0e0[45]],{include:[{all:true}]})[_0xe0e0[41]](function(_0x399fx17){if(!_0x399fx17){return _0x399fx8[_0xe0e0[44]](404)};return _0x399fx8[_0xe0e0[29]](_0x399fx17);})[_0xe0e0[31]](function(_0x399fx12){return handleError(_0x399fx8,_0x399fx12)})};exports[_0xe0e0[48]]=function(_0x399fx7,_0x399fx8,_0x399fx9){return sequelize[_0xe0e0[56]](function(_0x399fx18){return FaxBusinessAutomation[_0xe0e0[48]](_0x399fx7[_0xe0e0[50]],{transaction:_0x399fx18})[_0xe0e0[41]](function(_0x399fx19){var _0x399fx1a=[];if(_0x399fx7[_0xe0e0[50]][_0xe0e0[49]]){_0x399fx7[_0xe0e0[50]][_0xe0e0[49]][_0xe0e0[24]](function(_0x399fx1b){_0x399fx1b[_0xe0e0[51]]=_0x399fx19[_0xe0e0[45]]});_0x399fx1a=_0x399fx1a[_0xe0e0[52]](_0x399fx7[_0xe0e0[50]][_0xe0e0[49]]);};if(_0x399fx7[_0xe0e0[50]][_0xe0e0[53]]){_0x399fx7[_0xe0e0[50]][_0xe0e0[53]][_0xe0e0[24]](function(_0x399fx1b){_0x399fx1b[_0xe0e0[51]]=_0x399fx19[_0xe0e0[45]]});_0x399fx1a=_0x399fx1a[_0xe0e0[52]](_0x399fx7[_0xe0e0[50]][_0xe0e0[53]]);};return BusinessCondition[_0xe0e0[55]](_0x399fx1a,{transaction:_0x399fx18})[_0xe0e0[41]](function(_0x399fx1c){if(_0x399fx7[_0xe0e0[50]][_0xe0e0[54]]){_0x399fx7[_0xe0e0[50]][_0xe0e0[54]][_0xe0e0[24]](function(_0x399fx1b){_0x399fx1b[_0xe0e0[51]]=_0x399fx19[_0xe0e0[45]]})};return BusinessAction[_0xe0e0[55]](_0x399fx7[_0xe0e0[50]][_0xe0e0[54]],{transaction:_0x399fx18});});})})[_0xe0e0[41]](function(){return _0x399fx8[_0xe0e0[44]](201)})[_0xe0e0[31]](function(_0x399fx12){return _0x399fx9(_0x399fx12)})};exports[_0xe0e0[57]]=function(_0x399fx7,_0x399fx8){if(_0x399fx7[_0xe0e0[50]][_0xe0e0[45]]){delete _0x399fx7[_0xe0e0[50]][_0xe0e0[45]]};FaxBusinessAutomation[_0xe0e0[60]]({where:{id:_0x399fx7[_0xe0e0[46]][_0xe0e0[45]]}})[_0xe0e0[41]](function(_0x399fx17){if(!_0x399fx17){return _0x399fx8[_0xe0e0[44]](404)};var _0x399fx1d=_[_0xe0e0[58]](_0x399fx17,_0x399fx7[_0xe0e0[50]]);_0x399fx1d[_0xe0e0[59]]()[_0xe0e0[41]](function(){return _0x399fx8[_0xe0e0[30]](200)[_0xe0e0[29]](_0x399fx17)})[_0xe0e0[31]](function(_0x399fx12){return handleError(_0x399fx8,_0x399fx12)});})[_0xe0e0[31]](function(_0x399fx12){return handleError(_0x399fx8,_0x399fx12)});};exports[_0xe0e0[61]]=function(_0x399fx7,_0x399fx8){FaxBusinessAutomation[_0xe0e0[60]]({where:{id:_0x399fx7[_0xe0e0[46]][_0xe0e0[45]]}})[_0xe0e0[41]](function(_0x399fx17){if(!_0x399fx17){return _0x399fx8[_0xe0e0[44]](404)};_0x399fx17[_0xe0e0[61]]()[_0xe0e0[41]](function(){return _0x399fx8[_0xe0e0[44]](204)})[_0xe0e0[31]](function(_0x399fx12){return handleError(_0x399fx8,_0x399fx12)});})[_0xe0e0[31]](function(_0x399fx12){return handleError(_0x399fx8,_0x399fx12)})};function handleError(_0x399fx8,_0x399fx12){return _0x399fx8[_0xe0e0[30]](500)[_0xe0e0[29]](_0x399fx12)}
\ No newline at end of file
+var _0x4ffa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72","\x62\x6F\x64\x79","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x49\x64","\x63\x6F\x6E\x63\x61\x74","\x61\x6E\x64","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x4ffa[0];var _=require(_0x4ffa[1]);var util=require(_0x4ffa[2]);var FaxBusinessAutomation=require(_0x4ffa[4])[_0x4ffa[3]];var BusinessCondition=require(_0x4ffa[4])[_0x4ffa[5]];var BusinessAction=require(_0x4ffa[4])[_0x4ffa[6]];var sequelize=require(_0x4ffa[4])[_0x4ffa[7]];exports[_0x4ffa[8]]=function(_0x8e63x7,_0x8e63x8,_0x8e63x9){var _0x8e63xa=[_0x4ffa[9],_0x4ffa[10]];var _0x8e63xb=_0x8e63x7[_0x4ffa[12]][_0x4ffa[11]]?parseInt(_0x8e63x7[_0x4ffa[12]][_0x4ffa[11]],10):100;var _0x8e63xc=_0x8e63x7[_0x4ffa[12]][_0x4ffa[13]]?parseInt(_0x8e63x7[_0x4ffa[12]][_0x4ffa[13]],10):0;var _0x8e63xd={where:{},limit:_0x8e63xb,offset:_0x8e63xc*_0x8e63xb};_[_0x4ffa[27]](_0x8e63x7[_0x4ffa[12]],function(_0x8e63xe,_0x8e63xf){switch(_0x8e63xf){case _0x4ffa[11]:;case _0x4ffa[13]:break ;;case _0x4ffa[16]:_0x8e63xd[_0x4ffa[14]]=util[_0x4ffa[19]](_0x4ffa[15],_0x8e63x7[_0x4ffa[12]][_0x4ffa[16]],_0x8e63x7[_0x4ffa[12]][_0x4ffa[17]]||_0x4ffa[18])||null;break ;;case _0x4ffa[17]:break ;;case _0x4ffa[25]:_0x8e63xd[_0x4ffa[21]][_0x4ffa[20]]=[];_0x8e63xa[_0x4ffa[24]](function(_0x8e63x10){var _0x8e63x11={};_0x8e63x11[_0x8e63x10]={$like:_0x4ffa[22]+_0x8e63xe+_0x4ffa[22]};_0x8e63xd[_0x4ffa[21]][_0x4ffa[20]][_0x4ffa[23]](_0x8e63x11);});break ;;default:_0x8e63xd[_0x4ffa[21]][_0x8e63xf]={$like:{}};_0x8e63xd[_0x4ffa[21]][_0x8e63xf][_0x4ffa[26]]=_0x4ffa[22]+_0x8e63xe+_0x4ffa[22];;}});FaxBusinessAutomation[_0x4ffa[42]](_0x8e63xd)[_0x4ffa[41]](function(_0x8e63x13){var _0x8e63x14=Math[_0x4ffa[33]](_0x8e63x13[_0x4ffa[32]]/_0x8e63xb);var _0x8e63x15=_0x8e63x14>(_0x8e63xd[_0x4ffa[34]]+1)?util[_0x4ffa[19]](_0x4ffa[35],_0x8e63x7[_0x4ffa[36]],_0x8e63x7[_0x4ffa[38]][_0x4ffa[37]],_0x8e63x7[_0x4ffa[39]],_0x8e63xc+1):null;var _0x8e63x16=_0x8e63xc>0?util[_0x4ffa[19]](_0x4ffa[35],_0x8e63x7[_0x4ffa[36]],_0x8e63x7[_0x4ffa[38]][_0x4ffa[37]],_0x8e63x7[_0x4ffa[39]],_0x8e63xc-1):null;_0x8e63x8[_0x4ffa[30]](200)[_0x4ffa[29]]({count:_0x8e63x13[_0x4ffa[32]],rows:_0x8e63x13[_0x4ffa[40]],next_page:_0x8e63x15,previous_page:_0x8e63x16,total_pages:_0x8e63x14});})[_0x4ffa[31]](function(_0x8e63x12){_0x8e63x8[_0x4ffa[30]](500)[_0x4ffa[29]]({error:_0x4ffa[28]})});};exports[_0x4ffa[43]]=function(_0x8e63x7,_0x8e63x8){FaxBusinessAutomation[_0x4ffa[47]](_0x8e63x7[_0x4ffa[46]][_0x4ffa[45]],{include:[{all:true}]})[_0x4ffa[41]](function(_0x8e63x17){if(!_0x8e63x17){return _0x8e63x8[_0x4ffa[44]](404)};return _0x8e63x8[_0x4ffa[29]](_0x8e63x17);})[_0x4ffa[31]](function(_0x8e63x12){return handleError(_0x8e63x8,_0x8e63x12)})};exports[_0x4ffa[48]]=function(_0x8e63x7,_0x8e63x8,_0x8e63x9){return sequelize[_0x4ffa[56]](function(_0x8e63x18){return FaxBusinessAutomation[_0x4ffa[48]](_0x8e63x7[_0x4ffa[50]],{transaction:_0x8e63x18})[_0x4ffa[41]](function(_0x8e63x19){var _0x8e63x1a=[];if(_0x8e63x7[_0x4ffa[50]][_0x4ffa[49]]){_0x8e63x7[_0x4ffa[50]][_0x4ffa[49]][_0x4ffa[24]](function(_0x8e63x1b){_0x8e63x1b[_0x4ffa[51]]=_0x8e63x19[_0x4ffa[45]]});_0x8e63x1a=_0x8e63x1a[_0x4ffa[52]](_0x8e63x7[_0x4ffa[50]][_0x4ffa[49]]);};if(_0x8e63x7[_0x4ffa[50]][_0x4ffa[53]]){_0x8e63x7[_0x4ffa[50]][_0x4ffa[53]][_0x4ffa[24]](function(_0x8e63x1b){_0x8e63x1b[_0x4ffa[51]]=_0x8e63x19[_0x4ffa[45]]});_0x8e63x1a=_0x8e63x1a[_0x4ffa[52]](_0x8e63x7[_0x4ffa[50]][_0x4ffa[53]]);};return BusinessCondition[_0x4ffa[55]](_0x8e63x1a,{transaction:_0x8e63x18})[_0x4ffa[41]](function(_0x8e63x1c){if(_0x8e63x7[_0x4ffa[50]][_0x4ffa[54]]){_0x8e63x7[_0x4ffa[50]][_0x4ffa[54]][_0x4ffa[24]](function(_0x8e63x1b){_0x8e63x1b[_0x4ffa[51]]=_0x8e63x19[_0x4ffa[45]]})};return BusinessAction[_0x4ffa[55]](_0x8e63x7[_0x4ffa[50]][_0x4ffa[54]],{transaction:_0x8e63x18});});})})[_0x4ffa[41]](function(){return _0x8e63x8[_0x4ffa[44]](201)})[_0x4ffa[31]](function(_0x8e63x12){return _0x8e63x9(_0x8e63x12)})};exports[_0x4ffa[57]]=function(_0x8e63x7,_0x8e63x8){if(_0x8e63x7[_0x4ffa[50]][_0x4ffa[45]]){delete _0x8e63x7[_0x4ffa[50]][_0x4ffa[45]]};FaxBusinessAutomation[_0x4ffa[60]]({where:{id:_0x8e63x7[_0x4ffa[46]][_0x4ffa[45]]}})[_0x4ffa[41]](function(_0x8e63x17){if(!_0x8e63x17){return _0x8e63x8[_0x4ffa[44]](404)};var _0x8e63x1d=_[_0x4ffa[58]](_0x8e63x17,_0x8e63x7[_0x4ffa[50]]);_0x8e63x1d[_0x4ffa[59]]()[_0x4ffa[41]](function(){return _0x8e63x8[_0x4ffa[30]](200)[_0x4ffa[29]](_0x8e63x17)})[_0x4ffa[31]](function(_0x8e63x12){return handleError(_0x8e63x8,_0x8e63x12)});})[_0x4ffa[31]](function(_0x8e63x12){return handleError(_0x8e63x8,_0x8e63x12)});};exports[_0x4ffa[61]]=function(_0x8e63x7,_0x8e63x8){FaxBusinessAutomation[_0x4ffa[60]]({where:{id:_0x8e63x7[_0x4ffa[46]][_0x4ffa[45]]}})[_0x4ffa[41]](function(_0x8e63x17){if(!_0x8e63x17){return _0x8e63x8[_0x4ffa[44]](404)};_0x8e63x17[_0x4ffa[61]]()[_0x4ffa[41]](function(){return _0x8e63x8[_0x4ffa[44]](204)})[_0x4ffa[31]](function(_0x8e63x12){return handleError(_0x8e63x8,_0x8e63x12)});})[_0x4ffa[31]](function(_0x8e63x12){return handleError(_0x8e63x8,_0x8e63x12)})};function handleError(_0x8e63x8,_0x8e63x12){return _0x8e63x8[_0x4ffa[30]](500)[_0x4ffa[29]](_0x8e63x12)}
\ No newline at end of file
-var _0xe9cc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe9cc[0];var FaxBusinessAutomation=require(_0xe9cc[2])[_0xe9cc[1]];exports[_0xe9cc[3]]=function(_0x8f47x2){FaxBusinessAutomation[_0xe9cc[4]](function(_0x8f47x3){onSave(_0x8f47x2,_0x8f47x3)});FaxBusinessAutomation[_0xe9cc[5]](function(_0x8f47x3,_0x8f47x4){onSave(_0x8f47x2,_0x8f47x3)});FaxBusinessAutomation[_0xe9cc[6]](function(_0x8f47x3){onRemove(_0x8f47x2,_0x8f47x3)});};function onSave(_0x8f47x2,_0x8f47x3,_0x8f47x6){_0x8f47x2[_0xe9cc[8]](_0xe9cc[7],_0x8f47x3)}function onRemove(_0x8f47x2,_0x8f47x3,_0x8f47x6){_0x8f47x2[_0xe9cc[8]](_0xe9cc[9],_0x8f47x3)}
\ No newline at end of file
+var _0xba16=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xba16[0];var FaxBusinessAutomation=require(_0xba16[2])[_0xba16[1]];exports[_0xba16[3]]=function(_0x9517x2){FaxBusinessAutomation[_0xba16[4]](function(_0x9517x3){onSave(_0x9517x2,_0x9517x3)});FaxBusinessAutomation[_0xba16[5]](function(_0x9517x3,_0x9517x4){onSave(_0x9517x2,_0x9517x3)});FaxBusinessAutomation[_0xba16[6]](function(_0x9517x3){onRemove(_0x9517x2,_0x9517x3)});};function onSave(_0x9517x2,_0x9517x3,_0x9517x6){_0x9517x2[_0xba16[8]](_0xba16[7],_0x9517x3)}function onRemove(_0x9517x2,_0x9517x3,_0x9517x6){_0x9517x2[_0xba16[8]](_0xba16[9],_0x9517x3)}
\ No newline at end of file
-var _0xd473=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xd473[0];var should=require(_0xd473[1]);var app=require(_0xd473[2]);var request=require(_0xd473[3]);describe(_0xd473[4],function(){it(_0xd473[5],function(_0xd429x4){request(app)[_0xd473[13]](_0xd473[12])[_0xd473[11]](200)[_0xd473[11]](_0xd473[10],/json/)[_0xd473[9]](function(_0xd429x5,_0xd429x6){if(_0xd429x5){return _0xd429x4(_0xd429x5)};_0xd429x6[_0xd473[8]][_0xd473[1]][_0xd473[7]][_0xd473[6]](Array);_0xd429x4();})})});
\ No newline at end of file
+var _0x8071=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x8071[0];var should=require(_0x8071[1]);var app=require(_0x8071[2]);var request=require(_0x8071[3]);describe(_0x8071[4],function(){it(_0x8071[5],function(_0xa8bdx4){request(app)[_0x8071[13]](_0x8071[12])[_0x8071[11]](200)[_0x8071[11]](_0x8071[10],/json/)[_0x8071[9]](function(_0xa8bdx5,_0xa8bdx6){if(_0xa8bdx5){return _0xa8bdx4(_0xa8bdx5)};_0xa8bdx6[_0x8071[8]][_0x8071[1]][_0x8071[7]][_0x8071[6]](Array);_0xa8bdx4();})})});
\ No newline at end of file
-var _0x5101=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5101[0];var express=require(_0x5101[1]);var controller=require(_0x5101[2]);var router=express.Router();router[_0x5101[5]](_0x5101[3],controller[_0x5101[4]]);router[_0x5101[5]](_0x5101[6],controller[_0x5101[7]]);router[_0x5101[9]](_0x5101[3],controller[_0x5101[8]]);router[_0x5101[11]](_0x5101[6],controller[_0x5101[10]]);router[_0x5101[12]](_0x5101[6],controller[_0x5101[10]]);router[_0x5101[14]](_0x5101[6],controller[_0x5101[13]]);module[_0x5101[15]]=router;
\ No newline at end of file
+var _0x66f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x66f1[0];var express=require(_0x66f1[1]);var controller=require(_0x66f1[2]);var router=express.Router();router[_0x66f1[5]](_0x66f1[3],controller[_0x66f1[4]]);router[_0x66f1[5]](_0x66f1[6],controller[_0x66f1[7]]);router[_0x66f1[9]](_0x66f1[3],controller[_0x66f1[8]]);router[_0x66f1[11]](_0x66f1[6],controller[_0x66f1[10]]);router[_0x66f1[12]](_0x66f1[6],controller[_0x66f1[10]]);router[_0x66f1[14]](_0x66f1[6],controller[_0x66f1[13]]);module[_0x66f1[15]]=router;
\ No newline at end of file
-var _0x1d5d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x61\x63\x74\x69\x6F\x6E\x69\x64","\x62\x6F\x64\x79","\x70\x61\x72\x73\x65","\x66\x61\x78\x42\x6F\x64\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x66\x72\x6F\x6D","\x25\x73\x2F\x25\x73\x40\x25\x73","\x74\x65\x63\x68\x6E\x6F\x6C\x6F\x67\x79","\x74\x6F","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x73","\x74\x72\x75\x65","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x79\x65\x73","\x6E\x6F","\x66\x61\x78\x5F\x6C\x6F\x63\x61\x6C\x69\x64","\x66\x61\x78\x5F\x66\x69\x6C\x65","\x66\x61\x78\x5F\x68\x65\x61\x64\x65\x72","\x75\x75\x69\x64","\x46\x41\x49\x4C\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x74\x68\x65\x6E","\x69\x64","\x74\x72\x75\x6E\x6B","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0x1d5d[0];var _=require(_0x1d5d[1]);var util=require(_0x1d5d[2]);var FaxMessage=require(_0x1d5d[4])[_0x1d5d[3]];var Trunk=require(_0x1d5d[4])[_0x1d5d[5]];exports[_0x1d5d[6]]=function(_0x8cf6x5){FaxMessage[_0x1d5d[9]](function(_0x8cf6x6){console[_0x1d5d[8]](_0x1d5d[7]);onSave(_0x8cf6x5,_0x8cf6x6);})};function onSave(_0x8cf6x5,_0x8cf6x6,_0x8cf6x8){if(_0x8cf6x6[_0x1d5d[10]]===_0x1d5d[11]&&!_0x8cf6x6[_0x1d5d[12]]){var _0x8cf6x9=JSON[_0x1d5d[14]](_0x8cf6x6[_0x1d5d[13]]);console[_0x1d5d[8]](_0x1d5d[15],_0x8cf6x9);Trunk[_0x1d5d[44]](_0x8cf6x9[_0x1d5d[43]][_0x1d5d[42]])[_0x1d5d[41]](function(_0x8cf6xb){var _0x8cf6xc={Action:_0x1d5d[18],CallerID:_0x8cf6x9[_0x1d5d[19]],Channel:util[_0x1d5d[24]](_0x1d5d[20],_0x8cf6x9[_0x1d5d[21]],_0x8cf6x9[_0x1d5d[22]],_0x8cf6xb[_0x1d5d[23]]),Context:_0x1d5d[25],Exten:_0x1d5d[26],Priority:1,Async:_0x1d5d[27],Variable:{MAXRATE:_0x8cf6x9[_0x1d5d[28]],MINRATE:_0x8cf6x9[_0x1d5d[29]],ECM:_0x8cf6x9[_0x1d5d[30]]?_0x1d5d[31]:_0x1d5d[32],LOCALID:_0x8cf6x9[_0x1d5d[33]],FAXFILE:_0x8cf6x9[_0x1d5d[34]],FAXHEADER:_0x8cf6x9[_0x1d5d[35]],FAXUUID:_0x8cf6x9[_0x1d5d[36]]}};_0x8cf6x5[_0x1d5d[40]](_0x8cf6xc,function(_0x8cf6xa,_0x8cf6xd){if(_0x8cf6xa){_0x8cf6x6[_0x1d5d[38]]({status:_0x1d5d[37]})}else {if(_0x8cf6xd[_0x1d5d[39]]&&_0x8cf6xd[_0x1d5d[12]]){_0x8cf6x6[_0x1d5d[38]]({actionid:_0x8cf6xd[_0x1d5d[12]]})}}});})[_0x1d5d[17]](function(_0x8cf6xa){console[_0x1d5d[16]](_0x8cf6xa)});}}
\ No newline at end of file
+var _0x8cd4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x61\x63\x74\x69\x6F\x6E\x69\x64","\x62\x6F\x64\x79","\x70\x61\x72\x73\x65","\x66\x61\x78\x42\x6F\x64\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x66\x72\x6F\x6D","\x25\x73\x2F\x25\x73\x40\x25\x73","\x74\x65\x63\x68\x6E\x6F\x6C\x6F\x67\x79","\x74\x6F","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x73","\x74\x72\x75\x65","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x79\x65\x73","\x6E\x6F","\x66\x61\x78\x5F\x6C\x6F\x63\x61\x6C\x69\x64","\x66\x61\x78\x5F\x66\x69\x6C\x65","\x66\x61\x78\x5F\x68\x65\x61\x64\x65\x72","\x75\x75\x69\x64","\x46\x41\x49\x4C\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x74\x68\x65\x6E","\x69\x64","\x74\x72\x75\x6E\x6B","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0x8cd4[0];var _=require(_0x8cd4[1]);var util=require(_0x8cd4[2]);var FaxMessage=require(_0x8cd4[4])[_0x8cd4[3]];var Trunk=require(_0x8cd4[4])[_0x8cd4[5]];exports[_0x8cd4[6]]=function(_0x3c8fx5){FaxMessage[_0x8cd4[9]](function(_0x3c8fx6){console[_0x8cd4[8]](_0x8cd4[7]);onSave(_0x3c8fx5,_0x3c8fx6);})};function onSave(_0x3c8fx5,_0x3c8fx6,_0x3c8fx8){if(_0x3c8fx6[_0x8cd4[10]]===_0x8cd4[11]&&!_0x3c8fx6[_0x8cd4[12]]){var _0x3c8fx9=JSON[_0x8cd4[14]](_0x3c8fx6[_0x8cd4[13]]);console[_0x8cd4[8]](_0x8cd4[15],_0x3c8fx9);Trunk[_0x8cd4[44]](_0x3c8fx9[_0x8cd4[43]][_0x8cd4[42]])[_0x8cd4[41]](function(_0x3c8fxb){var _0x3c8fxc={Action:_0x8cd4[18],CallerID:_0x3c8fx9[_0x8cd4[19]],Channel:util[_0x8cd4[24]](_0x8cd4[20],_0x3c8fx9[_0x8cd4[21]],_0x3c8fx9[_0x8cd4[22]],_0x3c8fxb[_0x8cd4[23]]),Context:_0x8cd4[25],Exten:_0x8cd4[26],Priority:1,Async:_0x8cd4[27],Variable:{MAXRATE:_0x3c8fx9[_0x8cd4[28]],MINRATE:_0x3c8fx9[_0x8cd4[29]],ECM:_0x3c8fx9[_0x8cd4[30]]?_0x8cd4[31]:_0x8cd4[32],LOCALID:_0x3c8fx9[_0x8cd4[33]],FAXFILE:_0x3c8fx9[_0x8cd4[34]],FAXHEADER:_0x3c8fx9[_0x8cd4[35]],FAXUUID:_0x3c8fx9[_0x8cd4[36]]}};_0x3c8fx5[_0x8cd4[40]](_0x3c8fxc,function(_0x3c8fxa,_0x3c8fxd){if(_0x3c8fxa){_0x3c8fx6[_0x8cd4[38]]({status:_0x8cd4[37]})}else {if(_0x3c8fxd[_0x8cd4[39]]&&_0x3c8fxd[_0x8cd4[12]]){_0x3c8fx6[_0x8cd4[38]]({actionid:_0x3c8fxd[_0x8cd4[12]]})}}});})[_0x8cd4[17]](function(_0x3c8fxa){console[_0x8cd4[16]](_0x3c8fxa)});}}
\ No newline at end of file
-var _0x1139=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x70\x61\x74\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x68\x74\x6D\x6C\x2D\x70\x64\x66","\x73\x70\x69\x6E\x64\x72\x69\x66\x74","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x46\x72\x6F\x6D","\x54\x6F","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x66\x61\x78\x2F\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2F\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x6F\x6E\x6C\x79\x54\x65\x78\x74","\x62\x6F\x64\x79","\x68\x74\x6D\x6C","\x76\x34","\x2E\x70\x64\x66","\x46\x61\x78\x3A\x20\x48\x54\x4D\x4C\x20\x43\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6C\x6F\x67","\x74\x6F\x46\x69\x6C\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65","\x63\x72\x65\x61\x74\x65\x57\x72\x69\x74\x65\x53\x74\x72\x65\x61\x6D","\x70\x69\x70\x65","\x70\x64\x66\x53\x74\x72\x65\x61\x6D","\x46\x61\x78\x3A\x20\x48\x54\x4D\x4C\x20\x6A\x6F\x69\x6E\x65\x64\x20\x77\x69\x74\x68\x20\x50\x44\x46\x20\x75\x70\x6C\x6F\x61\x64\x65\x64","\x65\x72\x72\x6F\x72","\x46\x61\x78\x3A\x20\x50\x44\x46\x20\x52\x65\x6E\x61\x6D\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x61\x72\x73\x65","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E\x74\x69\x66","\x67\x73","\x20\x2D\x71\x20\x2D\x64\x4E\x4F\x50\x41\x55\x53\x45\x20\x2D\x64\x42\x41\x54\x43\x48\x20\x2D\x73\x44\x45\x56\x49\x43\x45\x3D\x74\x69\x66\x66\x67\x34\x20","\x2D\x73\x50\x41\x50\x45\x52\x53\x49\x5A\x45\x3D\x6C\x65\x74\x74\x65\x72\x20\x2D\x73\x4F\x75\x74\x70\x75\x74\x46\x69\x6C\x65\x3D","\x20","\x53\x49\x50","\x74\x6F\x4E\x75\x6D","\x70\x68\x6F\x6E\x65","\x66\x61\x78\x68\x65\x61\x64\x65\x72","\x6C\x6F\x63\x61\x6C\x69\x64","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x54\x72\x75\x6E\x6B\x49\x64","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x73","\x46\x61\x78\x3A\x20\x50\x44\x46\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x74\x6F\x20\x54\x49\x46\x46","\x72\x6F\x6F\x6D\x49\x64","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x66\x72\x6F\x6D","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x74\x6F","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x4F\x50\x45\x4E","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x75\x73\x65\x72\x49\x64","\x63\x68\x6D\x6F\x64","\x65\x78\x69\x73\x74\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x67\x65\x74\x43\x6F\x6E\x74\x65\x6E\x74\x46\x72\x6F\x6D\x4D\x65\x73\x73\x61\x67\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x50\x44\x46","\x52\x45\x43\x45\x49\x56\x45\x44","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x53\x45\x4E\x54","\x46\x41\x49\x4C\x45\x44"];_0x1139[0];var _=require(_0x1139[1]);var fs=require(_0x1139[2]);var path=require(_0x1139[3]);var uploadFile=require(_0x1139[4]);var uuidLib=require(_0x1139[5]);var pdf=require(_0x1139[6]);var spindrift=require(_0x1139[7]);var formidable=require(_0x1139[8]);var exec=require(_0x1139[10])[_0x1139[9]];var config=require(_0x1139[11]);var FaxMessage=require(_0x1139[13])[_0x1139[12]];var FaxRoom=require(_0x1139[13])[_0x1139[14]];var FaxAccount=require(_0x1139[13])[_0x1139[15]];var Contact=require(_0x1139[13])[_0x1139[16]];exports[_0x1139[17]]=function(_0x65b8xf,_0x65b8x10){FaxMessage[_0x1139[26]]({where:_0x65b8xf[_0x1139[22]],order:_0x1139[23],include:[{model:Contact,as:_0x1139[24]},{model:Contact,as:_0x1139[25]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x1139[21]](function(_0x65b8x12){return _0x65b8x10[_0x1139[20]](200)[_0x1139[19]](_0x65b8x12)})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)})};exports[_0x1139[27]]=function(_0x65b8xf,_0x65b8x10){FaxMessage[_0x1139[31]]({where:{id:_0x65b8xf[_0x1139[30]][_0x1139[29]]},include:[{model:Contact,as:_0x1139[24]},{model:Contact,as:_0x1139[25]}]})[_0x1139[21]](function(_0x65b8x13){if(!_0x65b8x13){return _0x65b8x10[_0x1139[28]](404)};return _0x65b8x10[_0x1139[19]](_0x65b8x13);})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)})};exports[_0x1139[32]]=function(_0x65b8xf,_0x65b8x10,_0x65b8x14){var _0x65b8x15= new formidable.IncomingForm();_0x65b8x15[_0x1139[33]]=path[_0x1139[36]](config[_0x1139[34]],_0x1139[35]);_0x65b8x15[_0x1139[37]]=true;_0x65b8x15[_0x1139[38]]=false;if(_0x65b8xf[_0x1139[40]][_0x1139[39]]){if(_0x65b8xf[_0x1139[40]][_0x1139[41]]){var _0x65b8x16=uuidLib[_0x1139[42]]();var _0x65b8x17=path[_0x1139[36]](config[_0x1139[34]],_0x1139[35],_0x65b8x16+_0x1139[43]);pdf[_0x1139[32]](_0x65b8xf[_0x1139[40]][_0x1139[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x1139[46]](_0x65b8x17,function(_0x65b8x11,_0x65b8x18){console[_0x1139[45]](_0x1139[44]);convertPdfAndSendFax(_0x65b8xf,_0x65b8x10,_0x65b8x16,_0x65b8xf[_0x1139[40]]);});}}else {_0x65b8x15[_0x1139[56]](_0x65b8xf,function(_0x65b8x11,_0x65b8x19,_0x65b8x1a){if(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)};if(_0x65b8x19[_0x1139[41]]){var _0x65b8x16=uuidLib[_0x1139[42]]();var _0x65b8x17=path[_0x1139[36]](config[_0x1139[34]],_0x1139[35],_0x65b8x16+_0x1139[43]);pdf[_0x1139[32]](_0x65b8x19[_0x1139[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x1139[46]](_0x65b8x17,function(_0x65b8x11,_0x65b8x18){console[_0x1139[45]](_0x1139[44]);var _0x65b8x1b=spindrift(_0x65b8x18[_0x1139[47]]);var _0x65b8x1c=spindrift(_0x65b8x1a[_0x1139[48]][_0x1139[3]]);var _0x65b8x16=uuidLib[_0x1139[42]]();spindrift[_0x1139[36]](_0x65b8x1b,_0x65b8x1c)[_0x1139[51]]()[_0x1139[50]](fs[_0x1139[49]](path[_0x1139[36]](config[_0x1139[34]],_0x1139[35],_0x65b8x16+_0x1139[43])));console[_0x1139[45]](_0x1139[52]);convertPdfAndSendFax(_0x65b8xf,_0x65b8x10,_0x65b8x16,_0x65b8x19);});}else {var _0x65b8x16=uuidLib[_0x1139[42]]();var _0x65b8x17=path[_0x1139[36]](config[_0x1139[34]],_0x1139[35],_0x65b8x16+_0x1139[43]);fs[_0x1139[55]](_0x65b8x1a[_0x1139[48]][_0x1139[3]],_0x65b8x17,function(_0x65b8x11){if(_0x65b8x11){console[_0x1139[53]](_0x65b8x11);return handleError(_0x65b8x10,_0x65b8xf);};console[_0x1139[45]](_0x1139[54]);convertPdfAndSendFax(_0x65b8xf,_0x65b8x10,_0x65b8x16,_0x65b8x19);});};})};};function convertPdfAndSendFax(_0x65b8xf,_0x65b8x10,_0x65b8x1e,_0x65b8x19){var _0x65b8x1f=path[_0x1139[36]](config[_0x1139[34]],_0x1139[57],_0x1139[58],_0x1139[59],_0x1139[60],_0x1139[61],_0x65b8x1e+_0x1139[43]);var _0x65b8x20=path[_0x1139[36]](config[_0x1139[34]],_0x1139[57],_0x1139[58],_0x1139[59],_0x1139[60],_0x1139[62],_0x65b8x1e+_0x1139[63]);var _0x65b8x21=_0x1139[64]+_0x1139[65]+_0x1139[66]+_0x65b8x20+_0x1139[67]+_0x65b8x1f;var _0x65b8x22=uuidLib[_0x1139[42]]();FaxAccount[_0x1139[93]](_0x65b8x19[_0x1139[89]])[_0x1139[21]](function(_0x65b8x23){if(_0x65b8x23){var _0x65b8x24={technology:_0x1139[68],to:_0x65b8x19[_0x1139[69]],from:_0x65b8x23[_0x1139[70]],fax_file:_0x65b8x20,fax_header:_0x65b8x23[_0x1139[71]],fax_localid:_0x65b8x23[_0x1139[72]],maxrate:_0x65b8x23[_0x1139[73]],minrate:_0x65b8x23[_0x1139[74]],ecm:_0x65b8x23[_0x1139[75]],uuid:_0x65b8x22,trunk:{id:_0x65b8x23[_0x1139[76]]}};fs[_0x1139[92]](_0x65b8x1f,function(_0x65b8x25){if(!_0x65b8x25){handleError(_0x65b8x10, new Error(_0x1139[77]))}else {exec(_0x65b8x21,function(_0x65b8x11){if(_0x65b8x11){console[_0x1139[53]](_0x65b8x11);handleError(_0x65b8x10,_0x65b8x11);}else {console[_0x1139[45]](_0x1139[78]);fs[_0x1139[91]](_0x65b8x20,511,function(_0x65b8x11){if(_0x65b8x19[_0x1139[79]]){FaxRoom[_0x1139[83]]({where:{id:_0x65b8x19[_0x1139[79]]},defaults:{}})[_0x1139[81]](function(_0x65b8x26,_0x65b8x27){FaxMessage[_0x1139[32]]({status:_0x1139[86],read:true,filenamePDF:_0x65b8x1e+_0x1139[43],filename:_0x65b8x1e+_0x1139[63],body:JSON[_0x1139[87]](_0x65b8x24),uuid:_0x65b8x22,FaxRoomId:_0x65b8x26[_0x1139[29]]})[_0x1139[21]](function(_0x65b8x28){Contact[_0x1139[83]]({where:{phone:_0x65b8x24[_0x1139[82]]},defaults:{phone:_0x65b8x24[_0x1139[82]],fullname:_0x65b8x24[_0x1139[82]]}})[_0x1139[81]](function(_0x65b8x29,_0x65b8x27){_0x65b8x28[_0x1139[80]](_0x65b8x29)});Contact[_0x1139[83]]({where:{phone:_0x65b8x24[_0x1139[85]]},defaults:{phone:_0x65b8x24[_0x1139[85]],fullname:_0x65b8x24[_0x1139[85]]}})[_0x1139[81]](function(_0x65b8x29,_0x65b8x27){_0x65b8x28[_0x1139[84]](_0x65b8x29)});return _0x65b8x10[_0x1139[20]](200)[_0x1139[19]](_0x65b8x28);})[_0x1139[18]](function(_0x65b8x11){handleError(_0x65b8x10,_0x65b8x11)})})}else {FaxRoom[_0x1139[32]]({status:_0x1139[88],from:_0x65b8x19[_0x1139[69]],FaxAccountId:_0x65b8x19[_0x1139[89]],UserId:_0x65b8x19[_0x1139[90]]})[_0x1139[21]](function(_0x65b8x26){FaxMessage[_0x1139[32]]({status:_0x1139[86],read:true,filenamePDF:_0x65b8x1e+_0x1139[43],filename:_0x65b8x1e+_0x1139[63],body:JSON[_0x1139[87]](_0x65b8x24),uuid:_0x65b8x22,FaxRoomId:_0x65b8x26[_0x1139[29]]})[_0x1139[21]](function(_0x65b8x28){Contact[_0x1139[83]]({where:{phone:_0x65b8x24[_0x1139[82]]},defaults:{phone:_0x65b8x24[_0x1139[82]],fullname:_0x65b8x24[_0x1139[82]]}})[_0x1139[81]](function(_0x65b8x29,_0x65b8x27){_0x65b8x28[_0x1139[80]](_0x65b8x29)});Contact[_0x1139[83]]({where:{phone:_0x65b8x24[_0x1139[85]]},defaults:{phone:_0x65b8x24[_0x1139[85]],fullname:_0x65b8x24[_0x1139[85]]}})[_0x1139[81]](function(_0x65b8x29,_0x65b8x27){_0x65b8x28[_0x1139[84]](_0x65b8x29)});return _0x65b8x10[_0x1139[20]](200)[_0x1139[19]](_0x65b8x28);})[_0x1139[18]](function(_0x65b8x11){handleError(_0x65b8x10,_0x65b8x11)})})[_0x1139[18]](function(_0x65b8x11){handleError(_0x65b8x10,_0x65b8x11)})}});}})}});}});}exports[_0x1139[94]]=function(_0x65b8xf,_0x65b8x10){if(_0x65b8xf[_0x1139[40]][_0x1139[29]]){delete _0x65b8xf[_0x1139[40]][_0x1139[29]]};FaxMessage[_0x1139[31]]({where:{id:_0x65b8xf[_0x1139[30]][_0x1139[29]]},include:[{model:Contact,as:_0x1139[24]},{model:Contact,as:_0x1139[25]}]})[_0x1139[21]](function(_0x65b8x13){if(!_0x65b8x13){return _0x65b8x10[_0x1139[28]](404)};var _0x65b8x2a=_[_0x1139[95]](_0x65b8x13,_0x65b8xf[_0x1139[40]]);_0x65b8x2a[_0x1139[96]]()[_0x1139[21]](function(){return _0x65b8x10[_0x1139[20]](200)[_0x1139[19]](_0x65b8x13)})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)});})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)});};exports[_0x1139[97]]=function(_0x65b8xf,_0x65b8x10){FaxMessage[_0x1139[98]]({where:{id:_0x65b8xf[_0x1139[30]][_0x1139[29]]}})[_0x1139[21]](function(_0x65b8x13){if(!_0x65b8x13){return _0x65b8x10[_0x1139[28]](404)};_0x65b8x13[_0x1139[97]]()[_0x1139[21]](function(){return _0x65b8x10[_0x1139[28]](204)})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)});})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)})};exports[_0x1139[99]]=function(_0x65b8xf,_0x65b8x10){FaxMessage[_0x1139[93]](_0x65b8xf[_0x1139[30]][_0x1139[29]])[_0x1139[21]](function(_0x65b8x13){if(!_0x65b8x13){return _0x65b8x10[_0x1139[28]](404)};if(_0x65b8x13[_0x1139[100]]){if(_0x65b8x13[_0x1139[20]]===_0x1139[101]){var _0x65b8x2b=path[_0x1139[36]](config[_0x1139[34]],_0x1139[57],_0x1139[58],_0x1139[59],_0x1139[102],_0x65b8x13[_0x1139[100]]);fs[_0x1139[92]](_0x65b8x2b,function(_0x65b8x25){if(_0x65b8x25){return _0x65b8x10[_0x1139[103]](_0x65b8x2b)}else {return _0x65b8x10[_0x1139[28]](404)}});}else {if(_0x65b8x13[_0x1139[20]]===_0x1139[86]||_0x65b8x13[_0x1139[104]]===_0x1139[105]||_0x65b8x13[_0x1139[20]]===_0x1139[106]){var _0x65b8x2b=path[_0x1139[36]](config[_0x1139[34]],_0x1139[57],_0x1139[58],_0x1139[59],_0x1139[60],_0x1139[61],_0x65b8x13[_0x1139[100]]);fs[_0x1139[92]](_0x65b8x2b,function(_0x65b8x25){if(_0x65b8x25){return _0x65b8x10[_0x1139[103]](_0x65b8x2b)}else {return _0x65b8x10[_0x1139[28]](404)}});}}}else {_0x65b8x10[_0x1139[28]](404)};})[_0x1139[18]](function(_0x65b8x11){return handleError(_0x65b8x10,_0x65b8x11)})};function handleError(_0x65b8x10,_0x65b8x11){return _0x65b8x10[_0x1139[20]](500)[_0x1139[19]](_0x65b8x11)}
\ No newline at end of file
+var _0x9938=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x70\x61\x74\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x68\x74\x6D\x6C\x2D\x70\x64\x66","\x73\x70\x69\x6E\x64\x72\x69\x66\x74","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x46\x72\x6F\x6D","\x54\x6F","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x66\x61\x78\x2F\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2F\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x6F\x6E\x6C\x79\x54\x65\x78\x74","\x62\x6F\x64\x79","\x68\x74\x6D\x6C","\x76\x34","\x2E\x70\x64\x66","\x46\x61\x78\x3A\x20\x48\x54\x4D\x4C\x20\x43\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6C\x6F\x67","\x74\x6F\x46\x69\x6C\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65","\x63\x72\x65\x61\x74\x65\x57\x72\x69\x74\x65\x53\x74\x72\x65\x61\x6D","\x70\x69\x70\x65","\x70\x64\x66\x53\x74\x72\x65\x61\x6D","\x46\x61\x78\x3A\x20\x48\x54\x4D\x4C\x20\x6A\x6F\x69\x6E\x65\x64\x20\x77\x69\x74\x68\x20\x50\x44\x46\x20\x75\x70\x6C\x6F\x61\x64\x65\x64","\x65\x72\x72\x6F\x72","\x46\x61\x78\x3A\x20\x50\x44\x46\x20\x52\x65\x6E\x61\x6D\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x61\x72\x73\x65","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E\x74\x69\x66","\x67\x73","\x20\x2D\x71\x20\x2D\x64\x4E\x4F\x50\x41\x55\x53\x45\x20\x2D\x64\x42\x41\x54\x43\x48\x20\x2D\x73\x44\x45\x56\x49\x43\x45\x3D\x74\x69\x66\x66\x67\x34\x20","\x2D\x73\x50\x41\x50\x45\x52\x53\x49\x5A\x45\x3D\x6C\x65\x74\x74\x65\x72\x20\x2D\x73\x4F\x75\x74\x70\x75\x74\x46\x69\x6C\x65\x3D","\x20","\x53\x49\x50","\x74\x6F\x4E\x75\x6D","\x70\x68\x6F\x6E\x65","\x66\x61\x78\x68\x65\x61\x64\x65\x72","\x6C\x6F\x63\x61\x6C\x69\x64","\x6D\x61\x78\x72\x61\x74\x65","\x6D\x69\x6E\x72\x61\x74\x65","\x65\x63\x6D","\x54\x72\x75\x6E\x6B\x49\x64","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x65\x78\x69\x73\x74\x73","\x46\x61\x78\x3A\x20\x50\x44\x46\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x74\x6F\x20\x54\x49\x46\x46","\x72\x6F\x6F\x6D\x49\x64","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x66\x72\x6F\x6D","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x74\x6F","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x4F\x50\x45\x4E","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x75\x73\x65\x72\x49\x64","\x63\x68\x6D\x6F\x64","\x65\x78\x69\x73\x74\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x67\x65\x74\x43\x6F\x6E\x74\x65\x6E\x74\x46\x72\x6F\x6D\x4D\x65\x73\x73\x61\x67\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x50\x44\x46","\x52\x45\x43\x45\x49\x56\x45\x44","\x69\x6E\x62\x6F\x75\x6E\x64","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x53\x45\x4E\x54","\x46\x41\x49\x4C\x45\x44"];_0x9938[0];var _=require(_0x9938[1]);var fs=require(_0x9938[2]);var path=require(_0x9938[3]);var uploadFile=require(_0x9938[4]);var uuidLib=require(_0x9938[5]);var pdf=require(_0x9938[6]);var spindrift=require(_0x9938[7]);var formidable=require(_0x9938[8]);var exec=require(_0x9938[10])[_0x9938[9]];var config=require(_0x9938[11]);var FaxMessage=require(_0x9938[13])[_0x9938[12]];var FaxRoom=require(_0x9938[13])[_0x9938[14]];var FaxAccount=require(_0x9938[13])[_0x9938[15]];var Contact=require(_0x9938[13])[_0x9938[16]];exports[_0x9938[17]]=function(_0xce91xf,_0xce91x10){FaxMessage[_0x9938[26]]({where:_0xce91xf[_0x9938[22]],order:_0x9938[23],include:[{model:Contact,as:_0x9938[24]},{model:Contact,as:_0x9938[25]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x9938[21]](function(_0xce91x12){return _0xce91x10[_0x9938[20]](200)[_0x9938[19]](_0xce91x12)})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)})};exports[_0x9938[27]]=function(_0xce91xf,_0xce91x10){FaxMessage[_0x9938[31]]({where:{id:_0xce91xf[_0x9938[30]][_0x9938[29]]},include:[{model:Contact,as:_0x9938[24]},{model:Contact,as:_0x9938[25]}]})[_0x9938[21]](function(_0xce91x13){if(!_0xce91x13){return _0xce91x10[_0x9938[28]](404)};return _0xce91x10[_0x9938[19]](_0xce91x13);})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)})};exports[_0x9938[32]]=function(_0xce91xf,_0xce91x10,_0xce91x14){var _0xce91x15= new formidable.IncomingForm();_0xce91x15[_0x9938[33]]=path[_0x9938[36]](config[_0x9938[34]],_0x9938[35]);_0xce91x15[_0x9938[37]]=true;_0xce91x15[_0x9938[38]]=false;if(_0xce91xf[_0x9938[40]][_0x9938[39]]){if(_0xce91xf[_0x9938[40]][_0x9938[41]]){var _0xce91x16=uuidLib[_0x9938[42]]();var _0xce91x17=path[_0x9938[36]](config[_0x9938[34]],_0x9938[35],_0xce91x16+_0x9938[43]);pdf[_0x9938[32]](_0xce91xf[_0x9938[40]][_0x9938[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x9938[46]](_0xce91x17,function(_0xce91x11,_0xce91x18){console[_0x9938[45]](_0x9938[44]);convertPdfAndSendFax(_0xce91xf,_0xce91x10,_0xce91x16,_0xce91xf[_0x9938[40]]);});}}else {_0xce91x15[_0x9938[56]](_0xce91xf,function(_0xce91x11,_0xce91x19,_0xce91x1a){if(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)};if(_0xce91x19[_0x9938[41]]){var _0xce91x16=uuidLib[_0x9938[42]]();var _0xce91x17=path[_0x9938[36]](config[_0x9938[34]],_0x9938[35],_0xce91x16+_0x9938[43]);pdf[_0x9938[32]](_0xce91x19[_0x9938[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x9938[46]](_0xce91x17,function(_0xce91x11,_0xce91x18){console[_0x9938[45]](_0x9938[44]);var _0xce91x1b=spindrift(_0xce91x18[_0x9938[47]]);var _0xce91x1c=spindrift(_0xce91x1a[_0x9938[48]][_0x9938[3]]);var _0xce91x16=uuidLib[_0x9938[42]]();spindrift[_0x9938[36]](_0xce91x1b,_0xce91x1c)[_0x9938[51]]()[_0x9938[50]](fs[_0x9938[49]](path[_0x9938[36]](config[_0x9938[34]],_0x9938[35],_0xce91x16+_0x9938[43])));console[_0x9938[45]](_0x9938[52]);convertPdfAndSendFax(_0xce91xf,_0xce91x10,_0xce91x16,_0xce91x19);});}else {var _0xce91x16=uuidLib[_0x9938[42]]();var _0xce91x17=path[_0x9938[36]](config[_0x9938[34]],_0x9938[35],_0xce91x16+_0x9938[43]);fs[_0x9938[55]](_0xce91x1a[_0x9938[48]][_0x9938[3]],_0xce91x17,function(_0xce91x11){if(_0xce91x11){console[_0x9938[53]](_0xce91x11);return handleError(_0xce91x10,_0xce91xf);};console[_0x9938[45]](_0x9938[54]);convertPdfAndSendFax(_0xce91xf,_0xce91x10,_0xce91x16,_0xce91x19);});};})};};function convertPdfAndSendFax(_0xce91xf,_0xce91x10,_0xce91x1e,_0xce91x19){var _0xce91x1f=path[_0x9938[36]](config[_0x9938[34]],_0x9938[57],_0x9938[58],_0x9938[59],_0x9938[60],_0x9938[61],_0xce91x1e+_0x9938[43]);var _0xce91x20=path[_0x9938[36]](config[_0x9938[34]],_0x9938[57],_0x9938[58],_0x9938[59],_0x9938[60],_0x9938[62],_0xce91x1e+_0x9938[63]);var _0xce91x21=_0x9938[64]+_0x9938[65]+_0x9938[66]+_0xce91x20+_0x9938[67]+_0xce91x1f;var _0xce91x22=uuidLib[_0x9938[42]]();FaxAccount[_0x9938[93]](_0xce91x19[_0x9938[89]])[_0x9938[21]](function(_0xce91x23){if(_0xce91x23){var _0xce91x24={technology:_0x9938[68],to:_0xce91x19[_0x9938[69]],from:_0xce91x23[_0x9938[70]],fax_file:_0xce91x20,fax_header:_0xce91x23[_0x9938[71]],fax_localid:_0xce91x23[_0x9938[72]],maxrate:_0xce91x23[_0x9938[73]],minrate:_0xce91x23[_0x9938[74]],ecm:_0xce91x23[_0x9938[75]],uuid:_0xce91x22,trunk:{id:_0xce91x23[_0x9938[76]]}};fs[_0x9938[92]](_0xce91x1f,function(_0xce91x25){if(!_0xce91x25){handleError(_0xce91x10, new Error(_0x9938[77]))}else {exec(_0xce91x21,function(_0xce91x11){if(_0xce91x11){console[_0x9938[53]](_0xce91x11);handleError(_0xce91x10,_0xce91x11);}else {console[_0x9938[45]](_0x9938[78]);fs[_0x9938[91]](_0xce91x20,511,function(_0xce91x11){if(_0xce91x19[_0x9938[79]]){FaxRoom[_0x9938[83]]({where:{id:_0xce91x19[_0x9938[79]]},defaults:{}})[_0x9938[81]](function(_0xce91x26,_0xce91x27){FaxMessage[_0x9938[32]]({status:_0x9938[86],read:true,filenamePDF:_0xce91x1e+_0x9938[43],filename:_0xce91x1e+_0x9938[63],body:JSON[_0x9938[87]](_0xce91x24),uuid:_0xce91x22,FaxRoomId:_0xce91x26[_0x9938[29]]})[_0x9938[21]](function(_0xce91x28){Contact[_0x9938[83]]({where:{phone:_0xce91x24[_0x9938[82]]},defaults:{phone:_0xce91x24[_0x9938[82]],fullname:_0xce91x24[_0x9938[82]]}})[_0x9938[81]](function(_0xce91x29,_0xce91x27){_0xce91x28[_0x9938[80]](_0xce91x29)});Contact[_0x9938[83]]({where:{phone:_0xce91x24[_0x9938[85]]},defaults:{phone:_0xce91x24[_0x9938[85]],fullname:_0xce91x24[_0x9938[85]]}})[_0x9938[81]](function(_0xce91x29,_0xce91x27){_0xce91x28[_0x9938[84]](_0xce91x29)});return _0xce91x10[_0x9938[20]](200)[_0x9938[19]](_0xce91x28);})[_0x9938[18]](function(_0xce91x11){handleError(_0xce91x10,_0xce91x11)})})}else {FaxRoom[_0x9938[32]]({status:_0x9938[88],from:_0xce91x19[_0x9938[69]],FaxAccountId:_0xce91x19[_0x9938[89]],UserId:_0xce91x19[_0x9938[90]]})[_0x9938[21]](function(_0xce91x26){FaxMessage[_0x9938[32]]({status:_0x9938[86],read:true,filenamePDF:_0xce91x1e+_0x9938[43],filename:_0xce91x1e+_0x9938[63],body:JSON[_0x9938[87]](_0xce91x24),uuid:_0xce91x22,FaxRoomId:_0xce91x26[_0x9938[29]]})[_0x9938[21]](function(_0xce91x28){Contact[_0x9938[83]]({where:{phone:_0xce91x24[_0x9938[82]]},defaults:{phone:_0xce91x24[_0x9938[82]],fullname:_0xce91x24[_0x9938[82]]}})[_0x9938[81]](function(_0xce91x29,_0xce91x27){_0xce91x28[_0x9938[80]](_0xce91x29)});Contact[_0x9938[83]]({where:{phone:_0xce91x24[_0x9938[85]]},defaults:{phone:_0xce91x24[_0x9938[85]],fullname:_0xce91x24[_0x9938[85]]}})[_0x9938[81]](function(_0xce91x29,_0xce91x27){_0xce91x28[_0x9938[84]](_0xce91x29)});return _0xce91x10[_0x9938[20]](200)[_0x9938[19]](_0xce91x28);})[_0x9938[18]](function(_0xce91x11){handleError(_0xce91x10,_0xce91x11)})})[_0x9938[18]](function(_0xce91x11){handleError(_0xce91x10,_0xce91x11)})}});}})}});}});}exports[_0x9938[94]]=function(_0xce91xf,_0xce91x10){if(_0xce91xf[_0x9938[40]][_0x9938[29]]){delete _0xce91xf[_0x9938[40]][_0x9938[29]]};FaxMessage[_0x9938[31]]({where:{id:_0xce91xf[_0x9938[30]][_0x9938[29]]},include:[{model:Contact,as:_0x9938[24]},{model:Contact,as:_0x9938[25]}]})[_0x9938[21]](function(_0xce91x13){if(!_0xce91x13){return _0xce91x10[_0x9938[28]](404)};var _0xce91x2a=_[_0x9938[95]](_0xce91x13,_0xce91xf[_0x9938[40]]);_0xce91x2a[_0x9938[96]]()[_0x9938[21]](function(){return _0xce91x10[_0x9938[20]](200)[_0x9938[19]](_0xce91x13)})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)});})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)});};exports[_0x9938[97]]=function(_0xce91xf,_0xce91x10){FaxMessage[_0x9938[98]]({where:{id:_0xce91xf[_0x9938[30]][_0x9938[29]]}})[_0x9938[21]](function(_0xce91x13){if(!_0xce91x13){return _0xce91x10[_0x9938[28]](404)};_0xce91x13[_0x9938[97]]()[_0x9938[21]](function(){return _0xce91x10[_0x9938[28]](204)})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)});})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)})};exports[_0x9938[99]]=function(_0xce91xf,_0xce91x10){FaxMessage[_0x9938[93]](_0xce91xf[_0x9938[30]][_0x9938[29]])[_0x9938[21]](function(_0xce91x13){if(!_0xce91x13){return _0xce91x10[_0x9938[28]](404)};if(_0xce91x13[_0x9938[100]]){if(_0xce91x13[_0x9938[20]]===_0x9938[101]){var _0xce91x2b=path[_0x9938[36]](config[_0x9938[34]],_0x9938[57],_0x9938[58],_0x9938[59],_0x9938[102],_0xce91x13[_0x9938[100]]);fs[_0x9938[92]](_0xce91x2b,function(_0xce91x25){if(_0xce91x25){return _0xce91x10[_0x9938[103]](_0xce91x2b)}else {return _0xce91x10[_0x9938[28]](404)}});}else {if(_0xce91x13[_0x9938[20]]===_0x9938[86]||_0xce91x13[_0x9938[104]]===_0x9938[105]||_0xce91x13[_0x9938[20]]===_0x9938[106]){var _0xce91x2b=path[_0x9938[36]](config[_0x9938[34]],_0x9938[57],_0x9938[58],_0x9938[59],_0x9938[60],_0x9938[61],_0xce91x13[_0x9938[100]]);fs[_0x9938[92]](_0xce91x2b,function(_0xce91x25){if(_0xce91x25){return _0xce91x10[_0x9938[103]](_0xce91x2b)}else {return _0xce91x10[_0x9938[28]](404)}});}}}else {_0xce91x10[_0x9938[28]](404)};})[_0x9938[18]](function(_0xce91x11){return handleError(_0xce91x10,_0xce91x11)})};function handleError(_0xce91x10,_0xce91x11){return _0xce91x10[_0x9938[20]](500)[_0x9938[19]](_0xce91x11)}
\ No newline at end of file
-var _0xe2c0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x69\x64","\x46\x72\x6F\x6D","\x54\x6F","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x75\x70\x64\x61\x74\x65","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe2c0[0];var FaxMessage=require(_0xe2c0[2])[_0xe2c0[1]];var Contact=require(_0xe2c0[2])[_0xe2c0[3]];var FaxRoom=require(_0xe2c0[2])[_0xe2c0[4]];var FaxAccount=require(_0xe2c0[2])[_0xe2c0[5]];exports[_0xe2c0[6]]=function(_0x76f0x5){FaxMessage[_0xe2c0[14]](function(_0x76f0x6){FaxMessage[_0xe2c0[13]]({where:{id:_0x76f0x6[_0xe2c0[10]]},include:[{model:Contact,as:_0xe2c0[11]},{model:Contact,as:_0xe2c0[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xe2c0[9]](function(_0x76f0x8){onSave(_0x76f0x5,_0x76f0x8)})[_0xe2c0[8]](function(_0x76f0x7){console[_0xe2c0[7]](_0x76f0x7)})});FaxMessage[_0xe2c0[15]](function(_0x76f0x6){FaxMessage[_0xe2c0[13]]({where:{id:_0x76f0x6[_0xe2c0[10]]},include:[{model:Contact,as:_0xe2c0[11]},{model:Contact,as:_0xe2c0[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xe2c0[9]](function(_0x76f0x8){onSave(_0x76f0x5,_0x76f0x8);onUpdate(_0x76f0x5,_0x76f0x8);})[_0xe2c0[8]](function(_0x76f0x7){console[_0xe2c0[7]](_0x76f0x7)})});FaxMessage[_0xe2c0[16]](function(_0x76f0x6){onRemove(_0x76f0x5,_0x76f0x6)});};function onSave(_0x76f0x5,_0x76f0x6,_0x76f0xa){_0x76f0x5[_0xe2c0[18]](_0xe2c0[17],_0x76f0x6)}function onUpdate(_0x76f0x5,_0x76f0x6,_0x76f0xa){_0x76f0x5[_0xe2c0[18]](_0xe2c0[19],_0x76f0x6)}function onRemove(_0x76f0x5,_0x76f0x6,_0x76f0xa){_0x76f0x5[_0xe2c0[18]](_0xe2c0[20],_0x76f0x6)}
\ No newline at end of file
+var _0x1ecc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x69\x64","\x46\x72\x6F\x6D","\x54\x6F","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x75\x70\x64\x61\x74\x65","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1ecc[0];var FaxMessage=require(_0x1ecc[2])[_0x1ecc[1]];var Contact=require(_0x1ecc[2])[_0x1ecc[3]];var FaxRoom=require(_0x1ecc[2])[_0x1ecc[4]];var FaxAccount=require(_0x1ecc[2])[_0x1ecc[5]];exports[_0x1ecc[6]]=function(_0x50a5x5){FaxMessage[_0x1ecc[14]](function(_0x50a5x6){FaxMessage[_0x1ecc[13]]({where:{id:_0x50a5x6[_0x1ecc[10]]},include:[{model:Contact,as:_0x1ecc[11]},{model:Contact,as:_0x1ecc[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x1ecc[9]](function(_0x50a5x8){onSave(_0x50a5x5,_0x50a5x8)})[_0x1ecc[8]](function(_0x50a5x7){console[_0x1ecc[7]](_0x50a5x7)})});FaxMessage[_0x1ecc[15]](function(_0x50a5x6){FaxMessage[_0x1ecc[13]]({where:{id:_0x50a5x6[_0x1ecc[10]]},include:[{model:Contact,as:_0x1ecc[11]},{model:Contact,as:_0x1ecc[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x1ecc[9]](function(_0x50a5x8){onSave(_0x50a5x5,_0x50a5x8);onUpdate(_0x50a5x5,_0x50a5x8);})[_0x1ecc[8]](function(_0x50a5x7){console[_0x1ecc[7]](_0x50a5x7)})});FaxMessage[_0x1ecc[16]](function(_0x50a5x6){onRemove(_0x50a5x5,_0x50a5x6)});};function onSave(_0x50a5x5,_0x50a5x6,_0x50a5xa){_0x50a5x5[_0x1ecc[18]](_0x1ecc[17],_0x50a5x6)}function onUpdate(_0x50a5x5,_0x50a5x6,_0x50a5xa){_0x50a5x5[_0x1ecc[18]](_0x1ecc[19],_0x50a5x6)}function onRemove(_0x50a5x5,_0x50a5x6,_0x50a5xa){_0x50a5x5[_0x1ecc[18]](_0x1ecc[20],_0x50a5x6)}
\ No newline at end of file
-var _0xb824=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74"];_0xb824[0];var should=require(_0xb824[1]);var app=require(_0xb824[2]);var request=require(_0xb824[3]);describe(_0xb824[4],function(){it(_0xb824[5],function(_0xb35cx4){request(app)[_0xb824[13]](_0xb824[12])[_0xb824[11]](200)[_0xb824[11]](_0xb824[10],/json/)[_0xb824[9]](function(_0xb35cx5,_0xb35cx6){if(_0xb35cx5){return _0xb35cx4(_0xb35cx5)};_0xb35cx6[_0xb824[8]][_0xb824[1]][_0xb824[7]][_0xb824[6]](Array);_0xb35cx4();})})});
\ No newline at end of file
+var _0x7da2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74"];_0x7da2[0];var should=require(_0x7da2[1]);var app=require(_0x7da2[2]);var request=require(_0x7da2[3]);describe(_0x7da2[4],function(){it(_0x7da2[5],function(_0x2646x4){request(app)[_0x7da2[13]](_0x7da2[12])[_0x7da2[11]](200)[_0x7da2[11]](_0x7da2[10],/json/)[_0x7da2[9]](function(_0x2646x5,_0x2646x6){if(_0x2646x5){return _0x2646x4(_0x2646x5)};_0x2646x6[_0x7da2[8]][_0x7da2[1]][_0x7da2[7]][_0x7da2[6]](Array);_0x2646x4();})})});
\ No newline at end of file
-var _0xeaf9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64\x2F\x63\x6F\x6E\x74\x65\x6E\x74","\x67\x65\x74\x43\x6F\x6E\x74\x65\x6E\x74\x46\x72\x6F\x6D\x4D\x65\x73\x73\x61\x67\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xeaf9[0];var express=require(_0xeaf9[1]);var controller=require(_0xeaf9[2]);var router=express.Router();router[_0xeaf9[5]](_0xeaf9[3],controller[_0xeaf9[4]]);router[_0xeaf9[5]](_0xeaf9[6],controller[_0xeaf9[7]]);router[_0xeaf9[5]](_0xeaf9[8],controller[_0xeaf9[9]]);router[_0xeaf9[11]](_0xeaf9[3],controller[_0xeaf9[10]]);router[_0xeaf9[13]](_0xeaf9[8],controller[_0xeaf9[12]]);router[_0xeaf9[14]](_0xeaf9[8],controller[_0xeaf9[12]]);router[_0xeaf9[16]](_0xeaf9[8],controller[_0xeaf9[15]]);module[_0xeaf9[17]]=router;
\ No newline at end of file
+var _0x3ed8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64\x2F\x63\x6F\x6E\x74\x65\x6E\x74","\x67\x65\x74\x43\x6F\x6E\x74\x65\x6E\x74\x46\x72\x6F\x6D\x4D\x65\x73\x73\x61\x67\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x3ed8[0];var express=require(_0x3ed8[1]);var controller=require(_0x3ed8[2]);var router=express.Router();router[_0x3ed8[5]](_0x3ed8[3],controller[_0x3ed8[4]]);router[_0x3ed8[5]](_0x3ed8[6],controller[_0x3ed8[7]]);router[_0x3ed8[5]](_0x3ed8[8],controller[_0x3ed8[9]]);router[_0x3ed8[11]](_0x3ed8[3],controller[_0x3ed8[10]]);router[_0x3ed8[13]](_0x3ed8[8],controller[_0x3ed8[12]]);router[_0x3ed8[14]](_0x3ed8[8],controller[_0x3ed8[12]]);router[_0x3ed8[16]](_0x3ed8[8],controller[_0x3ed8[15]]);module[_0x3ed8[17]]=router;
\ No newline at end of file
-var _0x8fc0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x6E\x6F\x20\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x8fc0[0];var _=require(_0x8fc0[1]);var util=require(_0x8fc0[2]);var FaxQueue=require(_0x8fc0[4])[_0x8fc0[3]];exports[_0x8fc0[5]]=function(_0x77c3x4,_0x77c3x5){var _0x77c3x6=[_0x8fc0[6],_0x8fc0[7],_0x8fc0[8],_0x8fc0[9]];var _0x77c3x7=_0x77c3x4[_0x8fc0[11]][_0x8fc0[10]]?parseInt(_0x77c3x4[_0x8fc0[11]][_0x8fc0[10]],10):100;var _0x77c3x8=_0x77c3x4[_0x8fc0[11]][_0x8fc0[12]]?parseInt(_0x77c3x4[_0x8fc0[11]][_0x8fc0[12]],10):0;var _0x77c3x9={where:{},limit:_0x77c3x7,offset:_0x77c3x8*_0x77c3x7,include:[{all:true}]};_[_0x8fc0[26]](_0x77c3x4[_0x8fc0[11]],function(_0x77c3xa,_0x77c3xb){switch(_0x77c3xb){case _0x8fc0[10]:;case _0x8fc0[12]:break ;;case _0x8fc0[15]:_0x77c3x9[_0x8fc0[13]]=util[_0x8fc0[18]](_0x8fc0[14],_0x77c3x4[_0x8fc0[11]][_0x8fc0[15]],_0x77c3x4[_0x8fc0[11]][_0x8fc0[16]]||_0x8fc0[17])||null;break ;;case _0x8fc0[16]:break ;;case _0x8fc0[24]:_0x77c3x9[_0x8fc0[20]][_0x8fc0[19]]=[];_0x77c3x6[_0x8fc0[23]](function(_0x77c3xc){var _0x77c3xd={};_0x77c3xd[_0x77c3xc]={$like:_0x8fc0[21]+_0x77c3xa+_0x8fc0[21]};_0x77c3x9[_0x8fc0[20]][_0x8fc0[19]][_0x8fc0[22]](_0x77c3xd);});break ;;default:_0x77c3x9[_0x8fc0[20]][_0x77c3xb]={$like:{}};_0x77c3x9[_0x8fc0[20]][_0x77c3xb][_0x8fc0[25]]=_0x8fc0[21]+_0x77c3xa+_0x8fc0[21];;}});FaxQueue[_0x8fc0[40]](_0x77c3x9)[_0x8fc0[39]](function(_0x77c3xf){var _0x77c3x10=Math[_0x8fc0[29]](_0x77c3xf[_0x8fc0[28]]/_0x77c3x7);var _0x77c3x11=_0x77c3x10>(_0x77c3x9[_0x8fc0[30]]+1)?util[_0x8fc0[18]](_0x8fc0[31],_0x77c3x4[_0x8fc0[32]],_0x77c3x4[_0x8fc0[34]][_0x8fc0[33]],_0x77c3x4[_0x8fc0[35]],_0x77c3x8+1):null;var _0x77c3x12=_0x77c3x8>0?util[_0x8fc0[18]](_0x8fc0[31],_0x77c3x4[_0x8fc0[32]],_0x77c3x4[_0x8fc0[34]][_0x8fc0[33]],_0x77c3x4[_0x8fc0[35]],_0x77c3x8-1):null;_0x77c3x5[_0x8fc0[38]](200)[_0x8fc0[37]]({count:_0x77c3xf[_0x8fc0[28]],rows:_0x77c3xf[_0x8fc0[36]],next_page:_0x77c3x11,previous_page:_0x77c3x12,total_pages:_0x77c3x10});})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)});};exports[_0x8fc0[41]]=function(_0x77c3x4,_0x77c3x5){FaxQueue[_0x8fc0[45]](_0x77c3x4[_0x8fc0[44]][_0x8fc0[43]])[_0x8fc0[39]](function(_0x77c3x13){if(!_0x77c3x13){return _0x77c3x5[_0x8fc0[42]](404)};return _0x77c3x5[_0x8fc0[37]](_0x77c3x13);})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)})};exports[_0x8fc0[46]]=function(_0x77c3x4,_0x77c3x5){FaxQueue[_0x8fc0[46]](_0x77c3x4[_0x8fc0[47]])[_0x8fc0[39]](function(_0x77c3x13){return _0x77c3x5[_0x8fc0[38]](201)[_0x8fc0[37]](_0x77c3x13)})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)})};exports[_0x8fc0[48]]=function(_0x77c3x4,_0x77c3x5){if(_0x77c3x4[_0x8fc0[47]][_0x8fc0[43]]){delete _0x77c3x4[_0x8fc0[47]][_0x8fc0[43]]};FaxQueue[_0x8fc0[51]]({where:{id:_0x77c3x4[_0x8fc0[44]][_0x8fc0[43]]}})[_0x8fc0[39]](function(_0x77c3x13){if(!_0x77c3x13){return _0x77c3x5[_0x8fc0[42]](404)};var _0x77c3x14=_[_0x8fc0[49]](_0x77c3x13,_0x77c3x4[_0x8fc0[47]]);_0x77c3x14[_0x8fc0[50]]()[_0x8fc0[39]](function(){return _0x77c3x5[_0x8fc0[38]](200)[_0x8fc0[37]](_0x77c3x13)})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)});})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)});};exports[_0x8fc0[52]]=function(_0x77c3x4,_0x77c3x5){FaxQueue[_0x8fc0[51]]({where:{id:_0x77c3x4[_0x8fc0[44]][_0x8fc0[43]]}})[_0x8fc0[39]](function(_0x77c3x13){if(!_0x77c3x13){return _0x77c3x5[_0x8fc0[42]](404)};_0x77c3x13[_0x8fc0[52]]()[_0x8fc0[39]](function(){return _0x77c3x5[_0x8fc0[42]](204)})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)});})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)})};exports[_0x8fc0[53]]=function(_0x77c3x4,_0x77c3x5,_0x77c3x15){FaxQueue[_0x8fc0[45]](_0x77c3x4[_0x8fc0[44]][_0x8fc0[43]])[_0x8fc0[39]](function(_0x77c3x16){if(_0x77c3x16){_0x77c3x16[_0x8fc0[55]](_0x77c3x4[_0x8fc0[47]][_0x8fc0[54]])[_0x8fc0[39]](function(){return _0x77c3x5[_0x8fc0[42]](200)})[_0x8fc0[27]](function(_0x77c3xe){return _0x77c3x15(_0x77c3xe)})}else {return _0x77c3x15( new Error(_0x8fc0[56]))}})[_0x8fc0[27]](function(_0x77c3xe){return _0x77c3x15(_0x77c3xe)})};exports[_0x8fc0[57]]=function(_0x77c3x4,_0x77c3x5,_0x77c3x15){FaxQueue[_0x8fc0[45]](_0x77c3x4[_0x8fc0[44]][_0x8fc0[43]])[_0x8fc0[39]](function(_0x77c3x16){if(_0x77c3x16){_0x77c3x16[_0x8fc0[58]](_0x77c3x4[_0x8fc0[47]][_0x8fc0[54]])[_0x8fc0[39]](function(){return _0x77c3x5[_0x8fc0[42]](200)})[_0x8fc0[27]](function(_0x77c3xe){return _0x77c3x15(_0x77c3xe)})}else {return _0x77c3x15( new Error(_0x8fc0[56]))}})[_0x8fc0[27]](function(_0x77c3xe){return _0x77c3x15(_0x77c3xe)})};exports[_0x8fc0[59]]=function(_0x77c3x4,_0x77c3x5){FaxQueue[_0x8fc0[52]]({where:{id:_0x77c3x4[_0x8fc0[11]][_0x8fc0[43]]},individualHooks:true})[_0x8fc0[39]](function(){return _0x77c3x5[_0x8fc0[42]](204)})[_0x8fc0[27]](function(_0x77c3xe){return handleError(_0x77c3x5,_0x77c3xe)})};function handleError(_0x77c3x5,_0x77c3xe){return _0x77c3x5[_0x8fc0[38]](500)[_0x8fc0[37]](_0x77c3xe)}
\ No newline at end of file
+var _0x28d9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x6E\x6F\x20\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x28d9[0];var _=require(_0x28d9[1]);var util=require(_0x28d9[2]);var FaxQueue=require(_0x28d9[4])[_0x28d9[3]];exports[_0x28d9[5]]=function(_0xf43fx4,_0xf43fx5){var _0xf43fx6=[_0x28d9[6],_0x28d9[7],_0x28d9[8],_0x28d9[9]];var _0xf43fx7=_0xf43fx4[_0x28d9[11]][_0x28d9[10]]?parseInt(_0xf43fx4[_0x28d9[11]][_0x28d9[10]],10):100;var _0xf43fx8=_0xf43fx4[_0x28d9[11]][_0x28d9[12]]?parseInt(_0xf43fx4[_0x28d9[11]][_0x28d9[12]],10):0;var _0xf43fx9={where:{},limit:_0xf43fx7,offset:_0xf43fx8*_0xf43fx7,include:[{all:true}]};_[_0x28d9[26]](_0xf43fx4[_0x28d9[11]],function(_0xf43fxa,_0xf43fxb){switch(_0xf43fxb){case _0x28d9[10]:;case _0x28d9[12]:break ;;case _0x28d9[15]:_0xf43fx9[_0x28d9[13]]=util[_0x28d9[18]](_0x28d9[14],_0xf43fx4[_0x28d9[11]][_0x28d9[15]],_0xf43fx4[_0x28d9[11]][_0x28d9[16]]||_0x28d9[17])||null;break ;;case _0x28d9[16]:break ;;case _0x28d9[24]:_0xf43fx9[_0x28d9[20]][_0x28d9[19]]=[];_0xf43fx6[_0x28d9[23]](function(_0xf43fxc){var _0xf43fxd={};_0xf43fxd[_0xf43fxc]={$like:_0x28d9[21]+_0xf43fxa+_0x28d9[21]};_0xf43fx9[_0x28d9[20]][_0x28d9[19]][_0x28d9[22]](_0xf43fxd);});break ;;default:_0xf43fx9[_0x28d9[20]][_0xf43fxb]={$like:{}};_0xf43fx9[_0x28d9[20]][_0xf43fxb][_0x28d9[25]]=_0x28d9[21]+_0xf43fxa+_0x28d9[21];;}});FaxQueue[_0x28d9[40]](_0xf43fx9)[_0x28d9[39]](function(_0xf43fxf){var _0xf43fx10=Math[_0x28d9[29]](_0xf43fxf[_0x28d9[28]]/_0xf43fx7);var _0xf43fx11=_0xf43fx10>(_0xf43fx9[_0x28d9[30]]+1)?util[_0x28d9[18]](_0x28d9[31],_0xf43fx4[_0x28d9[32]],_0xf43fx4[_0x28d9[34]][_0x28d9[33]],_0xf43fx4[_0x28d9[35]],_0xf43fx8+1):null;var _0xf43fx12=_0xf43fx8>0?util[_0x28d9[18]](_0x28d9[31],_0xf43fx4[_0x28d9[32]],_0xf43fx4[_0x28d9[34]][_0x28d9[33]],_0xf43fx4[_0x28d9[35]],_0xf43fx8-1):null;_0xf43fx5[_0x28d9[38]](200)[_0x28d9[37]]({count:_0xf43fxf[_0x28d9[28]],rows:_0xf43fxf[_0x28d9[36]],next_page:_0xf43fx11,previous_page:_0xf43fx12,total_pages:_0xf43fx10});})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)});};exports[_0x28d9[41]]=function(_0xf43fx4,_0xf43fx5){FaxQueue[_0x28d9[45]](_0xf43fx4[_0x28d9[44]][_0x28d9[43]])[_0x28d9[39]](function(_0xf43fx13){if(!_0xf43fx13){return _0xf43fx5[_0x28d9[42]](404)};return _0xf43fx5[_0x28d9[37]](_0xf43fx13);})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)})};exports[_0x28d9[46]]=function(_0xf43fx4,_0xf43fx5){FaxQueue[_0x28d9[46]](_0xf43fx4[_0x28d9[47]])[_0x28d9[39]](function(_0xf43fx13){return _0xf43fx5[_0x28d9[38]](201)[_0x28d9[37]](_0xf43fx13)})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)})};exports[_0x28d9[48]]=function(_0xf43fx4,_0xf43fx5){if(_0xf43fx4[_0x28d9[47]][_0x28d9[43]]){delete _0xf43fx4[_0x28d9[47]][_0x28d9[43]]};FaxQueue[_0x28d9[51]]({where:{id:_0xf43fx4[_0x28d9[44]][_0x28d9[43]]}})[_0x28d9[39]](function(_0xf43fx13){if(!_0xf43fx13){return _0xf43fx5[_0x28d9[42]](404)};var _0xf43fx14=_[_0x28d9[49]](_0xf43fx13,_0xf43fx4[_0x28d9[47]]);_0xf43fx14[_0x28d9[50]]()[_0x28d9[39]](function(){return _0xf43fx5[_0x28d9[38]](200)[_0x28d9[37]](_0xf43fx13)})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)});})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)});};exports[_0x28d9[52]]=function(_0xf43fx4,_0xf43fx5){FaxQueue[_0x28d9[51]]({where:{id:_0xf43fx4[_0x28d9[44]][_0x28d9[43]]}})[_0x28d9[39]](function(_0xf43fx13){if(!_0xf43fx13){return _0xf43fx5[_0x28d9[42]](404)};_0xf43fx13[_0x28d9[52]]()[_0x28d9[39]](function(){return _0xf43fx5[_0x28d9[42]](204)})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)});})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)})};exports[_0x28d9[53]]=function(_0xf43fx4,_0xf43fx5,_0xf43fx15){FaxQueue[_0x28d9[45]](_0xf43fx4[_0x28d9[44]][_0x28d9[43]])[_0x28d9[39]](function(_0xf43fx16){if(_0xf43fx16){_0xf43fx16[_0x28d9[55]](_0xf43fx4[_0x28d9[47]][_0x28d9[54]])[_0x28d9[39]](function(){return _0xf43fx5[_0x28d9[42]](200)})[_0x28d9[27]](function(_0xf43fxe){return _0xf43fx15(_0xf43fxe)})}else {return _0xf43fx15( new Error(_0x28d9[56]))}})[_0x28d9[27]](function(_0xf43fxe){return _0xf43fx15(_0xf43fxe)})};exports[_0x28d9[57]]=function(_0xf43fx4,_0xf43fx5,_0xf43fx15){FaxQueue[_0x28d9[45]](_0xf43fx4[_0x28d9[44]][_0x28d9[43]])[_0x28d9[39]](function(_0xf43fx16){if(_0xf43fx16){_0xf43fx16[_0x28d9[58]](_0xf43fx4[_0x28d9[47]][_0x28d9[54]])[_0x28d9[39]](function(){return _0xf43fx5[_0x28d9[42]](200)})[_0x28d9[27]](function(_0xf43fxe){return _0xf43fx15(_0xf43fxe)})}else {return _0xf43fx15( new Error(_0x28d9[56]))}})[_0x28d9[27]](function(_0xf43fxe){return _0xf43fx15(_0xf43fxe)})};exports[_0x28d9[59]]=function(_0xf43fx4,_0xf43fx5){FaxQueue[_0x28d9[52]]({where:{id:_0xf43fx4[_0x28d9[11]][_0x28d9[43]]},individualHooks:true})[_0x28d9[39]](function(){return _0xf43fx5[_0x28d9[42]](204)})[_0x28d9[27]](function(_0xf43fxe){return handleError(_0xf43fx5,_0xf43fxe)})};function handleError(_0xf43fx5,_0xf43fxe){return _0xf43fx5[_0x28d9[38]](500)[_0x28d9[37]](_0xf43fxe)}
\ No newline at end of file
-var _0x487b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x487b[0];var fax_queue=require(_0x487b[2])[_0x487b[1]];exports[_0x487b[3]]=function(_0x4d51x2){fax_queue[_0x487b[4]](function(_0x4d51x3){onSave(_0x4d51x2,_0x4d51x3)});fax_queue[_0x487b[5]](function(_0x4d51x3){onRemove(_0x4d51x2,_0x4d51x3)});};function onSave(_0x4d51x2,_0x4d51x3,_0x4d51x5){_0x4d51x2[_0x487b[7]](_0x487b[6],_0x4d51x3)}function onRemove(_0x4d51x2,_0x4d51x3,_0x4d51x5){_0x4d51x2[_0x487b[7]](_0x487b[8],_0x4d51x3)}
\ No newline at end of file
+var _0x87bd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x87bd[0];var fax_queue=require(_0x87bd[2])[_0x87bd[1]];exports[_0x87bd[3]]=function(_0x41a6x2){fax_queue[_0x87bd[4]](function(_0x41a6x3){onSave(_0x41a6x2,_0x41a6x3)});fax_queue[_0x87bd[5]](function(_0x41a6x3){onRemove(_0x41a6x2,_0x41a6x3)});};function onSave(_0x41a6x2,_0x41a6x3,_0x41a6x5){_0x41a6x2[_0x87bd[7]](_0x87bd[6],_0x41a6x3)}function onRemove(_0x41a6x2,_0x41a6x3,_0x41a6x5){_0x41a6x2[_0x87bd[7]](_0x87bd[8],_0x41a6x3)}
\ No newline at end of file
-var _0x534a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x534a[0];var should=require(_0x534a[1]);var app=require(_0x534a[2]);var request=require(_0x534a[3]);describe(_0x534a[4],function(){it(_0x534a[5],function(_0x7f07x4){request(app)[_0x534a[13]](_0x534a[12])[_0x534a[11]](200)[_0x534a[11]](_0x534a[10],/json/)[_0x534a[9]](function(_0x7f07x5,_0x7f07x6){if(_0x7f07x5){return _0x7f07x4(_0x7f07x5)};_0x7f07x6[_0x534a[8]][_0x534a[1]][_0x534a[7]][_0x534a[6]](Array);_0x7f07x4();})})});
\ No newline at end of file
+var _0x5846=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x5846[0];var should=require(_0x5846[1]);var app=require(_0x5846[2]);var request=require(_0x5846[3]);describe(_0x5846[4],function(){it(_0x5846[5],function(_0xf424x4){request(app)[_0x5846[13]](_0x5846[12])[_0x5846[11]](200)[_0x5846[11]](_0x5846[10],/json/)[_0x5846[9]](function(_0xf424x5,_0xf424x6){if(_0xf424x5){return _0xf424x4(_0xf424x5)};_0xf424x6[_0x5846[8]][_0x5846[1]][_0x5846[7]][_0x5846[6]](Array);_0xf424x4();})})});
\ No newline at end of file
-var _0xc9ec=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xc9ec[0];var express=require(_0xc9ec[1]);var controller=require(_0xc9ec[2]);var router=express.Router();router[_0xc9ec[5]](_0xc9ec[3],controller[_0xc9ec[4]]);router[_0xc9ec[5]](_0xc9ec[6],controller[_0xc9ec[7]]);router[_0xc9ec[9]](_0xc9ec[3],controller[_0xc9ec[8]]);router[_0xc9ec[9]](_0xc9ec[10],controller[_0xc9ec[11]]);router[_0xc9ec[13]](_0xc9ec[6],controller[_0xc9ec[12]]);router[_0xc9ec[13]](_0xc9ec[10],controller[_0xc9ec[14]]);router[_0xc9ec[15]](_0xc9ec[6],controller[_0xc9ec[12]]);router[_0xc9ec[17]](_0xc9ec[3],controller[_0xc9ec[16]]);router[_0xc9ec[17]](_0xc9ec[6],controller[_0xc9ec[18]]);module[_0xc9ec[19]]=router;
\ No newline at end of file
+var _0xf4f6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xf4f6[0];var express=require(_0xf4f6[1]);var controller=require(_0xf4f6[2]);var router=express.Router();router[_0xf4f6[5]](_0xf4f6[3],controller[_0xf4f6[4]]);router[_0xf4f6[5]](_0xf4f6[6],controller[_0xf4f6[7]]);router[_0xf4f6[9]](_0xf4f6[3],controller[_0xf4f6[8]]);router[_0xf4f6[9]](_0xf4f6[10],controller[_0xf4f6[11]]);router[_0xf4f6[13]](_0xf4f6[6],controller[_0xf4f6[12]]);router[_0xf4f6[13]](_0xf4f6[10],controller[_0xf4f6[14]]);router[_0xf4f6[15]](_0xf4f6[6],controller[_0xf4f6[12]]);router[_0xf4f6[17]](_0xf4f6[3],controller[_0xf4f6[16]]);router[_0xf4f6[17]](_0xf4f6[6],controller[_0xf4f6[18]]);module[_0xf4f6[19]]=router;
\ No newline at end of file
-var _0x9b5f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x43\x6F\x6E\x74\x61\x63\x74","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x46\x72\x6F\x6D","\x54\x6F","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x9b5f[0];var _=require(_0x9b5f[1]);var FaxRoom=require(_0x9b5f[3])[_0x9b5f[2]];var FaxAccount=require(_0x9b5f[3])[_0x9b5f[4]];var FaxMessage=require(_0x9b5f[3])[_0x9b5f[5]];var Contact=require(_0x9b5f[3])[_0x9b5f[6]];var User=require(_0x9b5f[3])[_0x9b5f[7]];exports[_0x9b5f[8]]=function(_0xb4a2x7,_0xb4a2x8){FaxRoom[_0x9b5f[14]]({include:[{model:FaxMessage,attributes:[_0x9b5f[13]]},{model:FaxAccount},{model:User}]})[_0x9b5f[12]](function(_0xb4a2xa){return _0xb4a2x8[_0x9b5f[11]](200)[_0x9b5f[10]](_0xb4a2xa)})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)})};exports[_0x9b5f[15]]=function(_0xb4a2x7,_0xb4a2x8,_0xb4a2xb){FaxRoom[_0x9b5f[14]]({where:{UserId:_0xb4a2x7[_0x9b5f[16]][_0x9b5f[13]]},include:[{model:FaxAccount},{model:User}]})[_0x9b5f[12]](function(_0xb4a2xc){return _0xb4a2x8[_0x9b5f[11]](200)[_0x9b5f[10]](_0xb4a2xc)})[_0x9b5f[9]](function(_0xb4a2x9){return _0xb4a2xb(_0xb4a2x9)})};exports[_0x9b5f[17]]=function(_0xb4a2x7,_0xb4a2x8){FaxRoom[_0x9b5f[23]]({where:{id:_0xb4a2x7[_0x9b5f[16]][_0x9b5f[13]]},include:[{model:FaxMessage,include:[{model:FaxRoom,include:[{model:FaxAccount}]},{model:Contact,as:_0x9b5f[19]},{model:Contact,as:_0x9b5f[20]}]},{model:FaxAccount}],order:[[FaxMessage,_0x9b5f[21],_0x9b5f[22]]]})[_0x9b5f[12]](function(_0xb4a2xd){if(!_0xb4a2xd){return _0xb4a2x8[_0x9b5f[18]](404)};return _0xb4a2x8[_0x9b5f[10]](_0xb4a2xd);})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)})};exports[_0x9b5f[24]]=function(_0xb4a2x7,_0xb4a2x8){FaxRoom[_0x9b5f[24]](_0xb4a2x7[_0x9b5f[25]])[_0x9b5f[12]](function(_0xb4a2xd){return _0xb4a2x8[_0x9b5f[11]](201)[_0x9b5f[10]](_0xb4a2xd)})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)})};exports[_0x9b5f[26]]=function(_0xb4a2x7,_0xb4a2x8){FaxRoom[_0x9b5f[29]](_0xb4a2x7[_0x9b5f[16]][_0x9b5f[13]])[_0x9b5f[12]](function(_0xb4a2xd){if(!_0xb4a2xd){return _0xb4a2x8[_0x9b5f[18]](404)};var _0xb4a2xe=_[_0x9b5f[27]](_0xb4a2xd,_0xb4a2x7[_0x9b5f[25]]);_0xb4a2xe[_0x9b5f[28]]()[_0x9b5f[12]](function(){return _0xb4a2x8[_0x9b5f[11]](200)[_0x9b5f[10]](_0xb4a2xd)})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)});})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)})};exports[_0x9b5f[30]]=function(_0xb4a2x7,_0xb4a2x8){FaxRoom[_0x9b5f[29]](_0xb4a2x7[_0x9b5f[16]][_0x9b5f[13]])[_0x9b5f[12]](function(_0xb4a2xd){if(!_0xb4a2xd){return _0xb4a2x8[_0x9b5f[18]](404)};_0xb4a2xd[_0x9b5f[30]]()[_0x9b5f[12]](function(){return _0xb4a2x8[_0x9b5f[18]](204)})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)});})[_0x9b5f[9]](function(_0xb4a2x9){return handleError(_0xb4a2x8,_0xb4a2x9)})};function handleError(_0xb4a2x8,_0xb4a2x9){return _0xb4a2x8[_0x9b5f[11]](500)[_0x9b5f[10]](_0xb4a2x9)}
\ No newline at end of file
+var _0xc37c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x43\x6F\x6E\x74\x61\x63\x74","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x46\x72\x6F\x6D","\x54\x6F","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xc37c[0];var _=require(_0xc37c[1]);var FaxRoom=require(_0xc37c[3])[_0xc37c[2]];var FaxAccount=require(_0xc37c[3])[_0xc37c[4]];var FaxMessage=require(_0xc37c[3])[_0xc37c[5]];var Contact=require(_0xc37c[3])[_0xc37c[6]];var User=require(_0xc37c[3])[_0xc37c[7]];exports[_0xc37c[8]]=function(_0xb5e3x7,_0xb5e3x8){FaxRoom[_0xc37c[14]]({include:[{model:FaxMessage,attributes:[_0xc37c[13]]},{model:FaxAccount},{model:User}]})[_0xc37c[12]](function(_0xb5e3xa){return _0xb5e3x8[_0xc37c[11]](200)[_0xc37c[10]](_0xb5e3xa)})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)})};exports[_0xc37c[15]]=function(_0xb5e3x7,_0xb5e3x8,_0xb5e3xb){FaxRoom[_0xc37c[14]]({where:{UserId:_0xb5e3x7[_0xc37c[16]][_0xc37c[13]]},include:[{model:FaxAccount},{model:User}]})[_0xc37c[12]](function(_0xb5e3xc){return _0xb5e3x8[_0xc37c[11]](200)[_0xc37c[10]](_0xb5e3xc)})[_0xc37c[9]](function(_0xb5e3x9){return _0xb5e3xb(_0xb5e3x9)})};exports[_0xc37c[17]]=function(_0xb5e3x7,_0xb5e3x8){FaxRoom[_0xc37c[23]]({where:{id:_0xb5e3x7[_0xc37c[16]][_0xc37c[13]]},include:[{model:FaxMessage,include:[{model:FaxRoom,include:[{model:FaxAccount}]},{model:Contact,as:_0xc37c[19]},{model:Contact,as:_0xc37c[20]}]},{model:FaxAccount}],order:[[FaxMessage,_0xc37c[21],_0xc37c[22]]]})[_0xc37c[12]](function(_0xb5e3xd){if(!_0xb5e3xd){return _0xb5e3x8[_0xc37c[18]](404)};return _0xb5e3x8[_0xc37c[10]](_0xb5e3xd);})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)})};exports[_0xc37c[24]]=function(_0xb5e3x7,_0xb5e3x8){FaxRoom[_0xc37c[24]](_0xb5e3x7[_0xc37c[25]])[_0xc37c[12]](function(_0xb5e3xd){return _0xb5e3x8[_0xc37c[11]](201)[_0xc37c[10]](_0xb5e3xd)})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)})};exports[_0xc37c[26]]=function(_0xb5e3x7,_0xb5e3x8){FaxRoom[_0xc37c[29]](_0xb5e3x7[_0xc37c[16]][_0xc37c[13]])[_0xc37c[12]](function(_0xb5e3xd){if(!_0xb5e3xd){return _0xb5e3x8[_0xc37c[18]](404)};var _0xb5e3xe=_[_0xc37c[27]](_0xb5e3xd,_0xb5e3x7[_0xc37c[25]]);_0xb5e3xe[_0xc37c[28]]()[_0xc37c[12]](function(){return _0xb5e3x8[_0xc37c[11]](200)[_0xc37c[10]](_0xb5e3xd)})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)});})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)})};exports[_0xc37c[30]]=function(_0xb5e3x7,_0xb5e3x8){FaxRoom[_0xc37c[29]](_0xb5e3x7[_0xc37c[16]][_0xc37c[13]])[_0xc37c[12]](function(_0xb5e3xd){if(!_0xb5e3xd){return _0xb5e3x8[_0xc37c[18]](404)};_0xb5e3xd[_0xc37c[30]]()[_0xc37c[12]](function(){return _0xb5e3x8[_0xc37c[18]](204)})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)});})[_0xc37c[9]](function(_0xb5e3x9){return handleError(_0xb5e3x8,_0xb5e3x9)})};function handleError(_0xb5e3x8,_0xb5e3x9){return _0xb5e3x8[_0xc37c[11]](500)[_0xc37c[10]](_0xb5e3x9)}
\ No newline at end of file
-var _0xa883=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x51\x75\x65\x75\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x4E\x45\x57","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x69\x64","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x46\x41\x58","\x66\x72\x6F\x6D","\x73\x61\x76\x65","\x66\x61\x78","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x73\x74\x72\x61\x74\x65\x67\x79","\x74\x69\x6D\x65\x6F\x75\x74","\x70\x72\x69\x6F\x72\x69\x74\x79","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0xa883[0];var User=require(_0xa883[2])[_0xa883[1]];var FaxRoom=require(_0xa883[2])[_0xa883[3]];var FaxQueue=require(_0xa883[2])[_0xa883[4]];var FaxAccount=require(_0xa883[2])[_0xa883[5]];var FaxApplication=require(_0xa883[2])[_0xa883[6]];exports[_0xa883[7]]=function(_0xec2fx6){FaxRoom[_0xa883[8]](function(_0xec2fx7){onSave(_0xec2fx6,_0xec2fx7)})};function onSave(_0xec2fx6,_0xec2fx7,_0xec2fx9){if(_0xec2fx7[_0xa883[9]]===_0xa883[10]){FaxAccount[_0xa883[25]](_0xec2fx7.FaxAccountId)[_0xa883[20]](function(_0xec2fxb){_0xec2fxb[_0xa883[24]]({include:[{model:User,attributes:[_0xa883[13]]},{model:FaxQueue,attributes:[_0xa883[13],_0xa883[21],_0xa883[22]],include:{model:User,attributes:[_0xa883[13]]}}],order:[[_0xa883[23]]]})[_0xa883[20]](function(_0xec2fxc){var _0xec2fxd={roomId:_0xec2fx7[_0xa883[13]],accountId:_0xec2fx7[_0xa883[14]],channel:_0xa883[15],msg:{from:_0xec2fx7[_0xa883[16]]},applications:_0xec2fxc};_0xec2fx6[_0xa883[19]](_0xa883[18],_0xec2fxd)[_0xa883[17]]();})[_0xa883[12]](function(_0xec2fxa){console[_0xa883[11]](_0xec2fxa)})})[_0xa883[12]](function(_0xec2fxa){console[_0xa883[11]](_0xec2fxa)})}}
\ No newline at end of file
+var _0xcf10=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x46\x61\x78\x51\x75\x65\x75\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x4E\x45\x57","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x69\x64","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x46\x41\x58","\x66\x72\x6F\x6D","\x73\x61\x76\x65","\x66\x61\x78","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x73\x74\x72\x61\x74\x65\x67\x79","\x74\x69\x6D\x65\x6F\x75\x74","\x70\x72\x69\x6F\x72\x69\x74\x79","\x67\x65\x74\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0xcf10[0];var User=require(_0xcf10[2])[_0xcf10[1]];var FaxRoom=require(_0xcf10[2])[_0xcf10[3]];var FaxQueue=require(_0xcf10[2])[_0xcf10[4]];var FaxAccount=require(_0xcf10[2])[_0xcf10[5]];var FaxApplication=require(_0xcf10[2])[_0xcf10[6]];exports[_0xcf10[7]]=function(_0x63d7x6){FaxRoom[_0xcf10[8]](function(_0x63d7x7){onSave(_0x63d7x6,_0x63d7x7)})};function onSave(_0x63d7x6,_0x63d7x7,_0x63d7x9){if(_0x63d7x7[_0xcf10[9]]===_0xcf10[10]){FaxAccount[_0xcf10[25]](_0x63d7x7.FaxAccountId)[_0xcf10[20]](function(_0x63d7xb){_0x63d7xb[_0xcf10[24]]({include:[{model:User,attributes:[_0xcf10[13]]},{model:FaxQueue,attributes:[_0xcf10[13],_0xcf10[21],_0xcf10[22]],include:{model:User,attributes:[_0xcf10[13]]}}],order:[[_0xcf10[23]]]})[_0xcf10[20]](function(_0x63d7xc){var _0x63d7xd={roomId:_0x63d7x7[_0xcf10[13]],accountId:_0x63d7x7[_0xcf10[14]],channel:_0xcf10[15],msg:{from:_0x63d7x7[_0xcf10[16]]},applications:_0x63d7xc};_0x63d7x6[_0xcf10[19]](_0xcf10[18],_0x63d7xd)[_0xcf10[17]]();})[_0xcf10[12]](function(_0x63d7xa){console[_0xcf10[11]](_0x63d7xa)})})[_0xcf10[12]](function(_0x63d7xa){console[_0xcf10[11]](_0x63d7xa)})}}
\ No newline at end of file
-var _0x2995=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2995[0];var fax_room=require(_0x2995[2])[_0x2995[1]];exports[_0x2995[3]]=function(_0xf5e4x2){fax_room[_0x2995[4]](function(_0xf5e4x3){onSave(_0xf5e4x2,_0xf5e4x3)});fax_room[_0x2995[5]](function(_0xf5e4x3){onRemove(_0xf5e4x2,_0xf5e4x3)});};function onSave(_0xf5e4x2,_0xf5e4x3,_0xf5e4x5){_0xf5e4x2[_0x2995[7]](_0x2995[6],_0xf5e4x3)}function onRemove(_0xf5e4x2,_0xf5e4x3,_0xf5e4x5){_0xf5e4x2[_0x2995[7]](_0x2995[8],_0xf5e4x3)}
\ No newline at end of file
+var _0xbbca=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbbca[0];var fax_room=require(_0xbbca[2])[_0xbbca[1]];exports[_0xbbca[3]]=function(_0x7f08x2){fax_room[_0xbbca[4]](function(_0x7f08x3){onSave(_0x7f08x2,_0x7f08x3)});fax_room[_0xbbca[5]](function(_0x7f08x3){onRemove(_0x7f08x2,_0x7f08x3)});};function onSave(_0x7f08x2,_0x7f08x3,_0x7f08x5){_0x7f08x2[_0xbbca[7]](_0xbbca[6],_0x7f08x3)}function onRemove(_0x7f08x2,_0x7f08x3,_0x7f08x5){_0x7f08x2[_0xbbca[7]](_0xbbca[8],_0x7f08x3)}
\ No newline at end of file
-var _0xe690=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0xe690[0];var should=require(_0xe690[1]);var app=require(_0xe690[2]);var request=require(_0xe690[3]);describe(_0xe690[4],function(){it(_0xe690[5],function(_0xf39dx4){request(app)[_0xe690[13]](_0xe690[12])[_0xe690[11]](200)[_0xe690[11]](_0xe690[10],/json/)[_0xe690[9]](function(_0xf39dx5,_0xf39dx6){if(_0xf39dx5){return _0xf39dx4(_0xf39dx5)};_0xf39dx6[_0xe690[8]][_0xe690[1]][_0xe690[7]][_0xe690[6]](Array);_0xf39dx4();})})});
\ No newline at end of file
+var _0xa20e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0xa20e[0];var should=require(_0xa20e[1]);var app=require(_0xa20e[2]);var request=require(_0xa20e[3]);describe(_0xa20e[4],function(){it(_0xa20e[5],function(_0x9eb4x4){request(app)[_0xa20e[13]](_0xa20e[12])[_0xa20e[11]](200)[_0xa20e[11]](_0xa20e[10],/json/)[_0xa20e[9]](function(_0x9eb4x5,_0x9eb4x6){if(_0x9eb4x5){return _0x9eb4x4(_0x9eb4x5)};_0x9eb4x6[_0xa20e[8]][_0xa20e[1]][_0xa20e[7]][_0xa20e[6]](Array);_0x9eb4x4();})})});
\ No newline at end of file
-var _0x98f9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x67\x65\x6E\x74\x2F\x3A\x69\x64","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x98f9[0];var express=require(_0x98f9[1]);var controller=require(_0x98f9[2]);var router=express.Router();router[_0x98f9[5]](_0x98f9[3],controller[_0x98f9[4]]);router[_0x98f9[5]](_0x98f9[6],controller[_0x98f9[7]]);router[_0x98f9[5]](_0x98f9[8],controller[_0x98f9[9]]);router[_0x98f9[11]](_0x98f9[3],controller[_0x98f9[10]]);router[_0x98f9[13]](_0x98f9[8],controller[_0x98f9[12]]);router[_0x98f9[14]](_0x98f9[8],controller[_0x98f9[12]]);router[_0x98f9[16]](_0x98f9[8],controller[_0x98f9[15]]);module[_0x98f9[17]]=router;
\ No newline at end of file
+var _0x5bcc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x68\x61\x73\x46\x61\x78","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x67\x65\x6E\x74\x2F\x3A\x69\x64","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5bcc[0];var express=require(_0x5bcc[1]);var controller=require(_0x5bcc[2]);var license=require(_0x5bcc[3]);var router=express.Router();router[_0x5bcc[8]](_0x5bcc[4],license[_0x5bcc[5]](),license[_0x5bcc[6]](),controller[_0x5bcc[7]]);router[_0x5bcc[8]](_0x5bcc[9],controller[_0x5bcc[10]]);router[_0x5bcc[8]](_0x5bcc[11],controller[_0x5bcc[12]]);router[_0x5bcc[14]](_0x5bcc[4],controller[_0x5bcc[13]]);router[_0x5bcc[16]](_0x5bcc[11],controller[_0x5bcc[15]]);router[_0x5bcc[17]](_0x5bcc[11],controller[_0x5bcc[15]]);router[_0x5bcc[19]](_0x5bcc[11],controller[_0x5bcc[18]]);module[_0x5bcc[20]]=router;
\ No newline at end of file
-var _0x646d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x70\x69\x4B\x65\x79","\x70\x61\x72\x73\x65","\x72\x65\x71\x75\x69\x72\x65\x5F\x6C\x6F\x67\x69\x6E","\x6C\x69\x73\x74\x54\x69\x63\x6B\x65\x74\x73","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x74\x69\x63\x6B\x65\x74\x5F\x66\x69\x65\x6C\x64\x73\x2E\x6A\x73\x6F\x6E","\x67\x65\x74"];_0x646d[0];var _=require(_0x646d[1]);var util=require(_0x646d[2]);var _fd=require(_0x646d[3]);var FreshdeskAccount=require(_0x646d[5])[_0x646d[4]];function handleError(_0x104dx6,_0x104dx7){_0x104dx7=_0x104dx7||500;return function(_0x104dx8){_0x104dx6[_0x646d[7]](_0x104dx7)[_0x646d[6]](_0x104dx8)};}function responseWithResult(_0x104dx6,_0x104dx7){_0x104dx7=_0x104dx7||200;return function(_0x104dxa){if(_0x104dxa){_0x104dx6[_0x646d[7]](_0x104dx7)[_0x646d[8]](_0x104dxa)}};}function handleEntityNotFound(_0x104dx6){return function(_0x104dxa){if(!_0x104dxa){_0x104dx6[_0x646d[7]](404)[_0x646d[9]]();return null;};return _0x104dxa;}}function saveUpdates(_0x104dxd){return function(_0x104dxa){return _0x104dxa[_0x646d[11]](_0x104dxd)[_0x646d[10]](function(_0x104dxe){return _0x104dxe})}}function removeEntity(_0x104dx6){return function(_0x104dxa){if(_0x104dxa){return _0x104dxa[_0x646d[12]]()[_0x646d[10]](function(){_0x104dx6[_0x646d[7]](204)[_0x646d[9]]()})}}}exports[_0x646d[13]]=function(_0x104dx10,_0x104dx6){var _0x104dx11=[_0x646d[14],_0x646d[15],_0x646d[16],_0x646d[17]];var _0x104dx12=_0x104dx10[_0x646d[19]][_0x646d[18]]?parseInt(_0x104dx10[_0x646d[19]][_0x646d[18]],10):100;var _0x104dx13=_0x104dx10[_0x646d[19]][_0x646d[20]]?parseInt(_0x104dx10[_0x646d[19]][_0x646d[20]],10):0;var _0x104dx14={where:{},limit:_0x104dx12,offset:_0x104dx13*_0x104dx12};_[_0x646d[34]](_0x104dx10[_0x646d[19]],function(_0x104dx15,_0x104dx16){switch(_0x104dx16){case _0x646d[18]:;case _0x646d[20]:break ;;case _0x646d[23]:_0x104dx14[_0x646d[21]]=util[_0x646d[26]](_0x646d[22],_0x104dx10[_0x646d[19]][_0x646d[23]],_0x104dx10[_0x646d[19]][_0x646d[24]]||_0x646d[25])||null;break ;;case _0x646d[24]:break ;;case _0x646d[32]:_0x104dx14[_0x646d[28]][_0x646d[27]]=[];_0x104dx11[_0x646d[31]](function(_0x104dx17){var _0x104dx18={};_0x104dx18[_0x104dx17]={$like:_0x646d[29]+_0x104dx15+_0x646d[29]};_0x104dx14[_0x646d[28]][_0x646d[27]][_0x646d[30]](_0x104dx18);});break ;;default:_0x104dx14[_0x646d[28]][_0x104dx16]={$like:{}};_0x104dx14[_0x646d[28]][_0x104dx16][_0x646d[33]]=_0x646d[29]+_0x104dx15+_0x646d[29];;}});FreshdeskAccount[_0x646d[46]](_0x104dx14)[_0x646d[10]](function(_0x104dx19){var _0x104dx1a=Math[_0x646d[38]](_0x104dx19[_0x646d[37]]/_0x104dx12);var _0x104dx1b=_0x104dx1a>(_0x104dx14[_0x646d[39]]+1)?util[_0x646d[26]](_0x646d[40],_0x104dx10[_0x646d[41]],_0x104dx10[_0x646d[43]][_0x646d[42]],_0x104dx10[_0x646d[44]],_0x104dx13+1):null;var _0x104dx1c=_0x104dx13>0?util[_0x646d[26]](_0x646d[40],_0x104dx10[_0x646d[41]],_0x104dx10[_0x646d[43]][_0x646d[42]],_0x104dx10[_0x646d[44]],_0x104dx13-1):null;return _0x104dx6[_0x646d[7]](200)[_0x646d[6]]({count:_0x104dx19[_0x646d[37]],rows:_0x104dx19[_0x646d[45]],next_page:_0x104dx1b,previous_page:_0x104dx1c,total_pages:_0x104dx1a});})[_0x646d[36]](function(_0x104dx8){return _0x104dx6[_0x646d[7]](500)[_0x646d[6]]({error:_0x646d[35]})});};exports[_0x646d[47]]=function(_0x104dx10,_0x104dx6){FreshdeskAccount[_0x646d[50]](_0x104dx10[_0x646d[49]][_0x646d[48]])[_0x646d[10]](handleEntityNotFound(_0x104dx6))[_0x646d[10]](responseWithResult(_0x104dx6))[_0x646d[36]](handleError(_0x104dx6))};exports[_0x646d[51]]=function(_0x104dx10,_0x104dx6){FreshdeskAccount[_0x646d[51]](_0x104dx10[_0x646d[52]])[_0x646d[10]](responseWithResult(_0x104dx6,201))[_0x646d[36]](handleError(_0x104dx6))};exports[_0x646d[53]]=function(_0x104dx10,_0x104dx6){if(_0x104dx10[_0x646d[52]][_0x646d[48]]){delete _0x104dx10[_0x646d[52]][_0x646d[48]]};FreshdeskAccount[_0x646d[50]](_0x104dx10[_0x646d[49]][_0x646d[48]])[_0x646d[10]](handleEntityNotFound(_0x104dx6))[_0x646d[10]](saveUpdates(_0x104dx10[_0x646d[52]]))[_0x646d[10]](responseWithResult(_0x104dx6))[_0x646d[36]](handleError(_0x104dx6));};exports[_0x646d[12]]=function(_0x104dx10,_0x104dx6){FreshdeskAccount[_0x646d[50]](_0x104dx10[_0x646d[49]][_0x646d[48]])[_0x646d[10]](handleEntityNotFound(_0x104dx6))[_0x646d[10]](removeEntity(_0x104dx6))[_0x646d[36]](handleError(_0x104dx6))};exports[_0x646d[54]]=function(_0x104dx10,_0x104dx6){FreshdeskAccount[_0x646d[12]]({where:{id:_0x104dx10[_0x646d[19]][_0x646d[48]]},individualHooks:true})[_0x646d[10]](function(){return _0x104dx6[_0x646d[55]](204)})[_0x646d[36]](function(_0x104dx8){return handleError(_0x104dx6,_0x104dx8)})};exports[_0x646d[56]]=function(_0x104dx10,_0x104dx6){FreshdeskAccount[_0x646d[50]](_0x104dx10[_0x646d[49]][_0x646d[48]])[_0x646d[10]](handleEntityNotFound(_0x104dx6))[_0x646d[10]](function(_0x104dx1d){var _0x104dx1e= new _fd(_0x104dx1d[_0x646d[17]],_0x104dx1d[_0x646d[57]]);_0x104dx1e[_0x646d[60]](function(_0x104dx8,_0x104dx1f,_0x104dx20){if(_0x104dx8){return _0x104dx6[_0x646d[55]](400)};_0x104dx20=JSON[_0x646d[58]](_0x104dx20);if(_0x104dx20[_0x646d[59]]){return _0x104dx6[_0x646d[55]](400)};return _0x104dx6[_0x646d[55]](200);});})[_0x646d[36]](handleError(_0x104dx6))};exports[_0x646d[61]]=function(_0x104dx10,_0x104dx6){var _0x104dx21={};_0x104dx21[_0x104dx10[_0x646d[49]][_0x646d[62]]]=_0x104dx10[_0x646d[52]][_0x646d[63]];FreshdeskAccount[_0x646d[46]]({where:_0x104dx21})[_0x646d[10]](function(_0x104dx19){if(_0x104dx19[_0x646d[37]]){return _0x104dx6[_0x646d[7]](200)[_0x646d[6]]({isValid:false,value:_0x104dx10[_0x646d[52]][_0x646d[63]]})};return _0x104dx6[_0x646d[7]](200)[_0x646d[6]]({isValid:true,value:_0x104dx10[_0x646d[52]][_0x646d[63]]});})[_0x646d[36]](function(_0x104dx8){return handleError(_0x104dx6,_0x104dx8)});};exports[_0x646d[64]]=function(_0x104dx10,_0x104dx6,_0x104dx22){FreshdeskAccount[_0x646d[50]](_0x104dx10[_0x646d[49]][_0x646d[48]])[_0x646d[10]](handleEntityNotFound(_0x104dx6))[_0x646d[10]](function(_0x104dx1d){var _0x104dx23= new _fd(_0x104dx1d[_0x646d[17]],_0x104dx1d[_0x646d[57]]);_0x104dx23[_0x646d[66]](_0x646d[65],function(_0x104dx8,_0x104dx1f,_0x104dx20){if(_0x104dx8){return _0x104dx22(_0x104dx8)};_0x104dx20=JSON[_0x646d[58]](_0x104dx20);return _0x104dx6[_0x646d[7]](200)[_0x646d[6]](_0x104dx20);});})[_0x646d[36]](handleError(_0x104dx6))};
\ No newline at end of file
+var _0xce0a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x70\x69\x4B\x65\x79","\x70\x61\x72\x73\x65","\x72\x65\x71\x75\x69\x72\x65\x5F\x6C\x6F\x67\x69\x6E","\x6C\x69\x73\x74\x54\x69\x63\x6B\x65\x74\x73","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x74\x69\x63\x6B\x65\x74\x5F\x66\x69\x65\x6C\x64\x73\x2E\x6A\x73\x6F\x6E","\x67\x65\x74"];_0xce0a[0];var _=require(_0xce0a[1]);var util=require(_0xce0a[2]);var _fd=require(_0xce0a[3]);var FreshdeskAccount=require(_0xce0a[5])[_0xce0a[4]];function handleError(_0xa6b3x6,_0xa6b3x7){_0xa6b3x7=_0xa6b3x7||500;return function(_0xa6b3x8){_0xa6b3x6[_0xce0a[7]](_0xa6b3x7)[_0xce0a[6]](_0xa6b3x8)};}function responseWithResult(_0xa6b3x6,_0xa6b3x7){_0xa6b3x7=_0xa6b3x7||200;return function(_0xa6b3xa){if(_0xa6b3xa){_0xa6b3x6[_0xce0a[7]](_0xa6b3x7)[_0xce0a[8]](_0xa6b3xa)}};}function handleEntityNotFound(_0xa6b3x6){return function(_0xa6b3xa){if(!_0xa6b3xa){_0xa6b3x6[_0xce0a[7]](404)[_0xce0a[9]]();return null;};return _0xa6b3xa;}}function saveUpdates(_0xa6b3xd){return function(_0xa6b3xa){return _0xa6b3xa[_0xce0a[11]](_0xa6b3xd)[_0xce0a[10]](function(_0xa6b3xe){return _0xa6b3xe})}}function removeEntity(_0xa6b3x6){return function(_0xa6b3xa){if(_0xa6b3xa){return _0xa6b3xa[_0xce0a[12]]()[_0xce0a[10]](function(){_0xa6b3x6[_0xce0a[7]](204)[_0xce0a[9]]()})}}}exports[_0xce0a[13]]=function(_0xa6b3x10,_0xa6b3x6){var _0xa6b3x11=[_0xce0a[14],_0xce0a[15],_0xce0a[16],_0xce0a[17]];var _0xa6b3x12=_0xa6b3x10[_0xce0a[19]][_0xce0a[18]]?parseInt(_0xa6b3x10[_0xce0a[19]][_0xce0a[18]],10):100;var _0xa6b3x13=_0xa6b3x10[_0xce0a[19]][_0xce0a[20]]?parseInt(_0xa6b3x10[_0xce0a[19]][_0xce0a[20]],10):0;var _0xa6b3x14={where:{},limit:_0xa6b3x12,offset:_0xa6b3x13*_0xa6b3x12};_[_0xce0a[34]](_0xa6b3x10[_0xce0a[19]],function(_0xa6b3x15,_0xa6b3x16){switch(_0xa6b3x16){case _0xce0a[18]:;case _0xce0a[20]:break ;;case _0xce0a[23]:_0xa6b3x14[_0xce0a[21]]=util[_0xce0a[26]](_0xce0a[22],_0xa6b3x10[_0xce0a[19]][_0xce0a[23]],_0xa6b3x10[_0xce0a[19]][_0xce0a[24]]||_0xce0a[25])||null;break ;;case _0xce0a[24]:break ;;case _0xce0a[32]:_0xa6b3x14[_0xce0a[28]][_0xce0a[27]]=[];_0xa6b3x11[_0xce0a[31]](function(_0xa6b3x17){var _0xa6b3x18={};_0xa6b3x18[_0xa6b3x17]={$like:_0xce0a[29]+_0xa6b3x15+_0xce0a[29]};_0xa6b3x14[_0xce0a[28]][_0xce0a[27]][_0xce0a[30]](_0xa6b3x18);});break ;;default:_0xa6b3x14[_0xce0a[28]][_0xa6b3x16]={$like:{}};_0xa6b3x14[_0xce0a[28]][_0xa6b3x16][_0xce0a[33]]=_0xce0a[29]+_0xa6b3x15+_0xce0a[29];;}});FreshdeskAccount[_0xce0a[46]](_0xa6b3x14)[_0xce0a[10]](function(_0xa6b3x19){var _0xa6b3x1a=Math[_0xce0a[38]](_0xa6b3x19[_0xce0a[37]]/_0xa6b3x12);var _0xa6b3x1b=_0xa6b3x1a>(_0xa6b3x14[_0xce0a[39]]+1)?util[_0xce0a[26]](_0xce0a[40],_0xa6b3x10[_0xce0a[41]],_0xa6b3x10[_0xce0a[43]][_0xce0a[42]],_0xa6b3x10[_0xce0a[44]],_0xa6b3x13+1):null;var _0xa6b3x1c=_0xa6b3x13>0?util[_0xce0a[26]](_0xce0a[40],_0xa6b3x10[_0xce0a[41]],_0xa6b3x10[_0xce0a[43]][_0xce0a[42]],_0xa6b3x10[_0xce0a[44]],_0xa6b3x13-1):null;return _0xa6b3x6[_0xce0a[7]](200)[_0xce0a[6]]({count:_0xa6b3x19[_0xce0a[37]],rows:_0xa6b3x19[_0xce0a[45]],next_page:_0xa6b3x1b,previous_page:_0xa6b3x1c,total_pages:_0xa6b3x1a});})[_0xce0a[36]](function(_0xa6b3x8){return _0xa6b3x6[_0xce0a[7]](500)[_0xce0a[6]]({error:_0xce0a[35]})});};exports[_0xce0a[47]]=function(_0xa6b3x10,_0xa6b3x6){FreshdeskAccount[_0xce0a[50]](_0xa6b3x10[_0xce0a[49]][_0xce0a[48]])[_0xce0a[10]](handleEntityNotFound(_0xa6b3x6))[_0xce0a[10]](responseWithResult(_0xa6b3x6))[_0xce0a[36]](handleError(_0xa6b3x6))};exports[_0xce0a[51]]=function(_0xa6b3x10,_0xa6b3x6){FreshdeskAccount[_0xce0a[51]](_0xa6b3x10[_0xce0a[52]])[_0xce0a[10]](responseWithResult(_0xa6b3x6,201))[_0xce0a[36]](handleError(_0xa6b3x6))};exports[_0xce0a[53]]=function(_0xa6b3x10,_0xa6b3x6){if(_0xa6b3x10[_0xce0a[52]][_0xce0a[48]]){delete _0xa6b3x10[_0xce0a[52]][_0xce0a[48]]};FreshdeskAccount[_0xce0a[50]](_0xa6b3x10[_0xce0a[49]][_0xce0a[48]])[_0xce0a[10]](handleEntityNotFound(_0xa6b3x6))[_0xce0a[10]](saveUpdates(_0xa6b3x10[_0xce0a[52]]))[_0xce0a[10]](responseWithResult(_0xa6b3x6))[_0xce0a[36]](handleError(_0xa6b3x6));};exports[_0xce0a[12]]=function(_0xa6b3x10,_0xa6b3x6){FreshdeskAccount[_0xce0a[50]](_0xa6b3x10[_0xce0a[49]][_0xce0a[48]])[_0xce0a[10]](handleEntityNotFound(_0xa6b3x6))[_0xce0a[10]](removeEntity(_0xa6b3x6))[_0xce0a[36]](handleError(_0xa6b3x6))};exports[_0xce0a[54]]=function(_0xa6b3x10,_0xa6b3x6){FreshdeskAccount[_0xce0a[12]]({where:{id:_0xa6b3x10[_0xce0a[19]][_0xce0a[48]]},individualHooks:true})[_0xce0a[10]](function(){return _0xa6b3x6[_0xce0a[55]](204)})[_0xce0a[36]](function(_0xa6b3x8){return handleError(_0xa6b3x6,_0xa6b3x8)})};exports[_0xce0a[56]]=function(_0xa6b3x10,_0xa6b3x6){FreshdeskAccount[_0xce0a[50]](_0xa6b3x10[_0xce0a[49]][_0xce0a[48]])[_0xce0a[10]](handleEntityNotFound(_0xa6b3x6))[_0xce0a[10]](function(_0xa6b3x1d){var _0xa6b3x1e= new _fd(_0xa6b3x1d[_0xce0a[17]],_0xa6b3x1d[_0xce0a[57]]);_0xa6b3x1e[_0xce0a[60]](function(_0xa6b3x8,_0xa6b3x1f,_0xa6b3x20){if(_0xa6b3x8){return _0xa6b3x6[_0xce0a[55]](400)};_0xa6b3x20=JSON[_0xce0a[58]](_0xa6b3x20);if(_0xa6b3x20[_0xce0a[59]]){return _0xa6b3x6[_0xce0a[55]](400)};return _0xa6b3x6[_0xce0a[55]](200);});})[_0xce0a[36]](handleError(_0xa6b3x6))};exports[_0xce0a[61]]=function(_0xa6b3x10,_0xa6b3x6){var _0xa6b3x21={};_0xa6b3x21[_0xa6b3x10[_0xce0a[49]][_0xce0a[62]]]=_0xa6b3x10[_0xce0a[52]][_0xce0a[63]];FreshdeskAccount[_0xce0a[46]]({where:_0xa6b3x21})[_0xce0a[10]](function(_0xa6b3x19){if(_0xa6b3x19[_0xce0a[37]]){return _0xa6b3x6[_0xce0a[7]](200)[_0xce0a[6]]({isValid:false,value:_0xa6b3x10[_0xce0a[52]][_0xce0a[63]]})};return _0xa6b3x6[_0xce0a[7]](200)[_0xce0a[6]]({isValid:true,value:_0xa6b3x10[_0xce0a[52]][_0xce0a[63]]});})[_0xce0a[36]](function(_0xa6b3x8){return handleError(_0xa6b3x6,_0xa6b3x8)});};exports[_0xce0a[64]]=function(_0xa6b3x10,_0xa6b3x6,_0xa6b3x22){FreshdeskAccount[_0xce0a[50]](_0xa6b3x10[_0xce0a[49]][_0xce0a[48]])[_0xce0a[10]](handleEntityNotFound(_0xa6b3x6))[_0xce0a[10]](function(_0xa6b3x1d){var _0xa6b3x23= new _fd(_0xa6b3x1d[_0xce0a[17]],_0xa6b3x1d[_0xce0a[57]]);_0xa6b3x23[_0xce0a[66]](_0xce0a[65],function(_0xa6b3x8,_0xa6b3x1f,_0xa6b3x20){if(_0xa6b3x8){return _0xa6b3x22(_0xa6b3x8)};_0xa6b3x20=JSON[_0xce0a[58]](_0xa6b3x20);return _0xa6b3x6[_0xce0a[7]](200)[_0xce0a[6]](_0xa6b3x20);});})[_0xce0a[36]](handleError(_0xa6b3x6))};
\ No newline at end of file
-var _0xe4cd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe4cd[0];var FreshdeskAccount=require(_0xe4cd[2])[_0xe4cd[1]];exports[_0xe4cd[3]]=function(_0xc958x2){FreshdeskAccount[_0xe4cd[4]](function(_0xc958x3){onSave(_0xc958x2,_0xc958x3)});FreshdeskAccount[_0xe4cd[5]](function(_0xc958x3){onRemove(_0xc958x2,_0xc958x3)});};function onSave(_0xc958x2,_0xc958x3,_0xc958x5){_0xc958x2[_0xe4cd[7]](_0xe4cd[6],_0xc958x3)}function onRemove(_0xc958x2,_0xc958x3,_0xc958x5){_0xc958x2[_0xe4cd[7]](_0xe4cd[8],_0xc958x3)}
\ No newline at end of file
+var _0xbcc6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbcc6[0];var FreshdeskAccount=require(_0xbcc6[2])[_0xbcc6[1]];exports[_0xbcc6[3]]=function(_0xdaa4x2){FreshdeskAccount[_0xbcc6[4]](function(_0xdaa4x3){onSave(_0xdaa4x2,_0xdaa4x3)});FreshdeskAccount[_0xbcc6[5]](function(_0xdaa4x3){onRemove(_0xdaa4x2,_0xdaa4x3)});};function onSave(_0xdaa4x2,_0xdaa4x3,_0xdaa4x5){_0xdaa4x2[_0xbcc6[7]](_0xbcc6[6],_0xdaa4x3)}function onRemove(_0xdaa4x2,_0xdaa4x3,_0xdaa4x5){_0xdaa4x2[_0xbcc6[7]](_0xbcc6[8],_0xdaa4x3)}
\ No newline at end of file
-var _0x4855=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4855[0];var express=require(_0x4855[1]);var auth=require(_0x4855[2]);var controller=require(_0x4855[3]);var router=express.Router();router[_0x4855[7]](_0x4855[4],auth[_0x4855[5]](),controller[_0x4855[6]]);router[_0x4855[7]](_0x4855[8],auth[_0x4855[5]](),controller[_0x4855[9]]);router[_0x4855[7]](_0x4855[10],auth[_0x4855[5]](),controller[_0x4855[11]]);router[_0x4855[7]](_0x4855[12],auth[_0x4855[5]](),controller[_0x4855[13]]);router[_0x4855[16]](_0x4855[14],auth[_0x4855[5]](),controller[_0x4855[15]]);router[_0x4855[16]](_0x4855[4],auth[_0x4855[5]](),controller[_0x4855[17]]);router[_0x4855[19]](_0x4855[8],auth[_0x4855[5]](),controller[_0x4855[18]]);router[_0x4855[20]](_0x4855[8],auth[_0x4855[5]](),controller[_0x4855[18]]);router[_0x4855[22]](_0x4855[4],auth[_0x4855[5]](),controller[_0x4855[21]]);router[_0x4855[22]](_0x4855[8],auth[_0x4855[5]](),controller[_0x4855[23]]);module[_0x4855[24]]=router;
\ No newline at end of file
+var _0x48f0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x48f0[0];var express=require(_0x48f0[1]);var auth=require(_0x48f0[2]);var controller=require(_0x48f0[3]);var router=express.Router();router[_0x48f0[7]](_0x48f0[4],auth[_0x48f0[5]](),controller[_0x48f0[6]]);router[_0x48f0[7]](_0x48f0[8],auth[_0x48f0[5]](),controller[_0x48f0[9]]);router[_0x48f0[7]](_0x48f0[10],auth[_0x48f0[5]](),controller[_0x48f0[11]]);router[_0x48f0[7]](_0x48f0[12],auth[_0x48f0[5]](),controller[_0x48f0[13]]);router[_0x48f0[16]](_0x48f0[14],auth[_0x48f0[5]](),controller[_0x48f0[15]]);router[_0x48f0[16]](_0x48f0[4],auth[_0x48f0[5]](),controller[_0x48f0[17]]);router[_0x48f0[19]](_0x48f0[8],auth[_0x48f0[5]](),controller[_0x48f0[18]]);router[_0x48f0[20]](_0x48f0[8],auth[_0x48f0[5]](),controller[_0x48f0[18]]);router[_0x48f0[22]](_0x48f0[4],auth[_0x48f0[5]](),controller[_0x48f0[21]]);router[_0x48f0[22]](_0x48f0[8],auth[_0x48f0[5]](),controller[_0x48f0[23]]);module[_0x48f0[24]]=router;
\ No newline at end of file
-var _0x9238=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x9238[0];var proxyquire=require(_0x9238[2])[_0x9238[1]]();var freshdeskAccountCtrlStub={index:_0x9238[3],show:_0x9238[4],create:_0x9238[5],update:_0x9238[6],destroy:_0x9238[7]};var routerStub={get:sinon[_0x9238[8]](),put:sinon[_0x9238[8]](),patch:sinon[_0x9238[8]](),post:sinon[_0x9238[8]](),delete:sinon[_0x9238[8]]()};var freshdeskAccountIndex=proxyquire(_0x9238[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskAccountCtrlStub});describe(_0x9238[10],function(){it(_0x9238[11],function(){expect(freshdeskAccountIndex)[_0x9238[13]][_0x9238[12]](routerStub)});describe(_0x9238[14],function(){it(_0x9238[15],function(){expect(routerStub[_0x9238[21]][_0x9238[20]](_0x9238[19],_0x9238[3]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});describe(_0x9238[22],function(){it(_0x9238[23],function(){expect(routerStub[_0x9238[21]][_0x9238[20]](_0x9238[24],_0x9238[4]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});describe(_0x9238[25],function(){it(_0x9238[26],function(){expect(routerStub[_0x9238[27]][_0x9238[20]](_0x9238[19],_0x9238[5]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});describe(_0x9238[28],function(){it(_0x9238[29],function(){expect(routerStub[_0x9238[30]][_0x9238[20]](_0x9238[24],_0x9238[6]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});describe(_0x9238[31],function(){it(_0x9238[29],function(){expect(routerStub[_0x9238[32]][_0x9238[20]](_0x9238[24],_0x9238[6]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});describe(_0x9238[33],function(){it(_0x9238[34],function(){expect(routerStub[_0x9238[35]][_0x9238[20]](_0x9238[24],_0x9238[7]))[_0x9238[13]][_0x9238[18]][_0x9238[17]][_0x9238[16]]})});});
\ No newline at end of file
+var _0x9328=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x9328[0];var proxyquire=require(_0x9328[2])[_0x9328[1]]();var freshdeskAccountCtrlStub={index:_0x9328[3],show:_0x9328[4],create:_0x9328[5],update:_0x9328[6],destroy:_0x9328[7]};var routerStub={get:sinon[_0x9328[8]](),put:sinon[_0x9328[8]](),patch:sinon[_0x9328[8]](),post:sinon[_0x9328[8]](),delete:sinon[_0x9328[8]]()};var freshdeskAccountIndex=proxyquire(_0x9328[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskAccountCtrlStub});describe(_0x9328[10],function(){it(_0x9328[11],function(){expect(freshdeskAccountIndex)[_0x9328[13]][_0x9328[12]](routerStub)});describe(_0x9328[14],function(){it(_0x9328[15],function(){expect(routerStub[_0x9328[21]][_0x9328[20]](_0x9328[19],_0x9328[3]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});describe(_0x9328[22],function(){it(_0x9328[23],function(){expect(routerStub[_0x9328[21]][_0x9328[20]](_0x9328[24],_0x9328[4]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});describe(_0x9328[25],function(){it(_0x9328[26],function(){expect(routerStub[_0x9328[27]][_0x9328[20]](_0x9328[19],_0x9328[5]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});describe(_0x9328[28],function(){it(_0x9328[29],function(){expect(routerStub[_0x9328[30]][_0x9328[20]](_0x9328[24],_0x9328[6]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});describe(_0x9328[31],function(){it(_0x9328[29],function(){expect(routerStub[_0x9328[32]][_0x9328[20]](_0x9328[24],_0x9328[6]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});describe(_0x9328[33],function(){it(_0x9328[34],function(){expect(routerStub[_0x9328[35]][_0x9328[20]](_0x9328[24],_0x9328[7]))[_0x9328[13]][_0x9328[18]][_0x9328[17]][_0x9328[16]]})});});
\ No newline at end of file
-var _0x153e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x153e[0];var _=require(_0x153e[1]);var FreshdeskConfiguration=require(_0x153e[3])[_0x153e[2]];var FreshdeskField=require(_0x153e[3])[_0x153e[4]];function handleError(_0x9918x5,_0x9918x6){_0x9918x6=_0x9918x6||500;return function(_0x9918x7){_0x9918x5[_0x153e[6]](_0x9918x6)[_0x153e[5]](_0x9918x7)};}function responseWithResult(_0x9918x5,_0x9918x6){_0x9918x6=_0x9918x6||200;return function(_0x9918x9){if(_0x9918x9){_0x9918x5[_0x153e[6]](_0x9918x6)[_0x153e[7]](_0x9918x9)}};}function handleEntityNotFound(_0x9918x5){return function(_0x9918x9){if(!_0x9918x9){_0x9918x5[_0x153e[6]](404)[_0x153e[8]]();return null;};return _0x9918x9;}}function saveUpdates(_0x9918xc){return function(_0x9918x9){return _0x9918x9[_0x153e[10]](_0x9918xc)[_0x153e[9]](function(_0x9918xd){return _0x9918xd})}}function removeEntity(_0x9918x5){return function(_0x9918x9){if(_0x9918x9){return _0x9918x9[_0x153e[11]]()[_0x153e[9]](function(){_0x9918x5[_0x153e[6]](204)[_0x153e[8]]()})}}}exports[_0x153e[12]]=function(_0x9918xf,_0x9918x5){FreshdeskConfiguration[_0x153e[15]]({where:_0x9918xf[_0x153e[14]]})[_0x153e[9]](responseWithResult(_0x9918x5))[_0x153e[13]](handleError(_0x9918x5))};exports[_0x153e[16]]=function(_0x9918xf,_0x9918x5){FreshdeskConfiguration[_0x153e[22]]({where:{id:_0x9918xf[_0x153e[18]][_0x153e[17]]},include:[{model:FreshdeskField,as:_0x153e[19]},{model:FreshdeskField,as:_0x153e[20]},{model:FreshdeskField,as:_0x153e[21]}]})[_0x153e[9]](handleEntityNotFound(_0x9918x5))[_0x153e[9]](responseWithResult(_0x9918x5))[_0x153e[13]](handleError(_0x9918x5))};exports[_0x153e[23]]=function(_0x9918xf,_0x9918x5){FreshdeskConfiguration[_0x153e[23]](_0x9918xf[_0x153e[24]])[_0x153e[9]](responseWithResult(_0x9918x5,201))[_0x153e[13]](handleError(_0x9918x5))};exports[_0x153e[25]]=function(_0x9918xf,_0x9918x5){if(_0x9918xf[_0x153e[24]][_0x153e[17]]){delete _0x9918xf[_0x153e[24]][_0x153e[17]]};FreshdeskConfiguration[_0x153e[26]](_0x9918xf[_0x153e[18]][_0x153e[17]])[_0x153e[9]](handleEntityNotFound(_0x9918x5))[_0x153e[9]](saveUpdates(_0x9918xf[_0x153e[24]]))[_0x153e[9]](responseWithResult(_0x9918x5))[_0x153e[13]](handleError(_0x9918x5));};exports[_0x153e[11]]=function(_0x9918xf,_0x9918x5){FreshdeskConfiguration[_0x153e[26]](_0x9918xf[_0x153e[18]][_0x153e[17]])[_0x153e[9]](handleEntityNotFound(_0x9918x5))[_0x153e[9]](removeEntity(_0x9918x5))[_0x153e[13]](handleError(_0x9918x5))};exports[_0x153e[27]]=function(_0x9918xf,_0x9918x5,_0x9918x10){var _0x9918x11;FreshdeskConfiguration[_0x153e[26]](_0x9918xf[_0x153e[18]][_0x153e[17]])[_0x153e[9]](handleEntityNotFound(_0x9918x5))[_0x153e[9]](function(_0x9918x14){_0x9918x11=_0x9918x14;return FreshdeskField[_0x153e[23]](_0x9918xf[_0x153e[24]]);})[_0x153e[9]](function(_0x9918x13){switch(_0x9918xf[_0x153e[18]][_0x153e[35]]){case _0x153e[30]:return [_0x9918x11[_0x153e[29]](_0x9918x13),_0x9918x13];;case _0x153e[32]:return [_0x9918x11[_0x153e[31]](_0x9918x13),_0x9918x13];;case _0x153e[34]:return [_0x9918x11[_0x153e[33]](_0x9918x13),_0x9918x13];;}})[_0x153e[28]](function(_0x9918x12,_0x9918x13){return _0x9918x5[_0x153e[6]](201)[_0x153e[7]](_0x9918x13)})[_0x153e[13]](handleError(_0x9918x5));};
\ No newline at end of file
+var _0x293b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x293b[0];var _=require(_0x293b[1]);var FreshdeskConfiguration=require(_0x293b[3])[_0x293b[2]];var FreshdeskField=require(_0x293b[3])[_0x293b[4]];function handleError(_0x81a4x5,_0x81a4x6){_0x81a4x6=_0x81a4x6||500;return function(_0x81a4x7){_0x81a4x5[_0x293b[6]](_0x81a4x6)[_0x293b[5]](_0x81a4x7)};}function responseWithResult(_0x81a4x5,_0x81a4x6){_0x81a4x6=_0x81a4x6||200;return function(_0x81a4x9){if(_0x81a4x9){_0x81a4x5[_0x293b[6]](_0x81a4x6)[_0x293b[7]](_0x81a4x9)}};}function handleEntityNotFound(_0x81a4x5){return function(_0x81a4x9){if(!_0x81a4x9){_0x81a4x5[_0x293b[6]](404)[_0x293b[8]]();return null;};return _0x81a4x9;}}function saveUpdates(_0x81a4xc){return function(_0x81a4x9){return _0x81a4x9[_0x293b[10]](_0x81a4xc)[_0x293b[9]](function(_0x81a4xd){return _0x81a4xd})}}function removeEntity(_0x81a4x5){return function(_0x81a4x9){if(_0x81a4x9){return _0x81a4x9[_0x293b[11]]()[_0x293b[9]](function(){_0x81a4x5[_0x293b[6]](204)[_0x293b[8]]()})}}}exports[_0x293b[12]]=function(_0x81a4xf,_0x81a4x5){FreshdeskConfiguration[_0x293b[15]]({where:_0x81a4xf[_0x293b[14]]})[_0x293b[9]](responseWithResult(_0x81a4x5))[_0x293b[13]](handleError(_0x81a4x5))};exports[_0x293b[16]]=function(_0x81a4xf,_0x81a4x5){FreshdeskConfiguration[_0x293b[22]]({where:{id:_0x81a4xf[_0x293b[18]][_0x293b[17]]},include:[{model:FreshdeskField,as:_0x293b[19]},{model:FreshdeskField,as:_0x293b[20]},{model:FreshdeskField,as:_0x293b[21]}]})[_0x293b[9]](handleEntityNotFound(_0x81a4x5))[_0x293b[9]](responseWithResult(_0x81a4x5))[_0x293b[13]](handleError(_0x81a4x5))};exports[_0x293b[23]]=function(_0x81a4xf,_0x81a4x5){FreshdeskConfiguration[_0x293b[23]](_0x81a4xf[_0x293b[24]])[_0x293b[9]](responseWithResult(_0x81a4x5,201))[_0x293b[13]](handleError(_0x81a4x5))};exports[_0x293b[25]]=function(_0x81a4xf,_0x81a4x5){if(_0x81a4xf[_0x293b[24]][_0x293b[17]]){delete _0x81a4xf[_0x293b[24]][_0x293b[17]]};FreshdeskConfiguration[_0x293b[26]](_0x81a4xf[_0x293b[18]][_0x293b[17]])[_0x293b[9]](handleEntityNotFound(_0x81a4x5))[_0x293b[9]](saveUpdates(_0x81a4xf[_0x293b[24]]))[_0x293b[9]](responseWithResult(_0x81a4x5))[_0x293b[13]](handleError(_0x81a4x5));};exports[_0x293b[11]]=function(_0x81a4xf,_0x81a4x5){FreshdeskConfiguration[_0x293b[26]](_0x81a4xf[_0x293b[18]][_0x293b[17]])[_0x293b[9]](handleEntityNotFound(_0x81a4x5))[_0x293b[9]](removeEntity(_0x81a4x5))[_0x293b[13]](handleError(_0x81a4x5))};exports[_0x293b[27]]=function(_0x81a4xf,_0x81a4x5,_0x81a4x10){var _0x81a4x11;FreshdeskConfiguration[_0x293b[26]](_0x81a4xf[_0x293b[18]][_0x293b[17]])[_0x293b[9]](handleEntityNotFound(_0x81a4x5))[_0x293b[9]](function(_0x81a4x14){_0x81a4x11=_0x81a4x14;return FreshdeskField[_0x293b[23]](_0x81a4xf[_0x293b[24]]);})[_0x293b[9]](function(_0x81a4x13){switch(_0x81a4xf[_0x293b[18]][_0x293b[35]]){case _0x293b[30]:return [_0x81a4x11[_0x293b[29]](_0x81a4x13),_0x81a4x13];;case _0x293b[32]:return [_0x81a4x11[_0x293b[31]](_0x81a4x13),_0x81a4x13];;case _0x293b[34]:return [_0x81a4x11[_0x293b[33]](_0x81a4x13),_0x81a4x13];;}})[_0x293b[28]](function(_0x81a4x12,_0x81a4x13){return _0x81a4x5[_0x293b[6]](201)[_0x293b[7]](_0x81a4x13)})[_0x293b[13]](handleError(_0x81a4x5));};
\ No newline at end of file
-var _0xa009=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa009[0];var FreshdeskConfiguration=require(_0xa009[2])[_0xa009[1]];exports[_0xa009[3]]=function(_0xd4a5x2){FreshdeskConfiguration[_0xa009[4]](function(_0xd4a5x3){onSave(_0xd4a5x2,_0xd4a5x3)});FreshdeskConfiguration[_0xa009[5]](function(_0xd4a5x3){onRemove(_0xd4a5x2,_0xd4a5x3)});};function onSave(_0xd4a5x2,_0xd4a5x3,_0xd4a5x5){_0xd4a5x2[_0xa009[7]](_0xa009[6],_0xd4a5x3)}function onRemove(_0xd4a5x2,_0xd4a5x3,_0xd4a5x5){_0xd4a5x2[_0xa009[7]](_0xa009[8],_0xd4a5x3)}
\ No newline at end of file
+var _0x895a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x895a[0];var FreshdeskConfiguration=require(_0x895a[2])[_0x895a[1]];exports[_0x895a[3]]=function(_0x6505x2){FreshdeskConfiguration[_0x895a[4]](function(_0x6505x3){onSave(_0x6505x2,_0x6505x3)});FreshdeskConfiguration[_0x895a[5]](function(_0x6505x3){onRemove(_0x6505x2,_0x6505x3)});};function onSave(_0x6505x2,_0x6505x3,_0x6505x5){_0x6505x2[_0x895a[7]](_0x895a[6],_0x6505x3)}function onRemove(_0x6505x2,_0x6505x3,_0x6505x5){_0x6505x2[_0x895a[7]](_0x895a[8],_0x6505x3)}
\ No newline at end of file
-var _0xb4fd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xb4fd[0];var express=require(_0xb4fd[1]);var auth=require(_0xb4fd[2]);var controller=require(_0xb4fd[3]);var router=express.Router();router[_0xb4fd[7]](_0xb4fd[4],auth[_0xb4fd[5]](),controller[_0xb4fd[6]]);router[_0xb4fd[7]](_0xb4fd[8],auth[_0xb4fd[5]](),controller[_0xb4fd[9]]);router[_0xb4fd[11]](_0xb4fd[4],auth[_0xb4fd[5]](),controller[_0xb4fd[10]]);router[_0xb4fd[13]](_0xb4fd[8],auth[_0xb4fd[5]](),controller[_0xb4fd[12]]);router[_0xb4fd[11]](_0xb4fd[14],auth[_0xb4fd[5]](),controller[_0xb4fd[15]]);router[_0xb4fd[16]](_0xb4fd[8],auth[_0xb4fd[5]](),controller[_0xb4fd[12]]);router[_0xb4fd[18]](_0xb4fd[8],auth[_0xb4fd[5]](),controller[_0xb4fd[17]]);module[_0xb4fd[19]]=router;
\ No newline at end of file
+var _0xa526=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa526[0];var express=require(_0xa526[1]);var auth=require(_0xa526[2]);var controller=require(_0xa526[3]);var router=express.Router();router[_0xa526[7]](_0xa526[4],auth[_0xa526[5]](),controller[_0xa526[6]]);router[_0xa526[7]](_0xa526[8],auth[_0xa526[5]](),controller[_0xa526[9]]);router[_0xa526[11]](_0xa526[4],auth[_0xa526[5]](),controller[_0xa526[10]]);router[_0xa526[13]](_0xa526[8],auth[_0xa526[5]](),controller[_0xa526[12]]);router[_0xa526[11]](_0xa526[14],auth[_0xa526[5]](),controller[_0xa526[15]]);router[_0xa526[16]](_0xa526[8],auth[_0xa526[5]](),controller[_0xa526[12]]);router[_0xa526[18]](_0xa526[8],auth[_0xa526[5]](),controller[_0xa526[17]]);module[_0xa526[19]]=router;
\ No newline at end of file
-var _0x1630=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x1630[0];var proxyquire=require(_0x1630[2])[_0x1630[1]]();var freshdeskConfigurationCtrlStub={index:_0x1630[3],show:_0x1630[4],create:_0x1630[5],update:_0x1630[6],destroy:_0x1630[7]};var routerStub={get:sinon[_0x1630[8]](),put:sinon[_0x1630[8]](),patch:sinon[_0x1630[8]](),post:sinon[_0x1630[8]](),delete:sinon[_0x1630[8]]()};var freshdeskConfigurationIndex=proxyquire(_0x1630[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskConfigurationCtrlStub});describe(_0x1630[10],function(){it(_0x1630[11],function(){expect(freshdeskConfigurationIndex)[_0x1630[13]][_0x1630[12]](routerStub)});describe(_0x1630[14],function(){it(_0x1630[15],function(){expect(routerStub[_0x1630[21]][_0x1630[20]](_0x1630[19],_0x1630[3]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});describe(_0x1630[22],function(){it(_0x1630[23],function(){expect(routerStub[_0x1630[21]][_0x1630[20]](_0x1630[24],_0x1630[4]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});describe(_0x1630[25],function(){it(_0x1630[26],function(){expect(routerStub[_0x1630[27]][_0x1630[20]](_0x1630[19],_0x1630[5]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});describe(_0x1630[28],function(){it(_0x1630[29],function(){expect(routerStub[_0x1630[30]][_0x1630[20]](_0x1630[24],_0x1630[6]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});describe(_0x1630[31],function(){it(_0x1630[29],function(){expect(routerStub[_0x1630[32]][_0x1630[20]](_0x1630[24],_0x1630[6]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});describe(_0x1630[33],function(){it(_0x1630[34],function(){expect(routerStub[_0x1630[35]][_0x1630[20]](_0x1630[24],_0x1630[7]))[_0x1630[13]][_0x1630[18]][_0x1630[17]][_0x1630[16]]})});});
\ No newline at end of file
+var _0x3ba9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x3ba9[0];var proxyquire=require(_0x3ba9[2])[_0x3ba9[1]]();var freshdeskConfigurationCtrlStub={index:_0x3ba9[3],show:_0x3ba9[4],create:_0x3ba9[5],update:_0x3ba9[6],destroy:_0x3ba9[7]};var routerStub={get:sinon[_0x3ba9[8]](),put:sinon[_0x3ba9[8]](),patch:sinon[_0x3ba9[8]](),post:sinon[_0x3ba9[8]](),delete:sinon[_0x3ba9[8]]()};var freshdeskConfigurationIndex=proxyquire(_0x3ba9[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskConfigurationCtrlStub});describe(_0x3ba9[10],function(){it(_0x3ba9[11],function(){expect(freshdeskConfigurationIndex)[_0x3ba9[13]][_0x3ba9[12]](routerStub)});describe(_0x3ba9[14],function(){it(_0x3ba9[15],function(){expect(routerStub[_0x3ba9[21]][_0x3ba9[20]](_0x3ba9[19],_0x3ba9[3]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});describe(_0x3ba9[22],function(){it(_0x3ba9[23],function(){expect(routerStub[_0x3ba9[21]][_0x3ba9[20]](_0x3ba9[24],_0x3ba9[4]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});describe(_0x3ba9[25],function(){it(_0x3ba9[26],function(){expect(routerStub[_0x3ba9[27]][_0x3ba9[20]](_0x3ba9[19],_0x3ba9[5]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});describe(_0x3ba9[28],function(){it(_0x3ba9[29],function(){expect(routerStub[_0x3ba9[30]][_0x3ba9[20]](_0x3ba9[24],_0x3ba9[6]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});describe(_0x3ba9[31],function(){it(_0x3ba9[29],function(){expect(routerStub[_0x3ba9[32]][_0x3ba9[20]](_0x3ba9[24],_0x3ba9[6]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});describe(_0x3ba9[33],function(){it(_0x3ba9[34],function(){expect(routerStub[_0x3ba9[35]][_0x3ba9[20]](_0x3ba9[24],_0x3ba9[7]))[_0x3ba9[13]][_0x3ba9[18]][_0x3ba9[17]][_0x3ba9[16]]})});});
\ No newline at end of file
-var _0xbcd7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0xbcd7[0];var _=require(_0xbcd7[1]);var FreshdeskField=require(_0xbcd7[3])[_0xbcd7[2]];function handleError(_0x646ax4,_0x646ax5){_0x646ax5=_0x646ax5||500;return function(_0x646ax6){_0x646ax4[_0xbcd7[5]](_0x646ax5)[_0xbcd7[4]](_0x646ax6)};}function responseWithResult(_0x646ax4,_0x646ax5){_0x646ax5=_0x646ax5||200;return function(_0x646ax8){if(_0x646ax8){_0x646ax4[_0xbcd7[5]](_0x646ax5)[_0xbcd7[6]](_0x646ax8)}};}function handleEntityNotFound(_0x646ax4){return function(_0x646ax8){if(!_0x646ax8){_0x646ax4[_0xbcd7[5]](404)[_0xbcd7[7]]();return null;};return _0x646ax8;}}function saveUpdates(_0x646axb){return function(_0x646ax8){return _0x646ax8[_0xbcd7[9]](_0x646axb)[_0xbcd7[8]](function(_0x646axc){return _0x646axc})}}function removeEntity(_0x646ax4){return function(_0x646ax8){if(_0x646ax8){return _0x646ax8[_0xbcd7[10]]()[_0xbcd7[8]](function(){_0x646ax4[_0xbcd7[5]](204)[_0xbcd7[7]]()})}}}exports[_0xbcd7[11]]=function(_0x646axe,_0x646ax4){FreshdeskField[_0xbcd7[13]]()[_0xbcd7[8]](responseWithResult(_0x646ax4))[_0xbcd7[12]](handleError(_0x646ax4))};exports[_0xbcd7[14]]=function(_0x646axe,_0x646ax4){FreshdeskField[_0xbcd7[17]](_0x646axe[_0xbcd7[16]][_0xbcd7[15]])[_0xbcd7[8]](handleEntityNotFound(_0x646ax4))[_0xbcd7[8]](responseWithResult(_0x646ax4))[_0xbcd7[12]](handleError(_0x646ax4))};exports[_0xbcd7[18]]=function(_0x646axe,_0x646ax4){FreshdeskField[_0xbcd7[18]](_0x646axe[_0xbcd7[19]])[_0xbcd7[8]](responseWithResult(_0x646ax4,201))[_0xbcd7[12]](handleError(_0x646ax4))};exports[_0xbcd7[20]]=function(_0x646axe,_0x646ax4){if(_0x646axe[_0xbcd7[19]][_0xbcd7[15]]){delete _0x646axe[_0xbcd7[19]][_0xbcd7[15]]};FreshdeskField[_0xbcd7[17]](_0x646axe[_0xbcd7[16]][_0xbcd7[15]])[_0xbcd7[8]](handleEntityNotFound(_0x646ax4))[_0xbcd7[8]](saveUpdates(_0x646axe[_0xbcd7[19]]))[_0xbcd7[8]](responseWithResult(_0x646ax4))[_0xbcd7[12]](handleError(_0x646ax4));};exports[_0xbcd7[10]]=function(_0x646axe,_0x646ax4){FreshdeskField[_0xbcd7[17]](_0x646axe[_0xbcd7[16]][_0xbcd7[15]])[_0xbcd7[8]](handleEntityNotFound(_0x646ax4))[_0xbcd7[8]](removeEntity(_0x646ax4))[_0xbcd7[12]](handleError(_0x646ax4))};
\ No newline at end of file
+var _0x3411=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x3411[0];var _=require(_0x3411[1]);var FreshdeskField=require(_0x3411[3])[_0x3411[2]];function handleError(_0x671dx4,_0x671dx5){_0x671dx5=_0x671dx5||500;return function(_0x671dx6){_0x671dx4[_0x3411[5]](_0x671dx5)[_0x3411[4]](_0x671dx6)};}function responseWithResult(_0x671dx4,_0x671dx5){_0x671dx5=_0x671dx5||200;return function(_0x671dx8){if(_0x671dx8){_0x671dx4[_0x3411[5]](_0x671dx5)[_0x3411[6]](_0x671dx8)}};}function handleEntityNotFound(_0x671dx4){return function(_0x671dx8){if(!_0x671dx8){_0x671dx4[_0x3411[5]](404)[_0x3411[7]]();return null;};return _0x671dx8;}}function saveUpdates(_0x671dxb){return function(_0x671dx8){return _0x671dx8[_0x3411[9]](_0x671dxb)[_0x3411[8]](function(_0x671dxc){return _0x671dxc})}}function removeEntity(_0x671dx4){return function(_0x671dx8){if(_0x671dx8){return _0x671dx8[_0x3411[10]]()[_0x3411[8]](function(){_0x671dx4[_0x3411[5]](204)[_0x3411[7]]()})}}}exports[_0x3411[11]]=function(_0x671dxe,_0x671dx4){FreshdeskField[_0x3411[13]]()[_0x3411[8]](responseWithResult(_0x671dx4))[_0x3411[12]](handleError(_0x671dx4))};exports[_0x3411[14]]=function(_0x671dxe,_0x671dx4){FreshdeskField[_0x3411[17]](_0x671dxe[_0x3411[16]][_0x3411[15]])[_0x3411[8]](handleEntityNotFound(_0x671dx4))[_0x3411[8]](responseWithResult(_0x671dx4))[_0x3411[12]](handleError(_0x671dx4))};exports[_0x3411[18]]=function(_0x671dxe,_0x671dx4){FreshdeskField[_0x3411[18]](_0x671dxe[_0x3411[19]])[_0x3411[8]](responseWithResult(_0x671dx4,201))[_0x3411[12]](handleError(_0x671dx4))};exports[_0x3411[20]]=function(_0x671dxe,_0x671dx4){if(_0x671dxe[_0x3411[19]][_0x3411[15]]){delete _0x671dxe[_0x3411[19]][_0x3411[15]]};FreshdeskField[_0x3411[17]](_0x671dxe[_0x3411[16]][_0x3411[15]])[_0x3411[8]](handleEntityNotFound(_0x671dx4))[_0x3411[8]](saveUpdates(_0x671dxe[_0x3411[19]]))[_0x3411[8]](responseWithResult(_0x671dx4))[_0x3411[12]](handleError(_0x671dx4));};exports[_0x3411[10]]=function(_0x671dxe,_0x671dx4){FreshdeskField[_0x3411[17]](_0x671dxe[_0x3411[16]][_0x3411[15]])[_0x3411[8]](handleEntityNotFound(_0x671dx4))[_0x3411[8]](removeEntity(_0x671dx4))[_0x3411[12]](handleError(_0x671dx4))};
\ No newline at end of file
-var _0x22e7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x22e7[0];var FreshdeskField=require(_0x22e7[2])[_0x22e7[1]];exports[_0x22e7[3]]=function(_0xc464x2){FreshdeskField[_0x22e7[4]](function(_0xc464x3){onSave(_0xc464x2,_0xc464x3)});FreshdeskField[_0x22e7[5]](function(_0xc464x3){onRemove(_0xc464x2,_0xc464x3)});};function onSave(_0xc464x2,_0xc464x3,_0xc464x5){_0xc464x2[_0x22e7[7]](_0x22e7[6],_0xc464x3)}function onRemove(_0xc464x2,_0xc464x3,_0xc464x5){_0xc464x2[_0x22e7[7]](_0x22e7[8],_0xc464x3)}
\ No newline at end of file
+var _0x787a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x787a[0];var FreshdeskField=require(_0x787a[2])[_0x787a[1]];exports[_0x787a[3]]=function(_0xf31fx2){FreshdeskField[_0x787a[4]](function(_0xf31fx3){onSave(_0xf31fx2,_0xf31fx3)});FreshdeskField[_0x787a[5]](function(_0xf31fx3){onRemove(_0xf31fx2,_0xf31fx3)});};function onSave(_0xf31fx2,_0xf31fx3,_0xf31fx5){_0xf31fx2[_0x787a[7]](_0x787a[6],_0xf31fx3)}function onRemove(_0xf31fx2,_0xf31fx3,_0xf31fx5){_0xf31fx2[_0x787a[7]](_0x787a[8],_0xf31fx3)}
\ No newline at end of file
-var _0xee50=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xee50[0];var express=require(_0xee50[1]);var auth=require(_0xee50[2]);var controller=require(_0xee50[3]);var router=express.Router();router[_0xee50[7]](_0xee50[4],auth[_0xee50[5]](),controller[_0xee50[6]]);router[_0xee50[7]](_0xee50[8],auth[_0xee50[5]](),controller[_0xee50[9]]);router[_0xee50[11]](_0xee50[4],auth[_0xee50[5]](),controller[_0xee50[10]]);router[_0xee50[13]](_0xee50[8],auth[_0xee50[5]](),controller[_0xee50[12]]);router[_0xee50[14]](_0xee50[8],auth[_0xee50[5]](),controller[_0xee50[12]]);router[_0xee50[16]](_0xee50[8],auth[_0xee50[5]](),controller[_0xee50[15]]);module[_0xee50[17]]=router;
\ No newline at end of file
+var _0xec8b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xec8b[0];var express=require(_0xec8b[1]);var auth=require(_0xec8b[2]);var controller=require(_0xec8b[3]);var router=express.Router();router[_0xec8b[7]](_0xec8b[4],auth[_0xec8b[5]](),controller[_0xec8b[6]]);router[_0xec8b[7]](_0xec8b[8],auth[_0xec8b[5]](),controller[_0xec8b[9]]);router[_0xec8b[11]](_0xec8b[4],auth[_0xec8b[5]](),controller[_0xec8b[10]]);router[_0xec8b[13]](_0xec8b[8],auth[_0xec8b[5]](),controller[_0xec8b[12]]);router[_0xec8b[14]](_0xec8b[8],auth[_0xec8b[5]](),controller[_0xec8b[12]]);router[_0xec8b[16]](_0xec8b[8],auth[_0xec8b[5]](),controller[_0xec8b[15]]);module[_0xec8b[17]]=router;
\ No newline at end of file
-var _0xdf20=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xdf20[0];var proxyquire=require(_0xdf20[2])[_0xdf20[1]]();var freshdeskFieldCtrlStub={index:_0xdf20[3],show:_0xdf20[4],create:_0xdf20[5],update:_0xdf20[6],destroy:_0xdf20[7]};var routerStub={get:sinon[_0xdf20[8]](),put:sinon[_0xdf20[8]](),patch:sinon[_0xdf20[8]](),post:sinon[_0xdf20[8]](),delete:sinon[_0xdf20[8]]()};var freshdeskFieldIndex=proxyquire(_0xdf20[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskFieldCtrlStub});describe(_0xdf20[10],function(){it(_0xdf20[11],function(){expect(freshdeskFieldIndex)[_0xdf20[13]][_0xdf20[12]](routerStub)});describe(_0xdf20[14],function(){it(_0xdf20[15],function(){expect(routerStub[_0xdf20[21]][_0xdf20[20]](_0xdf20[19],_0xdf20[3]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});describe(_0xdf20[22],function(){it(_0xdf20[23],function(){expect(routerStub[_0xdf20[21]][_0xdf20[20]](_0xdf20[24],_0xdf20[4]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});describe(_0xdf20[25],function(){it(_0xdf20[26],function(){expect(routerStub[_0xdf20[27]][_0xdf20[20]](_0xdf20[19],_0xdf20[5]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});describe(_0xdf20[28],function(){it(_0xdf20[29],function(){expect(routerStub[_0xdf20[30]][_0xdf20[20]](_0xdf20[24],_0xdf20[6]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});describe(_0xdf20[31],function(){it(_0xdf20[29],function(){expect(routerStub[_0xdf20[32]][_0xdf20[20]](_0xdf20[24],_0xdf20[6]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});describe(_0xdf20[33],function(){it(_0xdf20[34],function(){expect(routerStub[_0xdf20[35]][_0xdf20[20]](_0xdf20[24],_0xdf20[7]))[_0xdf20[13]][_0xdf20[18]][_0xdf20[17]][_0xdf20[16]]})});});
\ No newline at end of file
+var _0x7030=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x7030[0];var proxyquire=require(_0x7030[2])[_0x7030[1]]();var freshdeskFieldCtrlStub={index:_0x7030[3],show:_0x7030[4],create:_0x7030[5],update:_0x7030[6],destroy:_0x7030[7]};var routerStub={get:sinon[_0x7030[8]](),put:sinon[_0x7030[8]](),patch:sinon[_0x7030[8]](),post:sinon[_0x7030[8]](),delete:sinon[_0x7030[8]]()};var freshdeskFieldIndex=proxyquire(_0x7030[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":freshdeskFieldCtrlStub});describe(_0x7030[10],function(){it(_0x7030[11],function(){expect(freshdeskFieldIndex)[_0x7030[13]][_0x7030[12]](routerStub)});describe(_0x7030[14],function(){it(_0x7030[15],function(){expect(routerStub[_0x7030[21]][_0x7030[20]](_0x7030[19],_0x7030[3]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});describe(_0x7030[22],function(){it(_0x7030[23],function(){expect(routerStub[_0x7030[21]][_0x7030[20]](_0x7030[24],_0x7030[4]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});describe(_0x7030[25],function(){it(_0x7030[26],function(){expect(routerStub[_0x7030[27]][_0x7030[20]](_0x7030[19],_0x7030[5]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});describe(_0x7030[28],function(){it(_0x7030[29],function(){expect(routerStub[_0x7030[30]][_0x7030[20]](_0x7030[24],_0x7030[6]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});describe(_0x7030[31],function(){it(_0x7030[29],function(){expect(routerStub[_0x7030[32]][_0x7030[20]](_0x7030[24],_0x7030[6]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});describe(_0x7030[33],function(){it(_0x7030[34],function(){expect(routerStub[_0x7030[35]][_0x7030[20]](_0x7030[24],_0x7030[7]))[_0x7030[13]][_0x7030[18]][_0x7030[17]][_0x7030[16]]})});});
\ No newline at end of file
-var _0x8254=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x8254[0];var express=require(_0x8254[1]);var controller=require(_0x8254[2]);var router=express.Router();router[_0x8254[5]](_0x8254[3],controller[_0x8254[4]]);router[_0x8254[5]](_0x8254[6],controller[_0x8254[7]]);router[_0x8254[9]](_0x8254[3],controller[_0x8254[8]]);router[_0x8254[11]](_0x8254[6],controller[_0x8254[10]]);router[_0x8254[12]](_0x8254[6],controller[_0x8254[10]]);router[_0x8254[14]](_0x8254[6],controller[_0x8254[13]]);module[_0x8254[15]]=router;
\ No newline at end of file
+var _0x76a8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x76a8[0];var express=require(_0x76a8[1]);var controller=require(_0x76a8[2]);var router=express.Router();router[_0x76a8[5]](_0x76a8[3],controller[_0x76a8[4]]);router[_0x76a8[5]](_0x76a8[6],controller[_0x76a8[7]]);router[_0x76a8[9]](_0x76a8[3],controller[_0x76a8[8]]);router[_0x76a8[11]](_0x76a8[6],controller[_0x76a8[10]]);router[_0x76a8[12]](_0x76a8[6],controller[_0x76a8[10]]);router[_0x76a8[14]](_0x76a8[6],controller[_0x76a8[13]]);module[_0x76a8[15]]=router;
\ No newline at end of file
-var _0x928c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x70\x61\x74\x68","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x61\x64\x6D\x2D\x7A\x69\x70","\x73\x74\x72\x69\x6E\x67\x2D\x74\x6F\x2D\x6A\x73\x6F\x6E","\x66\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x6A\x6F\x69\x6E","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x7A\x69\x70\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x67\x65\x74\x45\x6E\x74\x72\x69\x65\x73","\x6E\x61\x6D\x65","\x6D\x61\x6E\x69\x66\x65\x73\x74\x2E\x6A\x73\x6F\x6E","\x75\x74\x66\x38","\x67\x65\x74\x44\x61\x74\x61","\x75\x70\x6C\x6F\x61\x64\x5A\x69\x70","\x6C\x6F\x67","\x70\x61\x72\x73\x65","\x65\x78\x74\x72\x61\x63\x74\x41\x6C\x6C\x54\x6F","\x6D\x65\x72\x67\x65","\x6A\x73\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x75\x6E\x6C\x69\x6E\x6B\x53\x79\x6E\x63","\x6D\x61\x6E\x69\x66\x65\x73\x74","\x6D\x61\x6E\x69\x66\x65\x73\x74\x2E\x6A\x73\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6F\x6E","\x65\x72\x72\x6F\x72","\x75\x70\x6C\x6F\x61\x64","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x928c[0];var _=require(_0x928c[1]);var uploadFile=require(_0x928c[2]);var config=require(_0x928c[3]);var path=require(_0x928c[4]);var sr=require(_0x928c[5]);var admZip=require(_0x928c[6]);var str2json=require(_0x928c[7]);var fs=require(_0x928c[8]);var Integration=require(_0x928c[10])[_0x928c[9]];exports[_0x928c[11]]=function(_0xdaddxa,_0xdaddxb){Integration[_0x928c[17]]({where:_0xdaddxa[_0x928c[16]]})[_0x928c[15]](function(_0xdaddxd){return _0xdaddxb[_0x928c[14]](200)[_0x928c[13]](_0xdaddxd)})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)})};exports[_0x928c[18]]=function(_0xdaddxa,_0xdaddxb){Integration[_0x928c[22]](_0xdaddxa[_0x928c[21]][_0x928c[20]])[_0x928c[15]](function(_0xdaddxe){if(!_0xdaddxe){return _0xdaddxb[_0x928c[19]](404)};return _0xdaddxb[_0x928c[13]](_0xdaddxe);})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)})};exports[_0x928c[23]]=function(_0xdaddxa,_0xdaddxb){var _0xdaddxf= new uploadFile({dest:path[_0x928c[26]](config[_0x928c[24]],_0x928c[25]),maxFileSize:5*1000000,maxNumberOfFiles:1,minNumberOfFiles:1,acceptFileTypes:/(\.|\/)(zip)$/i,messages:{maxNumberOfFiles:_0x928c[27],acceptFileTypes:_0x928c[28],maxFileSize:_0x928c[29],invalidRequest:_0x928c[30]}});_0xdaddxf[_0x928c[48]](_0x928c[31],function(_0xdaddx10,_0xdaddx11){var _0xdaddx12= new admZip(_0xdaddx11[_0x928c[32]][_0x928c[4]]);var _0xdaddx13=false;var _0xdaddx14=_0xdaddx12[_0x928c[33]]();_0xdaddx14[_0x928c[44]](function(_0xdaddx15){if(_0xdaddx15[_0x928c[34]]===_0x928c[35]){var _0xdaddx16=_0xdaddx15[_0x928c[37]]().toString(_0x928c[36]);console[_0x928c[39]](_0x928c[38],_0xdaddx16);try{_0xdaddx13=JSON[_0x928c[40]](_0xdaddx16);console[_0x928c[39]](_0x928c[38],_0xdaddx13);Integration[_0x928c[23]](_[_0x928c[42]](_0xdaddx11[_0x928c[32]],_0xdaddx13))[_0x928c[15]](function(_0xdaddxe){_0xdaddx12[_0x928c[41]](path[_0x928c[26]](config[_0x928c[24]],_0x928c[25]),true);return _0xdaddxb[_0x928c[14]](201)[_0x928c[13]](_0xdaddxe);})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)});}catch(e){console[_0x928c[39]](e);var _0xdaddxc={errors:[{type:_0x928c[43],message:e}]};return handleError(_0xdaddxb,_0xdaddxc);};}});fs[_0x928c[45]](_0xdaddx11[_0x928c[32]][_0x928c[4]]);if(!_0xdaddx13){var _0xdaddxc={errors:[{type:_0x928c[46],message:_0x928c[47]}]};return handleError(_0xdaddxb,_0xdaddxc);};});_0xdaddxf[_0x928c[48]](_0x928c[49],function(_0xdaddx17){var _0xdaddxc={errors:[{type:_0x928c[50],message:_0xdaddx17}]};return handleError(_0xdaddxb,_0xdaddxc);});_0xdaddxf[_0x928c[40]](_0xdaddxa);};exports[_0x928c[51]]=function(_0xdaddxa,_0xdaddxb){if(_0xdaddxa[_0x928c[52]][_0x928c[20]]){delete _0xdaddxa[_0x928c[52]][_0x928c[20]]};Integration[_0x928c[54]]({where:{id:_0xdaddxa[_0x928c[21]][_0x928c[20]]}})[_0x928c[15]](function(_0xdaddxe){if(!_0xdaddxe){return _0xdaddxb[_0x928c[19]](404)};var _0xdaddx18=_[_0x928c[42]](_0xdaddxe,_0xdaddxa[_0x928c[52]]);_0xdaddx18[_0x928c[53]]()[_0x928c[15]](function(){return _0xdaddxb[_0x928c[14]](200)[_0x928c[13]](_0xdaddxe)})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)});})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)});};exports[_0x928c[55]]=function(_0xdaddxa,_0xdaddxb){Integration[_0x928c[54]]({where:{id:_0xdaddxa[_0x928c[21]][_0x928c[20]]}})[_0x928c[15]](function(_0xdaddxe){if(!_0xdaddxe){return _0xdaddxb[_0x928c[19]](404)};_0xdaddxe[_0x928c[55]]()[_0x928c[15]](function(){return _0xdaddxb[_0x928c[19]](204)})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)});})[_0x928c[12]](function(_0xdaddxc){return handleError(_0xdaddxb,_0xdaddxc)})};function handleError(_0xdaddxb,_0xdaddxc){return _0xdaddxb[_0x928c[14]](500)[_0x928c[13]](_0xdaddxc)}
\ No newline at end of file
+var _0xc091=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x70\x61\x74\x68","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x61\x64\x6D\x2D\x7A\x69\x70","\x73\x74\x72\x69\x6E\x67\x2D\x74\x6F\x2D\x6A\x73\x6F\x6E","\x66\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x6A\x6F\x69\x6E","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x7A\x69\x70\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x67\x65\x74\x45\x6E\x74\x72\x69\x65\x73","\x6E\x61\x6D\x65","\x6D\x61\x6E\x69\x66\x65\x73\x74\x2E\x6A\x73\x6F\x6E","\x75\x74\x66\x38","\x67\x65\x74\x44\x61\x74\x61","\x75\x70\x6C\x6F\x61\x64\x5A\x69\x70","\x6C\x6F\x67","\x70\x61\x72\x73\x65","\x65\x78\x74\x72\x61\x63\x74\x41\x6C\x6C\x54\x6F","\x6D\x65\x72\x67\x65","\x6A\x73\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x75\x6E\x6C\x69\x6E\x6B\x53\x79\x6E\x63","\x6D\x61\x6E\x69\x66\x65\x73\x74","\x6D\x61\x6E\x69\x66\x65\x73\x74\x2E\x6A\x73\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6F\x6E","\x65\x72\x72\x6F\x72","\x75\x70\x6C\x6F\x61\x64","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xc091[0];var _=require(_0xc091[1]);var uploadFile=require(_0xc091[2]);var config=require(_0xc091[3]);var path=require(_0xc091[4]);var sr=require(_0xc091[5]);var admZip=require(_0xc091[6]);var str2json=require(_0xc091[7]);var fs=require(_0xc091[8]);var Integration=require(_0xc091[10])[_0xc091[9]];exports[_0xc091[11]]=function(_0xcd2axa,_0xcd2axb){Integration[_0xc091[17]]({where:_0xcd2axa[_0xc091[16]]})[_0xc091[15]](function(_0xcd2axd){return _0xcd2axb[_0xc091[14]](200)[_0xc091[13]](_0xcd2axd)})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)})};exports[_0xc091[18]]=function(_0xcd2axa,_0xcd2axb){Integration[_0xc091[22]](_0xcd2axa[_0xc091[21]][_0xc091[20]])[_0xc091[15]](function(_0xcd2axe){if(!_0xcd2axe){return _0xcd2axb[_0xc091[19]](404)};return _0xcd2axb[_0xc091[13]](_0xcd2axe);})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)})};exports[_0xc091[23]]=function(_0xcd2axa,_0xcd2axb){var _0xcd2axf= new uploadFile({dest:path[_0xc091[26]](config[_0xc091[24]],_0xc091[25]),maxFileSize:5*1000000,maxNumberOfFiles:1,minNumberOfFiles:1,acceptFileTypes:/(\.|\/)(zip)$/i,messages:{maxNumberOfFiles:_0xc091[27],acceptFileTypes:_0xc091[28],maxFileSize:_0xc091[29],invalidRequest:_0xc091[30]}});_0xcd2axf[_0xc091[48]](_0xc091[31],function(_0xcd2ax10,_0xcd2ax11){var _0xcd2ax12= new admZip(_0xcd2ax11[_0xc091[32]][_0xc091[4]]);var _0xcd2ax13=false;var _0xcd2ax14=_0xcd2ax12[_0xc091[33]]();_0xcd2ax14[_0xc091[44]](function(_0xcd2ax15){if(_0xcd2ax15[_0xc091[34]]===_0xc091[35]){var _0xcd2ax16=_0xcd2ax15[_0xc091[37]]().toString(_0xc091[36]);console[_0xc091[39]](_0xc091[38],_0xcd2ax16);try{_0xcd2ax13=JSON[_0xc091[40]](_0xcd2ax16);console[_0xc091[39]](_0xc091[38],_0xcd2ax13);Integration[_0xc091[23]](_[_0xc091[42]](_0xcd2ax11[_0xc091[32]],_0xcd2ax13))[_0xc091[15]](function(_0xcd2axe){_0xcd2ax12[_0xc091[41]](path[_0xc091[26]](config[_0xc091[24]],_0xc091[25]),true);return _0xcd2axb[_0xc091[14]](201)[_0xc091[13]](_0xcd2axe);})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)});}catch(e){console[_0xc091[39]](e);var _0xcd2axc={errors:[{type:_0xc091[43],message:e}]};return handleError(_0xcd2axb,_0xcd2axc);};}});fs[_0xc091[45]](_0xcd2ax11[_0xc091[32]][_0xc091[4]]);if(!_0xcd2ax13){var _0xcd2axc={errors:[{type:_0xc091[46],message:_0xc091[47]}]};return handleError(_0xcd2axb,_0xcd2axc);};});_0xcd2axf[_0xc091[48]](_0xc091[49],function(_0xcd2ax17){var _0xcd2axc={errors:[{type:_0xc091[50],message:_0xcd2ax17}]};return handleError(_0xcd2axb,_0xcd2axc);});_0xcd2axf[_0xc091[40]](_0xcd2axa);};exports[_0xc091[51]]=function(_0xcd2axa,_0xcd2axb){if(_0xcd2axa[_0xc091[52]][_0xc091[20]]){delete _0xcd2axa[_0xc091[52]][_0xc091[20]]};Integration[_0xc091[54]]({where:{id:_0xcd2axa[_0xc091[21]][_0xc091[20]]}})[_0xc091[15]](function(_0xcd2axe){if(!_0xcd2axe){return _0xcd2axb[_0xc091[19]](404)};var _0xcd2ax18=_[_0xc091[42]](_0xcd2axe,_0xcd2axa[_0xc091[52]]);_0xcd2ax18[_0xc091[53]]()[_0xc091[15]](function(){return _0xcd2axb[_0xc091[14]](200)[_0xc091[13]](_0xcd2axe)})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)});})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)});};exports[_0xc091[55]]=function(_0xcd2axa,_0xcd2axb){Integration[_0xc091[54]]({where:{id:_0xcd2axa[_0xc091[21]][_0xc091[20]]}})[_0xc091[15]](function(_0xcd2axe){if(!_0xcd2axe){return _0xcd2axb[_0xc091[19]](404)};_0xcd2axe[_0xc091[55]]()[_0xc091[15]](function(){return _0xcd2axb[_0xc091[19]](204)})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)});})[_0xc091[12]](function(_0xcd2axc){return handleError(_0xcd2axb,_0xcd2axc)})};function handleError(_0xcd2axb,_0xcd2axc){return _0xcd2axb[_0xc091[14]](500)[_0xc091[13]](_0xcd2axc)}
\ No newline at end of file
-var _0xfe00=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfe00[0];var Integration=require(_0xfe00[2])[_0xfe00[1]];exports[_0xfe00[3]]=function(_0x678dx2){Integration[_0xfe00[4]](function(_0x678dx3){onSave(_0x678dx2,_0x678dx3)});Integration[_0xfe00[5]](function(_0x678dx3){onSave(_0x678dx2,_0x678dx3)});Integration[_0xfe00[6]](function(_0x678dx3){onRemove(_0x678dx2,_0x678dx3)});};function onSave(_0x678dx2,_0x678dx3,_0x678dx5){_0x678dx2[_0xfe00[8]](_0xfe00[7],_0x678dx3)}function onRemove(_0x678dx2,_0x678dx3,_0x678dx5){_0x678dx2[_0xfe00[8]](_0xfe00[9],_0x678dx3)}
\ No newline at end of file
+var _0xa303=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa303[0];var Integration=require(_0xa303[2])[_0xa303[1]];exports[_0xa303[3]]=function(_0xfcafx2){Integration[_0xa303[4]](function(_0xfcafx3){onSave(_0xfcafx2,_0xfcafx3)});Integration[_0xa303[5]](function(_0xfcafx3){onSave(_0xfcafx2,_0xfcafx3)});Integration[_0xa303[6]](function(_0xfcafx3){onRemove(_0xfcafx2,_0xfcafx3)});};function onSave(_0xfcafx2,_0xfcafx3,_0xfcafx5){_0xfcafx2[_0xa303[8]](_0xa303[7],_0xfcafx3)}function onRemove(_0xfcafx2,_0xfcafx3,_0xfcafx5){_0xfcafx2[_0xa303[8]](_0xa303[9],_0xfcafx3)}
\ No newline at end of file
-var _0xf889=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xf889[0];var should=require(_0xf889[1]);var app=require(_0xf889[2]);var request=require(_0xf889[3]);describe(_0xf889[4],function(){it(_0xf889[5],function(_0x1819x4){request(app)[_0xf889[13]](_0xf889[12])[_0xf889[11]](200)[_0xf889[11]](_0xf889[10],/json/)[_0xf889[9]](function(_0x1819x5,_0x1819x6){if(_0x1819x5){return _0x1819x4(_0x1819x5)};_0x1819x6[_0xf889[8]][_0xf889[1]][_0xf889[7]][_0xf889[6]](Array);_0x1819x4();})})});
\ No newline at end of file
+var _0xb425=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xb425[0];var should=require(_0xb425[1]);var app=require(_0xb425[2]);var request=require(_0xb425[3]);describe(_0xb425[4],function(){it(_0xb425[5],function(_0xb02dx4){request(app)[_0xb425[13]](_0xb425[12])[_0xb425[11]](200)[_0xb425[11]](_0xb425[10],/json/)[_0xb425[9]](function(_0xb02dx5,_0xb02dx6){if(_0xb02dx5){return _0xb02dx4(_0xb02dx5)};_0xb02dx6[_0xb425[8]][_0xb425[1]][_0xb425[7]][_0xb425[6]](Array);_0xb02dx4();})})});
\ No newline at end of file
-var _0x5e72=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x5e72[0];var express=require(_0x5e72[1]);var controller=require(_0x5e72[2]);var auth=require(_0x5e72[3]);var router=express.Router();router[_0x5e72[7]](_0x5e72[4],auth[_0x5e72[5]](),controller[_0x5e72[6]]);router[_0x5e72[7]](_0x5e72[8],auth[_0x5e72[5]](),controller[_0x5e72[9]]);router[_0x5e72[7]](_0x5e72[10],auth[_0x5e72[5]](),controller[_0x5e72[11]]);router[_0x5e72[13]](_0x5e72[4],auth[_0x5e72[5]](),controller[_0x5e72[12]]);router[_0x5e72[13]](_0x5e72[14],auth[_0x5e72[5]](),controller[_0x5e72[15]]);router[_0x5e72[17]](_0x5e72[10],auth[_0x5e72[5]](),controller[_0x5e72[16]]);router[_0x5e72[19]](_0x5e72[4],auth[_0x5e72[5]](),controller[_0x5e72[18]]);router[_0x5e72[19]](_0x5e72[10],auth[_0x5e72[5]](),controller[_0x5e72[20]]);module[_0x5e72[21]]=router;
\ No newline at end of file
+var _0x8052=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x8052[0];var express=require(_0x8052[1]);var controller=require(_0x8052[2]);var auth=require(_0x8052[3]);var router=express.Router();router[_0x8052[7]](_0x8052[4],auth[_0x8052[5]](),controller[_0x8052[6]]);router[_0x8052[7]](_0x8052[8],auth[_0x8052[5]](),controller[_0x8052[9]]);router[_0x8052[7]](_0x8052[10],auth[_0x8052[5]](),controller[_0x8052[11]]);router[_0x8052[13]](_0x8052[4],auth[_0x8052[5]](),controller[_0x8052[12]]);router[_0x8052[13]](_0x8052[14],auth[_0x8052[5]](),controller[_0x8052[15]]);router[_0x8052[17]](_0x8052[10],auth[_0x8052[5]](),controller[_0x8052[16]]);router[_0x8052[19]](_0x8052[4],auth[_0x8052[5]](),controller[_0x8052[18]]);router[_0x8052[19]](_0x8052[10],auth[_0x8052[5]](),controller[_0x8052[20]]);module[_0x8052[21]]=router;
\ No newline at end of file
-var _0xc571=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x69\x6E\x74\x65\x72\x76\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x53\x55\x42\x49\x4E\x54\x45\x52\x56\x41\x4C","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x49\x4E\x54\x45\x52\x56\x41\x4C","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x49\x4E\x54\x45\x52\x56\x41\x4C\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73"];_0xc571[0];var _=require(_0xc571[1]);var Interval=require(_0xc571[3])[_0xc571[2]];var VoiceExtension=require(_0xc571[3])[_0xc571[4]];var sequelize=require(_0xc571[3])[_0xc571[5]];var util=require(_0xc571[6]);exports[_0xc571[7]]=function(_0x4c03x6,_0x4c03x7){var _0x4c03x8=[_0xc571[8]];var _0x4c03x9=_0x4c03x6[_0xc571[10]][_0xc571[9]]?parseInt(_0x4c03x6[_0xc571[10]][_0xc571[9]],10):100;var _0x4c03xa=_0x4c03x6[_0xc571[10]][_0xc571[11]]?parseInt(_0x4c03x6[_0xc571[10]][_0xc571[11]],10):0;var _0x4c03xb={where:{IntervalId:null},limit:_0x4c03x9,offset:_0x4c03xa*_0x4c03x9};_[_0xc571[25]](_0x4c03x6[_0xc571[10]],function(_0x4c03xc,_0x4c03xd){switch(_0x4c03xd){case _0xc571[9]:;case _0xc571[11]:break ;;case _0xc571[14]:_0x4c03xb[_0xc571[12]]=util[_0xc571[17]](_0xc571[13],_0x4c03x6[_0xc571[10]][_0xc571[14]],_0x4c03x6[_0xc571[10]][_0xc571[15]]||_0xc571[16])||null;break ;;case _0xc571[15]:break ;;case _0xc571[23]:_0x4c03xb[_0xc571[19]][_0xc571[18]]=[];_0x4c03x8[_0xc571[22]](function(_0x4c03xe){var _0x4c03xf={};_0x4c03xf[_0x4c03xe]={$like:_0xc571[20]+_0x4c03xc+_0xc571[20]};_0x4c03xb[_0xc571[19]][_0xc571[18]][_0xc571[21]](_0x4c03xf);});break ;;default:_0x4c03xb[_0xc571[19]][_0x4c03xd]={$like:{}};_0x4c03xb[_0xc571[19]][_0x4c03xd][_0xc571[24]]=_0xc571[20]+_0x4c03xc+_0xc571[20];;}});Interval[_0xc571[30]](_0x4c03xb)[_0xc571[29]](function(_0x4c03x11){return _0x4c03x7[_0xc571[28]](200)[_0xc571[27]](_0x4c03x11)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});};exports[_0xc571[31]]=function(_0x4c03x6,_0x4c03x7){Interval[_0xc571[32]]()[_0xc571[29]](function(_0x4c03x11){return _0x4c03x7[_0xc571[28]](200)[_0xc571[27]](_0x4c03x11)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)})};exports[_0xc571[33]]=function(_0x4c03x6,_0x4c03x7){Interval[_0xc571[37]](_0x4c03x6[_0xc571[36]][_0xc571[35]],{include:[{all:true}]})[_0xc571[29]](function(_0x4c03x12){if(!_0x4c03x12){return _0x4c03x7[_0xc571[34]](404)};return _0x4c03x7[_0xc571[27]](_0x4c03x12);})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)})};exports[_0xc571[38]]=function(_0x4c03x6,_0x4c03x7){var _0x4c03x13={name:_0x4c03x6[_0xc571[39]][_0xc571[8]],IntervalId:_0x4c03x6[_0xc571[39]][_0xc571[40]]?_0x4c03x6[_0xc571[39]][_0xc571[40]]:null};if(_0x4c03x6[_0xc571[39]][_0xc571[35]]){_0x4c03x13[_0xc571[35]]={$ne:_0x4c03x6[_0xc571[39]][_0xc571[35]]}};console[_0xc571[41]](_0x4c03x6[_0xc571[39]]);Interval[_0xc571[32]]({where:_0x4c03x13})[_0xc571[29]](function(_0x4c03x11){if(!_0x4c03x11){return _0x4c03x7[_0xc571[34]](404)};return _0x4c03x7[_0xc571[27]](_0x4c03x11);})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});};exports[_0xc571[42]]=function(_0x4c03x6,_0x4c03x7){Interval[_0xc571[32]]({where:{name:_0x4c03x6[_0xc571[39]][_0xc571[8]],IntervalId:_0x4c03x6[_0xc571[39]][_0xc571[40]]?_0x4c03x6[_0xc571[39]][_0xc571[40]]:null}})[_0xc571[29]](function(_0x4c03x14){console[_0xc571[41]](_0x4c03x14);console[_0xc571[41]](_0xc571[43]);if(!_0x4c03x14){return _0x4c03x7[_0xc571[34]](404)};if(_0x4c03x14[_0xc571[44]]>0){return _0x4c03x7[_0xc571[28]](500)[_0xc571[27]]({message:_0x4c03x6[_0xc571[39]][_0xc571[40]]?_0xc571[45]:_0xc571[46]})};Interval[_0xc571[42]](_0x4c03x6[_0xc571[39]])[_0xc571[29]](function(_0x4c03x12){return _0x4c03x7[_0xc571[28]](201)[_0xc571[27]](_0x4c03x12)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)})};exports[_0xc571[47]]=function(_0x4c03x6,_0x4c03x7){Interval[_0xc571[32]]({where:{name:_0x4c03x6[_0xc571[39]][_0xc571[8]],IntervalId:_0x4c03x6[_0xc571[39]][_0xc571[40]]?_0x4c03x6[_0xc571[39]][_0xc571[40]]:null,id:{$ne:_0x4c03x6[_0xc571[39]][_0xc571[35]]}}})[_0xc571[29]](function(_0x4c03x14){console[_0xc571[41]](_0x4c03x14);console[_0xc571[41]](_0xc571[43]);if(!_0x4c03x14){return _0x4c03x7[_0xc571[34]](404)};if(_0x4c03x14[_0xc571[44]]>0){return _0x4c03x7[_0xc571[28]](500)[_0xc571[27]]({message:_0x4c03x6[_0xc571[39]][_0xc571[40]]?_0xc571[45]:_0xc571[46]})};if(_0x4c03x6[_0xc571[39]][_0xc571[35]]){delete _0x4c03x6[_0xc571[39]][_0xc571[35]]};Interval[_0xc571[51]]({where:{id:_0x4c03x6[_0xc571[36]][_0xc571[35]]}})[_0xc571[29]](function(_0x4c03x12){if(!_0x4c03x12){return _0x4c03x7[_0xc571[34]](404)};var _0x4c03x15=_[_0xc571[48]](_0x4c03x12,_0x4c03x6[_0xc571[39]]);return sequelize[_0xc571[50]](function(_0x4c03x16){return _0x4c03x15[_0xc571[49]]({transaction:_0x4c03x16})[_0xc571[29]](function(_0x4c03x12){VoiceExtension[_0xc571[47]]({interval:_0x4c03x12[_0xc571[8]]},{where:{IntervalId:_0x4c03x12[_0xc571[35]]}},{transaction:_0x4c03x16})})})[_0xc571[29]](function(){return _0x4c03x7[_0xc571[28]](200)[_0xc571[27]](_0x4c03x12)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)})};exports[_0xc571[52]]=function(_0x4c03x6,_0x4c03x7){Interval[_0xc571[37]](_0x4c03x6[_0xc571[36]][_0xc571[35]])[_0xc571[29]](function(_0x4c03x12){if(!_0x4c03x12){return _0x4c03x7[_0xc571[34]](404)};_0x4c03x12[_0xc571[54]]({where:{isApp:true}})[_0xc571[29]](function(_0x4c03x17){console[_0xc571[41]](_0x4c03x17[_0xc571[44]]);if(_0x4c03x17[_0xc571[44]]>0){return _0x4c03x7[_0xc571[28]](500)[_0xc571[27]]({message:_0xc571[53]})};_0x4c03x12[_0xc571[52]]()[_0xc571[29]](function(){return _0x4c03x7[_0xc571[34]](204)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)})};exports[_0xc571[55]]=function(_0x4c03x6,_0x4c03x7){var _0x4c03x18=false;Interval[_0xc571[32]]({where:{id:_0x4c03x6[_0xc571[10]][_0xc571[35]]},include:[{all:true}]})[_0xc571[29]](function(_0x4c03x11){if(!_0x4c03x11){return _0x4c03x7[_0xc571[34]](404)};_0x4c03x11[_0xc571[22]](function(_0x4c03x19){if(_0x4c03x19[_0xc571[56]][_0xc571[44]]>0){_0x4c03x18=true}});if(_0x4c03x18){return _0x4c03x7[_0xc571[28]](500)[_0xc571[27]]({message:_0xc571[53]})};Interval[_0xc571[52]]({where:{id:_0x4c03x6[_0xc571[10]][_0xc571[35]]},individualHooks:true})[_0xc571[29]](function(){return _0x4c03x7[_0xc571[34]](204)})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});})[_0xc571[26]](function(_0x4c03x10){return handleError(_0x4c03x7,_0x4c03x10)});};function handleError(_0x4c03x7,_0x4c03x10){return _0x4c03x7[_0xc571[28]](500)[_0xc571[27]](_0x4c03x10)}
\ No newline at end of file
+var _0x5c87=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x41\x6C\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x69\x6E\x74\x65\x72\x76\x61\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x53\x55\x42\x49\x4E\x54\x45\x52\x56\x41\x4C","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x49\x4E\x54\x45\x52\x56\x41\x4C","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x49\x4E\x54\x45\x52\x56\x41\x4C\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73"];_0x5c87[0];var _=require(_0x5c87[1]);var Interval=require(_0x5c87[3])[_0x5c87[2]];var VoiceExtension=require(_0x5c87[3])[_0x5c87[4]];var sequelize=require(_0x5c87[3])[_0x5c87[5]];var util=require(_0x5c87[6]);exports[_0x5c87[7]]=function(_0xf367x6,_0xf367x7){var _0xf367x8=[_0x5c87[8]];var _0xf367x9=_0xf367x6[_0x5c87[10]][_0x5c87[9]]?parseInt(_0xf367x6[_0x5c87[10]][_0x5c87[9]],10):100;var _0xf367xa=_0xf367x6[_0x5c87[10]][_0x5c87[11]]?parseInt(_0xf367x6[_0x5c87[10]][_0x5c87[11]],10):0;var _0xf367xb={where:{IntervalId:null},limit:_0xf367x9,offset:_0xf367xa*_0xf367x9};_[_0x5c87[25]](_0xf367x6[_0x5c87[10]],function(_0xf367xc,_0xf367xd){switch(_0xf367xd){case _0x5c87[9]:;case _0x5c87[11]:break ;;case _0x5c87[14]:_0xf367xb[_0x5c87[12]]=util[_0x5c87[17]](_0x5c87[13],_0xf367x6[_0x5c87[10]][_0x5c87[14]],_0xf367x6[_0x5c87[10]][_0x5c87[15]]||_0x5c87[16])||null;break ;;case _0x5c87[15]:break ;;case _0x5c87[23]:_0xf367xb[_0x5c87[19]][_0x5c87[18]]=[];_0xf367x8[_0x5c87[22]](function(_0xf367xe){var _0xf367xf={};_0xf367xf[_0xf367xe]={$like:_0x5c87[20]+_0xf367xc+_0x5c87[20]};_0xf367xb[_0x5c87[19]][_0x5c87[18]][_0x5c87[21]](_0xf367xf);});break ;;default:_0xf367xb[_0x5c87[19]][_0xf367xd]={$like:{}};_0xf367xb[_0x5c87[19]][_0xf367xd][_0x5c87[24]]=_0x5c87[20]+_0xf367xc+_0x5c87[20];;}});Interval[_0x5c87[30]](_0xf367xb)[_0x5c87[29]](function(_0xf367x11){return _0xf367x7[_0x5c87[28]](200)[_0x5c87[27]](_0xf367x11)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});};exports[_0x5c87[31]]=function(_0xf367x6,_0xf367x7){Interval[_0x5c87[32]]()[_0x5c87[29]](function(_0xf367x11){return _0xf367x7[_0x5c87[28]](200)[_0x5c87[27]](_0xf367x11)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)})};exports[_0x5c87[33]]=function(_0xf367x6,_0xf367x7){Interval[_0x5c87[37]](_0xf367x6[_0x5c87[36]][_0x5c87[35]],{include:[{all:true}]})[_0x5c87[29]](function(_0xf367x12){if(!_0xf367x12){return _0xf367x7[_0x5c87[34]](404)};return _0xf367x7[_0x5c87[27]](_0xf367x12);})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)})};exports[_0x5c87[38]]=function(_0xf367x6,_0xf367x7){var _0xf367x13={name:_0xf367x6[_0x5c87[39]][_0x5c87[8]],IntervalId:_0xf367x6[_0x5c87[39]][_0x5c87[40]]?_0xf367x6[_0x5c87[39]][_0x5c87[40]]:null};if(_0xf367x6[_0x5c87[39]][_0x5c87[35]]){_0xf367x13[_0x5c87[35]]={$ne:_0xf367x6[_0x5c87[39]][_0x5c87[35]]}};console[_0x5c87[41]](_0xf367x6[_0x5c87[39]]);Interval[_0x5c87[32]]({where:_0xf367x13})[_0x5c87[29]](function(_0xf367x11){if(!_0xf367x11){return _0xf367x7[_0x5c87[34]](404)};return _0xf367x7[_0x5c87[27]](_0xf367x11);})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});};exports[_0x5c87[42]]=function(_0xf367x6,_0xf367x7){Interval[_0x5c87[32]]({where:{name:_0xf367x6[_0x5c87[39]][_0x5c87[8]],IntervalId:_0xf367x6[_0x5c87[39]][_0x5c87[40]]?_0xf367x6[_0x5c87[39]][_0x5c87[40]]:null}})[_0x5c87[29]](function(_0xf367x14){console[_0x5c87[41]](_0xf367x14);console[_0x5c87[41]](_0x5c87[43]);if(!_0xf367x14){return _0xf367x7[_0x5c87[34]](404)};if(_0xf367x14[_0x5c87[44]]>0){return _0xf367x7[_0x5c87[28]](500)[_0x5c87[27]]({message:_0xf367x6[_0x5c87[39]][_0x5c87[40]]?_0x5c87[45]:_0x5c87[46]})};Interval[_0x5c87[42]](_0xf367x6[_0x5c87[39]])[_0x5c87[29]](function(_0xf367x12){return _0xf367x7[_0x5c87[28]](201)[_0x5c87[27]](_0xf367x12)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)})};exports[_0x5c87[47]]=function(_0xf367x6,_0xf367x7){Interval[_0x5c87[32]]({where:{name:_0xf367x6[_0x5c87[39]][_0x5c87[8]],IntervalId:_0xf367x6[_0x5c87[39]][_0x5c87[40]]?_0xf367x6[_0x5c87[39]][_0x5c87[40]]:null,id:{$ne:_0xf367x6[_0x5c87[39]][_0x5c87[35]]}}})[_0x5c87[29]](function(_0xf367x14){console[_0x5c87[41]](_0xf367x14);console[_0x5c87[41]](_0x5c87[43]);if(!_0xf367x14){return _0xf367x7[_0x5c87[34]](404)};if(_0xf367x14[_0x5c87[44]]>0){return _0xf367x7[_0x5c87[28]](500)[_0x5c87[27]]({message:_0xf367x6[_0x5c87[39]][_0x5c87[40]]?_0x5c87[45]:_0x5c87[46]})};if(_0xf367x6[_0x5c87[39]][_0x5c87[35]]){delete _0xf367x6[_0x5c87[39]][_0x5c87[35]]};Interval[_0x5c87[51]]({where:{id:_0xf367x6[_0x5c87[36]][_0x5c87[35]]}})[_0x5c87[29]](function(_0xf367x12){if(!_0xf367x12){return _0xf367x7[_0x5c87[34]](404)};var _0xf367x15=_[_0x5c87[48]](_0xf367x12,_0xf367x6[_0x5c87[39]]);return sequelize[_0x5c87[50]](function(_0xf367x16){return _0xf367x15[_0x5c87[49]]({transaction:_0xf367x16})[_0x5c87[29]](function(_0xf367x12){VoiceExtension[_0x5c87[47]]({interval:_0xf367x12[_0x5c87[8]]},{where:{IntervalId:_0xf367x12[_0x5c87[35]]}},{transaction:_0xf367x16})})})[_0x5c87[29]](function(){return _0xf367x7[_0x5c87[28]](200)[_0x5c87[27]](_0xf367x12)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)})};exports[_0x5c87[52]]=function(_0xf367x6,_0xf367x7){Interval[_0x5c87[37]](_0xf367x6[_0x5c87[36]][_0x5c87[35]])[_0x5c87[29]](function(_0xf367x12){if(!_0xf367x12){return _0xf367x7[_0x5c87[34]](404)};_0xf367x12[_0x5c87[54]]({where:{isApp:true}})[_0x5c87[29]](function(_0xf367x17){console[_0x5c87[41]](_0xf367x17[_0x5c87[44]]);if(_0xf367x17[_0x5c87[44]]>0){return _0xf367x7[_0x5c87[28]](500)[_0x5c87[27]]({message:_0x5c87[53]})};_0xf367x12[_0x5c87[52]]()[_0x5c87[29]](function(){return _0xf367x7[_0x5c87[34]](204)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)})};exports[_0x5c87[55]]=function(_0xf367x6,_0xf367x7){var _0xf367x18=false;Interval[_0x5c87[32]]({where:{id:_0xf367x6[_0x5c87[10]][_0x5c87[35]]},include:[{all:true}]})[_0x5c87[29]](function(_0xf367x11){if(!_0xf367x11){return _0xf367x7[_0x5c87[34]](404)};_0xf367x11[_0x5c87[22]](function(_0xf367x19){if(_0xf367x19[_0x5c87[56]][_0x5c87[44]]>0){_0xf367x18=true}});if(_0xf367x18){return _0xf367x7[_0x5c87[28]](500)[_0x5c87[27]]({message:_0x5c87[53]})};Interval[_0x5c87[52]]({where:{id:_0xf367x6[_0x5c87[10]][_0x5c87[35]]},individualHooks:true})[_0x5c87[29]](function(){return _0xf367x7[_0x5c87[34]](204)})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});})[_0x5c87[26]](function(_0xf367x10){return handleError(_0xf367x7,_0xf367x10)});};function handleError(_0xf367x7,_0xf367x10){return _0xf367x7[_0x5c87[28]](500)[_0x5c87[27]](_0xf367x10)}
\ No newline at end of file
-var _0x4f41=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x72\x65\x6D\x6F\x76\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x75\x70\x64\x61\x74\x65"];_0x4f41[0];var Interval=require(_0x4f41[2])[_0x4f41[1]];exports[_0x4f41[3]]=function(_0x1854x2){Interval[_0x4f41[4]](function(_0x1854x3){onSave(_0x1854x2,_0x1854x3)});Interval[_0x4f41[5]](function(_0x1854x3){onRemove(_0x1854x2,_0x1854x3)});Interval[_0x4f41[6]](function(_0x1854x3){onUpdate(_0x1854x2,_0x1854x3)});};function onSave(_0x1854x2,_0x1854x3,_0x1854x5){_0x1854x2[_0x4f41[8]](_0x4f41[7],_0x1854x3)}function onRemove(_0x1854x2,_0x1854x3,_0x1854x5){_0x1854x2[_0x4f41[8]](_0x4f41[9],_0x1854x3)}function onUpdate(_0x1854x2,_0x1854x3,_0x1854x5){_0x1854x2[_0x4f41[8]](_0x4f41[10],_0x1854x3)}
\ No newline at end of file
+var _0x3057=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x72\x65\x6D\x6F\x76\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x3A\x75\x70\x64\x61\x74\x65"];_0x3057[0];var Interval=require(_0x3057[2])[_0x3057[1]];exports[_0x3057[3]]=function(_0xc61ex2){Interval[_0x3057[4]](function(_0xc61ex3){onSave(_0xc61ex2,_0xc61ex3)});Interval[_0x3057[5]](function(_0xc61ex3){onRemove(_0xc61ex2,_0xc61ex3)});Interval[_0x3057[6]](function(_0xc61ex3){onUpdate(_0xc61ex2,_0xc61ex3)});};function onSave(_0xc61ex2,_0xc61ex3,_0xc61ex5){_0xc61ex2[_0x3057[8]](_0x3057[7],_0xc61ex3)}function onRemove(_0xc61ex2,_0xc61ex3,_0xc61ex5){_0xc61ex2[_0x3057[8]](_0x3057[9],_0xc61ex3)}function onUpdate(_0xc61ex2,_0xc61ex3,_0xc61ex5){_0xc61ex2[_0x3057[8]](_0x3057[10],_0xc61ex3)}
\ No newline at end of file
-var _0x2e89=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74"];_0x2e89[0];var should=require(_0x2e89[1]);var app=require(_0x2e89[2]);var request=require(_0x2e89[3]);describe(_0x2e89[4],function(){it(_0x2e89[5],function(_0x1621x4){request(app)[_0x2e89[13]](_0x2e89[12])[_0x2e89[11]](200)[_0x2e89[11]](_0x2e89[10],/json/)[_0x2e89[9]](function(_0x1621x5,_0x1621x6){if(_0x1621x5){return _0x1621x4(_0x1621x5)};_0x1621x6[_0x2e89[8]][_0x2e89[1]][_0x2e89[7]][_0x2e89[6]](Array);_0x1621x4();})})});
\ No newline at end of file
+var _0x11a9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x67\x65\x74"];_0x11a9[0];var should=require(_0x11a9[1]);var app=require(_0x11a9[2]);var request=require(_0x11a9[3]);describe(_0x11a9[4],function(){it(_0x11a9[5],function(_0xb75dx4){request(app)[_0x11a9[13]](_0x11a9[12])[_0x11a9[11]](200)[_0x11a9[11]](_0x11a9[10],/json/)[_0x11a9[9]](function(_0xb75dx5,_0xb75dx6){if(_0xb75dx5){return _0xb75dx4(_0xb75dx5)};_0xb75dx6[_0x11a9[8]][_0x11a9[1]][_0x11a9[7]][_0x11a9[6]](Array);_0xb75dx4();})})});
\ No newline at end of file
--- /dev/null
+var _0x427c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x72\x65\x71\x75\x65\x73\x74","\x72\x65\x71\x75\x65\x73\x74","\x70\x6F\x73\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x427c[0];var express=require(_0x427c[1]);var auth=require(_0x427c[2]);var controller=require(_0x427c[3]);var router=express.Router();router[_0x427c[7]](_0x427c[4],auth[_0x427c[5]](),controller[_0x427c[6]]);router[_0x427c[10]](_0x427c[8],auth[_0x427c[5]](),controller[_0x427c[9]]);module[_0x427c[11]]=router;
\ No newline at end of file
--- /dev/null
+var _0xe04f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x64\x65\x63\x72\x79\x70\x74","\x70\x61\x72\x73\x65","\x65\x6E\x74\x69\x74\x79","\x6C\x6F\x67","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x72\x65\x71\x75\x65\x73\x74","\x73\x74\x61\x74\x75\x73\x43\x6F\x64\x65","\x50\x4F\x53\x54","\x70\x72\x6F\x76\x69\x73\x69\x6F\x6E\x69\x6E\x67","\x2F\x73\x65\x72\x76\x65\x72\x73\x2F","\x75\x75\x69\x64","\x2F\x72\x65\x71\x75\x65\x73\x74","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0xe04f[0];var _=require(_0xe04f[1]);var rp=require(_0xe04f[2]);var config=require(_0xe04f[3]);var license=require(_0xe04f[4]);var Settings=require(_0xe04f[6])[_0xe04f[5]];function handleError(_0xdcccx7,_0xdcccx8){_0xdcccx8=_0xdcccx8||500;return function(_0xdcccx9){_0xdcccx7[_0xe04f[8]](_0xdcccx8)[_0xe04f[7]](_0xdcccx9)};}function responseWithResult(_0xdcccx7,_0xdcccx8){_0xdcccx8=_0xdcccx8||200;return function(_0xdcccxb){if(_0xdcccxb){if(_0xdcccxb[_0xe04f[9]]){_0xdcccxb[_0xe04f[10]][_0xe04f[9]]=license[_0xe04f[11]](_0xdcccxb[_0xe04f[10]][_0xe04f[9]]);_0xdcccxb[_0xe04f[10]][_0xe04f[9]]=JSON[_0xe04f[12]](_0xdcccxb[_0xe04f[10]][_0xe04f[9]]);};console[_0xe04f[14]](_0xe04f[13],_0xdcccxb[_0xe04f[10]]);_0xdcccx7[_0xe04f[8]](_0xdcccx8)[_0xe04f[15]](_0xdcccxb);}};}function handleEntityNotFound(_0xdcccx7){return function(_0xdcccxb){if(!_0xdcccxb){_0xdcccx7[_0xe04f[8]](404)[_0xe04f[16]]();return null;};return _0xdcccxb;}}function saveUpdates(_0xdcccxe){return function(_0xdcccxb){return _0xdcccxb[_0xe04f[18]](_0xdcccxe)[_0xe04f[17]](function(_0xdcccxf){return _0xdcccxf})}}function removeEntity(_0xdcccx7){return function(_0xdcccxb){if(_0xdcccxb){return _0xdcccxb[_0xe04f[19]]()[_0xe04f[17]](function(){_0xdcccx7[_0xe04f[8]](204)[_0xe04f[16]]()})}}}exports[_0xe04f[20]]=function(_0xdcccx11,_0xdcccx7){Settings[_0xe04f[22]](1)[_0xe04f[17]](handleEntityNotFound(_0xdcccx7))[_0xe04f[17]](responseWithResult(_0xdcccx7))[_0xe04f[21]](handleError(_0xdcccx7))};exports[_0xe04f[23]]=function(_0xdcccx11,_0xdcccx7){};exports[_0xe04f[24]]=function(_0xdcccx11,_0xdcccx7){};exports[_0xe04f[25]]=function(_0xdcccx11,_0xdcccx7){return rp({method:_0xe04f[27],uri:config[_0xe04f[28]]+_0xe04f[29]+config[_0xe04f[30]]+_0xe04f[31],body:_0xdcccx11[_0xe04f[32]],json:true})[_0xe04f[17]](function(_0xdcccx12){console[_0xe04f[14]](_0xdcccx12);_0xdcccx7[_0xe04f[8]](201)[_0xe04f[7]](_0xdcccx12);})[_0xe04f[21]](function(_0xdcccx9){console[_0xe04f[14]](_0xdcccx9);return _0xdcccx7[_0xe04f[8]](_0xdcccx9[_0xe04f[26]]||500)[_0xe04f[7]](_0xdcccx9);})};exports[_0xe04f[33]]=function(_0xdcccx11,_0xdcccx7){};exports[_0xe04f[19]]=function(_0xdcccx11,_0xdcccx7){};
\ No newline at end of file
--- /dev/null
+var _0xb54a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x69\x63\x65\x6E\x73\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6C\x69\x63\x65\x6E\x73\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb54a[0];exports[_0xb54a[1]]=function(_0x71c5x1){};function onSave(_0x71c5x1,_0x71c5x3,_0x71c5x4){_0x71c5x1[_0xb54a[3]](_0xb54a[2],_0x71c5x3)}function onRemove(_0x71c5x1,_0x71c5x3,_0x71c5x4){_0x71c5x1[_0xb54a[3]](_0xb54a[4],_0x71c5x3)}
\ No newline at end of file
-var _0x5492=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x5492[0];var express=require(_0x5492[1]);var controller=require(_0x5492[2]);var router=express.Router();router[_0x5492[5]](_0x5492[3],controller[_0x5492[4]]);router[_0x5492[5]](_0x5492[6],controller[_0x5492[7]]);router[_0x5492[9]](_0x5492[3],controller[_0x5492[8]]);router[_0x5492[9]](_0x5492[10],controller[_0x5492[11]]);router[_0x5492[13]](_0x5492[6],controller[_0x5492[12]]);router[_0x5492[14]](_0x5492[6],controller[_0x5492[12]]);router[_0x5492[16]](_0x5492[3],controller[_0x5492[15]]);router[_0x5492[16]](_0x5492[6],controller[_0x5492[17]]);module[_0x5492[18]]=router;
\ No newline at end of file
+var _0x9701=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x9701[0];var express=require(_0x9701[1]);var controller=require(_0x9701[2]);var router=express.Router();router[_0x9701[5]](_0x9701[3],controller[_0x9701[4]]);router[_0x9701[5]](_0x9701[6],controller[_0x9701[7]]);router[_0x9701[9]](_0x9701[3],controller[_0x9701[8]]);router[_0x9701[9]](_0x9701[10],controller[_0x9701[11]]);router[_0x9701[13]](_0x9701[6],controller[_0x9701[12]]);router[_0x9701[14]](_0x9701[6],controller[_0x9701[12]]);router[_0x9701[16]](_0x9701[3],controller[_0x9701[15]]);router[_0x9701[16]](_0x9701[6],controller[_0x9701[17]]);module[_0x9701[18]]=router;
\ No newline at end of file
-var _0x6348=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x69\x6E\x63\x6F\x6D\x69\x6E\x67","\x62\x6F\x64\x79","\x6F\x75\x74\x67\x6F\x69\x6E\x67","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79","\x6C\x6F\x67","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x6E\x64","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6348[0];var _=require(_0x6348[1]);var util=require(_0x6348[2]);var async=require(_0x6348[3]);var sequelize=require(_0x6348[5])[_0x6348[4]];var MailAccount=require(_0x6348[5])[_0x6348[6]];var MailApplication=require(_0x6348[5])[_0x6348[7]];var MailServerIn=require(_0x6348[5])[_0x6348[8]];var MailServerOut=require(_0x6348[5])[_0x6348[9]];exports[_0x6348[10]]=function(_0x6800x9,_0x6800xa){var _0x6800xb=[_0x6348[11],_0x6348[12],_0x6348[13]];var _0x6800xc=_0x6800x9[_0x6348[15]][_0x6348[14]]?parseInt(_0x6800x9[_0x6348[15]][_0x6348[14]],10):100;var _0x6800xd=_0x6800x9[_0x6348[15]][_0x6348[16]]?parseInt(_0x6800x9[_0x6348[15]][_0x6348[16]],10):0;var _0x6800xe={where:{},limit:_0x6800xc,offset:_0x6800xd*_0x6800xc,include:[{all:true}]};_[_0x6348[30]](_0x6800x9[_0x6348[15]],function(_0x6800xf,_0x6800x10){switch(_0x6800x10){case _0x6348[14]:;case _0x6348[16]:break ;;case _0x6348[19]:_0x6800xe[_0x6348[17]]=util[_0x6348[22]](_0x6348[18],_0x6800x9[_0x6348[15]][_0x6348[19]],_0x6800x9[_0x6348[15]][_0x6348[20]]||_0x6348[21])||null;break ;;case _0x6348[20]:break ;;case _0x6348[28]:_0x6800xe[_0x6348[24]][_0x6348[23]]=[];_0x6800xb[_0x6348[27]](function(_0x6800x11){var _0x6800x12={};_0x6800x12[_0x6800x11]={$like:_0x6348[25]+_0x6800xf+_0x6348[25]};_0x6800xe[_0x6348[24]][_0x6348[23]][_0x6348[26]](_0x6800x12);});break ;;default:_0x6800xe[_0x6348[24]][_0x6800x10]={$like:{}};_0x6800xe[_0x6348[24]][_0x6800x10][_0x6348[29]]=_0x6348[25]+_0x6800xf+_0x6348[25];;}});MailAccount[_0x6348[44]](_0x6800xe)[_0x6348[43]](function(_0x6800x14){var _0x6800x15=Math[_0x6348[33]](_0x6800x14[_0x6348[32]]/_0x6800xc);var _0x6800x16=_0x6800x15>(_0x6800xe[_0x6348[34]]+1)?util[_0x6348[22]](_0x6348[35],_0x6800x9[_0x6348[36]],_0x6800x9[_0x6348[38]][_0x6348[37]],_0x6800x9[_0x6348[39]],_0x6800xd+1):null;var _0x6800x17=_0x6800xd>0?util[_0x6348[22]](_0x6348[35],_0x6800x9[_0x6348[36]],_0x6800x9[_0x6348[38]][_0x6348[37]],_0x6800x9[_0x6348[39]],_0x6800xd-1):null;_0x6800xa[_0x6348[42]](200)[_0x6348[41]]({count:_0x6800x14[_0x6348[32]],rows:_0x6800x14[_0x6348[40]],next_page:_0x6800x16,previous_page:_0x6800x17,total_pages:_0x6800x15});})[_0x6348[31]](function(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)});};exports[_0x6348[45]]=function(_0x6800x9,_0x6800xa,_0x6800x18){MailAccount[_0x6348[49]](_0x6800x9[_0x6348[48]][_0x6348[47]],{include:[{all:true}]})[_0x6348[43]](function(_0x6800x19){if(!_0x6800x19){return _0x6800xa[_0x6348[46]](404)};return _0x6800xa[_0x6348[41]](_0x6800x19);})[_0x6348[31]](function(_0x6800x13){return _0x6800x18(_0x6800x13)})};exports[_0x6348[50]]=function(_0x6800x9,_0x6800xa,_0x6800x18){return sequelize[_0x6348[55]](function(_0x6800x1a){return MailAccount[_0x6348[50]]({name:_0x6800x9[_0x6348[53]][_0x6348[12]],address:_0x6800x9[_0x6348[53]][_0x6348[13]],description:_0x6800x9[_0x6348[53]][_0x6348[11]]},{transaction:_0x6800x1a})[_0x6348[43]](function(_0x6800x19){_0x6800x9[_0x6348[53]][_0x6348[52]][_0x6348[51]]=_0x6800x19[_0x6348[47]];return MailServerIn[_0x6348[50]](_0x6800x9[_0x6348[53]][_0x6348[52]],{transaction:_0x6800x1a})[_0x6348[43]](function(_0x6800x1b){_0x6800x9[_0x6348[53]][_0x6348[54]][_0x6348[51]]=_0x6800x19[_0x6348[47]];return MailServerOut[_0x6348[50]](_0x6800x9[_0x6348[53]][_0x6348[54]],{transaction:_0x6800x1a});});})})[_0x6348[43]](function(_0x6800x14){return _0x6800xa[_0x6348[42]](201)[_0x6348[41]](_0x6800x14)})[_0x6348[31]](function(_0x6800x13){return _0x6800x18(_0x6800x13)})};exports[_0x6348[56]]=function(_0x6800x9,_0x6800xa){if(_0x6800x9[_0x6348[53]][_0x6348[47]]){delete _0x6800x9[_0x6348[53]][_0x6348[47]]};MailAccount[_0x6348[49]](_0x6800x9[_0x6348[48]][_0x6348[47]])[_0x6348[43]](function(_0x6800x19){if(!_0x6800x19){return _0x6800xa[_0x6348[46]](404)};var _0x6800x1c=_[_0x6348[57]](_0x6800x19,_0x6800x9[_0x6348[53]]);_0x6800x1c[_0x6348[58]]()[_0x6348[43]](function(){return _0x6800xa[_0x6348[42]](200)[_0x6348[41]](_0x6800x19)})[_0x6348[31]](function(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)});})[_0x6348[31]](function(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)});};exports[_0x6348[59]]=function(_0x6800x9,_0x6800xa,_0x6800x18){MailApplication[_0x6348[68]]({where:{id:_0x6800x9[_0x6348[53]][_0x6348[62]]}})[_0x6348[43]](function(_0x6800x1d){var _0x6800x1e=_0x6800x1d;async[_0x6348[69]]([function(_0x6800x1f){MailApplication[_0x6348[60]]({where:{id:_0x6800x9[_0x6348[53]][_0x6348[62]]}})[_0x6348[43]](function(){console[_0x6348[61]](_0x6348[60]);_0x6800x1f();})[_0x6348[31]](function(_0x6800x13){_0x6800x1f(_0x6800x13)})},function(_0x6800x1f){var _0x6800x20=[];for(var _0x6800x21=0;_0x6800x21<_0x6800x9[_0x6348[53]][_0x6348[62]][_0x6348[63]];_0x6800x21++){var _0x6800x22=_[_0x6348[64]](_0x6800x1e,{"\x69\x64":_0x6800x9[_0x6348[53]][_0x6348[62]][_0x6800x21]});if(_0x6800x22){_0x6800x22[_0x6348[65]]=_0x6800x21+1;_0x6800x20[_0x6348[26]](_0x6800x22[_0x6348[66]]);};};MailApplication[_0x6348[67]](_0x6800x20)[_0x6348[43]](function(){console[_0x6348[61]](_0x6348[67]);_0x6800x1f();})[_0x6348[31]](function(_0x6800x13){_0x6800x1f(_0x6800x13)});},function(_0x6800x1f){MailApplication[_0x6348[68]]({where:{id:_0x6800x9[_0x6348[53]][_0x6348[62]]},order:_0x6348[65],include:[{all:true}]})[_0x6348[43]](function(_0x6800x1d){console[_0x6348[61]](_0x6800x1d);_0x6800x1f(null,_0x6800x1d);})[_0x6348[31]](function(_0x6800x13){_0x6800x1f(_0x6800x13)})}],function(_0x6800x13,_0x6800x14){if(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)}else {return _0x6800xa[_0x6348[42]](201)[_0x6348[41]](_0x6800x14)}});})[_0x6348[31]](function(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)})};exports[_0x6348[60]]=function(_0x6800x9,_0x6800xa,_0x6800x18){MailAccount[_0x6348[49]](_0x6800x9[_0x6348[48]][_0x6348[47]])[_0x6348[43]](function(_0x6800x19){if(!_0x6800x19){return _0x6800xa[_0x6348[46]](404)};_0x6800x19[_0x6348[60]]()[_0x6348[43]](function(){return _0x6800xa[_0x6348[46]](204)})[_0x6348[31]](function(_0x6800x13){return _0x6800x18(_0x6800x13)});})[_0x6348[31]](function(_0x6800x13){return _0x6800x18(_0x6800x13)})};exports[_0x6348[70]]=function(_0x6800x9,_0x6800xa){MailAccount[_0x6348[60]]({where:{id:_0x6800x9[_0x6348[15]][_0x6348[47]]},individualHooks:true})[_0x6348[43]](function(){return _0x6800xa[_0x6348[46]](204)})[_0x6348[31]](function(_0x6800x13){return handleError(_0x6800xa,_0x6800x13)})};function handleError(_0x6800xa,_0x6800x13){return _0x6800xa[_0x6348[42]](500)[_0x6348[41]](_0x6800x13)}
\ No newline at end of file
+var _0x6fbd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x69\x6E\x63\x6F\x6D\x69\x6E\x67","\x62\x6F\x64\x79","\x6F\x75\x74\x67\x6F\x69\x6E\x67","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x73\x6F\x72\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79","\x6C\x6F\x67","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x6C\x65\x6E\x67\x74\x68","\x66\x69\x6E\x64","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6fbd[0];var _=require(_0x6fbd[1]);var util=require(_0x6fbd[2]);var async=require(_0x6fbd[3]);var sequelize=require(_0x6fbd[5])[_0x6fbd[4]];var MailAccount=require(_0x6fbd[5])[_0x6fbd[6]];var MailApplication=require(_0x6fbd[5])[_0x6fbd[7]];var MailServerIn=require(_0x6fbd[5])[_0x6fbd[8]];var MailServerOut=require(_0x6fbd[5])[_0x6fbd[9]];exports[_0x6fbd[10]]=function(_0x4e8cx9,_0x4e8cxa){var _0x4e8cxb=[_0x6fbd[11],_0x6fbd[12],_0x6fbd[13]];var _0x4e8cxc=_0x4e8cx9[_0x6fbd[15]][_0x6fbd[14]]?parseInt(_0x4e8cx9[_0x6fbd[15]][_0x6fbd[14]],10):100;var _0x4e8cxd=_0x4e8cx9[_0x6fbd[15]][_0x6fbd[16]]?parseInt(_0x4e8cx9[_0x6fbd[15]][_0x6fbd[16]],10):0;var _0x4e8cxe={where:{},limit:_0x4e8cxc,offset:_0x4e8cxd*_0x4e8cxc,include:[{all:true}]};_[_0x6fbd[30]](_0x4e8cx9[_0x6fbd[15]],function(_0x4e8cxf,_0x4e8cx10){switch(_0x4e8cx10){case _0x6fbd[14]:;case _0x6fbd[16]:break ;;case _0x6fbd[19]:_0x4e8cxe[_0x6fbd[17]]=util[_0x6fbd[22]](_0x6fbd[18],_0x4e8cx9[_0x6fbd[15]][_0x6fbd[19]],_0x4e8cx9[_0x6fbd[15]][_0x6fbd[20]]||_0x6fbd[21])||null;break ;;case _0x6fbd[20]:break ;;case _0x6fbd[28]:_0x4e8cxe[_0x6fbd[24]][_0x6fbd[23]]=[];_0x4e8cxb[_0x6fbd[27]](function(_0x4e8cx11){var _0x4e8cx12={};_0x4e8cx12[_0x4e8cx11]={$like:_0x6fbd[25]+_0x4e8cxf+_0x6fbd[25]};_0x4e8cxe[_0x6fbd[24]][_0x6fbd[23]][_0x6fbd[26]](_0x4e8cx12);});break ;;default:_0x4e8cxe[_0x6fbd[24]][_0x4e8cx10]={$like:{}};_0x4e8cxe[_0x6fbd[24]][_0x4e8cx10][_0x6fbd[29]]=_0x6fbd[25]+_0x4e8cxf+_0x6fbd[25];;}});MailAccount[_0x6fbd[44]](_0x4e8cxe)[_0x6fbd[43]](function(_0x4e8cx14){var _0x4e8cx15=Math[_0x6fbd[33]](_0x4e8cx14[_0x6fbd[32]]/_0x4e8cxc);var _0x4e8cx16=_0x4e8cx15>(_0x4e8cxe[_0x6fbd[34]]+1)?util[_0x6fbd[22]](_0x6fbd[35],_0x4e8cx9[_0x6fbd[36]],_0x4e8cx9[_0x6fbd[38]][_0x6fbd[37]],_0x4e8cx9[_0x6fbd[39]],_0x4e8cxd+1):null;var _0x4e8cx17=_0x4e8cxd>0?util[_0x6fbd[22]](_0x6fbd[35],_0x4e8cx9[_0x6fbd[36]],_0x4e8cx9[_0x6fbd[38]][_0x6fbd[37]],_0x4e8cx9[_0x6fbd[39]],_0x4e8cxd-1):null;_0x4e8cxa[_0x6fbd[42]](200)[_0x6fbd[41]]({count:_0x4e8cx14[_0x6fbd[32]],rows:_0x4e8cx14[_0x6fbd[40]],next_page:_0x4e8cx16,previous_page:_0x4e8cx17,total_pages:_0x4e8cx15});})[_0x6fbd[31]](function(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)});};exports[_0x6fbd[45]]=function(_0x4e8cx9,_0x4e8cxa,_0x4e8cx18){MailAccount[_0x6fbd[49]](_0x4e8cx9[_0x6fbd[48]][_0x6fbd[47]],{include:[{all:true}]})[_0x6fbd[43]](function(_0x4e8cx19){if(!_0x4e8cx19){return _0x4e8cxa[_0x6fbd[46]](404)};return _0x4e8cxa[_0x6fbd[41]](_0x4e8cx19);})[_0x6fbd[31]](function(_0x4e8cx13){return _0x4e8cx18(_0x4e8cx13)})};exports[_0x6fbd[50]]=function(_0x4e8cx9,_0x4e8cxa,_0x4e8cx18){return sequelize[_0x6fbd[55]](function(_0x4e8cx1a){return MailAccount[_0x6fbd[50]]({name:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[12]],address:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[13]],description:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[11]]},{transaction:_0x4e8cx1a})[_0x6fbd[43]](function(_0x4e8cx19){_0x4e8cx9[_0x6fbd[53]][_0x6fbd[52]][_0x6fbd[51]]=_0x4e8cx19[_0x6fbd[47]];return MailServerIn[_0x6fbd[50]](_0x4e8cx9[_0x6fbd[53]][_0x6fbd[52]],{transaction:_0x4e8cx1a})[_0x6fbd[43]](function(_0x4e8cx1b){_0x4e8cx9[_0x6fbd[53]][_0x6fbd[54]][_0x6fbd[51]]=_0x4e8cx19[_0x6fbd[47]];return MailServerOut[_0x6fbd[50]](_0x4e8cx9[_0x6fbd[53]][_0x6fbd[54]],{transaction:_0x4e8cx1a});});})})[_0x6fbd[43]](function(_0x4e8cx14){return _0x4e8cxa[_0x6fbd[42]](201)[_0x6fbd[41]](_0x4e8cx14)})[_0x6fbd[31]](function(_0x4e8cx13){return _0x4e8cx18(_0x4e8cx13)})};exports[_0x6fbd[56]]=function(_0x4e8cx9,_0x4e8cxa){if(_0x4e8cx9[_0x6fbd[53]][_0x6fbd[47]]){delete _0x4e8cx9[_0x6fbd[53]][_0x6fbd[47]]};MailAccount[_0x6fbd[49]](_0x4e8cx9[_0x6fbd[48]][_0x6fbd[47]])[_0x6fbd[43]](function(_0x4e8cx19){if(!_0x4e8cx19){return _0x4e8cxa[_0x6fbd[46]](404)};var _0x4e8cx1c=_[_0x6fbd[57]](_0x4e8cx19,_0x4e8cx9[_0x6fbd[53]]);_0x4e8cx1c[_0x6fbd[58]]()[_0x6fbd[43]](function(){return _0x4e8cxa[_0x6fbd[42]](200)[_0x6fbd[41]](_0x4e8cx19)})[_0x6fbd[31]](function(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)});})[_0x6fbd[31]](function(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)});};exports[_0x6fbd[59]]=function(_0x4e8cx9,_0x4e8cxa,_0x4e8cx18){MailApplication[_0x6fbd[68]]({where:{id:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[62]]}})[_0x6fbd[43]](function(_0x4e8cx1d){var _0x4e8cx1e=_0x4e8cx1d;async[_0x6fbd[69]]([function(_0x4e8cx1f){MailApplication[_0x6fbd[60]]({where:{id:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[62]]}})[_0x6fbd[43]](function(){console[_0x6fbd[61]](_0x6fbd[60]);_0x4e8cx1f();})[_0x6fbd[31]](function(_0x4e8cx13){_0x4e8cx1f(_0x4e8cx13)})},function(_0x4e8cx1f){var _0x4e8cx20=[];for(var _0x4e8cx21=0;_0x4e8cx21<_0x4e8cx9[_0x6fbd[53]][_0x6fbd[62]][_0x6fbd[63]];_0x4e8cx21++){var _0x4e8cx22=_[_0x6fbd[64]](_0x4e8cx1e,{"\x69\x64":_0x4e8cx9[_0x6fbd[53]][_0x6fbd[62]][_0x4e8cx21]});if(_0x4e8cx22){_0x4e8cx22[_0x6fbd[65]]=_0x4e8cx21+1;_0x4e8cx20[_0x6fbd[26]](_0x4e8cx22[_0x6fbd[66]]);};};MailApplication[_0x6fbd[67]](_0x4e8cx20)[_0x6fbd[43]](function(){console[_0x6fbd[61]](_0x6fbd[67]);_0x4e8cx1f();})[_0x6fbd[31]](function(_0x4e8cx13){_0x4e8cx1f(_0x4e8cx13)});},function(_0x4e8cx1f){MailApplication[_0x6fbd[68]]({where:{id:_0x4e8cx9[_0x6fbd[53]][_0x6fbd[62]]},order:_0x6fbd[65],include:[{all:true}]})[_0x6fbd[43]](function(_0x4e8cx1d){console[_0x6fbd[61]](_0x4e8cx1d);_0x4e8cx1f(null,_0x4e8cx1d);})[_0x6fbd[31]](function(_0x4e8cx13){_0x4e8cx1f(_0x4e8cx13)})}],function(_0x4e8cx13,_0x4e8cx14){if(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)}else {return _0x4e8cxa[_0x6fbd[42]](201)[_0x6fbd[41]](_0x4e8cx14)}});})[_0x6fbd[31]](function(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)})};exports[_0x6fbd[60]]=function(_0x4e8cx9,_0x4e8cxa,_0x4e8cx18){MailAccount[_0x6fbd[49]](_0x4e8cx9[_0x6fbd[48]][_0x6fbd[47]])[_0x6fbd[43]](function(_0x4e8cx19){if(!_0x4e8cx19){return _0x4e8cxa[_0x6fbd[46]](404)};_0x4e8cx19[_0x6fbd[60]]()[_0x6fbd[43]](function(){return _0x4e8cxa[_0x6fbd[46]](204)})[_0x6fbd[31]](function(_0x4e8cx13){return _0x4e8cx18(_0x4e8cx13)});})[_0x6fbd[31]](function(_0x4e8cx13){return _0x4e8cx18(_0x4e8cx13)})};exports[_0x6fbd[70]]=function(_0x4e8cx9,_0x4e8cxa){MailAccount[_0x6fbd[60]]({where:{id:_0x4e8cx9[_0x6fbd[15]][_0x6fbd[47]]},individualHooks:true})[_0x6fbd[43]](function(){return _0x4e8cxa[_0x6fbd[46]](204)})[_0x6fbd[31]](function(_0x4e8cx13){return handleError(_0x4e8cxa,_0x4e8cx13)})};function handleError(_0x4e8cxa,_0x4e8cx13){return _0x4e8cxa[_0x6fbd[42]](500)[_0x6fbd[41]](_0x4e8cx13)}
\ No newline at end of file
-var _0x8d37=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8d37[0];var MailAccount=require(_0x8d37[2])[_0x8d37[1]];exports[_0x8d37[3]]=function(_0x6075x2){MailAccount[_0x8d37[4]](function(_0x6075x3){onSave(_0x6075x2,_0x6075x3)});MailAccount[_0x8d37[5]](function(_0x6075x3){onSave(_0x6075x2,_0x6075x3)});MailAccount[_0x8d37[6]](function(_0x6075x3){onRemove(_0x6075x2,_0x6075x3)});};function onSave(_0x6075x2,_0x6075x3,_0x6075x5){_0x6075x2[_0x8d37[8]](_0x8d37[7],_0x6075x3)}function onRemove(_0x6075x2,_0x6075x3,_0x6075x5){_0x6075x2[_0x8d37[8]](_0x8d37[9],_0x6075x3)}
\ No newline at end of file
+var _0xcac5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xcac5[0];var MailAccount=require(_0xcac5[2])[_0xcac5[1]];exports[_0xcac5[3]]=function(_0xc1e7x2){MailAccount[_0xcac5[4]](function(_0xc1e7x3){onSave(_0xc1e7x2,_0xc1e7x3)});MailAccount[_0xcac5[5]](function(_0xc1e7x3){onSave(_0xc1e7x2,_0xc1e7x3)});MailAccount[_0xcac5[6]](function(_0xc1e7x3){onRemove(_0xc1e7x2,_0xc1e7x3)});};function onSave(_0xc1e7x2,_0xc1e7x3,_0xc1e7x5){_0xc1e7x2[_0xcac5[8]](_0xcac5[7],_0xc1e7x3)}function onRemove(_0xc1e7x2,_0xc1e7x3,_0xc1e7x5){_0xc1e7x2[_0xcac5[8]](_0xcac5[9],_0xc1e7x3)}
\ No newline at end of file
-var _0x930c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0x930c[0];var should=require(_0x930c[1]);var app=require(_0x930c[2]);var request=require(_0x930c[3]);describe(_0x930c[4],function(){it(_0x930c[5],function(_0x751fx4){request(app)[_0x930c[13]](_0x930c[12])[_0x930c[11]](200)[_0x930c[11]](_0x930c[10],/json/)[_0x930c[9]](function(_0x751fx5,_0x751fx6){if(_0x751fx5){return _0x751fx4(_0x751fx5)};_0x751fx6[_0x930c[8]][_0x930c[1]][_0x930c[7]][_0x930c[6]](Array);_0x751fx4();})})});
\ No newline at end of file
+var _0xd3d0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xd3d0[0];var should=require(_0xd3d0[1]);var app=require(_0xd3d0[2]);var request=require(_0xd3d0[3]);describe(_0xd3d0[4],function(){it(_0xd3d0[5],function(_0x3e20x4){request(app)[_0xd3d0[13]](_0xd3d0[12])[_0xd3d0[11]](200)[_0xd3d0[11]](_0xd3d0[10],/json/)[_0xd3d0[9]](function(_0x3e20x5,_0x3e20x6){if(_0x3e20x5){return _0x3e20x4(_0x3e20x5)};_0x3e20x6[_0xd3d0[8]][_0xd3d0[1]][_0xd3d0[7]][_0xd3d0[6]](Array);_0x3e20x4();})})});
\ No newline at end of file
-var _0x49fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x49fa[0];var express=require(_0x49fa[1]);var controller=require(_0x49fa[2]);var router=express.Router();router[_0x49fa[5]](_0x49fa[3],controller[_0x49fa[4]]);router[_0x49fa[5]](_0x49fa[6],controller[_0x49fa[7]]);router[_0x49fa[9]](_0x49fa[3],controller[_0x49fa[8]]);router[_0x49fa[11]](_0x49fa[6],controller[_0x49fa[10]]);router[_0x49fa[12]](_0x49fa[6],controller[_0x49fa[10]]);router[_0x49fa[14]](_0x49fa[6],controller[_0x49fa[13]]);module[_0x49fa[15]]=router;
\ No newline at end of file
+var _0x1b1f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1b1f[0];var express=require(_0x1b1f[1]);var controller=require(_0x1b1f[2]);var router=express.Router();router[_0x1b1f[5]](_0x1b1f[3],controller[_0x1b1f[4]]);router[_0x1b1f[5]](_0x1b1f[6],controller[_0x1b1f[7]]);router[_0x1b1f[9]](_0x1b1f[3],controller[_0x1b1f[8]]);router[_0x1b1f[11]](_0x1b1f[6],controller[_0x1b1f[10]]);router[_0x1b1f[12]](_0x1b1f[6],controller[_0x1b1f[10]]);router[_0x1b1f[14]](_0x1b1f[6],controller[_0x1b1f[13]]);module[_0x1b1f[15]]=router;
\ No newline at end of file
-var _0x752b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x752b[0];var _=require(_0x752b[1]);var MailApplication=require(_0x752b[3])[_0x752b[2]];exports[_0x752b[4]]=function(_0xfa35x3,_0xfa35x4,_0xfa35x5){MailApplication[_0x752b[11]]({where:_0xfa35x3[_0x752b[9]],order:_0x752b[10],include:[{all:true}]})[_0x752b[8]](function(_0xfa35x7){return _0xfa35x4[_0x752b[7]](200)[_0x752b[6]](_0xfa35x7)})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)})};exports[_0x752b[12]]=function(_0xfa35x3,_0xfa35x4,_0xfa35x5){MailApplication[_0x752b[16]](_0xfa35x3[_0x752b[15]][_0x752b[14]],{include:[{all:true}]})[_0x752b[8]](function(_0xfa35x8){if(!_0xfa35x8){return _0xfa35x4[_0x752b[13]](404)};return _0xfa35x4[_0x752b[6]](_0xfa35x8);})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)})};exports[_0x752b[17]]=function(_0xfa35x3,_0xfa35x4,_0xfa35x5){MailApplication[_0x752b[20]](_0x752b[10],{where:{MailAccountId:_0xfa35x3[_0x752b[18]][_0x752b[19]]}})[_0x752b[8]](function(_0xfa35x9){_0xfa35x3[_0x752b[18]][_0x752b[10]]=_0xfa35x9?++_0xfa35x9:1;MailApplication[_0x752b[17]](_0xfa35x3[_0x752b[18]])[_0x752b[8]](function(_0xfa35x8){return _0xfa35x4[_0x752b[7]](201)[_0x752b[6]](_0xfa35x8)})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)});})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)})};exports[_0x752b[21]]=function(_0xfa35x3,_0xfa35x4,_0xfa35x5){if(_0xfa35x3[_0x752b[18]][_0x752b[14]]){delete _0xfa35x3[_0x752b[18]][_0x752b[14]]};MailApplication[_0x752b[16]](_0xfa35x3[_0x752b[15]][_0x752b[14]])[_0x752b[8]](function(_0xfa35x8){if(!_0xfa35x8){return _0xfa35x4[_0x752b[13]](404)};var _0xfa35xa=_[_0x752b[22]](_0xfa35x8,_0xfa35x3[_0x752b[18]]);_0xfa35xa[_0x752b[23]]()[_0x752b[8]](function(){return _0xfa35x4[_0x752b[7]](200)[_0x752b[6]](_0xfa35x8)})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)});})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)});};exports[_0x752b[24]]=function(_0xfa35x3,_0xfa35x4,_0xfa35x5){MailApplication[_0x752b[16]](_0xfa35x3[_0x752b[15]][_0x752b[14]])[_0x752b[8]](function(_0xfa35x8){if(!_0xfa35x8){return _0xfa35x4[_0x752b[13]](404)};_0xfa35x8[_0x752b[24]]()[_0x752b[8]](function(){return _0xfa35x4[_0x752b[13]](204)})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)});})[_0x752b[5]](function(_0xfa35x6){return handleError(_0xfa35x4,_0xfa35x6)})};function handleError(_0xfa35x4,_0xfa35x6){return _0xfa35x4[_0x752b[7]](500)[_0x752b[6]](_0xfa35x6)}
\ No newline at end of file
+var _0xb801=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xb801[0];var _=require(_0xb801[1]);var MailApplication=require(_0xb801[3])[_0xb801[2]];exports[_0xb801[4]]=function(_0xfb3dx3,_0xfb3dx4,_0xfb3dx5){MailApplication[_0xb801[11]]({where:_0xfb3dx3[_0xb801[9]],order:_0xb801[10],include:[{all:true}]})[_0xb801[8]](function(_0xfb3dx7){return _0xfb3dx4[_0xb801[7]](200)[_0xb801[6]](_0xfb3dx7)})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)})};exports[_0xb801[12]]=function(_0xfb3dx3,_0xfb3dx4,_0xfb3dx5){MailApplication[_0xb801[16]](_0xfb3dx3[_0xb801[15]][_0xb801[14]],{include:[{all:true}]})[_0xb801[8]](function(_0xfb3dx8){if(!_0xfb3dx8){return _0xfb3dx4[_0xb801[13]](404)};return _0xfb3dx4[_0xb801[6]](_0xfb3dx8);})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)})};exports[_0xb801[17]]=function(_0xfb3dx3,_0xfb3dx4,_0xfb3dx5){MailApplication[_0xb801[20]](_0xb801[10],{where:{MailAccountId:_0xfb3dx3[_0xb801[18]][_0xb801[19]]}})[_0xb801[8]](function(_0xfb3dx9){_0xfb3dx3[_0xb801[18]][_0xb801[10]]=_0xfb3dx9?++_0xfb3dx9:1;MailApplication[_0xb801[17]](_0xfb3dx3[_0xb801[18]])[_0xb801[8]](function(_0xfb3dx8){return _0xfb3dx4[_0xb801[7]](201)[_0xb801[6]](_0xfb3dx8)})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)});})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)})};exports[_0xb801[21]]=function(_0xfb3dx3,_0xfb3dx4,_0xfb3dx5){if(_0xfb3dx3[_0xb801[18]][_0xb801[14]]){delete _0xfb3dx3[_0xb801[18]][_0xb801[14]]};MailApplication[_0xb801[16]](_0xfb3dx3[_0xb801[15]][_0xb801[14]])[_0xb801[8]](function(_0xfb3dx8){if(!_0xfb3dx8){return _0xfb3dx4[_0xb801[13]](404)};var _0xfb3dxa=_[_0xb801[22]](_0xfb3dx8,_0xfb3dx3[_0xb801[18]]);_0xfb3dxa[_0xb801[23]]()[_0xb801[8]](function(){return _0xfb3dx4[_0xb801[7]](200)[_0xb801[6]](_0xfb3dx8)})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)});})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)});};exports[_0xb801[24]]=function(_0xfb3dx3,_0xfb3dx4,_0xfb3dx5){MailApplication[_0xb801[16]](_0xfb3dx3[_0xb801[15]][_0xb801[14]])[_0xb801[8]](function(_0xfb3dx8){if(!_0xfb3dx8){return _0xfb3dx4[_0xb801[13]](404)};_0xfb3dx8[_0xb801[24]]()[_0xb801[8]](function(){return _0xfb3dx4[_0xb801[13]](204)})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)});})[_0xb801[5]](function(_0xfb3dx6){return handleError(_0xfb3dx4,_0xfb3dx6)})};function handleError(_0xfb3dx4,_0xfb3dx6){return _0xfb3dx4[_0xb801[7]](500)[_0xb801[6]](_0xfb3dx6)}
\ No newline at end of file
-var _0xa932=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa932[0];var mailApplication=require(_0xa932[2])[_0xa932[1]];exports[_0xa932[3]]=function(_0xbea2x2){mailApplication[_0xa932[4]](function(_0xbea2x3){onSave(_0xbea2x2,_0xbea2x3)});mailApplication[_0xa932[5]](function(_0xbea2x3){onRemove(_0xbea2x2,_0xbea2x3)});};function onSave(_0xbea2x2,_0xbea2x3,_0xbea2x5){_0xbea2x2[_0xa932[7]](_0xa932[6],_0xbea2x3)}function onRemove(_0xbea2x2,_0xbea2x3,_0xbea2x5){_0xbea2x2[_0xa932[7]](_0xa932[8],_0xbea2x3)}
\ No newline at end of file
+var _0x9a31=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9a31[0];var mailApplication=require(_0x9a31[2])[_0x9a31[1]];exports[_0x9a31[3]]=function(_0xcc7ex2){mailApplication[_0x9a31[4]](function(_0xcc7ex3){onSave(_0xcc7ex2,_0xcc7ex3)});mailApplication[_0x9a31[5]](function(_0xcc7ex3){onRemove(_0xcc7ex2,_0xcc7ex3)});};function onSave(_0xcc7ex2,_0xcc7ex3,_0xcc7ex5){_0xcc7ex2[_0x9a31[7]](_0x9a31[6],_0xcc7ex3)}function onRemove(_0xcc7ex2,_0xcc7ex3,_0xcc7ex5){_0xcc7ex2[_0x9a31[7]](_0x9a31[8],_0xcc7ex3)}
\ No newline at end of file
-var _0xac51=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xac51[0];var should=require(_0xac51[1]);var app=require(_0xac51[2]);var request=require(_0xac51[3]);describe(_0xac51[4],function(){it(_0xac51[5],function(_0x68a2x4){request(app)[_0xac51[13]](_0xac51[12])[_0xac51[11]](200)[_0xac51[11]](_0xac51[10],/json/)[_0xac51[9]](function(_0x68a2x5,_0x68a2x6){if(_0x68a2x5){return _0x68a2x4(_0x68a2x5)};_0x68a2x6[_0xac51[8]][_0xac51[1]][_0xac51[7]][_0xac51[6]](Array);_0x68a2x4();})})});
\ No newline at end of file
+var _0x1745=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x1745[0];var should=require(_0x1745[1]);var app=require(_0x1745[2]);var request=require(_0x1745[3]);describe(_0x1745[4],function(){it(_0x1745[5],function(_0x1daex4){request(app)[_0x1745[13]](_0x1745[12])[_0x1745[11]](200)[_0x1745[11]](_0x1745[10],/json/)[_0x1745[9]](function(_0x1daex5,_0x1daex6){if(_0x1daex5){return _0x1daex4(_0x1daex5)};_0x1daex6[_0x1745[8]][_0x1745[1]][_0x1745[7]][_0x1745[6]](Array);_0x1daex4();})})});
\ No newline at end of file
-var _0x56e7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x56e7[0];var express=require(_0x56e7[1]);var controller=require(_0x56e7[2]);var router=express.Router();router[_0x56e7[5]](_0x56e7[3],controller[_0x56e7[4]]);router[_0x56e7[5]](_0x56e7[6],controller[_0x56e7[7]]);router[_0x56e7[9]](_0x56e7[3],controller[_0x56e7[8]]);router[_0x56e7[11]](_0x56e7[6],controller[_0x56e7[10]]);router[_0x56e7[12]](_0x56e7[6],controller[_0x56e7[10]]);router[_0x56e7[14]](_0x56e7[6],controller[_0x56e7[13]]);module[_0x56e7[15]]=router;
\ No newline at end of file
+var _0xf176=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf176[0];var express=require(_0xf176[1]);var controller=require(_0xf176[2]);var router=express.Router();router[_0xf176[5]](_0xf176[3],controller[_0xf176[4]]);router[_0xf176[5]](_0xf176[6],controller[_0xf176[7]]);router[_0xf176[9]](_0xf176[3],controller[_0xf176[8]]);router[_0xf176[11]](_0xf176[6],controller[_0xf176[10]]);router[_0xf176[12]](_0xf176[6],controller[_0xf176[10]]);router[_0xf176[14]](_0xf176[6],controller[_0xf176[13]]);module[_0xf176[15]]=router;
\ No newline at end of file
-var _0xbd91=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x70\x61\x74\x68","\x66\x69\x6C\x65\x4E\x61\x6D\x65","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xbd91[0];var _=require(_0xbd91[1]);var fs=require(_0xbd91[2]);var MailAttachment=require(_0xbd91[4])[_0xbd91[3]];exports[_0xbd91[5]]=function(_0x569ax4,_0x569ax5,_0x569ax6){MailAttachment[_0xbd91[10]]()[_0xbd91[9]](function(_0x569ax8){return _0x569ax5[_0xbd91[8]](200)[_0xbd91[7]](_0x569ax8)})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)})};exports[_0xbd91[11]]=function(_0x569ax4,_0x569ax5,_0x569ax6){MailAttachment[_0xbd91[17]](_0x569ax4[_0xbd91[16]][_0xbd91[15]])[_0xbd91[9]](function(_0x569ax9){_0x569ax5[_0xbd91[14]](_0x569ax9[_0xbd91[12]],_0x569ax9[_0xbd91[13]])})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)})};exports[_0xbd91[18]]=function(_0x569ax4,_0x569ax5,_0x569ax6){MailAttachment[_0xbd91[18]](_0x569ax4[_0xbd91[19]])[_0xbd91[9]](function(_0x569ax9){return _0x569ax5[_0xbd91[8]](201)[_0xbd91[7]](_0x569ax9)})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)})};exports[_0xbd91[20]]=function(_0x569ax4,_0x569ax5,_0x569ax6){if(_0x569ax4[_0xbd91[19]][_0xbd91[15]]){delete _0x569ax4[_0xbd91[19]][_0xbd91[15]]};MailAttachment[_0xbd91[17]](_0x569ax4[_0xbd91[16]][_0xbd91[15]])[_0xbd91[9]](function(_0x569ax9){if(!_0x569ax9){return _0x569ax5[_0xbd91[21]](404)};var _0x569axa=_[_0xbd91[22]](_0x569ax9,_0x569ax4[_0xbd91[19]]);_0x569axa[_0xbd91[23]]()[_0xbd91[9]](function(){return _0x569ax5[_0xbd91[8]](200)[_0xbd91[7]](_0x569ax9)})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)});})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)});};exports[_0xbd91[24]]=function(_0x569ax4,_0x569ax5,_0x569ax6){MailAttachment[_0xbd91[17]](_0x569ax4[_0xbd91[16]][_0xbd91[15]])[_0xbd91[9]](function(_0x569ax9){if(!_0x569ax9){return _0x569ax5[_0xbd91[21]](404)};_0x569ax9[_0xbd91[24]]()[_0xbd91[9]](function(){return _0x569ax5[_0xbd91[21]](204)})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)});})[_0xbd91[6]](function(_0x569ax7){return _0x569ax6(_0x569ax7)})};
\ No newline at end of file
+var _0xa87e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x66\x73","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x70\x61\x74\x68","\x66\x69\x6C\x65\x4E\x61\x6D\x65","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xa87e[0];var _=require(_0xa87e[1]);var fs=require(_0xa87e[2]);var MailAttachment=require(_0xa87e[4])[_0xa87e[3]];exports[_0xa87e[5]]=function(_0x6780x4,_0x6780x5,_0x6780x6){MailAttachment[_0xa87e[10]]()[_0xa87e[9]](function(_0x6780x8){return _0x6780x5[_0xa87e[8]](200)[_0xa87e[7]](_0x6780x8)})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)})};exports[_0xa87e[11]]=function(_0x6780x4,_0x6780x5,_0x6780x6){MailAttachment[_0xa87e[17]](_0x6780x4[_0xa87e[16]][_0xa87e[15]])[_0xa87e[9]](function(_0x6780x9){_0x6780x5[_0xa87e[14]](_0x6780x9[_0xa87e[12]],_0x6780x9[_0xa87e[13]])})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)})};exports[_0xa87e[18]]=function(_0x6780x4,_0x6780x5,_0x6780x6){MailAttachment[_0xa87e[18]](_0x6780x4[_0xa87e[19]])[_0xa87e[9]](function(_0x6780x9){return _0x6780x5[_0xa87e[8]](201)[_0xa87e[7]](_0x6780x9)})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)})};exports[_0xa87e[20]]=function(_0x6780x4,_0x6780x5,_0x6780x6){if(_0x6780x4[_0xa87e[19]][_0xa87e[15]]){delete _0x6780x4[_0xa87e[19]][_0xa87e[15]]};MailAttachment[_0xa87e[17]](_0x6780x4[_0xa87e[16]][_0xa87e[15]])[_0xa87e[9]](function(_0x6780x9){if(!_0x6780x9){return _0x6780x5[_0xa87e[21]](404)};var _0x6780xa=_[_0xa87e[22]](_0x6780x9,_0x6780x4[_0xa87e[19]]);_0x6780xa[_0xa87e[23]]()[_0xa87e[9]](function(){return _0x6780x5[_0xa87e[8]](200)[_0xa87e[7]](_0x6780x9)})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)});})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)});};exports[_0xa87e[24]]=function(_0x6780x4,_0x6780x5,_0x6780x6){MailAttachment[_0xa87e[17]](_0x6780x4[_0xa87e[16]][_0xa87e[15]])[_0xa87e[9]](function(_0x6780x9){if(!_0x6780x9){return _0x6780x5[_0xa87e[21]](404)};_0x6780x9[_0xa87e[24]]()[_0xa87e[9]](function(){return _0x6780x5[_0xa87e[21]](204)})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)});})[_0xa87e[6]](function(_0x6780x7){return _0x6780x6(_0x6780x7)})};
\ No newline at end of file
-var _0xfa6c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfa6c[0];var mail_attachment=require(_0xfa6c[2])[_0xfa6c[1]];exports[_0xfa6c[3]]=function(_0x5bf9x2){mail_attachment[_0xfa6c[4]](function(_0x5bf9x3){onSave(_0x5bf9x2,_0x5bf9x3)});mail_attachment[_0xfa6c[5]](function(_0x5bf9x3){onRemove(_0x5bf9x2,_0x5bf9x3)});};function onSave(_0x5bf9x2,_0x5bf9x3,_0x5bf9x5){_0x5bf9x2[_0xfa6c[7]](_0xfa6c[6],_0x5bf9x3)}function onRemove(_0x5bf9x2,_0x5bf9x3,_0x5bf9x5){_0x5bf9x2[_0xfa6c[7]](_0xfa6c[8],_0x5bf9x3)}
\ No newline at end of file
+var _0x489f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x489f[0];var mail_attachment=require(_0x489f[2])[_0x489f[1]];exports[_0x489f[3]]=function(_0x1175x2){mail_attachment[_0x489f[4]](function(_0x1175x3){onSave(_0x1175x2,_0x1175x3)});mail_attachment[_0x489f[5]](function(_0x1175x3){onRemove(_0x1175x2,_0x1175x3)});};function onSave(_0x1175x2,_0x1175x3,_0x1175x5){_0x1175x2[_0x489f[7]](_0x489f[6],_0x1175x3)}function onRemove(_0x1175x2,_0x1175x3,_0x1175x5){_0x1175x2[_0x489f[7]](_0x489f[8],_0x1175x3)}
\ No newline at end of file
-var _0xc050=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x67\x65\x74"];_0xc050[0];var should=require(_0xc050[1]);var app=require(_0xc050[2]);var request=require(_0xc050[3]);describe(_0xc050[4],function(){it(_0xc050[5],function(_0x9557x4){request(app)[_0xc050[13]](_0xc050[12])[_0xc050[11]](200)[_0xc050[11]](_0xc050[10],/json/)[_0xc050[9]](function(_0x9557x5,_0x9557x6){if(_0x9557x5){return _0x9557x4(_0x9557x5)};_0x9557x6[_0xc050[8]][_0xc050[1]][_0xc050[7]][_0xc050[6]](Array);_0x9557x4();})})});
\ No newline at end of file
+var _0x982a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x67\x65\x74"];_0x982a[0];var should=require(_0x982a[1]);var app=require(_0x982a[2]);var request=require(_0x982a[3]);describe(_0x982a[4],function(){it(_0x982a[5],function(_0xec9ax4){request(app)[_0x982a[13]](_0x982a[12])[_0x982a[11]](200)[_0x982a[11]](_0x982a[10],/json/)[_0x982a[9]](function(_0xec9ax5,_0xec9ax6){if(_0xec9ax5){return _0xec9ax4(_0xec9ax5)};_0xec9ax6[_0x982a[8]][_0x982a[1]][_0x982a[7]][_0x982a[6]](Array);_0xec9ax4();})})});
\ No newline at end of file
-var _0x4709=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4709[0];var express=require(_0x4709[1]);var controller=require(_0x4709[2]);var router=express.Router();router[_0x4709[5]](_0x4709[3],controller[_0x4709[4]]);router[_0x4709[5]](_0x4709[6],controller[_0x4709[7]]);router[_0x4709[9]](_0x4709[3],controller[_0x4709[8]]);router[_0x4709[11]](_0x4709[6],controller[_0x4709[10]]);router[_0x4709[12]](_0x4709[6],controller[_0x4709[10]]);router[_0x4709[14]](_0x4709[3],controller[_0x4709[13]]);router[_0x4709[14]](_0x4709[6],controller[_0x4709[15]]);module[_0x4709[16]]=router;
\ No newline at end of file
+var _0x47cf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x47cf[0];var express=require(_0x47cf[1]);var controller=require(_0x47cf[2]);var router=express.Router();router[_0x47cf[5]](_0x47cf[3],controller[_0x47cf[4]]);router[_0x47cf[5]](_0x47cf[6],controller[_0x47cf[7]]);router[_0x47cf[9]](_0x47cf[3],controller[_0x47cf[8]]);router[_0x47cf[11]](_0x47cf[6],controller[_0x47cf[10]]);router[_0x47cf[12]](_0x47cf[6],controller[_0x47cf[10]]);router[_0x47cf[14]](_0x47cf[3],controller[_0x47cf[13]]);router[_0x47cf[14]](_0x47cf[6],controller[_0x47cf[15]]);module[_0x47cf[16]]=router;
\ No newline at end of file
-var _0x3e44=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72","\x62\x6F\x64\x79","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x49\x64","\x63\x6F\x6E\x63\x61\x74","\x61\x6E\x64","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x3e44[0];var _=require(_0x3e44[1]);var util=require(_0x3e44[2]);var MailBusinessAutomation=require(_0x3e44[4])[_0x3e44[3]];var BusinessCondition=require(_0x3e44[4])[_0x3e44[5]];var BusinessAction=require(_0x3e44[4])[_0x3e44[6]];var sequelize=require(_0x3e44[4])[_0x3e44[7]];exports[_0x3e44[8]]=function(_0x7d32x7,_0x7d32x8,_0x7d32x9){var _0x7d32xa=[_0x3e44[9],_0x3e44[10]];var _0x7d32xb=_0x7d32x7[_0x3e44[12]][_0x3e44[11]]?parseInt(_0x7d32x7[_0x3e44[12]][_0x3e44[11]],10):100;var _0x7d32xc=_0x7d32x7[_0x3e44[12]][_0x3e44[13]]?parseInt(_0x7d32x7[_0x3e44[12]][_0x3e44[13]],10):0;var _0x7d32xd={where:{},limit:_0x7d32xb,offset:_0x7d32xc*_0x7d32xb};_[_0x3e44[27]](_0x7d32x7[_0x3e44[12]],function(_0x7d32xe,_0x7d32xf){switch(_0x7d32xf){case _0x3e44[11]:;case _0x3e44[13]:break ;;case _0x3e44[16]:_0x7d32xd[_0x3e44[14]]=util[_0x3e44[19]](_0x3e44[15],_0x7d32x7[_0x3e44[12]][_0x3e44[16]],_0x7d32x7[_0x3e44[12]][_0x3e44[17]]||_0x3e44[18])||null;break ;;case _0x3e44[17]:break ;;case _0x3e44[25]:_0x7d32xd[_0x3e44[21]][_0x3e44[20]]=[];_0x7d32xa[_0x3e44[24]](function(_0x7d32x10){var _0x7d32x11={};_0x7d32x11[_0x7d32x10]={$like:_0x3e44[22]+_0x7d32xe+_0x3e44[22]};_0x7d32xd[_0x3e44[21]][_0x3e44[20]][_0x3e44[23]](_0x7d32x11);});break ;;default:_0x7d32xd[_0x3e44[21]][_0x7d32xf]={$like:{}};_0x7d32xd[_0x3e44[21]][_0x7d32xf][_0x3e44[26]]=_0x3e44[22]+_0x7d32xe+_0x3e44[22];;}});MailBusinessAutomation[_0x3e44[42]](_0x7d32xd)[_0x3e44[41]](function(_0x7d32x13){var _0x7d32x14=Math[_0x3e44[33]](_0x7d32x13[_0x3e44[32]]/_0x7d32xb);var _0x7d32x15=_0x7d32x14>(_0x7d32xd[_0x3e44[34]]+1)?util[_0x3e44[19]](_0x3e44[35],_0x7d32x7[_0x3e44[36]],_0x7d32x7[_0x3e44[38]][_0x3e44[37]],_0x7d32x7[_0x3e44[39]],_0x7d32xc+1):null;var _0x7d32x16=_0x7d32xc>0?util[_0x3e44[19]](_0x3e44[35],_0x7d32x7[_0x3e44[36]],_0x7d32x7[_0x3e44[38]][_0x3e44[37]],_0x7d32x7[_0x3e44[39]],_0x7d32xc-1):null;_0x7d32x8[_0x3e44[30]](200)[_0x3e44[29]]({count:_0x7d32x13[_0x3e44[32]],mailAutomations:_0x7d32x13[_0x3e44[40]],next_page:_0x7d32x15,previous_page:_0x7d32x16,total_pages:_0x7d32x14});})[_0x3e44[31]](function(_0x7d32x12){_0x7d32x8[_0x3e44[30]](500)[_0x3e44[29]]({error:_0x3e44[28]})});};exports[_0x3e44[43]]=function(_0x7d32x7,_0x7d32x8){MailBusinessAutomation[_0x3e44[47]](_0x7d32x7[_0x3e44[46]][_0x3e44[45]],{include:[{all:true}]})[_0x3e44[41]](function(_0x7d32x17){if(!_0x7d32x17){return _0x7d32x8[_0x3e44[44]](404)};return _0x7d32x8[_0x3e44[29]](_0x7d32x17);})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)})};exports[_0x3e44[48]]=function(_0x7d32x7,_0x7d32x8,_0x7d32x9){return sequelize[_0x3e44[56]](function(_0x7d32x18){return MailBusinessAutomation[_0x3e44[48]](_0x7d32x7[_0x3e44[50]],{transaction:_0x7d32x18})[_0x3e44[41]](function(_0x7d32x17){var _0x7d32x19=[];if(_0x7d32x7[_0x3e44[50]][_0x3e44[49]]){_0x7d32x7[_0x3e44[50]][_0x3e44[49]][_0x3e44[24]](function(_0x7d32x1a){_0x7d32x1a[_0x3e44[51]]=_0x7d32x17[_0x3e44[45]]});_0x7d32x19=_0x7d32x19[_0x3e44[52]](_0x7d32x7[_0x3e44[50]][_0x3e44[49]]);};if(_0x7d32x7[_0x3e44[50]][_0x3e44[53]]){_0x7d32x7[_0x3e44[50]][_0x3e44[53]][_0x3e44[24]](function(_0x7d32x1a){_0x7d32x1a[_0x3e44[51]]=_0x7d32x17[_0x3e44[45]]});_0x7d32x19=_0x7d32x19[_0x3e44[52]](_0x7d32x7[_0x3e44[50]][_0x3e44[53]]);};return BusinessCondition[_0x3e44[55]](_0x7d32x19,{transaction:_0x7d32x18})[_0x3e44[41]](function(_0x7d32x1b){if(_0x7d32x7[_0x3e44[50]][_0x3e44[54]]){_0x7d32x7[_0x3e44[50]][_0x3e44[54]][_0x3e44[24]](function(_0x7d32x1a){_0x7d32x1a[_0x3e44[51]]=_0x7d32x17[_0x3e44[45]]})};return BusinessAction[_0x3e44[55]](_0x7d32x7[_0x3e44[50]][_0x3e44[54]],{transaction:_0x7d32x18});});})})[_0x3e44[41]](function(){return _0x7d32x8[_0x3e44[44]](201)})[_0x3e44[31]](function(_0x7d32x12){return _0x7d32x9(_0x7d32x12)})};exports[_0x3e44[57]]=function(_0x7d32x7,_0x7d32x8){if(_0x7d32x7[_0x3e44[50]][_0x3e44[45]]){delete _0x7d32x7[_0x3e44[50]][_0x3e44[45]]};MailBusinessAutomation[_0x3e44[60]]({where:{id:_0x7d32x7[_0x3e44[46]][_0x3e44[45]]}})[_0x3e44[41]](function(_0x7d32x17){if(!_0x7d32x17){return _0x7d32x8[_0x3e44[44]](404)};var _0x7d32x1c=_[_0x3e44[58]](_0x7d32x17,_0x7d32x7[_0x3e44[50]]);_0x7d32x1c[_0x3e44[59]]()[_0x3e44[41]](function(){return _0x7d32x8[_0x3e44[30]](200)[_0x3e44[29]](_0x7d32x17)})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)});})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)});};exports[_0x3e44[61]]=function(_0x7d32x7,_0x7d32x8){MailBusinessAutomation[_0x3e44[47]](_0x7d32x7[_0x3e44[46]][_0x3e44[45]])[_0x3e44[41]](function(_0x7d32x17){if(!_0x7d32x17){return _0x7d32x8[_0x3e44[44]](404)};_0x7d32x17[_0x3e44[61]]()[_0x3e44[41]](function(){return _0x7d32x8[_0x3e44[44]](204)})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)});})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)})};exports[_0x3e44[62]]=function(_0x7d32x7,_0x7d32x8){MailBusinessAutomation[_0x3e44[61]]({where:{id:_0x7d32x7[_0x3e44[12]][_0x3e44[45]]},individualHooks:true})[_0x3e44[41]](function(){return _0x7d32x8[_0x3e44[44]](204)})[_0x3e44[31]](function(_0x7d32x12){return handleError(_0x7d32x8,_0x7d32x12)})};function handleError(_0x7d32x8,_0x7d32x12){return _0x7d32x8[_0x3e44[30]](500)[_0x3e44[29]](_0x7d32x12)}
\ No newline at end of file
+var _0xaec9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x6F\x72","\x62\x6F\x64\x79","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x49\x64","\x63\x6F\x6E\x63\x61\x74","\x61\x6E\x64","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xaec9[0];var _=require(_0xaec9[1]);var util=require(_0xaec9[2]);var MailBusinessAutomation=require(_0xaec9[4])[_0xaec9[3]];var BusinessCondition=require(_0xaec9[4])[_0xaec9[5]];var BusinessAction=require(_0xaec9[4])[_0xaec9[6]];var sequelize=require(_0xaec9[4])[_0xaec9[7]];exports[_0xaec9[8]]=function(_0xccd3x7,_0xccd3x8,_0xccd3x9){var _0xccd3xa=[_0xaec9[9],_0xaec9[10]];var _0xccd3xb=_0xccd3x7[_0xaec9[12]][_0xaec9[11]]?parseInt(_0xccd3x7[_0xaec9[12]][_0xaec9[11]],10):100;var _0xccd3xc=_0xccd3x7[_0xaec9[12]][_0xaec9[13]]?parseInt(_0xccd3x7[_0xaec9[12]][_0xaec9[13]],10):0;var _0xccd3xd={where:{},limit:_0xccd3xb,offset:_0xccd3xc*_0xccd3xb};_[_0xaec9[27]](_0xccd3x7[_0xaec9[12]],function(_0xccd3xe,_0xccd3xf){switch(_0xccd3xf){case _0xaec9[11]:;case _0xaec9[13]:break ;;case _0xaec9[16]:_0xccd3xd[_0xaec9[14]]=util[_0xaec9[19]](_0xaec9[15],_0xccd3x7[_0xaec9[12]][_0xaec9[16]],_0xccd3x7[_0xaec9[12]][_0xaec9[17]]||_0xaec9[18])||null;break ;;case _0xaec9[17]:break ;;case _0xaec9[25]:_0xccd3xd[_0xaec9[21]][_0xaec9[20]]=[];_0xccd3xa[_0xaec9[24]](function(_0xccd3x10){var _0xccd3x11={};_0xccd3x11[_0xccd3x10]={$like:_0xaec9[22]+_0xccd3xe+_0xaec9[22]};_0xccd3xd[_0xaec9[21]][_0xaec9[20]][_0xaec9[23]](_0xccd3x11);});break ;;default:_0xccd3xd[_0xaec9[21]][_0xccd3xf]={$like:{}};_0xccd3xd[_0xaec9[21]][_0xccd3xf][_0xaec9[26]]=_0xaec9[22]+_0xccd3xe+_0xaec9[22];;}});MailBusinessAutomation[_0xaec9[42]](_0xccd3xd)[_0xaec9[41]](function(_0xccd3x13){var _0xccd3x14=Math[_0xaec9[33]](_0xccd3x13[_0xaec9[32]]/_0xccd3xb);var _0xccd3x15=_0xccd3x14>(_0xccd3xd[_0xaec9[34]]+1)?util[_0xaec9[19]](_0xaec9[35],_0xccd3x7[_0xaec9[36]],_0xccd3x7[_0xaec9[38]][_0xaec9[37]],_0xccd3x7[_0xaec9[39]],_0xccd3xc+1):null;var _0xccd3x16=_0xccd3xc>0?util[_0xaec9[19]](_0xaec9[35],_0xccd3x7[_0xaec9[36]],_0xccd3x7[_0xaec9[38]][_0xaec9[37]],_0xccd3x7[_0xaec9[39]],_0xccd3xc-1):null;_0xccd3x8[_0xaec9[30]](200)[_0xaec9[29]]({count:_0xccd3x13[_0xaec9[32]],mailAutomations:_0xccd3x13[_0xaec9[40]],next_page:_0xccd3x15,previous_page:_0xccd3x16,total_pages:_0xccd3x14});})[_0xaec9[31]](function(_0xccd3x12){_0xccd3x8[_0xaec9[30]](500)[_0xaec9[29]]({error:_0xaec9[28]})});};exports[_0xaec9[43]]=function(_0xccd3x7,_0xccd3x8){MailBusinessAutomation[_0xaec9[47]](_0xccd3x7[_0xaec9[46]][_0xaec9[45]],{include:[{all:true}]})[_0xaec9[41]](function(_0xccd3x17){if(!_0xccd3x17){return _0xccd3x8[_0xaec9[44]](404)};return _0xccd3x8[_0xaec9[29]](_0xccd3x17);})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)})};exports[_0xaec9[48]]=function(_0xccd3x7,_0xccd3x8,_0xccd3x9){return sequelize[_0xaec9[56]](function(_0xccd3x18){return MailBusinessAutomation[_0xaec9[48]](_0xccd3x7[_0xaec9[50]],{transaction:_0xccd3x18})[_0xaec9[41]](function(_0xccd3x17){var _0xccd3x19=[];if(_0xccd3x7[_0xaec9[50]][_0xaec9[49]]){_0xccd3x7[_0xaec9[50]][_0xaec9[49]][_0xaec9[24]](function(_0xccd3x1a){_0xccd3x1a[_0xaec9[51]]=_0xccd3x17[_0xaec9[45]]});_0xccd3x19=_0xccd3x19[_0xaec9[52]](_0xccd3x7[_0xaec9[50]][_0xaec9[49]]);};if(_0xccd3x7[_0xaec9[50]][_0xaec9[53]]){_0xccd3x7[_0xaec9[50]][_0xaec9[53]][_0xaec9[24]](function(_0xccd3x1a){_0xccd3x1a[_0xaec9[51]]=_0xccd3x17[_0xaec9[45]]});_0xccd3x19=_0xccd3x19[_0xaec9[52]](_0xccd3x7[_0xaec9[50]][_0xaec9[53]]);};return BusinessCondition[_0xaec9[55]](_0xccd3x19,{transaction:_0xccd3x18})[_0xaec9[41]](function(_0xccd3x1b){if(_0xccd3x7[_0xaec9[50]][_0xaec9[54]]){_0xccd3x7[_0xaec9[50]][_0xaec9[54]][_0xaec9[24]](function(_0xccd3x1a){_0xccd3x1a[_0xaec9[51]]=_0xccd3x17[_0xaec9[45]]})};return BusinessAction[_0xaec9[55]](_0xccd3x7[_0xaec9[50]][_0xaec9[54]],{transaction:_0xccd3x18});});})})[_0xaec9[41]](function(){return _0xccd3x8[_0xaec9[44]](201)})[_0xaec9[31]](function(_0xccd3x12){return _0xccd3x9(_0xccd3x12)})};exports[_0xaec9[57]]=function(_0xccd3x7,_0xccd3x8){if(_0xccd3x7[_0xaec9[50]][_0xaec9[45]]){delete _0xccd3x7[_0xaec9[50]][_0xaec9[45]]};MailBusinessAutomation[_0xaec9[60]]({where:{id:_0xccd3x7[_0xaec9[46]][_0xaec9[45]]}})[_0xaec9[41]](function(_0xccd3x17){if(!_0xccd3x17){return _0xccd3x8[_0xaec9[44]](404)};var _0xccd3x1c=_[_0xaec9[58]](_0xccd3x17,_0xccd3x7[_0xaec9[50]]);_0xccd3x1c[_0xaec9[59]]()[_0xaec9[41]](function(){return _0xccd3x8[_0xaec9[30]](200)[_0xaec9[29]](_0xccd3x17)})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)});})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)});};exports[_0xaec9[61]]=function(_0xccd3x7,_0xccd3x8){MailBusinessAutomation[_0xaec9[47]](_0xccd3x7[_0xaec9[46]][_0xaec9[45]])[_0xaec9[41]](function(_0xccd3x17){if(!_0xccd3x17){return _0xccd3x8[_0xaec9[44]](404)};_0xccd3x17[_0xaec9[61]]()[_0xaec9[41]](function(){return _0xccd3x8[_0xaec9[44]](204)})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)});})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)})};exports[_0xaec9[62]]=function(_0xccd3x7,_0xccd3x8){MailBusinessAutomation[_0xaec9[61]]({where:{id:_0xccd3x7[_0xaec9[12]][_0xaec9[45]]},individualHooks:true})[_0xaec9[41]](function(){return _0xccd3x8[_0xaec9[44]](204)})[_0xaec9[31]](function(_0xccd3x12){return handleError(_0xccd3x8,_0xccd3x12)})};function handleError(_0xccd3x8,_0xccd3x12){return _0xccd3x8[_0xaec9[30]](500)[_0xaec9[29]](_0xccd3x12)}
\ No newline at end of file
-var _0xbd1e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbd1e[0];var MailBusinessAutomation=require(_0xbd1e[2])[_0xbd1e[1]];exports[_0xbd1e[3]]=function(_0xaf77x2){MailBusinessAutomation[_0xbd1e[4]](function(_0xaf77x3,_0xaf77x4){onSave(_0xaf77x2,_0xaf77x3)});MailBusinessAutomation[_0xbd1e[5]](function(_0xaf77x3,_0xaf77x4){onSave(_0xaf77x2,_0xaf77x3)});MailBusinessAutomation[_0xbd1e[6]](function(_0xaf77x3){onRemove(_0xaf77x2,_0xaf77x3)});};function onSave(_0xaf77x2,_0xaf77x3,_0xaf77x6){_0xaf77x2[_0xbd1e[8]](_0xbd1e[7],_0xaf77x3)}function onRemove(_0xaf77x2,_0xaf77x3,_0xaf77x6){_0xaf77x2[_0xbd1e[8]](_0xbd1e[9],_0xaf77x3)}
\ No newline at end of file
+var _0x3117=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3117[0];var MailBusinessAutomation=require(_0x3117[2])[_0x3117[1]];exports[_0x3117[3]]=function(_0xb291x2){MailBusinessAutomation[_0x3117[4]](function(_0xb291x3,_0xb291x4){onSave(_0xb291x2,_0xb291x3)});MailBusinessAutomation[_0x3117[5]](function(_0xb291x3,_0xb291x4){onSave(_0xb291x2,_0xb291x3)});MailBusinessAutomation[_0x3117[6]](function(_0xb291x3){onRemove(_0xb291x2,_0xb291x3)});};function onSave(_0xb291x2,_0xb291x3,_0xb291x6){_0xb291x2[_0x3117[8]](_0x3117[7],_0xb291x3)}function onRemove(_0xb291x2,_0xb291x3,_0xb291x6){_0xb291x2[_0x3117[8]](_0x3117[9],_0xb291x3)}
\ No newline at end of file
-var _0x3d87=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x3d87[0];var should=require(_0x3d87[1]);var app=require(_0x3d87[2]);var request=require(_0x3d87[3]);describe(_0x3d87[4],function(){it(_0x3d87[5],function(_0xdbf5x4){request(app)[_0x3d87[13]](_0x3d87[12])[_0x3d87[11]](200)[_0x3d87[11]](_0x3d87[10],/json/)[_0x3d87[9]](function(_0xdbf5x5,_0xdbf5x6){if(_0xdbf5x5){return _0xdbf5x4(_0xdbf5x5)};_0xdbf5x6[_0x3d87[8]][_0x3d87[1]][_0x3d87[7]][_0x3d87[6]](Array);_0xdbf5x4();})})});
\ No newline at end of file
+var _0xbdfa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0xbdfa[0];var should=require(_0xbdfa[1]);var app=require(_0xbdfa[2]);var request=require(_0xbdfa[3]);describe(_0xbdfa[4],function(){it(_0xbdfa[5],function(_0x69d7x4){request(app)[_0xbdfa[13]](_0xbdfa[12])[_0xbdfa[11]](200)[_0xbdfa[11]](_0xbdfa[10],/json/)[_0xbdfa[9]](function(_0x69d7x5,_0x69d7x6){if(_0x69d7x5){return _0x69d7x4(_0x69d7x5)};_0x69d7x6[_0xbdfa[8]][_0xbdfa[1]][_0xbdfa[7]][_0xbdfa[6]](Array);_0x69d7x4();})})});
\ No newline at end of file
-var _0x10bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x64\x65\x6C\x65\x74\x65\x2F\x62\x75\x6C\x6B","\x62\x75\x6C\x6B\x44\x65\x6C\x65\x74\x65","\x2F\x64\x65\x6C\x65\x74\x65\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x10bf[0];var express=require(_0x10bf[1]);var controller=require(_0x10bf[2]);var auth=require(_0x10bf[3]);var router=express.Router();router[_0x10bf[7]](_0x10bf[4],auth[_0x10bf[5]](),controller[_0x10bf[6]]);router[_0x10bf[7]](_0x10bf[8],auth[_0x10bf[5]](),controller[_0x10bf[9]]);router[_0x10bf[11]](_0x10bf[4],auth[_0x10bf[5]](),controller[_0x10bf[10]]);router[_0x10bf[13]](_0x10bf[4],auth[_0x10bf[5]](),controller[_0x10bf[12]]);router[_0x10bf[13]](_0x10bf[14],controller[_0x10bf[15]]);router[_0x10bf[13]](_0x10bf[16],controller[_0x10bf[12]]);router[_0x10bf[13]](_0x10bf[8],controller[_0x10bf[12]]);router[_0x10bf[17]](_0x10bf[8],controller[_0x10bf[12]]);router[_0x10bf[19]](_0x10bf[8],controller[_0x10bf[18]]);module[_0x10bf[20]]=router;
\ No newline at end of file
+var _0x5796=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x64\x65\x6C\x65\x74\x65\x2F\x62\x75\x6C\x6B","\x62\x75\x6C\x6B\x44\x65\x6C\x65\x74\x65","\x2F\x64\x65\x6C\x65\x74\x65\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5796[0];var express=require(_0x5796[1]);var controller=require(_0x5796[2]);var auth=require(_0x5796[3]);var router=express.Router();router[_0x5796[7]](_0x5796[4],auth[_0x5796[5]](),controller[_0x5796[6]]);router[_0x5796[7]](_0x5796[8],auth[_0x5796[5]](),controller[_0x5796[9]]);router[_0x5796[11]](_0x5796[4],auth[_0x5796[5]](),controller[_0x5796[10]]);router[_0x5796[13]](_0x5796[4],auth[_0x5796[5]](),controller[_0x5796[12]]);router[_0x5796[13]](_0x5796[14],controller[_0x5796[15]]);router[_0x5796[13]](_0x5796[16],controller[_0x5796[12]]);router[_0x5796[13]](_0x5796[8],controller[_0x5796[12]]);router[_0x5796[17]](_0x5796[8],controller[_0x5796[12]]);router[_0x5796[19]](_0x5796[8],controller[_0x5796[18]]);module[_0x5796[20]]=router;
\ No newline at end of file
-var _0x5690=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x73\x79\x6E\x63","\x68\x74\x6D\x6C\x2D\x74\x6F\x2D\x74\x65\x78\x74","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x69\x6E\x64\x65\x78","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x77\x68\x65\x72\x65","\x71\x75\x65\x72\x79","\x61\x64\x6D\x69\x6E","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x62\x6F\x64\x79","\x69\x73\x45\x6D\x70\x74\x79","\x66\x69\x6C\x65","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6E\x61\x6D\x65","\x73\x69\x7A\x65","\x74\x79\x70\x65","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x70\x61\x72\x73\x65","\x4E\x4F\x20\x41\x54\x54\x41\x43\x48\x4D\x45\x4E\x54","\x6C\x6F\x67","\x53\x45\x4E\x44\x49\x4E\x47","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x6C\x65\x74\x65","\x54\x52\x41\x53\x48","\x62\x75\x6C\x6B\x55\x70\x64\x61\x74\x65"];_0x5690[0];var _=require(_0x5690[1]);var async=require(_0x5690[2]);var htmlToText=require(_0x5690[3]);var formidable=require(_0x5690[4]);var path=require(_0x5690[5]);var config=require(_0x5690[6]);var sequelize=require(_0x5690[8])[_0x5690[7]];var MailMessage=require(_0x5690[8])[_0x5690[9]];var MailAttachment=require(_0x5690[8])[_0x5690[10]];var MailRoom=require(_0x5690[8])[_0x5690[11]];var MailAccount=require(_0x5690[8])[_0x5690[12]];var Contact=require(_0x5690[8])[_0x5690[13]];exports[_0x5690[14]]=function(_0x7340xd,_0x7340xe,_0x7340xf){var _0x7340x10={order:_0x5690[15],include:[{all:true,include:[{all:true}]}]};switch(_0x7340xd[_0x5690[21]][_0x5690[20]]){case _0x5690[18]:_0x7340x10[_0x5690[16]]=_0x7340xd[_0x5690[17]];break ;;case _0x5690[19]:break ;;default:;};MailMessage[_0x5690[26]](_0x7340x10)[_0x5690[25]](function(_0x7340x12){return _0x7340xe[_0x5690[24]](200)[_0x5690[23]](_0x7340x12)})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)});};exports[_0x5690[27]]=function(_0x7340xd,_0x7340xe,_0x7340xf){MailMessage[_0x5690[31]](_0x7340xd[_0x5690[30]][_0x5690[29]],{include:[{all:true,include:[{all:true}]}]})[_0x5690[25]](function(_0x7340x13){if(!_0x7340x13){return _0x7340xe[_0x5690[28]](404)};return _0x7340xe[_0x5690[23]](_0x7340x13);})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)})};exports[_0x5690[32]]=function(_0x7340xd,_0x7340xe,_0x7340xf){var _0x7340x14= new formidable.IncomingForm();_0x7340x14[_0x5690[33]]=path[_0x5690[38]](config[_0x5690[34]],_0x5690[35],_0x5690[36],_0x5690[37]);_0x7340x14[_0x5690[39]]=true;_0x7340x14[_0x5690[40]]=true;if(_[_0x5690[42]](_0x7340xd[_0x5690[41]])){_0x7340x14[_0x5690[51]](_0x7340xd,function(_0x7340x11,_0x7340x14,_0x7340x15){if(_0x7340x11){return _0x7340xe[_0x5690[24]](400)[_0x5690[23]](_0x7340x11)};var _0x7340x16=_0x7340x15[_0x5690[43]];_0x7340x14[_0x5690[44]]=[{path:_0x7340x16[_0x5690[5]],fileName:_0x7340x16[_0x5690[45]],length:_0x7340x16[_0x5690[46]],contentType:_0x7340x16[_0x5690[47]]}];return sequelize[_0x5690[50]]()[_0x5690[25]](function(_0x7340x17){return MailMessage[_0x5690[32]](_0x7340x14,{include:[{all:true}],transaction:_0x7340x17})[_0x5690[25]](function(_0x7340x13){_0x7340x17[_0x5690[49]]();return _0x7340xe[_0x5690[24]](201)[_0x5690[23]](_0x7340x13);})[_0x5690[22]](function(_0x7340x11){_0x7340x17[_0x5690[48]]();return handleError(_0x7340xe,_0x7340x11);})});})}else {console[_0x5690[53]](_0x5690[52]);_0x7340xd[_0x5690[41]][_0x5690[24]]=_0x5690[54];return sequelize[_0x5690[50]]()[_0x5690[25]](function(_0x7340x17){return MailMessage[_0x5690[32]](_0x7340xd[_0x5690[41]],{transaction:_0x7340x17})[_0x5690[25]](function(_0x7340x13){_0x7340x17[_0x5690[49]]();return _0x7340xe[_0x5690[24]](201)[_0x5690[23]](_0x7340x13);})[_0x5690[22]](function(_0x7340x11){_0x7340x17[_0x5690[48]]();return handleError(_0x7340xe,_0x7340x11);})});};};exports[_0x5690[55]]=function(_0x7340xd,_0x7340xe,_0x7340xf){MailMessage[_0x5690[31]](_0x7340xd[_0x5690[30]][_0x5690[29]],{include:[{all:true}]})[_0x5690[25]](function(_0x7340x13){if(!_0x7340x13){return _0x7340xe[_0x5690[28]](404)};var _0x7340x18=_[_0x5690[56]](_0x7340x13,_0x7340xd[_0x5690[41]]);_0x7340x18[_0x5690[57]]()[_0x5690[25]](function(){return _0x7340xe[_0x5690[24]](200)[_0x5690[23]](_0x7340x18)})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)});})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)})};exports[_0x5690[58]]=function(_0x7340xd,_0x7340xe,_0x7340xf){MailMessage[_0x5690[31]](_0x7340xd[_0x5690[30]][_0x5690[29]])[_0x5690[25]](function(_0x7340x13){if(!_0x7340x13){return _0x7340xe[_0x5690[28]](404)};_0x7340x13[_0x5690[58]]()[_0x5690[25]](function(){return _0x7340xe[_0x5690[28]](204)})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)});})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)})};exports[_0x5690[59]]=function(_0x7340xd,_0x7340xe,_0x7340xf){MailMessage[_0x5690[61]]({where:{id:{$in:_0x7340xd[_0x5690[41]][_0x5690[29]]}},attributes:{directory:_0x5690[60]}})[_0x5690[25]](function(_0x7340x13){if(!_0x7340x13){return _0x7340xe[_0x5690[28]](404)};_0x7340x13[_0x5690[58]]()[_0x5690[25]](function(){return _0x7340xe[_0x5690[28]](204)})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)});})[_0x5690[22]](function(_0x7340x11){return handleError(_0x7340xe,_0x7340x11,_0x7340xf)})};function handleError(_0x7340xe,_0x7340x11,_0x7340xf){return _0x7340xe[_0x5690[24]](500)[_0x5690[23]](_0x7340x11)}
\ No newline at end of file
+var _0xea21=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x73\x79\x6E\x63","\x68\x74\x6D\x6C\x2D\x74\x6F\x2D\x74\x65\x78\x74","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x69\x6E\x64\x65\x78","\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x44\x45\x53\x43","\x77\x68\x65\x72\x65","\x71\x75\x65\x72\x79","\x61\x64\x6D\x69\x6E","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x62\x6F\x64\x79","\x69\x73\x45\x6D\x70\x74\x79","\x66\x69\x6C\x65","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6E\x61\x6D\x65","\x73\x69\x7A\x65","\x74\x79\x70\x65","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x70\x61\x72\x73\x65","\x4E\x4F\x20\x41\x54\x54\x41\x43\x48\x4D\x45\x4E\x54","\x6C\x6F\x67","\x53\x45\x4E\x44\x49\x4E\x47","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x6C\x65\x74\x65","\x54\x52\x41\x53\x48","\x62\x75\x6C\x6B\x55\x70\x64\x61\x74\x65"];_0xea21[0];var _=require(_0xea21[1]);var async=require(_0xea21[2]);var htmlToText=require(_0xea21[3]);var formidable=require(_0xea21[4]);var path=require(_0xea21[5]);var config=require(_0xea21[6]);var sequelize=require(_0xea21[8])[_0xea21[7]];var MailMessage=require(_0xea21[8])[_0xea21[9]];var MailAttachment=require(_0xea21[8])[_0xea21[10]];var MailRoom=require(_0xea21[8])[_0xea21[11]];var MailAccount=require(_0xea21[8])[_0xea21[12]];var Contact=require(_0xea21[8])[_0xea21[13]];exports[_0xea21[14]]=function(_0xf873xd,_0xf873xe,_0xf873xf){var _0xf873x10={order:_0xea21[15],include:[{all:true,include:[{all:true}]}]};switch(_0xf873xd[_0xea21[21]][_0xea21[20]]){case _0xea21[18]:_0xf873x10[_0xea21[16]]=_0xf873xd[_0xea21[17]];break ;;case _0xea21[19]:break ;;default:;};MailMessage[_0xea21[26]](_0xf873x10)[_0xea21[25]](function(_0xf873x12){return _0xf873xe[_0xea21[24]](200)[_0xea21[23]](_0xf873x12)})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)});};exports[_0xea21[27]]=function(_0xf873xd,_0xf873xe,_0xf873xf){MailMessage[_0xea21[31]](_0xf873xd[_0xea21[30]][_0xea21[29]],{include:[{all:true,include:[{all:true}]}]})[_0xea21[25]](function(_0xf873x13){if(!_0xf873x13){return _0xf873xe[_0xea21[28]](404)};return _0xf873xe[_0xea21[23]](_0xf873x13);})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)})};exports[_0xea21[32]]=function(_0xf873xd,_0xf873xe,_0xf873xf){var _0xf873x14= new formidable.IncomingForm();_0xf873x14[_0xea21[33]]=path[_0xea21[38]](config[_0xea21[34]],_0xea21[35],_0xea21[36],_0xea21[37]);_0xf873x14[_0xea21[39]]=true;_0xf873x14[_0xea21[40]]=true;if(_[_0xea21[42]](_0xf873xd[_0xea21[41]])){_0xf873x14[_0xea21[51]](_0xf873xd,function(_0xf873x11,_0xf873x14,_0xf873x15){if(_0xf873x11){return _0xf873xe[_0xea21[24]](400)[_0xea21[23]](_0xf873x11)};var _0xf873x16=_0xf873x15[_0xea21[43]];_0xf873x14[_0xea21[44]]=[{path:_0xf873x16[_0xea21[5]],fileName:_0xf873x16[_0xea21[45]],length:_0xf873x16[_0xea21[46]],contentType:_0xf873x16[_0xea21[47]]}];return sequelize[_0xea21[50]]()[_0xea21[25]](function(_0xf873x17){return MailMessage[_0xea21[32]](_0xf873x14,{include:[{all:true}],transaction:_0xf873x17})[_0xea21[25]](function(_0xf873x13){_0xf873x17[_0xea21[49]]();return _0xf873xe[_0xea21[24]](201)[_0xea21[23]](_0xf873x13);})[_0xea21[22]](function(_0xf873x11){_0xf873x17[_0xea21[48]]();return handleError(_0xf873xe,_0xf873x11);})});})}else {console[_0xea21[53]](_0xea21[52]);_0xf873xd[_0xea21[41]][_0xea21[24]]=_0xea21[54];return sequelize[_0xea21[50]]()[_0xea21[25]](function(_0xf873x17){return MailMessage[_0xea21[32]](_0xf873xd[_0xea21[41]],{transaction:_0xf873x17})[_0xea21[25]](function(_0xf873x13){_0xf873x17[_0xea21[49]]();return _0xf873xe[_0xea21[24]](201)[_0xea21[23]](_0xf873x13);})[_0xea21[22]](function(_0xf873x11){_0xf873x17[_0xea21[48]]();return handleError(_0xf873xe,_0xf873x11);})});};};exports[_0xea21[55]]=function(_0xf873xd,_0xf873xe,_0xf873xf){MailMessage[_0xea21[31]](_0xf873xd[_0xea21[30]][_0xea21[29]],{include:[{all:true}]})[_0xea21[25]](function(_0xf873x13){if(!_0xf873x13){return _0xf873xe[_0xea21[28]](404)};var _0xf873x18=_[_0xea21[56]](_0xf873x13,_0xf873xd[_0xea21[41]]);_0xf873x18[_0xea21[57]]()[_0xea21[25]](function(){return _0xf873xe[_0xea21[24]](200)[_0xea21[23]](_0xf873x18)})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)});})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)})};exports[_0xea21[58]]=function(_0xf873xd,_0xf873xe,_0xf873xf){MailMessage[_0xea21[31]](_0xf873xd[_0xea21[30]][_0xea21[29]])[_0xea21[25]](function(_0xf873x13){if(!_0xf873x13){return _0xf873xe[_0xea21[28]](404)};_0xf873x13[_0xea21[58]]()[_0xea21[25]](function(){return _0xf873xe[_0xea21[28]](204)})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)});})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)})};exports[_0xea21[59]]=function(_0xf873xd,_0xf873xe,_0xf873xf){MailMessage[_0xea21[61]]({where:{id:{$in:_0xf873xd[_0xea21[41]][_0xea21[29]]}},attributes:{directory:_0xea21[60]}})[_0xea21[25]](function(_0xf873x13){if(!_0xf873x13){return _0xf873xe[_0xea21[28]](404)};_0xf873x13[_0xea21[58]]()[_0xea21[25]](function(){return _0xf873xe[_0xea21[28]](204)})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)});})[_0xea21[22]](function(_0xf873x11){return handleError(_0xf873xe,_0xf873x11,_0xf873xf)})};function handleError(_0xf873xe,_0xf873x11,_0xf873xf){return _0xf873xe[_0xea21[24]](500)[_0xea21[23]](_0xf873x11)}
\ No newline at end of file
-var _0x258f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x258f[0];var MailMessage=require(_0x258f[2])[_0x258f[1]];exports[_0x258f[3]]=function(_0x6be3x2){MailMessage[_0x258f[4]](function(_0x6be3x3){onSave(_0x6be3x2,_0x6be3x3)});MailMessage[_0x258f[5]](function(_0x6be3x3){onSave(_0x6be3x2,_0x6be3x3)});MailMessage[_0x258f[6]](function(_0x6be3x3){onRemove(_0x6be3x2,_0x6be3x3)});};function onSave(_0x6be3x2,_0x6be3x3,_0x6be3x5){_0x6be3x2[_0x258f[8]](_0x258f[7],_0x6be3x3)}function onRemove(_0x6be3x2,_0x6be3x3,_0x6be3x5){_0x6be3x2[_0x258f[8]](_0x258f[9],_0x6be3x3)}
\ No newline at end of file
+var _0x60e9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x60e9[0];var MailMessage=require(_0x60e9[2])[_0x60e9[1]];exports[_0x60e9[3]]=function(_0x2d46x2){MailMessage[_0x60e9[4]](function(_0x2d46x3){onSave(_0x2d46x2,_0x2d46x3)});MailMessage[_0x60e9[5]](function(_0x2d46x3){onSave(_0x2d46x2,_0x2d46x3)});MailMessage[_0x60e9[6]](function(_0x2d46x3){onRemove(_0x2d46x2,_0x2d46x3)});};function onSave(_0x2d46x2,_0x2d46x3,_0x2d46x5){_0x2d46x2[_0x60e9[8]](_0x60e9[7],_0x2d46x3)}function onRemove(_0x2d46x2,_0x2d46x3,_0x2d46x5){_0x2d46x2[_0x60e9[8]](_0x60e9[9],_0x2d46x3)}
\ No newline at end of file
-var _0x7db8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7db8[0];var express=require(_0x7db8[1]);var controller=require(_0x7db8[2]);var router=express.Router();router[_0x7db8[5]](_0x7db8[3],controller[_0x7db8[4]]);router[_0x7db8[5]](_0x7db8[6],controller[_0x7db8[7]]);router[_0x7db8[9]](_0x7db8[3],controller[_0x7db8[8]]);router[_0x7db8[9]](_0x7db8[10],controller[_0x7db8[11]]);router[_0x7db8[13]](_0x7db8[6],controller[_0x7db8[12]]);router[_0x7db8[13]](_0x7db8[10],controller[_0x7db8[14]]);router[_0x7db8[15]](_0x7db8[6],controller[_0x7db8[12]]);router[_0x7db8[17]](_0x7db8[3],controller[_0x7db8[16]]);router[_0x7db8[17]](_0x7db8[6],controller[_0x7db8[18]]);module[_0x7db8[19]]=router;
\ No newline at end of file
+var _0xe4e4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xe4e4[0];var express=require(_0xe4e4[1]);var controller=require(_0xe4e4[2]);var router=express.Router();router[_0xe4e4[5]](_0xe4e4[3],controller[_0xe4e4[4]]);router[_0xe4e4[5]](_0xe4e4[6],controller[_0xe4e4[7]]);router[_0xe4e4[9]](_0xe4e4[3],controller[_0xe4e4[8]]);router[_0xe4e4[9]](_0xe4e4[10],controller[_0xe4e4[11]]);router[_0xe4e4[13]](_0xe4e4[6],controller[_0xe4e4[12]]);router[_0xe4e4[13]](_0xe4e4[10],controller[_0xe4e4[14]]);router[_0xe4e4[15]](_0xe4e4[6],controller[_0xe4e4[12]]);router[_0xe4e4[17]](_0xe4e4[3],controller[_0xe4e4[16]]);router[_0xe4e4[17]](_0xe4e4[6],controller[_0xe4e4[18]]);module[_0xe4e4[19]]=router;
\ No newline at end of file
-var _0xbd8d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xbd8d[0];var _=require(_0xbd8d[1]);var util=require(_0xbd8d[2]);var MailQueue=require(_0xbd8d[4])[_0xbd8d[3]];exports[_0xbd8d[5]]=function(_0x619ax4,_0x619ax5){var _0x619ax6=[_0xbd8d[6],_0xbd8d[7],_0xbd8d[8],_0xbd8d[9]];var _0x619ax7=_0x619ax4[_0xbd8d[11]][_0xbd8d[10]]?parseInt(_0x619ax4[_0xbd8d[11]][_0xbd8d[10]],10):100;var _0x619ax8=_0x619ax4[_0xbd8d[11]][_0xbd8d[12]]?parseInt(_0x619ax4[_0xbd8d[11]][_0xbd8d[12]],10):0;var _0x619ax9={where:{},limit:_0x619ax7,offset:_0x619ax8*_0x619ax7,include:[{all:true}]};_[_0xbd8d[26]](_0x619ax4[_0xbd8d[11]],function(_0x619axa,_0x619axb){switch(_0x619axb){case _0xbd8d[10]:;case _0xbd8d[12]:break ;;case _0xbd8d[15]:_0x619ax9[_0xbd8d[13]]=util[_0xbd8d[18]](_0xbd8d[14],_0x619ax4[_0xbd8d[11]][_0xbd8d[15]],_0x619ax4[_0xbd8d[11]][_0xbd8d[16]]||_0xbd8d[17])||null;break ;;case _0xbd8d[16]:break ;;case _0xbd8d[24]:_0x619ax9[_0xbd8d[20]][_0xbd8d[19]]=[];_0x619ax6[_0xbd8d[23]](function(_0x619axc){var _0x619axd={};_0x619axd[_0x619axc]={$like:_0xbd8d[21]+_0x619axa+_0xbd8d[21]};_0x619ax9[_0xbd8d[20]][_0xbd8d[19]][_0xbd8d[22]](_0x619axd);});break ;;default:_0x619ax9[_0xbd8d[20]][_0x619axb]={$like:{}};_0x619ax9[_0xbd8d[20]][_0x619axb][_0xbd8d[25]]=_0xbd8d[21]+_0x619axa+_0xbd8d[21];;}});MailQueue[_0xbd8d[40]](_0x619ax9)[_0xbd8d[39]](function(_0x619axf){var _0x619ax10=Math[_0xbd8d[29]](_0x619axf[_0xbd8d[28]]/_0x619ax7);var _0x619ax11=_0x619ax10>(_0x619ax9[_0xbd8d[30]]+1)?util[_0xbd8d[18]](_0xbd8d[31],_0x619ax4[_0xbd8d[32]],_0x619ax4[_0xbd8d[34]][_0xbd8d[33]],_0x619ax4[_0xbd8d[35]],_0x619ax8+1):null;var _0x619ax12=_0x619ax8>0?util[_0xbd8d[18]](_0xbd8d[31],_0x619ax4[_0xbd8d[32]],_0x619ax4[_0xbd8d[34]][_0xbd8d[33]],_0x619ax4[_0xbd8d[35]],_0x619ax8-1):null;_0x619ax5[_0xbd8d[38]](200)[_0xbd8d[37]]({count:_0x619axf[_0xbd8d[28]],rows:_0x619axf[_0xbd8d[36]],next_page:_0x619ax11,previous_page:_0x619ax12,total_pages:_0x619ax10});})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)});};exports[_0xbd8d[41]]=function(_0x619ax4,_0x619ax5){MailQueue[_0xbd8d[45]](_0x619ax4[_0xbd8d[44]][_0xbd8d[43]])[_0xbd8d[39]](function(_0x619ax13){if(!_0x619ax13){return _0x619ax5[_0xbd8d[42]](404)};return _0x619ax5[_0xbd8d[37]](_0x619ax13);})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};exports[_0xbd8d[46]]=function(_0x619ax4,_0x619ax5){MailQueue[_0xbd8d[46]](_0x619ax4[_0xbd8d[47]])[_0xbd8d[39]](function(_0x619ax13){return _0x619ax5[_0xbd8d[38]](201)[_0xbd8d[37]](_0x619ax13)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};exports[_0xbd8d[48]]=function(_0x619ax4,_0x619ax5){if(_0x619ax4[_0xbd8d[47]][_0xbd8d[43]]){delete _0x619ax4[_0xbd8d[47]][_0xbd8d[43]]};MailQueue[_0xbd8d[45]](_0x619ax4[_0xbd8d[44]][_0xbd8d[43]])[_0xbd8d[39]](function(_0x619ax13){if(!_0x619ax13){return _0x619ax5[_0xbd8d[42]](404)};var _0x619ax14=_[_0xbd8d[49]](_0x619ax13,_0x619ax4[_0xbd8d[47]]);_0x619ax14[_0xbd8d[50]]()[_0xbd8d[39]](function(){return _0x619ax5[_0xbd8d[38]](200)[_0xbd8d[37]](_0x619ax13)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)});})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)});};exports[_0xbd8d[51]]=function(_0x619ax4,_0x619ax5,_0x619ax15){return MailQueue[_0xbd8d[45]](_0x619ax4[_0xbd8d[44]][_0xbd8d[43]])[_0xbd8d[39]](function(_0x619ax13){if(_0x619ax13){return _0x619ax13[_0xbd8d[53]](_0x619ax4[_0xbd8d[47]][_0xbd8d[52]],{individualHooks:true})}else {throw new Error(_0xbd8d[54])}})[_0xbd8d[39]](function(){return _0x619ax5[_0xbd8d[42]](200)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};exports[_0xbd8d[55]]=function(_0x619ax4,_0x619ax5){return MailQueue[_0xbd8d[45]](_0x619ax4[_0xbd8d[44]][_0xbd8d[43]])[_0xbd8d[39]](function(_0x619ax13){if(_0x619ax13){return _0x619ax13[_0xbd8d[56]](_0x619ax4[_0xbd8d[47]][_0xbd8d[52]],{individualHooks:true})}else {throw new Error(_0xbd8d[54])}})[_0xbd8d[39]](function(){return _0x619ax5[_0xbd8d[42]](200)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};exports[_0xbd8d[57]]=function(_0x619ax4,_0x619ax5){MailQueue[_0xbd8d[45]](_0x619ax4[_0xbd8d[44]][_0xbd8d[43]])[_0xbd8d[39]](function(_0x619ax13){if(!_0x619ax13){return _0x619ax5[_0xbd8d[42]](404)};_0x619ax13[_0xbd8d[57]]()[_0xbd8d[39]](function(){return _0x619ax5[_0xbd8d[42]](204)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)});})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};exports[_0xbd8d[58]]=function(_0x619ax4,_0x619ax5){MailQueue[_0xbd8d[57]]({where:{id:_0x619ax4[_0xbd8d[11]][_0xbd8d[43]]},individualHooks:true})[_0xbd8d[39]](function(){return _0x619ax5[_0xbd8d[42]](204)})[_0xbd8d[27]](function(_0x619axe){return handleError(_0x619ax5,_0x619axe)})};function handleError(_0x619ax5,_0x619axe){return _0x619ax5[_0xbd8d[38]](500)[_0xbd8d[37]](_0x619axe)}
\ No newline at end of file
+var _0x2c97=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x2c97[0];var _=require(_0x2c97[1]);var util=require(_0x2c97[2]);var MailQueue=require(_0x2c97[4])[_0x2c97[3]];exports[_0x2c97[5]]=function(_0x6343x4,_0x6343x5){var _0x6343x6=[_0x2c97[6],_0x2c97[7],_0x2c97[8],_0x2c97[9]];var _0x6343x7=_0x6343x4[_0x2c97[11]][_0x2c97[10]]?parseInt(_0x6343x4[_0x2c97[11]][_0x2c97[10]],10):100;var _0x6343x8=_0x6343x4[_0x2c97[11]][_0x2c97[12]]?parseInt(_0x6343x4[_0x2c97[11]][_0x2c97[12]],10):0;var _0x6343x9={where:{},limit:_0x6343x7,offset:_0x6343x8*_0x6343x7,include:[{all:true}]};_[_0x2c97[26]](_0x6343x4[_0x2c97[11]],function(_0x6343xa,_0x6343xb){switch(_0x6343xb){case _0x2c97[10]:;case _0x2c97[12]:break ;;case _0x2c97[15]:_0x6343x9[_0x2c97[13]]=util[_0x2c97[18]](_0x2c97[14],_0x6343x4[_0x2c97[11]][_0x2c97[15]],_0x6343x4[_0x2c97[11]][_0x2c97[16]]||_0x2c97[17])||null;break ;;case _0x2c97[16]:break ;;case _0x2c97[24]:_0x6343x9[_0x2c97[20]][_0x2c97[19]]=[];_0x6343x6[_0x2c97[23]](function(_0x6343xc){var _0x6343xd={};_0x6343xd[_0x6343xc]={$like:_0x2c97[21]+_0x6343xa+_0x2c97[21]};_0x6343x9[_0x2c97[20]][_0x2c97[19]][_0x2c97[22]](_0x6343xd);});break ;;default:_0x6343x9[_0x2c97[20]][_0x6343xb]={$like:{}};_0x6343x9[_0x2c97[20]][_0x6343xb][_0x2c97[25]]=_0x2c97[21]+_0x6343xa+_0x2c97[21];;}});MailQueue[_0x2c97[40]](_0x6343x9)[_0x2c97[39]](function(_0x6343xf){var _0x6343x10=Math[_0x2c97[29]](_0x6343xf[_0x2c97[28]]/_0x6343x7);var _0x6343x11=_0x6343x10>(_0x6343x9[_0x2c97[30]]+1)?util[_0x2c97[18]](_0x2c97[31],_0x6343x4[_0x2c97[32]],_0x6343x4[_0x2c97[34]][_0x2c97[33]],_0x6343x4[_0x2c97[35]],_0x6343x8+1):null;var _0x6343x12=_0x6343x8>0?util[_0x2c97[18]](_0x2c97[31],_0x6343x4[_0x2c97[32]],_0x6343x4[_0x2c97[34]][_0x2c97[33]],_0x6343x4[_0x2c97[35]],_0x6343x8-1):null;_0x6343x5[_0x2c97[38]](200)[_0x2c97[37]]({count:_0x6343xf[_0x2c97[28]],rows:_0x6343xf[_0x2c97[36]],next_page:_0x6343x11,previous_page:_0x6343x12,total_pages:_0x6343x10});})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)});};exports[_0x2c97[41]]=function(_0x6343x4,_0x6343x5){MailQueue[_0x2c97[45]](_0x6343x4[_0x2c97[44]][_0x2c97[43]])[_0x2c97[39]](function(_0x6343x13){if(!_0x6343x13){return _0x6343x5[_0x2c97[42]](404)};return _0x6343x5[_0x2c97[37]](_0x6343x13);})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};exports[_0x2c97[46]]=function(_0x6343x4,_0x6343x5){MailQueue[_0x2c97[46]](_0x6343x4[_0x2c97[47]])[_0x2c97[39]](function(_0x6343x13){return _0x6343x5[_0x2c97[38]](201)[_0x2c97[37]](_0x6343x13)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};exports[_0x2c97[48]]=function(_0x6343x4,_0x6343x5){if(_0x6343x4[_0x2c97[47]][_0x2c97[43]]){delete _0x6343x4[_0x2c97[47]][_0x2c97[43]]};MailQueue[_0x2c97[45]](_0x6343x4[_0x2c97[44]][_0x2c97[43]])[_0x2c97[39]](function(_0x6343x13){if(!_0x6343x13){return _0x6343x5[_0x2c97[42]](404)};var _0x6343x14=_[_0x2c97[49]](_0x6343x13,_0x6343x4[_0x2c97[47]]);_0x6343x14[_0x2c97[50]]()[_0x2c97[39]](function(){return _0x6343x5[_0x2c97[38]](200)[_0x2c97[37]](_0x6343x13)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)});})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)});};exports[_0x2c97[51]]=function(_0x6343x4,_0x6343x5,_0x6343x15){return MailQueue[_0x2c97[45]](_0x6343x4[_0x2c97[44]][_0x2c97[43]])[_0x2c97[39]](function(_0x6343x13){if(_0x6343x13){return _0x6343x13[_0x2c97[53]](_0x6343x4[_0x2c97[47]][_0x2c97[52]],{individualHooks:true})}else {throw new Error(_0x2c97[54])}})[_0x2c97[39]](function(){return _0x6343x5[_0x2c97[42]](200)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};exports[_0x2c97[55]]=function(_0x6343x4,_0x6343x5){return MailQueue[_0x2c97[45]](_0x6343x4[_0x2c97[44]][_0x2c97[43]])[_0x2c97[39]](function(_0x6343x13){if(_0x6343x13){return _0x6343x13[_0x2c97[56]](_0x6343x4[_0x2c97[47]][_0x2c97[52]],{individualHooks:true})}else {throw new Error(_0x2c97[54])}})[_0x2c97[39]](function(){return _0x6343x5[_0x2c97[42]](200)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};exports[_0x2c97[57]]=function(_0x6343x4,_0x6343x5){MailQueue[_0x2c97[45]](_0x6343x4[_0x2c97[44]][_0x2c97[43]])[_0x2c97[39]](function(_0x6343x13){if(!_0x6343x13){return _0x6343x5[_0x2c97[42]](404)};_0x6343x13[_0x2c97[57]]()[_0x2c97[39]](function(){return _0x6343x5[_0x2c97[42]](204)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)});})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};exports[_0x2c97[58]]=function(_0x6343x4,_0x6343x5){MailQueue[_0x2c97[57]]({where:{id:_0x6343x4[_0x2c97[11]][_0x2c97[43]]},individualHooks:true})[_0x2c97[39]](function(){return _0x6343x5[_0x2c97[42]](204)})[_0x2c97[27]](function(_0x6343xe){return handleError(_0x6343x5,_0x6343xe)})};function handleError(_0x6343x5,_0x6343xe){return _0x6343x5[_0x2c97[38]](500)[_0x2c97[37]](_0x6343xe)}
\ No newline at end of file
-var _0x1b17=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1b17[0];var MailQueue=require(_0x1b17[2])[_0x1b17[1]];exports[_0x1b17[3]]=function(_0x92d1x2){MailQueue[_0x1b17[4]](function(_0x92d1x3){onSave(_0x92d1x2,_0x92d1x3)});MailQueue[_0x1b17[5]](function(_0x92d1x3){onRemove(_0x92d1x2,_0x92d1x3)});};function onSave(_0x92d1x2,_0x92d1x3,_0x92d1x5){_0x92d1x2[_0x1b17[7]](_0x1b17[6],_0x92d1x3)}function onRemove(_0x92d1x2,_0x92d1x3,_0x92d1x5){_0x92d1x2[_0x1b17[7]](_0x1b17[8],_0x92d1x3)}
\ No newline at end of file
+var _0x25e6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x25e6[0];var MailQueue=require(_0x25e6[2])[_0x25e6[1]];exports[_0x25e6[3]]=function(_0x5283x2){MailQueue[_0x25e6[4]](function(_0x5283x3){onSave(_0x5283x2,_0x5283x3)});MailQueue[_0x25e6[5]](function(_0x5283x3){onRemove(_0x5283x2,_0x5283x3)});};function onSave(_0x5283x2,_0x5283x3,_0x5283x5){_0x5283x2[_0x25e6[7]](_0x25e6[6],_0x5283x3)}function onRemove(_0x5283x2,_0x5283x3,_0x5283x5){_0x5283x2[_0x25e6[7]](_0x25e6[8],_0x5283x3)}
\ No newline at end of file
-var _0x54b1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x54b1[0];var should=require(_0x54b1[1]);var app=require(_0x54b1[2]);var request=require(_0x54b1[3]);describe(_0x54b1[4],function(){it(_0x54b1[5],function(_0x131cx4){request(app)[_0x54b1[13]](_0x54b1[12])[_0x54b1[11]](200)[_0x54b1[11]](_0x54b1[10],/json/)[_0x54b1[9]](function(_0x131cx5,_0x131cx6){if(_0x131cx5){return _0x131cx4(_0x131cx5)};_0x131cx6[_0x54b1[8]][_0x54b1[1]][_0x54b1[7]][_0x54b1[6]](Array);_0x131cx4();})})});
\ No newline at end of file
+var _0x676f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x676f[0];var should=require(_0x676f[1]);var app=require(_0x676f[2]);var request=require(_0x676f[3]);describe(_0x676f[4],function(){it(_0x676f[5],function(_0x185ex4){request(app)[_0x676f[13]](_0x676f[12])[_0x676f[11]](200)[_0x676f[11]](_0x676f[10],/json/)[_0x676f[9]](function(_0x185ex5,_0x185ex6){if(_0x185ex5){return _0x185ex4(_0x185ex5)};_0x185ex6[_0x676f[8]][_0x676f[1]][_0x676f[7]][_0x676f[6]](Array);_0x185ex4();})})});
\ No newline at end of file
-var _0xf60f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x67\x65\x6E\x74\x2F\x3A\x69\x64","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xf60f[0];var express=require(_0xf60f[1]);var controller=require(_0xf60f[2]);var router=express.Router();router[_0xf60f[5]](_0xf60f[3],controller[_0xf60f[4]]);router[_0xf60f[5]](_0xf60f[6],controller[_0xf60f[7]]);router[_0xf60f[5]](_0xf60f[8],controller[_0xf60f[9]]);router[_0xf60f[11]](_0xf60f[3],controller[_0xf60f[10]]);router[_0xf60f[13]](_0xf60f[8],controller[_0xf60f[12]]);router[_0xf60f[14]](_0xf60f[8],controller[_0xf60f[12]]);router[_0xf60f[16]](_0xf60f[3],controller[_0xf60f[15]]);router[_0xf60f[16]](_0xf60f[8],controller[_0xf60f[17]]);module[_0xf60f[18]]=router;
\ No newline at end of file
+var _0xd32c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x61\x67\x65\x6E\x74\x2F\x3A\x69\x64","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xd32c[0];var express=require(_0xd32c[1]);var controller=require(_0xd32c[2]);var router=express.Router();router[_0xd32c[5]](_0xd32c[3],controller[_0xd32c[4]]);router[_0xd32c[5]](_0xd32c[6],controller[_0xd32c[7]]);router[_0xd32c[5]](_0xd32c[8],controller[_0xd32c[9]]);router[_0xd32c[11]](_0xd32c[3],controller[_0xd32c[10]]);router[_0xd32c[13]](_0xd32c[8],controller[_0xd32c[12]]);router[_0xd32c[14]](_0xd32c[8],controller[_0xd32c[12]]);router[_0xd32c[16]](_0xd32c[3],controller[_0xd32c[15]]);router[_0xd32c[16]](_0xd32c[8],controller[_0xd32c[17]]);module[_0xd32c[18]]=router;
\ No newline at end of file
-var _0x4f44=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x69\x6E\x64\x65\x78","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x73\x74\x61\x74\x75\x73","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x4E\x45\x57","\x4F\x50\x45\x4E","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6A\x6F\x62\x49\x64","\x4D\x61\x69\x6C\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x61\x73\x73\x69\x67\x6E\x65\x64","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x4f44[0];var _=require(_0x4f44[1]);var util=require(_0x4f44[2]);var User=require(_0x4f44[4])[_0x4f44[3]];var Contact=require(_0x4f44[4])[_0x4f44[5]];var MailRoom=require(_0x4f44[4])[_0x4f44[6]];var MailMessage=require(_0x4f44[4])[_0x4f44[7]];var MailAccount=require(_0x4f44[4])[_0x4f44[8]];var MailAttachment=require(_0x4f44[4])[_0x4f44[9]];exports[_0x4f44[10]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){var _0x5d20xc=[_0x4f44[11],_0x4f44[12],_0x4f44[13]];var _0x5d20xd=_0x5d20x9[_0x4f44[15]][_0x4f44[14]]?parseInt(_0x5d20x9[_0x4f44[15]][_0x4f44[14]],10):100;var _0x5d20xe=_0x5d20x9[_0x4f44[15]][_0x4f44[16]]?parseInt(_0x5d20x9[_0x4f44[15]][_0x4f44[16]],10):0;var _0x5d20xf={where:{status:{$or:[_0x4f44[17],_0x4f44[18]]}},limit:_0x5d20xd,offset:_0x5d20xe*_0x5d20xd,include:[{all:true}]};_[_0x4f44[32]](_0x5d20x9[_0x4f44[15]],function(_0x5d20x10,_0x5d20x11){switch(_0x5d20x11){case _0x4f44[14]:;case _0x4f44[16]:break ;;case _0x4f44[21]:_0x5d20xf[_0x4f44[19]]=util[_0x4f44[24]](_0x4f44[20],_0x5d20x9[_0x4f44[15]][_0x4f44[21]],_0x5d20x9[_0x4f44[15]][_0x4f44[22]]||_0x4f44[23])||null;break ;;case _0x4f44[22]:break ;;case _0x4f44[30]:_0x5d20xf[_0x4f44[26]][_0x4f44[25]]=[];_0x5d20xc[_0x4f44[29]](function(_0x5d20x12){var _0x5d20x13={};_0x5d20x13[_0x5d20x12]={$like:_0x4f44[27]+_0x5d20x10+_0x4f44[27]};_0x5d20xf[_0x4f44[26]][_0x4f44[25]][_0x4f44[28]](_0x5d20x13);});break ;;default:_0x5d20xf[_0x4f44[26]][_0x5d20x11]={$like:{}};_0x5d20xf[_0x4f44[26]][_0x5d20x11][_0x4f44[31]]=_0x4f44[27]+_0x5d20x10+_0x4f44[27];;}});MailRoom[_0x4f44[45]](_0x5d20xf)[_0x4f44[44]](function(_0x5d20x15){var _0x5d20x16=Math[_0x4f44[35]](_0x5d20x15[_0x4f44[34]]/_0x5d20xd);var _0x5d20x17=_0x5d20x16>(_0x5d20xf[_0x4f44[36]]+1)?util[_0x4f44[24]](_0x4f44[37],_0x5d20x9[_0x4f44[38]],_0x5d20x9[_0x4f44[40]][_0x4f44[39]],_0x5d20x9[_0x4f44[41]],_0x5d20xe+1):null;var _0x5d20x18=_0x5d20xe>0?util[_0x4f44[24]](_0x4f44[37],_0x5d20x9[_0x4f44[38]],_0x5d20x9[_0x4f44[40]][_0x4f44[39]],_0x5d20x9[_0x4f44[41]],_0x5d20xe-1):null;_0x5d20xa[_0x4f44[13]](200)[_0x4f44[43]]({count:_0x5d20x15[_0x4f44[34]],mailRooms:_0x5d20x15[_0x4f44[42]],next_page:_0x5d20x17,previous_page:_0x5d20x18,total_pages:_0x5d20x16});})[_0x4f44[33]](function(_0x5d20x14){return _0x5d20xb(_0x5d20x14)});};exports[_0x4f44[46]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){MailRoom[_0x4f44[49]]({where:{UserId:_0x5d20x9[_0x4f44[48]][_0x4f44[47]]},include:[{all:true}]})[_0x4f44[44]](function(_0x5d20x19){return _0x5d20xa[_0x4f44[13]](200)[_0x4f44[43]](_0x5d20x19)})[_0x4f44[33]](function(_0x5d20x14){return _0x5d20xb(_0x5d20x14)})};exports[_0x4f44[50]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){return MailRoom[_0x4f44[52]](_0x5d20x9[_0x4f44[48]][_0x4f44[47]],{include:[{model:MailMessage,include:[{model:MailRoom,include:[{model:MailAccount}]},{model:MailAttachment}]}]})[_0x4f44[44]](function(_0x5d20x1a){if(!_0x5d20x1a){return _0x5d20xa[_0x4f44[51]](404)};return _0x5d20xa[_0x4f44[43]](_0x5d20x1a);})[_0x4f44[33]](function(_0x5d20x14){return _0x5d20xb(_0x5d20x14)})};exports[_0x4f44[53]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){return MailRoom[_0x4f44[53]](_0x5d20x9[_0x4f44[54]])[_0x4f44[44]](function(_0x5d20x1a){return _0x5d20xa[_0x4f44[13]](201)[_0x4f44[43]](_0x5d20x1a)})[_0x4f44[33]](function(_0x5d20x14){return handleError(_0x5d20xa,_0x5d20x14)})};exports[_0x4f44[55]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){return MailRoom[_0x4f44[52]](_0x5d20x9[_0x4f44[48]][_0x4f44[47]])[_0x4f44[44]](function(_0x5d20x1a){if(!_0x5d20x1a){return _0x5d20xa[_0x4f44[51]](404)};if(_0x5d20x1a[_0x4f44[56]]){throw new Error(_0x4f44[57])};var _0x5d20x1b=_[_0x4f44[58]](_0x5d20x1a,_0x5d20x9[_0x4f44[54]]);return _0x5d20x1b[_0x4f44[59]]();})[_0x4f44[44]](function(_0x5d20x1a){return _0x5d20xa[_0x4f44[13]](200)[_0x4f44[43]](_0x5d20x1a)})[_0x4f44[33]](function(_0x5d20x14){return handleError(_0x5d20xa,_0x5d20x14)})};exports[_0x4f44[60]]=function(_0x5d20x9,_0x5d20xa,_0x5d20xb){return MailRoom[_0x4f44[52]](_0x5d20x9[_0x4f44[48]][_0x4f44[47]])[_0x4f44[44]](function(_0x5d20x1a){if(!_0x5d20x1a){return _0x5d20xa[_0x4f44[51]](404)};return _0x5d20x1a[_0x4f44[60]]();})[_0x4f44[44]](function(){return _0x5d20xa[_0x4f44[51]](204)})[_0x4f44[33]](function(_0x5d20x14){return handleError(_0x5d20xa,_0x5d20x14)})};exports[_0x4f44[61]]=function(_0x5d20x9,_0x5d20xa){return MailRoom[_0x4f44[60]]({where:{id:_0x5d20x9[_0x4f44[15]][_0x4f44[47]]},individualHooks:true})[_0x4f44[44]](function(){return _0x5d20xa[_0x4f44[51]](200)})[_0x4f44[33]](function(_0x5d20x14){return handleError(_0x5d20xa,_0x5d20x14)})};function handleError(_0x5d20xa,_0x5d20x14){return _0x5d20xa[_0x4f44[13]](500)[_0x4f44[43]](_0x5d20x14)}
\ No newline at end of file
+var _0x4590=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x69\x6E\x64\x65\x78","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x73\x74\x61\x74\x75\x73","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x4E\x45\x57","\x4F\x50\x45\x4E","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x61\x67\x65\x6E\x74\x49\x6E\x64\x65\x78","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6A\x6F\x62\x49\x64","\x4D\x61\x69\x6C\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x61\x73\x73\x69\x67\x6E\x65\x64","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x4590[0];var _=require(_0x4590[1]);var util=require(_0x4590[2]);var User=require(_0x4590[4])[_0x4590[3]];var Contact=require(_0x4590[4])[_0x4590[5]];var MailRoom=require(_0x4590[4])[_0x4590[6]];var MailMessage=require(_0x4590[4])[_0x4590[7]];var MailAccount=require(_0x4590[4])[_0x4590[8]];var MailAttachment=require(_0x4590[4])[_0x4590[9]];exports[_0x4590[10]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){var _0xa2d2xc=[_0x4590[11],_0x4590[12],_0x4590[13]];var _0xa2d2xd=_0xa2d2x9[_0x4590[15]][_0x4590[14]]?parseInt(_0xa2d2x9[_0x4590[15]][_0x4590[14]],10):100;var _0xa2d2xe=_0xa2d2x9[_0x4590[15]][_0x4590[16]]?parseInt(_0xa2d2x9[_0x4590[15]][_0x4590[16]],10):0;var _0xa2d2xf={where:{status:{$or:[_0x4590[17],_0x4590[18]]}},limit:_0xa2d2xd,offset:_0xa2d2xe*_0xa2d2xd,include:[{all:true}]};_[_0x4590[32]](_0xa2d2x9[_0x4590[15]],function(_0xa2d2x10,_0xa2d2x11){switch(_0xa2d2x11){case _0x4590[14]:;case _0x4590[16]:break ;;case _0x4590[21]:_0xa2d2xf[_0x4590[19]]=util[_0x4590[24]](_0x4590[20],_0xa2d2x9[_0x4590[15]][_0x4590[21]],_0xa2d2x9[_0x4590[15]][_0x4590[22]]||_0x4590[23])||null;break ;;case _0x4590[22]:break ;;case _0x4590[30]:_0xa2d2xf[_0x4590[26]][_0x4590[25]]=[];_0xa2d2xc[_0x4590[29]](function(_0xa2d2x12){var _0xa2d2x13={};_0xa2d2x13[_0xa2d2x12]={$like:_0x4590[27]+_0xa2d2x10+_0x4590[27]};_0xa2d2xf[_0x4590[26]][_0x4590[25]][_0x4590[28]](_0xa2d2x13);});break ;;default:_0xa2d2xf[_0x4590[26]][_0xa2d2x11]={$like:{}};_0xa2d2xf[_0x4590[26]][_0xa2d2x11][_0x4590[31]]=_0x4590[27]+_0xa2d2x10+_0x4590[27];;}});MailRoom[_0x4590[45]](_0xa2d2xf)[_0x4590[44]](function(_0xa2d2x15){var _0xa2d2x16=Math[_0x4590[35]](_0xa2d2x15[_0x4590[34]]/_0xa2d2xd);var _0xa2d2x17=_0xa2d2x16>(_0xa2d2xf[_0x4590[36]]+1)?util[_0x4590[24]](_0x4590[37],_0xa2d2x9[_0x4590[38]],_0xa2d2x9[_0x4590[40]][_0x4590[39]],_0xa2d2x9[_0x4590[41]],_0xa2d2xe+1):null;var _0xa2d2x18=_0xa2d2xe>0?util[_0x4590[24]](_0x4590[37],_0xa2d2x9[_0x4590[38]],_0xa2d2x9[_0x4590[40]][_0x4590[39]],_0xa2d2x9[_0x4590[41]],_0xa2d2xe-1):null;_0xa2d2xa[_0x4590[13]](200)[_0x4590[43]]({count:_0xa2d2x15[_0x4590[34]],mailRooms:_0xa2d2x15[_0x4590[42]],next_page:_0xa2d2x17,previous_page:_0xa2d2x18,total_pages:_0xa2d2x16});})[_0x4590[33]](function(_0xa2d2x14){return _0xa2d2xb(_0xa2d2x14)});};exports[_0x4590[46]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){MailRoom[_0x4590[49]]({where:{UserId:_0xa2d2x9[_0x4590[48]][_0x4590[47]]},include:[{all:true}]})[_0x4590[44]](function(_0xa2d2x19){return _0xa2d2xa[_0x4590[13]](200)[_0x4590[43]](_0xa2d2x19)})[_0x4590[33]](function(_0xa2d2x14){return _0xa2d2xb(_0xa2d2x14)})};exports[_0x4590[50]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){return MailRoom[_0x4590[52]](_0xa2d2x9[_0x4590[48]][_0x4590[47]],{include:[{model:MailMessage,include:[{model:MailRoom,include:[{model:MailAccount}]},{model:MailAttachment}]}]})[_0x4590[44]](function(_0xa2d2x1a){if(!_0xa2d2x1a){return _0xa2d2xa[_0x4590[51]](404)};return _0xa2d2xa[_0x4590[43]](_0xa2d2x1a);})[_0x4590[33]](function(_0xa2d2x14){return _0xa2d2xb(_0xa2d2x14)})};exports[_0x4590[53]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){return MailRoom[_0x4590[53]](_0xa2d2x9[_0x4590[54]])[_0x4590[44]](function(_0xa2d2x1a){return _0xa2d2xa[_0x4590[13]](201)[_0x4590[43]](_0xa2d2x1a)})[_0x4590[33]](function(_0xa2d2x14){return handleError(_0xa2d2xa,_0xa2d2x14)})};exports[_0x4590[55]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){return MailRoom[_0x4590[52]](_0xa2d2x9[_0x4590[48]][_0x4590[47]])[_0x4590[44]](function(_0xa2d2x1a){if(!_0xa2d2x1a){return _0xa2d2xa[_0x4590[51]](404)};if(_0xa2d2x1a[_0x4590[56]]){throw new Error(_0x4590[57])};var _0xa2d2x1b=_[_0x4590[58]](_0xa2d2x1a,_0xa2d2x9[_0x4590[54]]);return _0xa2d2x1b[_0x4590[59]]();})[_0x4590[44]](function(_0xa2d2x1a){return _0xa2d2xa[_0x4590[13]](200)[_0x4590[43]](_0xa2d2x1a)})[_0x4590[33]](function(_0xa2d2x14){return handleError(_0xa2d2xa,_0xa2d2x14)})};exports[_0x4590[60]]=function(_0xa2d2x9,_0xa2d2xa,_0xa2d2xb){return MailRoom[_0x4590[52]](_0xa2d2x9[_0x4590[48]][_0x4590[47]])[_0x4590[44]](function(_0xa2d2x1a){if(!_0xa2d2x1a){return _0xa2d2xa[_0x4590[51]](404)};return _0xa2d2x1a[_0x4590[60]]();})[_0x4590[44]](function(){return _0xa2d2xa[_0x4590[51]](204)})[_0x4590[33]](function(_0xa2d2x14){return handleError(_0xa2d2xa,_0xa2d2x14)})};exports[_0x4590[61]]=function(_0xa2d2x9,_0xa2d2xa){return MailRoom[_0x4590[60]]({where:{id:_0xa2d2x9[_0x4590[15]][_0x4590[47]]},individualHooks:true})[_0x4590[44]](function(){return _0xa2d2xa[_0x4590[51]](200)})[_0x4590[33]](function(_0xa2d2x14){return handleError(_0xa2d2xa,_0xa2d2x14)})};function handleError(_0xa2d2xa,_0xa2d2x14){return _0xa2d2xa[_0x4590[13]](500)[_0x4590[43]](_0xa2d2x14)}
\ No newline at end of file
-var _0x7271=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7271[0];var MailMessage=require(_0x7271[2])[_0x7271[1]];var MailRoom=require(_0x7271[2])[_0x7271[3]];var User=require(_0x7271[2])[_0x7271[4]];exports[_0x7271[5]]=function(_0xb49ax4){MailRoom[_0x7271[6]](function(_0xb49ax5){onSave(_0xb49ax4,_0xb49ax5)});MailRoom[_0x7271[7]](function(_0xb49ax5){onRemove(_0xb49ax4,_0xb49ax5)});MailRoom[_0x7271[13]](function(_0xb49ax5){MailRoom[_0x7271[12]](_0xb49ax5[_0x7271[11]],{include:[{all:true}]})[_0x7271[10]](function(_0xb49ax7){onSave(_0xb49ax4,_0xb49ax7)})[_0x7271[9]](function(_0xb49ax6){console[_0x7271[8]](_0xb49ax6)})});MailRoom[_0x7271[7]](function(_0xb49ax5){onRemove(_0xb49ax4,_0xb49ax5)});};function onSave(_0xb49ax4,_0xb49ax5,_0xb49ax9){_0xb49ax4[_0x7271[15]](_0x7271[14],_0xb49ax5)}function onRemove(_0xb49ax4,_0xb49ax5,_0xb49ax9){_0xb49ax4[_0x7271[15]](_0x7271[16],_0xb49ax5)}
\ No newline at end of file
+var _0xda7a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x55\x73\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0xda7a[0];var MailMessage=require(_0xda7a[2])[_0xda7a[1]];var MailRoom=require(_0xda7a[2])[_0xda7a[3]];var User=require(_0xda7a[2])[_0xda7a[4]];exports[_0xda7a[5]]=function(_0x6575x4){MailRoom[_0xda7a[6]](function(_0x6575x5){onSave(_0x6575x4,_0x6575x5)});MailRoom[_0xda7a[7]](function(_0x6575x5){onRemove(_0x6575x4,_0x6575x5)});MailRoom[_0xda7a[13]](function(_0x6575x5){MailRoom[_0xda7a[12]](_0x6575x5[_0xda7a[11]],{include:[{all:true}]})[_0xda7a[10]](function(_0x6575x7){onSave(_0x6575x4,_0x6575x7)})[_0xda7a[9]](function(_0x6575x6){console[_0xda7a[8]](_0x6575x6)})});MailRoom[_0xda7a[7]](function(_0x6575x5){onRemove(_0x6575x4,_0x6575x5)});};function onSave(_0x6575x4,_0x6575x5,_0x6575x9){_0x6575x4[_0xda7a[15]](_0xda7a[14],_0x6575x5)}function onRemove(_0x6575x4,_0x6575x5,_0x6575x9){_0x6575x4[_0xda7a[15]](_0xda7a[16],_0x6575x5)}
\ No newline at end of file
-var _0x27f4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x27f4[0];var express=require(_0x27f4[1]);var controller=require(_0x27f4[2]);var router=express.Router();router[_0x27f4[5]](_0x27f4[3],controller[_0x27f4[4]]);router[_0x27f4[5]](_0x27f4[6],controller[_0x27f4[7]]);router[_0x27f4[9]](_0x27f4[3],controller[_0x27f4[8]]);router[_0x27f4[11]](_0x27f4[6],controller[_0x27f4[10]]);router[_0x27f4[12]](_0x27f4[6],controller[_0x27f4[10]]);router[_0x27f4[14]](_0x27f4[6],controller[_0x27f4[13]]);module[_0x27f4[15]]=router;
\ No newline at end of file
+var _0x3cd9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x3cd9[0];var express=require(_0x3cd9[1]);var controller=require(_0x3cd9[2]);var router=express.Router();router[_0x3cd9[5]](_0x3cd9[3],controller[_0x3cd9[4]]);router[_0x3cd9[5]](_0x3cd9[6],controller[_0x3cd9[7]]);router[_0x3cd9[9]](_0x3cd9[3],controller[_0x3cd9[8]]);router[_0x3cd9[11]](_0x3cd9[6],controller[_0x3cd9[10]]);router[_0x3cd9[12]](_0x3cd9[6],controller[_0x3cd9[10]]);router[_0x3cd9[14]](_0x3cd9[6],controller[_0x3cd9[13]]);module[_0x3cd9[15]]=router;
\ No newline at end of file
-var _0xa562=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x65\x72\x72\x6F\x72","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xa562[0];var _=require(_0xa562[1]);var MailServerIn=require(_0xa562[3])[_0xa562[2]];exports[_0xa562[4]]=function(_0xa2c2x3,_0xa2c2x4){MailServerIn[_0xa562[9]]()[_0xa562[8]](function(_0xa2c2x6){return _0xa2c2x4[_0xa562[7]](200)[_0xa562[6]](_0xa2c2x6)})[_0xa562[5]](function(_0xa2c2x5){return handleError(_0xa2c2x4,_0xa2c2x5)})};exports[_0xa562[10]]=function(_0xa2c2x3,_0xa2c2x4){MailServerIn[_0xa562[14]](_0xa2c2x3[_0xa562[13]][_0xa562[12]])[_0xa562[8]](function(_0xa2c2x7){if(!_0xa2c2x7){return _0xa2c2x4[_0xa562[11]](404)};return _0xa2c2x4[_0xa562[6]](_0xa2c2x7);})[_0xa562[5]](function(_0xa2c2x5){return handleError(_0xa2c2x4,_0xa2c2x5)})};exports[_0xa562[15]]=function(_0xa2c2x3,_0xa2c2x4){MailServerIn[_0xa562[15]](_0xa2c2x3[_0xa562[16]])[_0xa562[8]](function(_0xa2c2x7){return _0xa2c2x4[_0xa562[7]](201)[_0xa562[6]](_0xa2c2x7)})[_0xa562[5]](function(_0xa2c2x5){return handleError(_0xa2c2x4,_0xa2c2x5)})};exports[_0xa562[17]]=function(_0xa2c2x3,_0xa2c2x4){if(_0xa2c2x3[_0xa562[16]][_0xa562[12]]){delete _0xa2c2x3[_0xa562[16]][_0xa562[12]]};return MailServerIn[_0xa562[14]](_0xa2c2x3[_0xa562[13]][_0xa562[12]])[_0xa562[8]](function(_0xa2c2x7){if(!_0xa2c2x7){return _0xa2c2x4[_0xa562[11]](404)};var _0xa2c2x8=_[_0xa562[19]](_0xa2c2x7,_0xa2c2x3[_0xa562[16]]);_0xa2c2x8[_0xa562[20]]()[_0xa562[8]](function(){return _0xa2c2x4[_0xa562[7]](200)[_0xa562[6]](_0xa2c2x7)})[_0xa562[5]](function(_0xa2c2x5){console[_0xa562[18]](_0xa2c2x5);return handleError(_0xa2c2x4,_0xa2c2x5);});})[_0xa562[5]](function(_0xa2c2x5){console[_0xa562[18]](_0xa2c2x5);return handleError(_0xa2c2x4,_0xa2c2x5);});};exports[_0xa562[21]]=function(_0xa2c2x3,_0xa2c2x4){MailServerIn[_0xa562[14]](_0xa2c2x3[_0xa562[13]][_0xa562[12]])[_0xa562[8]](function(_0xa2c2x7){if(!_0xa2c2x7){return _0xa2c2x4[_0xa562[11]](404)};_0xa2c2x7[_0xa562[21]]()[_0xa562[8]](function(){return _0xa2c2x4[_0xa562[11]](204)})[_0xa562[5]](function(_0xa2c2x5){return handleError(_0xa2c2x4,_0xa2c2x5)});})[_0xa562[5]](function(_0xa2c2x5){return handleError(_0xa2c2x4,_0xa2c2x5)})};function handleError(_0xa2c2x4,_0xa2c2x5){return _0xa2c2x4[_0xa562[7]](500)[_0xa562[6]](_0xa2c2x5)}
\ No newline at end of file
+var _0x193a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x65\x72\x72\x6F\x72","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x193a[0];var _=require(_0x193a[1]);var MailServerIn=require(_0x193a[3])[_0x193a[2]];exports[_0x193a[4]]=function(_0x10c3x3,_0x10c3x4){MailServerIn[_0x193a[9]]()[_0x193a[8]](function(_0x10c3x6){return _0x10c3x4[_0x193a[7]](200)[_0x193a[6]](_0x10c3x6)})[_0x193a[5]](function(_0x10c3x5){return handleError(_0x10c3x4,_0x10c3x5)})};exports[_0x193a[10]]=function(_0x10c3x3,_0x10c3x4){MailServerIn[_0x193a[14]](_0x10c3x3[_0x193a[13]][_0x193a[12]])[_0x193a[8]](function(_0x10c3x7){if(!_0x10c3x7){return _0x10c3x4[_0x193a[11]](404)};return _0x10c3x4[_0x193a[6]](_0x10c3x7);})[_0x193a[5]](function(_0x10c3x5){return handleError(_0x10c3x4,_0x10c3x5)})};exports[_0x193a[15]]=function(_0x10c3x3,_0x10c3x4){MailServerIn[_0x193a[15]](_0x10c3x3[_0x193a[16]])[_0x193a[8]](function(_0x10c3x7){return _0x10c3x4[_0x193a[7]](201)[_0x193a[6]](_0x10c3x7)})[_0x193a[5]](function(_0x10c3x5){return handleError(_0x10c3x4,_0x10c3x5)})};exports[_0x193a[17]]=function(_0x10c3x3,_0x10c3x4){if(_0x10c3x3[_0x193a[16]][_0x193a[12]]){delete _0x10c3x3[_0x193a[16]][_0x193a[12]]};return MailServerIn[_0x193a[14]](_0x10c3x3[_0x193a[13]][_0x193a[12]])[_0x193a[8]](function(_0x10c3x7){if(!_0x10c3x7){return _0x10c3x4[_0x193a[11]](404)};var _0x10c3x8=_[_0x193a[19]](_0x10c3x7,_0x10c3x3[_0x193a[16]]);_0x10c3x8[_0x193a[20]]()[_0x193a[8]](function(){return _0x10c3x4[_0x193a[7]](200)[_0x193a[6]](_0x10c3x7)})[_0x193a[5]](function(_0x10c3x5){console[_0x193a[18]](_0x10c3x5);return handleError(_0x10c3x4,_0x10c3x5);});})[_0x193a[5]](function(_0x10c3x5){console[_0x193a[18]](_0x10c3x5);return handleError(_0x10c3x4,_0x10c3x5);});};exports[_0x193a[21]]=function(_0x10c3x3,_0x10c3x4){MailServerIn[_0x193a[14]](_0x10c3x3[_0x193a[13]][_0x193a[12]])[_0x193a[8]](function(_0x10c3x7){if(!_0x10c3x7){return _0x10c3x4[_0x193a[11]](404)};_0x10c3x7[_0x193a[21]]()[_0x193a[8]](function(){return _0x10c3x4[_0x193a[11]](204)})[_0x193a[5]](function(_0x10c3x5){return handleError(_0x10c3x4,_0x10c3x5)});})[_0x193a[5]](function(_0x10c3x5){return handleError(_0x10c3x4,_0x10c3x5)})};function handleError(_0x10c3x4,_0x10c3x5){return _0x10c3x4[_0x193a[7]](500)[_0x193a[6]](_0x10c3x5)}
\ No newline at end of file
-var _0xac7c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xac7c[0];var MailServerIn=require(_0xac7c[2])[_0xac7c[1]];exports[_0xac7c[3]]=function(_0xa555x2){MailServerIn[_0xac7c[4]](function(_0xa555x3){onSave(_0xa555x2,_0xa555x3)});MailServerIn[_0xac7c[5]](function(_0xa555x3){onSave(_0xa555x2,_0xa555x3)});MailServerIn[_0xac7c[6]](function(_0xa555x3){onRemove(_0xa555x2,_0xa555x3)});};function onSave(_0xa555x2,_0xa555x3,_0xa555x5){_0xa555x2[_0xac7c[8]](_0xac7c[7],_0xa555x3)}function onRemove(_0xa555x2,_0xa555x3,_0xa555x5){_0xa555x2[_0xac7c[8]](_0xac7c[9],_0xa555x3)}
\ No newline at end of file
+var _0x9bd2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9bd2[0];var MailServerIn=require(_0x9bd2[2])[_0x9bd2[1]];exports[_0x9bd2[3]]=function(_0x2244x2){MailServerIn[_0x9bd2[4]](function(_0x2244x3){onSave(_0x2244x2,_0x2244x3)});MailServerIn[_0x9bd2[5]](function(_0x2244x3){onSave(_0x2244x2,_0x2244x3)});MailServerIn[_0x9bd2[6]](function(_0x2244x3){onRemove(_0x2244x2,_0x2244x3)});};function onSave(_0x2244x2,_0x2244x3,_0x2244x5){_0x2244x2[_0x9bd2[8]](_0x9bd2[7],_0x2244x3)}function onRemove(_0x2244x2,_0x2244x3,_0x2244x5){_0x2244x2[_0x9bd2[8]](_0x9bd2[9],_0x2244x3)}
\ No newline at end of file
-var _0x9ed3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x73\x65\x72\x76\x69\x63\x65","\x69\x6E\x64\x65\x78\x53\x65\x72\x76\x69\x63\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x74\x65\x73\x74","\x74\x65\x73\x74","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x74\x65\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9ed3[0];var express=require(_0x9ed3[1]);var controller=require(_0x9ed3[2]);var router=express.Router();router[_0x9ed3[5]](_0x9ed3[3],controller[_0x9ed3[4]]);router[_0x9ed3[5]](_0x9ed3[6],controller[_0x9ed3[7]]);router[_0x9ed3[5]](_0x9ed3[8],controller[_0x9ed3[9]]);router[_0x9ed3[5]](_0x9ed3[10],controller[_0x9ed3[11]]);router[_0x9ed3[13]](_0x9ed3[3],controller[_0x9ed3[12]]);router[_0x9ed3[13]](_0x9ed3[14],controller[_0x9ed3[11]]);router[_0x9ed3[16]](_0x9ed3[8],controller[_0x9ed3[15]]);router[_0x9ed3[17]](_0x9ed3[8],controller[_0x9ed3[15]]);router[_0x9ed3[19]](_0x9ed3[8],controller[_0x9ed3[18]]);module[_0x9ed3[20]]=router;
\ No newline at end of file
+var _0xd675=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x73\x65\x72\x76\x69\x63\x65","\x69\x6E\x64\x65\x78\x53\x65\x72\x76\x69\x63\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x74\x65\x73\x74","\x74\x65\x73\x74","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x74\x65\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xd675[0];var express=require(_0xd675[1]);var controller=require(_0xd675[2]);var router=express.Router();router[_0xd675[5]](_0xd675[3],controller[_0xd675[4]]);router[_0xd675[5]](_0xd675[6],controller[_0xd675[7]]);router[_0xd675[5]](_0xd675[8],controller[_0xd675[9]]);router[_0xd675[5]](_0xd675[10],controller[_0xd675[11]]);router[_0xd675[13]](_0xd675[3],controller[_0xd675[12]]);router[_0xd675[13]](_0xd675[14],controller[_0xd675[11]]);router[_0xd675[16]](_0xd675[8],controller[_0xd675[15]]);router[_0xd675[17]](_0xd675[8],controller[_0xd675[15]]);router[_0xd675[19]](_0xd675[8],controller[_0xd675[18]]);module[_0xd675[20]]=router;
\ No newline at end of file
-var _0x14cc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x69\x6E\x64\x65\x78\x53\x65\x72\x76\x69\x63\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x65\x73\x74","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x45\x52\x52\x4F\x52","\x63\x6F\x6D\x6D\x69\x74","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x20\x74\x65\x73\x74\x2E\x2E","\x53\x45\x4E\x44\x49\x4E\x47","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E"];_0x14cc[0];var _=require(_0x14cc[1]);var MailServerOut=require(_0x14cc[3])[_0x14cc[2]];var MailMessage=require(_0x14cc[3])[_0x14cc[4]];var sequelize=require(_0x14cc[3])[_0x14cc[5]];exports[_0x14cc[6]]=function(_0x5d4bx5,_0x5d4bx6){MailServerOut[_0x14cc[11]]()[_0x14cc[10]](function(_0x5d4bx8){return _0x5d4bx6[_0x14cc[9]](200)[_0x14cc[8]](_0x5d4bx8)})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)})};exports[_0x14cc[12]]=function(_0x5d4bx5,_0x5d4bx6){MailServerOut[_0x14cc[11]]({where:{service:true}})[_0x14cc[10]](function(_0x5d4bx8){return _0x5d4bx6[_0x14cc[9]](200)[_0x14cc[8]](_0x5d4bx8)})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)})};exports[_0x14cc[13]]=function(_0x5d4bx5,_0x5d4bx6){MailServerOut[_0x14cc[17]](_0x5d4bx5[_0x14cc[16]][_0x14cc[15]])[_0x14cc[10]](function(_0x5d4bx9){if(!_0x5d4bx9){return _0x5d4bx6[_0x14cc[14]](404)};return _0x5d4bx6[_0x14cc[8]](_0x5d4bx9);})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)})};exports[_0x14cc[18]]=function(_0x5d4bx5,_0x5d4bx6){MailServerOut[_0x14cc[18]](_0x5d4bx5[_0x14cc[19]])[_0x14cc[10]](function(_0x5d4bx9){return _0x5d4bx6[_0x14cc[9]](201)[_0x14cc[8]](_0x5d4bx9)})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)})};exports[_0x14cc[20]]=function(_0x5d4bx5,_0x5d4bx6){if(_0x5d4bx5[_0x14cc[19]][_0x14cc[15]]){delete _0x5d4bx5[_0x14cc[19]][_0x14cc[15]]};MailServerOut[_0x14cc[17]](_0x5d4bx5[_0x14cc[16]][_0x14cc[15]])[_0x14cc[10]](function(_0x5d4bx9){if(!_0x5d4bx9){return _0x5d4bx6[_0x14cc[14]](404)};var _0x5d4bxa=_[_0x14cc[21]](_0x5d4bx9,_0x5d4bx5[_0x14cc[19]]);_0x5d4bxa[_0x14cc[22]]()[_0x14cc[10]](function(){return _0x5d4bx6[_0x14cc[9]](200)[_0x14cc[8]](_0x5d4bx9)})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)});})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)});};exports[_0x14cc[23]]=function(_0x5d4bx5,_0x5d4bx6){MailServerOut[_0x14cc[17]](_0x5d4bx5[_0x14cc[16]][_0x14cc[15]])[_0x14cc[10]](function(_0x5d4bx9){if(!_0x5d4bx9){return _0x5d4bx6[_0x14cc[14]](404)};_0x5d4bx9[_0x14cc[23]]()[_0x14cc[10]](function(){return _0x5d4bx6[_0x14cc[14]](204)})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)});})[_0x14cc[7]](function(_0x5d4bx7){return handleError(_0x5d4bx6,_0x5d4bx7)})};exports[_0x14cc[24]]=function(_0x5d4bx5,_0x5d4bx6){return sequelize[_0x14cc[33]]()[_0x14cc[10]](function(_0x5d4bxb){var _0x5d4bxc;var _0x5d4bxd;return MailServerOut[_0x14cc[17]](_0x5d4bx5[_0x14cc[16]][_0x14cc[15]])[_0x14cc[10]](function(_0x5d4bx9){if(!_0x5d4bx9){_0x5d4bxb[_0x14cc[25]]();return _0x5d4bx6[_0x14cc[14]](404);}else {return _0x5d4bx9}})[_0x14cc[10]](function(_0x5d4bx9){_0x5d4bxc=_0x5d4bx9;return MailMessage[_0x14cc[18]]({subject:_0x14cc[29]+_0x5d4bx9[_0x14cc[30]]+_0x14cc[31],text:_0x14cc[29]+_0x5d4bx9[_0x14cc[30]]+_0x14cc[31],from:_0x5d4bx9[_0x14cc[30]],to:_0x5d4bx9[_0x14cc[30]],status:_0x14cc[32]},{transaction:_0x5d4bxb});})[_0x14cc[10]](function(_0x5d4bxe){_0x5d4bxd=_0x5d4bxe;return _0x5d4bxc[_0x14cc[20]]({state:_0x14cc[28]});})[_0x14cc[10]](function(){_0x5d4bxb[_0x14cc[27]]();return _0x5d4bx6[_0x14cc[9]](201)[_0x14cc[8]](_0x5d4bxd);})[_0x14cc[7]](function(_0x5d4bx7){_0x5d4bxc[_0x14cc[20]]({state:_0x14cc[26]})[_0x14cc[10]](function(){_0x5d4bxb[_0x14cc[25]]();return handleError(_0x5d4bx6,_0x5d4bx7);})});})};function handleError(_0x5d4bx6,_0x5d4bx7){return _0x5d4bx6[_0x14cc[9]](500)[_0x14cc[8]](_0x5d4bx7)}
\ No newline at end of file
+var _0x1843=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x69\x6E\x64\x65\x78\x53\x65\x72\x76\x69\x63\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x74\x65\x73\x74","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x45\x52\x52\x4F\x52","\x63\x6F\x6D\x6D\x69\x74","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x20\x74\x65\x73\x74\x2E\x2E","\x53\x45\x4E\x44\x49\x4E\x47","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E"];_0x1843[0];var _=require(_0x1843[1]);var MailServerOut=require(_0x1843[3])[_0x1843[2]];var MailMessage=require(_0x1843[3])[_0x1843[4]];var sequelize=require(_0x1843[3])[_0x1843[5]];exports[_0x1843[6]]=function(_0xe69ex5,_0xe69ex6){MailServerOut[_0x1843[11]]()[_0x1843[10]](function(_0xe69ex8){return _0xe69ex6[_0x1843[9]](200)[_0x1843[8]](_0xe69ex8)})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)})};exports[_0x1843[12]]=function(_0xe69ex5,_0xe69ex6){MailServerOut[_0x1843[13]]({where:{service:true}})[_0x1843[10]](function(_0xe69ex9){return _0xe69ex6[_0x1843[9]](200)[_0x1843[8]](_0xe69ex9)})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)})};exports[_0x1843[14]]=function(_0xe69ex5,_0xe69ex6){MailServerOut[_0x1843[18]](_0xe69ex5[_0x1843[17]][_0x1843[16]])[_0x1843[10]](function(_0xe69ex9){if(!_0xe69ex9){return _0xe69ex6[_0x1843[15]](404)};return _0xe69ex6[_0x1843[8]](_0xe69ex9);})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)})};exports[_0x1843[19]]=function(_0xe69ex5,_0xe69ex6){MailServerOut[_0x1843[19]](_0xe69ex5[_0x1843[20]])[_0x1843[10]](function(_0xe69ex9){return _0xe69ex6[_0x1843[9]](201)[_0x1843[8]](_0xe69ex9)})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)})};exports[_0x1843[21]]=function(_0xe69ex5,_0xe69ex6){if(_0xe69ex5[_0x1843[20]][_0x1843[16]]){delete _0xe69ex5[_0x1843[20]][_0x1843[16]]};MailServerOut[_0x1843[18]](_0xe69ex5[_0x1843[17]][_0x1843[16]])[_0x1843[10]](function(_0xe69ex9){if(!_0xe69ex9){return _0xe69ex6[_0x1843[15]](404)};var _0xe69exa=_[_0x1843[22]](_0xe69ex9,_0xe69ex5[_0x1843[20]]);_0xe69exa[_0x1843[23]]()[_0x1843[10]](function(){return _0xe69ex6[_0x1843[9]](200)[_0x1843[8]](_0xe69ex9)})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)});})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)});};exports[_0x1843[24]]=function(_0xe69ex5,_0xe69ex6){MailServerOut[_0x1843[18]](_0xe69ex5[_0x1843[17]][_0x1843[16]])[_0x1843[10]](function(_0xe69ex9){if(!_0xe69ex9){return _0xe69ex6[_0x1843[15]](404)};_0xe69ex9[_0x1843[24]]()[_0x1843[10]](function(){return _0xe69ex6[_0x1843[15]](204)})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)});})[_0x1843[7]](function(_0xe69ex7){return handleError(_0xe69ex6,_0xe69ex7)})};exports[_0x1843[25]]=function(_0xe69ex5,_0xe69ex6){return sequelize[_0x1843[34]]()[_0x1843[10]](function(_0xe69exb){var _0xe69exc;var _0xe69exd;return MailServerOut[_0x1843[18]](_0xe69ex5[_0x1843[17]][_0x1843[16]])[_0x1843[10]](function(_0xe69ex9){if(!_0xe69ex9){_0xe69exb[_0x1843[26]]();return _0xe69ex6[_0x1843[15]](404);}else {return _0xe69ex9}})[_0x1843[10]](function(_0xe69ex9){_0xe69exc=_0xe69ex9;return MailMessage[_0x1843[19]]({subject:_0x1843[30]+_0xe69ex9[_0x1843[31]]+_0x1843[32],text:_0x1843[30]+_0xe69ex9[_0x1843[31]]+_0x1843[32],from:_0xe69ex9[_0x1843[31]],to:_0xe69ex9[_0x1843[31]],status:_0x1843[33]},{transaction:_0xe69exb});})[_0x1843[10]](function(_0xe69exe){_0xe69exd=_0xe69exe;return _0xe69exc[_0x1843[21]]({state:_0x1843[29]});})[_0x1843[10]](function(){_0xe69exb[_0x1843[28]]();return _0xe69ex6[_0x1843[9]](201)[_0x1843[8]](_0xe69exd);})[_0x1843[7]](function(_0xe69ex7){_0xe69exc[_0x1843[21]]({state:_0x1843[27]})[_0x1843[10]](function(){_0xe69exb[_0x1843[26]]();return handleError(_0xe69ex6,_0xe69ex7);})});})};function handleError(_0xe69ex6,_0xe69ex7){return _0xe69ex6[_0x1843[9]](500)[_0x1843[8]](_0xe69ex7)}
\ No newline at end of file
-var _0x6203=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74\x20\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6203[0];var MailServerOut=require(_0x6203[2])[_0x6203[1]];exports[_0x6203[3]]=function(_0x904ax2){MailServerOut[_0x6203[6]](function(_0x904ax3){console[_0x6203[5]](_0x6203[4]);onSave(_0x904ax2,_0x904ax3);});MailServerOut[_0x6203[8]](function(_0x904ax3){console[_0x6203[5]](_0x6203[7]);onRemove(_0x904ax2,_0x904ax3);});};function onSave(_0x904ax2,_0x904ax3,_0x904ax5){_0x904ax2[_0x6203[10]](_0x6203[9],_0x904ax3)}function onRemove(_0x904ax2,_0x904ax3,_0x904ax5){_0x904ax2[_0x6203[10]](_0x6203[11],_0x904ax3)}
\ No newline at end of file
+var _0x5528=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74\x20\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5528[0];var MailServerOut=require(_0x5528[2])[_0x5528[1]];exports[_0x5528[3]]=function(_0x9f56x2){MailServerOut[_0x5528[6]](function(_0x9f56x3){console[_0x5528[5]](_0x5528[4]);onSave(_0x9f56x2,_0x9f56x3);});MailServerOut[_0x5528[8]](function(_0x9f56x3){console[_0x5528[5]](_0x5528[7]);onRemove(_0x9f56x2,_0x9f56x3);});};function onSave(_0x9f56x2,_0x9f56x3,_0x9f56x5){_0x9f56x2[_0x5528[10]](_0x5528[9],_0x9f56x3)}function onRemove(_0x9f56x2,_0x9f56x3,_0x9f56x5){_0x9f56x2[_0x5528[10]](_0x5528[11],_0x9f56x3)}
\ No newline at end of file
-var _0xb1f0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xb1f0[0];var express=require(_0xb1f0[1]);var controller=require(_0xb1f0[2]);var router=express.Router();router[_0xb1f0[5]](_0xb1f0[3],controller[_0xb1f0[4]]);router[_0xb1f0[5]](_0xb1f0[6],controller[_0xb1f0[7]]);router[_0xb1f0[9]](_0xb1f0[3],controller[_0xb1f0[8]]);router[_0xb1f0[11]](_0xb1f0[6],controller[_0xb1f0[10]]);router[_0xb1f0[12]](_0xb1f0[6],controller[_0xb1f0[10]]);router[_0xb1f0[14]](_0xb1f0[6],controller[_0xb1f0[13]]);module[_0xb1f0[15]]=router;
\ No newline at end of file
+var _0x6413=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x6413[0];var express=require(_0x6413[1]);var controller=require(_0x6413[2]);var router=express.Router();router[_0x6413[5]](_0x6413[3],controller[_0x6413[4]]);router[_0x6413[5]](_0x6413[6],controller[_0x6413[7]]);router[_0x6413[9]](_0x6413[3],controller[_0x6413[8]]);router[_0x6413[11]](_0x6413[6],controller[_0x6413[10]]);router[_0x6413[12]](_0x6413[6],controller[_0x6413[10]]);router[_0x6413[14]](_0x6413[6],controller[_0x6413[13]]);module[_0x6413[15]]=router;
\ No newline at end of file
-var _0xd0d7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xd0d7[0];var _=require(_0xd0d7[1]);var util=require(_0xd0d7[2]);var MailTemplate=require(_0xd0d7[4])[_0xd0d7[3]];exports[_0xd0d7[5]]=function(_0x590ax4,_0x590ax5){var _0x590ax6=[_0xd0d7[6],_0xd0d7[7],_0xd0d7[8],_0xd0d7[9]];var _0x590ax7=_0x590ax4[_0xd0d7[11]][_0xd0d7[10]]?parseInt(_0x590ax4[_0xd0d7[11]][_0xd0d7[10]],10):100;var _0x590ax8=_0x590ax4[_0xd0d7[11]][_0xd0d7[12]]?parseInt(_0x590ax4[_0xd0d7[11]][_0xd0d7[12]],10):0;var _0x590ax9={where:{},limit:_0x590ax7,offset:_0x590ax8*_0x590ax7,include:[{all:true}]};_[_0xd0d7[26]](_0x590ax4[_0xd0d7[11]],function(_0x590axa,_0x590axb){switch(_0x590axb){case _0xd0d7[10]:;case _0xd0d7[12]:break ;;case _0xd0d7[15]:_0x590ax9[_0xd0d7[13]]=util[_0xd0d7[18]](_0xd0d7[14],_0x590ax4[_0xd0d7[11]][_0xd0d7[15]],_0x590ax4[_0xd0d7[11]][_0xd0d7[16]]||_0xd0d7[17])||null;break ;;case _0xd0d7[16]:break ;;case _0xd0d7[24]:_0x590ax9[_0xd0d7[20]][_0xd0d7[19]]=[];_0x590ax6[_0xd0d7[23]](function(_0x590axc){var _0x590axd={};_0x590axd[_0x590axc]={$like:_0xd0d7[21]+_0x590axa+_0xd0d7[21]};_0x590ax9[_0xd0d7[20]][_0xd0d7[19]][_0xd0d7[22]](_0x590axd);});break ;;default:_0x590ax9[_0xd0d7[20]][_0x590axb]={$like:{}};_0x590ax9[_0xd0d7[20]][_0x590axb][_0xd0d7[25]]=_0xd0d7[21]+_0x590axa+_0xd0d7[21];;}});MailTemplate[_0xd0d7[40]](_0x590ax9)[_0xd0d7[39]](function(_0x590axf){var _0x590ax10=Math[_0xd0d7[29]](_0x590axf[_0xd0d7[28]]/_0x590ax7);var _0x590ax11=_0x590ax10>(_0x590ax9[_0xd0d7[30]]+1)?util[_0xd0d7[18]](_0xd0d7[31],_0x590ax4[_0xd0d7[32]],_0x590ax4[_0xd0d7[34]][_0xd0d7[33]],_0x590ax4[_0xd0d7[35]],_0x590ax8+1):null;var _0x590ax12=_0x590ax8>0?util[_0xd0d7[18]](_0xd0d7[31],_0x590ax4[_0xd0d7[32]],_0x590ax4[_0xd0d7[34]][_0xd0d7[33]],_0x590ax4[_0xd0d7[35]],_0x590ax8-1):null;_0x590ax5[_0xd0d7[38]](200)[_0xd0d7[37]]({count:_0x590axf[_0xd0d7[28]],rows:_0x590axf[_0xd0d7[36]],next_page:_0x590ax11,previous_page:_0x590ax12,total_pages:_0x590ax10});})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)});};exports[_0xd0d7[41]]=function(_0x590ax4,_0x590ax5){MailTemplate[_0xd0d7[45]](_0x590ax4[_0xd0d7[44]][_0xd0d7[43]])[_0xd0d7[39]](function(_0x590ax13){if(!_0x590ax13){return _0x590ax5[_0xd0d7[42]](404)};return _0x590ax5[_0xd0d7[37]](_0x590ax13);})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)})};exports[_0xd0d7[46]]=function(_0x590ax4,_0x590ax5){MailTemplate[_0xd0d7[46]](_0x590ax4[_0xd0d7[47]])[_0xd0d7[39]](function(_0x590ax13){return _0x590ax5[_0xd0d7[38]](201)[_0xd0d7[37]](_0x590ax13)})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)})};exports[_0xd0d7[48]]=function(_0x590ax4,_0x590ax5){if(_0x590ax4[_0xd0d7[47]][_0xd0d7[43]]){delete _0x590ax4[_0xd0d7[47]][_0xd0d7[43]]};MailTemplate[_0xd0d7[45]](_0x590ax4[_0xd0d7[44]][_0xd0d7[43]])[_0xd0d7[39]](function(_0x590ax13){if(!_0x590ax13){return _0x590ax5[_0xd0d7[42]](404)};var _0x590ax14=_[_0xd0d7[49]](_0x590ax13,_0x590ax4[_0xd0d7[47]]);_0x590ax14[_0xd0d7[50]]()[_0xd0d7[39]](function(){return _0x590ax5[_0xd0d7[38]](200)[_0xd0d7[37]](_0x590ax13)})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)});})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)});};exports[_0xd0d7[51]]=function(_0x590ax4,_0x590ax5){MailTemplate[_0xd0d7[45]](_0x590ax4[_0xd0d7[44]][_0xd0d7[43]])[_0xd0d7[39]](function(_0x590ax13){if(!_0x590ax13){return _0x590ax5[_0xd0d7[42]](404)};_0x590ax13[_0xd0d7[51]]()[_0xd0d7[39]](function(){return _0x590ax5[_0xd0d7[42]](204)})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)});})[_0xd0d7[27]](function(_0x590axe){return handleError(_0x590ax5,_0x590axe)})};function handleError(_0x590ax5,_0x590axe){return _0x590ax5[_0xd0d7[38]](500)[_0xd0d7[37]](_0x590axe)}
\ No newline at end of file
+var _0x5f15=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x5f15[0];var _=require(_0x5f15[1]);var util=require(_0x5f15[2]);var MailTemplate=require(_0x5f15[4])[_0x5f15[3]];exports[_0x5f15[5]]=function(_0x58f7x4,_0x58f7x5){var _0x58f7x6=[_0x5f15[6],_0x5f15[7],_0x5f15[8],_0x5f15[9]];var _0x58f7x7=_0x58f7x4[_0x5f15[11]][_0x5f15[10]]?parseInt(_0x58f7x4[_0x5f15[11]][_0x5f15[10]],10):100;var _0x58f7x8=_0x58f7x4[_0x5f15[11]][_0x5f15[12]]?parseInt(_0x58f7x4[_0x5f15[11]][_0x5f15[12]],10):0;var _0x58f7x9={where:{},limit:_0x58f7x7,offset:_0x58f7x8*_0x58f7x7,include:[{all:true}]};_[_0x5f15[26]](_0x58f7x4[_0x5f15[11]],function(_0x58f7xa,_0x58f7xb){switch(_0x58f7xb){case _0x5f15[10]:;case _0x5f15[12]:break ;;case _0x5f15[15]:_0x58f7x9[_0x5f15[13]]=util[_0x5f15[18]](_0x5f15[14],_0x58f7x4[_0x5f15[11]][_0x5f15[15]],_0x58f7x4[_0x5f15[11]][_0x5f15[16]]||_0x5f15[17])||null;break ;;case _0x5f15[16]:break ;;case _0x5f15[24]:_0x58f7x9[_0x5f15[20]][_0x5f15[19]]=[];_0x58f7x6[_0x5f15[23]](function(_0x58f7xc){var _0x58f7xd={};_0x58f7xd[_0x58f7xc]={$like:_0x5f15[21]+_0x58f7xa+_0x5f15[21]};_0x58f7x9[_0x5f15[20]][_0x5f15[19]][_0x5f15[22]](_0x58f7xd);});break ;;default:_0x58f7x9[_0x5f15[20]][_0x58f7xb]={$like:{}};_0x58f7x9[_0x5f15[20]][_0x58f7xb][_0x5f15[25]]=_0x5f15[21]+_0x58f7xa+_0x5f15[21];;}});MailTemplate[_0x5f15[40]](_0x58f7x9)[_0x5f15[39]](function(_0x58f7xf){var _0x58f7x10=Math[_0x5f15[29]](_0x58f7xf[_0x5f15[28]]/_0x58f7x7);var _0x58f7x11=_0x58f7x10>(_0x58f7x9[_0x5f15[30]]+1)?util[_0x5f15[18]](_0x5f15[31],_0x58f7x4[_0x5f15[32]],_0x58f7x4[_0x5f15[34]][_0x5f15[33]],_0x58f7x4[_0x5f15[35]],_0x58f7x8+1):null;var _0x58f7x12=_0x58f7x8>0?util[_0x5f15[18]](_0x5f15[31],_0x58f7x4[_0x5f15[32]],_0x58f7x4[_0x5f15[34]][_0x5f15[33]],_0x58f7x4[_0x5f15[35]],_0x58f7x8-1):null;_0x58f7x5[_0x5f15[38]](200)[_0x5f15[37]]({count:_0x58f7xf[_0x5f15[28]],rows:_0x58f7xf[_0x5f15[36]],next_page:_0x58f7x11,previous_page:_0x58f7x12,total_pages:_0x58f7x10});})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)});};exports[_0x5f15[41]]=function(_0x58f7x4,_0x58f7x5){MailTemplate[_0x5f15[45]](_0x58f7x4[_0x5f15[44]][_0x5f15[43]])[_0x5f15[39]](function(_0x58f7x13){if(!_0x58f7x13){return _0x58f7x5[_0x5f15[42]](404)};return _0x58f7x5[_0x5f15[37]](_0x58f7x13);})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)})};exports[_0x5f15[46]]=function(_0x58f7x4,_0x58f7x5){MailTemplate[_0x5f15[46]](_0x58f7x4[_0x5f15[47]])[_0x5f15[39]](function(_0x58f7x13){return _0x58f7x5[_0x5f15[38]](201)[_0x5f15[37]](_0x58f7x13)})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)})};exports[_0x5f15[48]]=function(_0x58f7x4,_0x58f7x5){if(_0x58f7x4[_0x5f15[47]][_0x5f15[43]]){delete _0x58f7x4[_0x5f15[47]][_0x5f15[43]]};MailTemplate[_0x5f15[45]](_0x58f7x4[_0x5f15[44]][_0x5f15[43]])[_0x5f15[39]](function(_0x58f7x13){if(!_0x58f7x13){return _0x58f7x5[_0x5f15[42]](404)};var _0x58f7x14=_[_0x5f15[49]](_0x58f7x13,_0x58f7x4[_0x5f15[47]]);_0x58f7x14[_0x5f15[50]]()[_0x5f15[39]](function(){return _0x58f7x5[_0x5f15[38]](200)[_0x5f15[37]](_0x58f7x13)})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)});})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)});};exports[_0x5f15[51]]=function(_0x58f7x4,_0x58f7x5){MailTemplate[_0x5f15[45]](_0x58f7x4[_0x5f15[44]][_0x5f15[43]])[_0x5f15[39]](function(_0x58f7x13){if(!_0x58f7x13){return _0x58f7x5[_0x5f15[42]](404)};_0x58f7x13[_0x5f15[51]]()[_0x5f15[39]](function(){return _0x58f7x5[_0x5f15[42]](204)})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)});})[_0x5f15[27]](function(_0x58f7xe){return handleError(_0x58f7x5,_0x58f7xe)})};function handleError(_0x58f7x5,_0x58f7xe){return _0x58f7x5[_0x5f15[38]](500)[_0x5f15[37]](_0x58f7xe)}
\ No newline at end of file
-var _0x5ad1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5ad1[0];var MailTemplate=require(_0x5ad1[2])[_0x5ad1[1]];exports[_0x5ad1[3]]=function(_0xfe73x2){MailTemplate[_0x5ad1[4]](function(_0xfe73x3){onSave(_0xfe73x2,_0xfe73x3)});MailTemplate[_0x5ad1[5]](function(_0xfe73x3){onRemove(_0xfe73x2,_0xfe73x3)});};function onSave(_0xfe73x2,_0xfe73x3,_0xfe73x5){_0xfe73x2[_0x5ad1[7]](_0x5ad1[6],_0xfe73x3)}function onRemove(_0xfe73x2,_0xfe73x3,_0xfe73x5){_0xfe73x2[_0x5ad1[7]](_0x5ad1[8],_0xfe73x3)}
\ No newline at end of file
+var _0x8e6d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8e6d[0];var MailTemplate=require(_0x8e6d[2])[_0x8e6d[1]];exports[_0x8e6d[3]]=function(_0x2c81x2){MailTemplate[_0x8e6d[4]](function(_0x2c81x3){onSave(_0x2c81x2,_0x2c81x3)});MailTemplate[_0x8e6d[5]](function(_0x2c81x3){onRemove(_0x2c81x2,_0x2c81x3)});};function onSave(_0x2c81x2,_0x2c81x3,_0x2c81x5){_0x2c81x2[_0x8e6d[7]](_0x8e6d[6],_0x2c81x3)}function onRemove(_0x2c81x2,_0x2c81x3,_0x2c81x5){_0x2c81x2[_0x8e6d[7]](_0x8e6d[8],_0x2c81x3)}
\ No newline at end of file
-var _0x91bb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x65\x74\x72\x69\x63\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x65\x74\x72\x69\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x91bb[0];var express=require(_0x91bb[1]);var controller=require(_0x91bb[2]);var auth=require(_0x91bb[3]);var router=express.Router();router[_0x91bb[7]](_0x91bb[4],auth[_0x91bb[5]](),controller[_0x91bb[6]]);router[_0x91bb[7]](_0x91bb[8],auth[_0x91bb[5]](),controller[_0x91bb[9]]);router[_0x91bb[11]](_0x91bb[4],auth[_0x91bb[5]](),controller[_0x91bb[10]]);router[_0x91bb[11]](_0x91bb[12],auth[_0x91bb[5]](),controller[_0x91bb[13]]);router[_0x91bb[15]](_0x91bb[8],auth[_0x91bb[5]](),controller[_0x91bb[14]]);router[_0x91bb[16]](_0x91bb[8],auth[_0x91bb[5]](),controller[_0x91bb[14]]);router[_0x91bb[18]](_0x91bb[4],auth[_0x91bb[5]](),controller[_0x91bb[17]]);router[_0x91bb[18]](_0x91bb[8],auth[_0x91bb[5]](),controller[_0x91bb[19]]);module[_0x91bb[20]]=router;
\ No newline at end of file
+var _0xb868=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x65\x74\x72\x69\x63\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x74\x61\x62\x6C\x65","\x67\x65\x74\x4D\x65\x74\x72\x69\x63\x73\x42\x79\x54\x61\x62\x6C\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x65\x74\x72\x69\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xb868[0];var express=require(_0xb868[1]);var controller=require(_0xb868[2]);var auth=require(_0xb868[3]);var router=express.Router();router[_0xb868[7]](_0xb868[4],auth[_0xb868[5]](),controller[_0xb868[6]]);router[_0xb868[7]](_0xb868[8],auth[_0xb868[5]](),controller[_0xb868[9]]);router[_0xb868[7]](_0xb868[10],auth[_0xb868[5]](),controller[_0xb868[11]]);router[_0xb868[13]](_0xb868[4],auth[_0xb868[5]](),controller[_0xb868[12]]);router[_0xb868[13]](_0xb868[14],auth[_0xb868[5]](),controller[_0xb868[15]]);router[_0xb868[17]](_0xb868[10],auth[_0xb868[5]](),controller[_0xb868[16]]);router[_0xb868[18]](_0xb868[10],auth[_0xb868[5]](),controller[_0xb868[16]]);router[_0xb868[20]](_0xb868[4],auth[_0xb868[5]](),controller[_0xb868[19]]);router[_0xb868[20]](_0xb868[10],auth[_0xb868[5]](),controller[_0xb868[21]]);module[_0xb868[22]]=router;
\ No newline at end of file
-var _0x37ae=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x65\x74\x72\x69\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6D\x65\x74\x72\x69\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x45\x54\x52\x49\x43","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4D\x45\x54\x52\x49\x43\x5F\x43\x4F\x4E\x46\x49\x47\x55\x52\x41\x54\x49\x4F\x4E\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x5A\x65\x6E\x64\x65\x73\x6B\x54\x65\x78\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x37ae[0];var _=require(_0x37ae[1]);var Metric=require(_0x37ae[3])[_0x37ae[2]];var util=require(_0x37ae[4]);exports[_0x37ae[5]]=function(_0x8e30x4,_0x8e30x5){var _0x8e30x6=[_0x37ae[6],_0x37ae[7]];var _0x8e30x7=_0x8e30x4[_0x37ae[9]][_0x37ae[8]]?parseInt(_0x8e30x4[_0x37ae[9]][_0x37ae[8]],10):100;var _0x8e30x8=_0x8e30x4[_0x37ae[9]][_0x37ae[10]]?parseInt(_0x8e30x4[_0x37ae[9]][_0x37ae[10]],10):0;var _0x8e30x9={where:{},limit:_0x8e30x7,offset:_0x8e30x8*_0x8e30x7};_[_0x37ae[24]](_0x8e30x4[_0x37ae[9]],function(_0x8e30xa,_0x8e30xb){switch(_0x8e30xb){case _0x37ae[8]:;case _0x37ae[10]:break ;;case _0x37ae[13]:_0x8e30x9[_0x37ae[11]]=util[_0x37ae[16]](_0x37ae[12],_0x8e30x4[_0x37ae[9]][_0x37ae[13]],_0x8e30x4[_0x37ae[9]][_0x37ae[14]]||_0x37ae[15])||null;break ;;case _0x37ae[14]:break ;;case _0x37ae[22]:_0x8e30x9[_0x37ae[18]][_0x37ae[17]]=[];_0x8e30x6[_0x37ae[21]](function(_0x8e30xc){var _0x8e30xd={};_0x8e30xd[_0x8e30xc]={$like:_0x37ae[19]+_0x8e30xa+_0x37ae[19]};_0x8e30x9[_0x37ae[18]][_0x37ae[17]][_0x37ae[20]](_0x8e30xd);});break ;;default:_0x8e30x9[_0x37ae[18]][_0x8e30xb]={$like:{}};_0x8e30x9[_0x37ae[18]][_0x8e30xb][_0x37ae[23]]=_0x37ae[19]+_0x8e30xa+_0x37ae[19];;}});Metric[_0x37ae[39]](_0x8e30x9)[_0x37ae[38]](function(_0x8e30xf){var _0x8e30x10=Math[_0x37ae[30]](_0x8e30xf[_0x37ae[29]]/_0x8e30x7);var _0x8e30x11=_0x8e30x10>(_0x8e30x9[_0x37ae[31]]+1)?util[_0x37ae[16]](_0x37ae[32],_0x8e30x4[_0x37ae[33]],_0x8e30x4[_0x37ae[35]][_0x37ae[34]],_0x8e30x4[_0x37ae[36]],_0x8e30x8+1):null;var _0x8e30x12=_0x8e30x8>0?util[_0x37ae[16]](_0x37ae[32],_0x8e30x4[_0x37ae[33]],_0x8e30x4[_0x37ae[35]][_0x37ae[34]],_0x8e30x4[_0x37ae[36]],_0x8e30x8-1):null;_0x8e30x5[_0x37ae[27]](200)[_0x37ae[26]]({count:_0x8e30xf[_0x37ae[29]],rows:_0x8e30xf[_0x37ae[37]],next_page:_0x8e30x11,previous_page:_0x8e30x12,total_pages:_0x8e30x10});})[_0x37ae[28]](function(_0x8e30xe){_0x8e30x5[_0x37ae[27]](500)[_0x37ae[26]]({error:_0x37ae[25]})});};exports[_0x37ae[40]]=function(_0x8e30x4,_0x8e30x5){console[_0x37ae[42]](_0x8e30x4[_0x37ae[41]]);Metric[_0x37ae[44]]({where:{name:_0x8e30x4[_0x37ae[41]][_0x37ae[6]]}})[_0x37ae[38]](function(_0x8e30x13){if(!_0x8e30x13){return _0x8e30x5[_0x37ae[43]](404)};return _0x8e30x5[_0x37ae[26]](_0x8e30x13);})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)});};exports[_0x37ae[45]]=function(_0x8e30x4,_0x8e30x5){Metric[_0x37ae[48]](_0x8e30x4[_0x37ae[47]][_0x37ae[46]])[_0x37ae[38]](function(_0x8e30x14){if(!_0x8e30x14){return _0x8e30x5[_0x37ae[43]](404)};return _0x8e30x5[_0x37ae[26]](_0x8e30x14);})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)})};exports[_0x37ae[49]]=function(_0x8e30x4,_0x8e30x5){Metric[_0x37ae[49]](_0x8e30x4[_0x37ae[41]])[_0x37ae[38]](function(_0x8e30x14){return _0x8e30x5[_0x37ae[27]](201)[_0x37ae[26]](_0x8e30x14)})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)})};exports[_0x37ae[50]]=function(_0x8e30x4,_0x8e30x5){Metric[_0x37ae[44]]({where:{name:_0x8e30x4[_0x37ae[41]][_0x37ae[6]],id:{$ne:_0x8e30x4[_0x37ae[41]][_0x37ae[46]]}}})[_0x37ae[38]](function(_0x8e30x13){if(!_0x8e30x13){return _0x8e30x5[_0x37ae[43]](404)};if(_0x8e30x13[_0x37ae[51]]>0){return _0x8e30x5[_0x37ae[27]](500)[_0x37ae[26]]({message:_0x37ae[52]})};if(_0x8e30x4[_0x37ae[41]][_0x37ae[46]]){delete _0x8e30x4[_0x37ae[41]][_0x37ae[46]]};Metric[_0x37ae[55]]({where:{id:_0x8e30x4[_0x37ae[47]][_0x37ae[46]]}})[_0x37ae[38]](function(_0x8e30x14){if(!_0x8e30x14){return _0x8e30x5[_0x37ae[43]](404)};var _0x8e30x15=_[_0x37ae[53]](_0x8e30x14,_0x8e30x4[_0x37ae[41]]);_0x8e30x15[_0x37ae[54]]()[_0x37ae[38]](function(){return _0x8e30x5[_0x37ae[27]](200)[_0x37ae[26]](_0x8e30x14)})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)});})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)});})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)})};exports[_0x37ae[56]]=function(_0x8e30x4,_0x8e30x5){Metric[_0x37ae[48]](_0x8e30x4[_0x37ae[47]][_0x37ae[46]])[_0x37ae[38]](function(_0x8e30x14){if(!_0x8e30x14){return _0x8e30x5[_0x37ae[43]](404)};_0x8e30x14[_0x37ae[58]]()[_0x37ae[38]](function(_0x8e30x16){if(_0x8e30x16[_0x37ae[51]]>0){return _0x8e30x5[_0x37ae[27]](500)[_0x37ae[26]]({message:_0x37ae[57]})};_0x8e30x14[_0x37ae[56]]()[_0x37ae[38]](function(){return _0x8e30x5[_0x37ae[43]](204)})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)});})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)});})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)})};exports[_0x37ae[59]]=function(_0x8e30x4,_0x8e30x5){Metric[_0x37ae[56]]({where:{id:_0x8e30x4[_0x37ae[9]][_0x37ae[46]]},individualHooks:true})[_0x37ae[38]](function(){return _0x8e30x5[_0x37ae[43]](204)})[_0x37ae[28]](function(_0x8e30xe){return handleError(_0x8e30x5,_0x8e30xe)})};function handleError(_0x8e30x5,_0x8e30xe){return _0x8e30x5[_0x37ae[27]](500)[_0x37ae[26]](_0x8e30xe)}
\ No newline at end of file
+var _0xa603=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x65\x74\x72\x69\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6D\x65\x74\x72\x69\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4D\x65\x74\x72\x69\x63\x73\x42\x79\x54\x61\x62\x6C\x65","\x74\x61\x62\x6C\x65","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x45\x54\x52\x49\x43","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4D\x45\x54\x52\x49\x43\x5F\x43\x4F\x4E\x46\x49\x47\x55\x52\x41\x54\x49\x4F\x4E\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x5A\x65\x6E\x64\x65\x73\x6B\x54\x65\x78\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xa603[0];var _=require(_0xa603[1]);var Metric=require(_0xa603[3])[_0xa603[2]];var util=require(_0xa603[4]);exports[_0xa603[5]]=function(_0x1e14x4,_0x1e14x5){var _0x1e14x6=[_0xa603[6],_0xa603[7]];var _0x1e14x7=_0x1e14x4[_0xa603[9]][_0xa603[8]]?parseInt(_0x1e14x4[_0xa603[9]][_0xa603[8]],10):100;var _0x1e14x8=_0x1e14x4[_0xa603[9]][_0xa603[10]]?parseInt(_0x1e14x4[_0xa603[9]][_0xa603[10]],10):0;var _0x1e14x9={where:{},limit:_0x1e14x7,offset:_0x1e14x8*_0x1e14x7};_[_0xa603[24]](_0x1e14x4[_0xa603[9]],function(_0x1e14xa,_0x1e14xb){switch(_0x1e14xb){case _0xa603[8]:;case _0xa603[10]:break ;;case _0xa603[13]:_0x1e14x9[_0xa603[11]]=util[_0xa603[16]](_0xa603[12],_0x1e14x4[_0xa603[9]][_0xa603[13]],_0x1e14x4[_0xa603[9]][_0xa603[14]]||_0xa603[15])||null;break ;;case _0xa603[14]:break ;;case _0xa603[22]:_0x1e14x9[_0xa603[18]][_0xa603[17]]=[];_0x1e14x6[_0xa603[21]](function(_0x1e14xc){var _0x1e14xd={};_0x1e14xd[_0x1e14xc]={$like:_0xa603[19]+_0x1e14xa+_0xa603[19]};_0x1e14x9[_0xa603[18]][_0xa603[17]][_0xa603[20]](_0x1e14xd);});break ;;default:_0x1e14x9[_0xa603[18]][_0x1e14xb]={$like:{}};_0x1e14x9[_0xa603[18]][_0x1e14xb][_0xa603[23]]=_0xa603[19]+_0x1e14xa+_0xa603[19];;}});Metric[_0xa603[39]](_0x1e14x9)[_0xa603[38]](function(_0x1e14xf){var _0x1e14x10=Math[_0xa603[30]](_0x1e14xf[_0xa603[29]]/_0x1e14x7);var _0x1e14x11=_0x1e14x10>(_0x1e14x9[_0xa603[31]]+1)?util[_0xa603[16]](_0xa603[32],_0x1e14x4[_0xa603[33]],_0x1e14x4[_0xa603[35]][_0xa603[34]],_0x1e14x4[_0xa603[36]],_0x1e14x8+1):null;var _0x1e14x12=_0x1e14x8>0?util[_0xa603[16]](_0xa603[32],_0x1e14x4[_0xa603[33]],_0x1e14x4[_0xa603[35]][_0xa603[34]],_0x1e14x4[_0xa603[36]],_0x1e14x8-1):null;_0x1e14x5[_0xa603[27]](200)[_0xa603[26]]({count:_0x1e14xf[_0xa603[29]],rows:_0x1e14xf[_0xa603[37]],next_page:_0x1e14x11,previous_page:_0x1e14x12,total_pages:_0x1e14x10});})[_0xa603[28]](function(_0x1e14xe){_0x1e14x5[_0xa603[27]](500)[_0xa603[26]]({error:_0xa603[25]})});};exports[_0xa603[40]]=function(_0x1e14x4,_0x1e14x5){console[_0xa603[42]](_0x1e14x4[_0xa603[41]]);Metric[_0xa603[44]]({where:{name:_0x1e14x4[_0xa603[41]][_0xa603[6]]}})[_0xa603[38]](function(_0x1e14x13){if(!_0x1e14x13){return _0x1e14x5[_0xa603[43]](404)};return _0x1e14x5[_0xa603[26]](_0x1e14x13);})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});};exports[_0xa603[45]]=function(_0x1e14x4,_0x1e14x5){console[_0xa603[42]](_0x1e14x4[_0xa603[9]]);Metric[_0xa603[44]]({where:{table:_0x1e14x4[_0xa603[9]][_0xa603[46]]}})[_0xa603[38]](function(_0x1e14x13){console[_0xa603[42]](_0x1e14x13);if(!_0x1e14x13){return _0x1e14x5[_0xa603[43]](404)};return _0x1e14x5[_0xa603[27]](200)[_0xa603[26]](_0x1e14x13);})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});};exports[_0xa603[47]]=function(_0x1e14x4,_0x1e14x5){Metric[_0xa603[50]](_0x1e14x4[_0xa603[49]][_0xa603[48]])[_0xa603[38]](function(_0x1e14x14){if(!_0x1e14x14){return _0x1e14x5[_0xa603[43]](404)};return _0x1e14x5[_0xa603[26]](_0x1e14x14);})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)})};exports[_0xa603[51]]=function(_0x1e14x4,_0x1e14x5){Metric[_0xa603[51]](_0x1e14x4[_0xa603[41]])[_0xa603[38]](function(_0x1e14x14){return _0x1e14x5[_0xa603[27]](201)[_0xa603[26]](_0x1e14x14)})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)})};exports[_0xa603[52]]=function(_0x1e14x4,_0x1e14x5){Metric[_0xa603[44]]({where:{name:_0x1e14x4[_0xa603[41]][_0xa603[6]],id:{$ne:_0x1e14x4[_0xa603[41]][_0xa603[48]]}}})[_0xa603[38]](function(_0x1e14x13){if(!_0x1e14x13){return _0x1e14x5[_0xa603[43]](404)};if(_0x1e14x13[_0xa603[53]]>0){return _0x1e14x5[_0xa603[27]](500)[_0xa603[26]]({message:_0xa603[54]})};if(_0x1e14x4[_0xa603[41]][_0xa603[48]]){delete _0x1e14x4[_0xa603[41]][_0xa603[48]]};Metric[_0xa603[57]]({where:{id:_0x1e14x4[_0xa603[49]][_0xa603[48]]}})[_0xa603[38]](function(_0x1e14x14){if(!_0x1e14x14){return _0x1e14x5[_0xa603[43]](404)};var _0x1e14x15=_[_0xa603[55]](_0x1e14x14,_0x1e14x4[_0xa603[41]]);_0x1e14x15[_0xa603[56]]()[_0xa603[38]](function(){return _0x1e14x5[_0xa603[27]](200)[_0xa603[26]](_0x1e14x14)})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)})};exports[_0xa603[58]]=function(_0x1e14x4,_0x1e14x5){Metric[_0xa603[50]](_0x1e14x4[_0xa603[49]][_0xa603[48]])[_0xa603[38]](function(_0x1e14x14){if(!_0x1e14x14){return _0x1e14x5[_0xa603[43]](404)};_0x1e14x14[_0xa603[60]]()[_0xa603[38]](function(_0x1e14x16){if(_0x1e14x16[_0xa603[53]]>0){return _0x1e14x5[_0xa603[27]](500)[_0xa603[26]]({message:_0xa603[59]})};_0x1e14x14[_0xa603[58]]()[_0xa603[38]](function(){return _0x1e14x5[_0xa603[43]](204)})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)});})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)})};exports[_0xa603[61]]=function(_0x1e14x4,_0x1e14x5){Metric[_0xa603[58]]({where:{id:_0x1e14x4[_0xa603[9]][_0xa603[48]]},individualHooks:true})[_0xa603[38]](function(){return _0x1e14x5[_0xa603[43]](204)})[_0xa603[28]](function(_0x1e14xe){return handleError(_0x1e14x5,_0x1e14xe)})};function handleError(_0x1e14x5,_0x1e14xe){return _0x1e14x5[_0xa603[27]](500)[_0xa603[26]](_0x1e14xe)}
\ No newline at end of file
-var _0x372f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x65\x74\x72\x69\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x65\x74\x72\x69\x63\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x65\x74\x72\x69\x63\x3A\x72\x65\x6D\x6F\x76\x65"];_0x372f[0];var Metric=require(_0x372f[2])[_0x372f[1]];exports[_0x372f[3]]=function(_0xec51x2){Metric[_0x372f[4]](function(_0xec51x3){onSave(_0xec51x2,_0xec51x3)});Metric[_0x372f[5]](function(_0xec51x3){onRemove(_0xec51x2,_0xec51x3)});};function onSave(_0xec51x2,_0xec51x3,_0xec51x5){_0xec51x2[_0x372f[7]](_0x372f[6],_0xec51x3)}function onRemove(_0xec51x2,_0xec51x3,_0xec51x5){_0xec51x2[_0x372f[7]](_0x372f[8],_0xec51x3)}
\ No newline at end of file
+var _0x91ee=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x65\x74\x72\x69\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x65\x74\x72\x69\x63\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x65\x74\x72\x69\x63\x3A\x72\x65\x6D\x6F\x76\x65"];_0x91ee[0];var Metric=require(_0x91ee[2])[_0x91ee[1]];exports[_0x91ee[3]]=function(_0x1affx2){Metric[_0x91ee[4]](function(_0x1affx3){onSave(_0x1affx2,_0x1affx3)});Metric[_0x91ee[5]](function(_0x1affx3){onRemove(_0x1affx2,_0x1affx3)});};function onSave(_0x1affx2,_0x1affx3,_0x1affx5){_0x1affx2[_0x91ee[7]](_0x91ee[6],_0x1affx3)}function onRemove(_0x1affx2,_0x1affx3,_0x1affx5){_0x1affx2[_0x91ee[7]](_0x91ee[8],_0x1affx3)}
\ No newline at end of file
-var _0x65bb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x67\x65\x74"];_0x65bb[0];var should=require(_0x65bb[1]);var app=require(_0x65bb[2]);var request=require(_0x65bb[3]);describe(_0x65bb[4],function(){it(_0x65bb[5],function(_0xa785x4){request(app)[_0x65bb[13]](_0x65bb[12])[_0x65bb[11]](200)[_0x65bb[11]](_0x65bb[10],/json/)[_0x65bb[9]](function(_0xa785x5,_0xa785x6){if(_0xa785x5){return _0xa785x4(_0xa785x5)};_0xa785x6[_0x65bb[8]][_0x65bb[1]][_0x65bb[7]][_0x65bb[6]](Array);_0xa785x4();})})});
\ No newline at end of file
+var _0x8fc0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x67\x65\x74"];_0x8fc0[0];var should=require(_0x8fc0[1]);var app=require(_0x8fc0[2]);var request=require(_0x8fc0[3]);describe(_0x8fc0[4],function(){it(_0x8fc0[5],function(_0xa365x4){request(app)[_0x8fc0[13]](_0x8fc0[12])[_0x8fc0[11]](200)[_0x8fc0[11]](_0x8fc0[10],/json/)[_0x8fc0[9]](function(_0xa365x5,_0xa365x6){if(_0xa365x5){return _0xa365x4(_0xa365x5)};_0xa365x6[_0x8fc0[8]][_0x8fc0[1]][_0x8fc0[7]][_0x8fc0[6]](Array);_0xa365x4();})})});
\ No newline at end of file
-var _0xedfc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x64\x75\x6C\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xedfc[0];var express=require(_0xedfc[1]);var controller=require(_0xedfc[2]);var router=express.Router();router[_0xedfc[5]](_0xedfc[3],controller[_0xedfc[4]]);router[_0xedfc[5]](_0xedfc[6],controller[_0xedfc[7]]);router[_0xedfc[9]](_0xedfc[3],controller[_0xedfc[8]]);router[_0xedfc[11]](_0xedfc[6],controller[_0xedfc[10]]);router[_0xedfc[12]](_0xedfc[6],controller[_0xedfc[10]]);router[_0xedfc[14]](_0xedfc[6],controller[_0xedfc[13]]);module[_0xedfc[15]]=router;
\ No newline at end of file
+var _0x18cf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x64\x75\x6C\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x18cf[0];var express=require(_0x18cf[1]);var controller=require(_0x18cf[2]);var router=express.Router();router[_0x18cf[5]](_0x18cf[3],controller[_0x18cf[4]]);router[_0x18cf[5]](_0x18cf[6],controller[_0x18cf[7]]);router[_0x18cf[9]](_0x18cf[3],controller[_0x18cf[8]]);router[_0x18cf[11]](_0x18cf[6],controller[_0x18cf[10]]);router[_0x18cf[12]](_0x18cf[6],controller[_0x18cf[10]]);router[_0x18cf[14]](_0x18cf[6],controller[_0x18cf[13]]);module[_0x18cf[15]]=router;
\ No newline at end of file
-var _0x6087=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x6087[0];var _=require(_0x6087[1]);var Module=require(_0x6087[3])[_0x6087[2]];exports[_0x6087[4]]=function(_0x995dx3,_0x995dx4){Module[_0x6087[9]]()[_0x6087[8]](function(_0x995dx6){return _0x995dx4[_0x6087[7]](200)[_0x6087[6]](_0x995dx6)})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)})};exports[_0x6087[10]]=function(_0x995dx3,_0x995dx4){var _0x995dx7=_0x995dx3[_0x6087[12]][_0x6087[11]];Module[_0x6087[14]](_0x995dx7)[_0x6087[8]](function(_0x995dx8){if(!_0x995dx8){return _0x995dx4[_0x6087[13]](404)};return _0x995dx4[_0x6087[6]](_0x995dx8);})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)});};exports[_0x6087[15]]=function(_0x995dx3,_0x995dx4){Module[_0x6087[15]](_0x995dx3[_0x6087[16]])[_0x6087[8]](function(_0x995dx8){return _0x995dx4[_0x6087[7]](201)[_0x6087[6]](_0x995dx8)})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)})};exports[_0x6087[17]]=function(_0x995dx3,_0x995dx4){var _0x995dx7=_0x995dx3[_0x6087[16]][_0x6087[11]];if(_0x995dx3[_0x6087[16]][_0x6087[11]]){delete _0x995dx3[_0x6087[16]][_0x6087[11]]};Module[_0x6087[14]](_0x995dx7)[_0x6087[8]](function(_0x995dx8){if(!_0x995dx8){return _0x995dx4[_0x6087[13]](404)};var _0x995dx9=_[_0x6087[18]](_0x995dx8,_0x995dx3[_0x6087[16]]);_0x995dx9[_0x6087[19]]()[_0x6087[8]](function(){return _0x995dx4[_0x6087[7]](200)[_0x6087[6]](_0x995dx8)})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)});})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)});};exports[_0x6087[20]]=function(_0x995dx3,_0x995dx4){var _0x995dx7=_0x995dx3[_0x6087[12]][_0x6087[11]];Module[_0x6087[14]](_0x995dx7)[_0x6087[8]](function(_0x995dx8){if(!_0x995dx8){return _0x995dx4[_0x6087[13]](404)};_0x995dx8[_0x6087[20]]()[_0x6087[8]](function(){return _0x995dx4[_0x6087[13]](204)})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)});})[_0x6087[5]](function(_0x995dx5){return handleError(_0x995dx4,_0x995dx5)});};function handleError(_0x995dx4,_0x995dx5){return _0x995dx4[_0x6087[7]](500)[_0x6087[6]](_0x995dx5)}
\ No newline at end of file
+var _0x2b5f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x2b5f[0];var _=require(_0x2b5f[1]);var Module=require(_0x2b5f[3])[_0x2b5f[2]];exports[_0x2b5f[4]]=function(_0x4a69x3,_0x4a69x4){Module[_0x2b5f[9]]()[_0x2b5f[8]](function(_0x4a69x6){return _0x4a69x4[_0x2b5f[7]](200)[_0x2b5f[6]](_0x4a69x6)})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)})};exports[_0x2b5f[10]]=function(_0x4a69x3,_0x4a69x4){var _0x4a69x7=_0x4a69x3[_0x2b5f[12]][_0x2b5f[11]];Module[_0x2b5f[14]](_0x4a69x7)[_0x2b5f[8]](function(_0x4a69x8){if(!_0x4a69x8){return _0x4a69x4[_0x2b5f[13]](404)};return _0x4a69x4[_0x2b5f[6]](_0x4a69x8);})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)});};exports[_0x2b5f[15]]=function(_0x4a69x3,_0x4a69x4){Module[_0x2b5f[15]](_0x4a69x3[_0x2b5f[16]])[_0x2b5f[8]](function(_0x4a69x8){return _0x4a69x4[_0x2b5f[7]](201)[_0x2b5f[6]](_0x4a69x8)})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)})};exports[_0x2b5f[17]]=function(_0x4a69x3,_0x4a69x4){var _0x4a69x7=_0x4a69x3[_0x2b5f[16]][_0x2b5f[11]];if(_0x4a69x3[_0x2b5f[16]][_0x2b5f[11]]){delete _0x4a69x3[_0x2b5f[16]][_0x2b5f[11]]};Module[_0x2b5f[14]](_0x4a69x7)[_0x2b5f[8]](function(_0x4a69x8){if(!_0x4a69x8){return _0x4a69x4[_0x2b5f[13]](404)};var _0x4a69x9=_[_0x2b5f[18]](_0x4a69x8,_0x4a69x3[_0x2b5f[16]]);_0x4a69x9[_0x2b5f[19]]()[_0x2b5f[8]](function(){return _0x4a69x4[_0x2b5f[7]](200)[_0x2b5f[6]](_0x4a69x8)})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)});})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)});};exports[_0x2b5f[20]]=function(_0x4a69x3,_0x4a69x4){var _0x4a69x7=_0x4a69x3[_0x2b5f[12]][_0x2b5f[11]];Module[_0x2b5f[14]](_0x4a69x7)[_0x2b5f[8]](function(_0x4a69x8){if(!_0x4a69x8){return _0x4a69x4[_0x2b5f[13]](404)};_0x4a69x8[_0x2b5f[20]]()[_0x2b5f[8]](function(){return _0x4a69x4[_0x2b5f[13]](204)})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)});})[_0x2b5f[5]](function(_0x4a69x5){return handleError(_0x4a69x4,_0x4a69x5)});};function handleError(_0x4a69x4,_0x4a69x5){return _0x4a69x4[_0x2b5f[7]](500)[_0x2b5f[6]](_0x4a69x5)}
\ No newline at end of file
-var _0x54df=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x6F\x64\x75\x6C\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x6F\x64\x75\x6C\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x54df[0];var module=require(_0x54df[2])[_0x54df[1]];exports[_0x54df[3]]=function(_0xf4e9x2){module[_0x54df[4]](function(_0xf4e9x3){onSave(_0xf4e9x2,_0xf4e9x3)});module[_0x54df[5]](function(_0xf4e9x3){onRemove(_0xf4e9x2,_0xf4e9x3)});};function onSave(_0xf4e9x2,_0xf4e9x3,_0xf4e9x5){_0xf4e9x2[_0x54df[7]](_0x54df[6],_0xf4e9x3)}function onRemove(_0xf4e9x2,_0xf4e9x3,_0xf4e9x5){_0xf4e9x2[_0x54df[7]](_0x54df[8],_0xf4e9x3)}
\ No newline at end of file
+var _0xfe9b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x6F\x64\x75\x6C\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x6F\x64\x75\x6C\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfe9b[0];var module=require(_0xfe9b[2])[_0xfe9b[1]];exports[_0xfe9b[3]]=function(_0x8ad6x2){module[_0xfe9b[4]](function(_0x8ad6x3){onSave(_0x8ad6x2,_0x8ad6x3)});module[_0xfe9b[5]](function(_0x8ad6x3){onRemove(_0x8ad6x2,_0x8ad6x3)});};function onSave(_0x8ad6x2,_0x8ad6x3,_0x8ad6x5){_0x8ad6x2[_0xfe9b[7]](_0xfe9b[6],_0x8ad6x3)}function onRemove(_0x8ad6x2,_0x8ad6x3,_0x8ad6x5){_0x8ad6x2[_0xfe9b[7]](_0xfe9b[8],_0x8ad6x3)}
\ No newline at end of file
-var _0xeb7e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x73","\x67\x65\x74"];_0xeb7e[0];var should=require(_0xeb7e[1]);var app=require(_0xeb7e[2]);var request=require(_0xeb7e[3]);describe(_0xeb7e[4],function(){it(_0xeb7e[5],function(_0xfe43x4){request(app)[_0xeb7e[13]](_0xeb7e[12])[_0xeb7e[11]](200)[_0xeb7e[11]](_0xeb7e[10],/json/)[_0xeb7e[9]](function(_0xfe43x5,_0xfe43x6){if(_0xfe43x5){return _0xfe43x4(_0xfe43x5)};_0xfe43x6[_0xeb7e[8]][_0xeb7e[1]][_0xeb7e[7]][_0xeb7e[6]](Array);_0xfe43x4();})})});
\ No newline at end of file
+var _0x481a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x73","\x67\x65\x74"];_0x481a[0];var should=require(_0x481a[1]);var app=require(_0x481a[2]);var request=require(_0x481a[3]);describe(_0x481a[4],function(){it(_0x481a[5],function(_0xac5ax4){request(app)[_0x481a[13]](_0x481a[12])[_0x481a[11]](200)[_0x481a[11]](_0x481a[10],/json/)[_0x481a[9]](function(_0xac5ax5,_0xac5ax6){if(_0xac5ax5){return _0xac5ax4(_0xac5ax5)};_0xac5ax6[_0x481a[8]][_0x481a[1]][_0x481a[7]][_0x481a[6]](Array);_0xac5ax4();})})});
\ No newline at end of file
-var _0xfc0b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x67\x65\x74","\x2F","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xfc0b[0];var express=require(_0xfc0b[1]);var controller=require(_0xfc0b[2]);var router=express.Router();router[_0xfc0b[5]](_0xfc0b[3],controller[_0xfc0b[4]]);router[_0xfc0b[8]](_0xfc0b[6],controller[_0xfc0b[7]]);router[_0xfc0b[10]](_0xfc0b[3],controller[_0xfc0b[9]]);router[_0xfc0b[11]](_0xfc0b[3],controller[_0xfc0b[9]]);router[_0xfc0b[13]](_0xfc0b[3],controller[_0xfc0b[12]]);module[_0xfc0b[14]]=router;
\ No newline at end of file
+var _0x40ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x67\x65\x74","\x2F","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x40ba[0];var express=require(_0x40ba[1]);var controller=require(_0x40ba[2]);var router=express.Router();router[_0x40ba[5]](_0x40ba[3],controller[_0x40ba[4]]);router[_0x40ba[8]](_0x40ba[6],controller[_0x40ba[7]]);router[_0x40ba[10]](_0x40ba[3],controller[_0x40ba[9]]);router[_0x40ba[11]](_0x40ba[3],controller[_0x40ba[9]]);router[_0x40ba[13]](_0x40ba[3],controller[_0x40ba[12]]);module[_0x40ba[14]]=router;
\ No newline at end of file
-var _0x5e0e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x63\x72\x79\x70\x74\x6F","\x53\x65\x74\x74\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x69\x63\x65\x6E\x73\x65","\x61\x65\x73\x2D\x32\x35\x36\x2D\x63\x74\x72","\x25\x73\x3A\x25\x73\x3A\x25\x73","\x61\x64\x64\x72\x65\x73\x73","\x6E\x65\x74\x6D\x61\x73\x6B","\x6D\x61\x63","\x66\x6F\x72\x6D\x61\x74","\x70\x61\x72\x73\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x68\x65\x78","\x75\x74\x66\x38","\x66\x69\x6E\x61\x6C"];_0x5e0e[0];var _=require(_0x5e0e[1]);var util=require(_0x5e0e[2]);var crypto=require(_0x5e0e[3]);var Setting=require(_0x5e0e[5])[_0x5e0e[4]];exports[_0x5e0e[6]]=function(_0x4238x5,_0x4238x6){Setting[_0x5e0e[11]]()[_0x5e0e[10]](function(_0x4238x8){return _0x4238x6[_0x5e0e[9]](200)[_0x5e0e[8]](_0x4238x8)})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)})};exports[_0x5e0e[12]]=function(_0x4238x5,_0x4238x6){Setting[_0x5e0e[24]](_0x4238x5[_0x5e0e[23]][_0x5e0e[22]])[_0x5e0e[10]](function(_0x4238x9){if(!_0x4238x9){return _0x4238x6[_0x5e0e[13]](404)};if(_0x4238x9[_0x5e0e[14]]){_0x4238x9[_0x5e0e[14]]=decrypt(_0x5e0e[15],util[_0x5e0e[20]](_0x5e0e[16],_0x4238x9[_0x5e0e[17]],_0x4238x9[_0x5e0e[18]],_0x4238x9[_0x5e0e[19]]),_0x4238x9[_0x5e0e[14]]);_0x4238x9[_0x5e0e[14]]=JSON[_0x5e0e[21]](_0x4238x9[_0x5e0e[14]]);};return _0x4238x6[_0x5e0e[8]](_0x4238x9);})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)})};exports[_0x5e0e[25]]=function(_0x4238x5,_0x4238x6){Setting[_0x5e0e[25]](_0x4238x5[_0x5e0e[26]])[_0x5e0e[10]](function(_0x4238x9){return _0x4238x6[_0x5e0e[9]](201)[_0x5e0e[8]](_0x4238x9)})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)})};exports[_0x5e0e[27]]=function(_0x4238x5,_0x4238x6){if(_0x4238x5[_0x5e0e[26]][_0x5e0e[22]]){delete _0x4238x5[_0x5e0e[26]][_0x5e0e[22]]};Setting[_0x5e0e[24]](_0x4238x5[_0x5e0e[23]][_0x5e0e[22]])[_0x5e0e[10]](function(_0x4238x9){if(!_0x4238x9){return _0x4238x6[_0x5e0e[13]](404)};var _0x4238xa=_[_0x5e0e[28]](_0x4238x9,_0x4238x5[_0x5e0e[26]]);_0x4238xa[_0x5e0e[29]]()[_0x5e0e[10]](function(){return _0x4238x6[_0x5e0e[9]](200)[_0x5e0e[8]](_0x4238x9)})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)});})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)});};exports[_0x5e0e[30]]=function(_0x4238x5,_0x4238x6){Setting[_0x5e0e[24]](_0x4238x5[_0x5e0e[23]][_0x5e0e[22]])[_0x5e0e[10]](function(_0x4238x9){if(!_0x4238x9){return _0x4238x6[_0x5e0e[13]](404)};_0x4238x9[_0x5e0e[30]]()[_0x5e0e[10]](function(){return _0x4238x6[_0x5e0e[13]](204)})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)});})[_0x5e0e[7]](function(_0x4238x7){return handleError(_0x4238x6,_0x4238x7)})};function handleError(_0x4238x6,_0x4238x7){return _0x4238x6[_0x5e0e[9]](500)[_0x5e0e[8]](_0x4238x7)}function decrypt(_0x4238xd,_0x4238xe,_0x4238xf){var _0x4238x10=crypto[_0x5e0e[31]](_0x4238xd,_0x4238xe);var _0x4238x11=_0x4238x10[_0x5e0e[27]](_0x4238xf,_0x5e0e[32],_0x5e0e[33]);_0x4238x11+=_0x4238x10[_0x5e0e[34]](_0x5e0e[33]);return _0x4238x11;}
\ No newline at end of file
+var _0xc793=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x63\x72\x79\x70\x74\x6F","\x53\x65\x74\x74\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x69\x63\x65\x6E\x73\x65","\x61\x65\x73\x2D\x32\x35\x36\x2D\x63\x74\x72","\x25\x73\x3A\x25\x73\x3A\x25\x73","\x61\x64\x64\x72\x65\x73\x73","\x6E\x65\x74\x6D\x61\x73\x6B","\x6D\x61\x63","\x66\x6F\x72\x6D\x61\x74","\x70\x61\x72\x73\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x68\x65\x78","\x75\x74\x66\x38","\x66\x69\x6E\x61\x6C"];_0xc793[0];var _=require(_0xc793[1]);var util=require(_0xc793[2]);var crypto=require(_0xc793[3]);var Setting=require(_0xc793[5])[_0xc793[4]];exports[_0xc793[6]]=function(_0xbf2ax5,_0xbf2ax6){Setting[_0xc793[11]]()[_0xc793[10]](function(_0xbf2ax8){return _0xbf2ax6[_0xc793[9]](200)[_0xc793[8]](_0xbf2ax8)})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)})};exports[_0xc793[12]]=function(_0xbf2ax5,_0xbf2ax6){Setting[_0xc793[24]](_0xbf2ax5[_0xc793[23]][_0xc793[22]])[_0xc793[10]](function(_0xbf2ax9){if(!_0xbf2ax9){return _0xbf2ax6[_0xc793[13]](404)};if(_0xbf2ax9[_0xc793[14]]){_0xbf2ax9[_0xc793[14]]=decrypt(_0xc793[15],util[_0xc793[20]](_0xc793[16],_0xbf2ax9[_0xc793[17]],_0xbf2ax9[_0xc793[18]],_0xbf2ax9[_0xc793[19]]),_0xbf2ax9[_0xc793[14]]);_0xbf2ax9[_0xc793[14]]=JSON[_0xc793[21]](_0xbf2ax9[_0xc793[14]]);};return _0xbf2ax6[_0xc793[8]](_0xbf2ax9);})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)})};exports[_0xc793[25]]=function(_0xbf2ax5,_0xbf2ax6){Setting[_0xc793[25]](_0xbf2ax5[_0xc793[26]])[_0xc793[10]](function(_0xbf2ax9){return _0xbf2ax6[_0xc793[9]](201)[_0xc793[8]](_0xbf2ax9)})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)})};exports[_0xc793[27]]=function(_0xbf2ax5,_0xbf2ax6){if(_0xbf2ax5[_0xc793[26]][_0xc793[22]]){delete _0xbf2ax5[_0xc793[26]][_0xc793[22]]};Setting[_0xc793[24]](_0xbf2ax5[_0xc793[23]][_0xc793[22]])[_0xc793[10]](function(_0xbf2ax9){if(!_0xbf2ax9){return _0xbf2ax6[_0xc793[13]](404)};var _0xbf2axa=_[_0xc793[28]](_0xbf2ax9,_0xbf2ax5[_0xc793[26]]);_0xbf2axa[_0xc793[29]]()[_0xc793[10]](function(){return _0xbf2ax6[_0xc793[9]](200)[_0xc793[8]](_0xbf2ax9)})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)});})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)});};exports[_0xc793[30]]=function(_0xbf2ax5,_0xbf2ax6){Setting[_0xc793[24]](_0xbf2ax5[_0xc793[23]][_0xc793[22]])[_0xc793[10]](function(_0xbf2ax9){if(!_0xbf2ax9){return _0xbf2ax6[_0xc793[13]](404)};_0xbf2ax9[_0xc793[30]]()[_0xc793[10]](function(){return _0xbf2ax6[_0xc793[13]](204)})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)});})[_0xc793[7]](function(_0xbf2ax7){return handleError(_0xbf2ax6,_0xbf2ax7)})};function handleError(_0xbf2ax6,_0xbf2ax7){return _0xbf2ax6[_0xc793[9]](500)[_0xc793[8]](_0xbf2ax7)}function decrypt(_0xbf2axd,_0xbf2axe,_0xbf2axf){var _0xbf2ax10=crypto[_0xc793[31]](_0xbf2axd,_0xbf2axe);var _0xbf2ax11=_0xbf2ax10[_0xc793[27]](_0xbf2axf,_0xc793[32],_0xc793[33]);_0xbf2ax11+=_0xbf2ax10[_0xc793[34]](_0xc793[33]);return _0xbf2ax11;}
\ No newline at end of file
-var _0x1a9f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x65\x74\x74\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x74\x74\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x65\x74\x74\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1a9f[0];var Setting=require(_0x1a9f[2])[_0x1a9f[1]];exports[_0x1a9f[3]]=function(_0x8690x2){Setting[_0x1a9f[4]](function(_0x8690x3){onSave(_0x8690x2,_0x8690x3)});Setting[_0x1a9f[5]](function(_0x8690x3){onRemove(_0x8690x2,_0x8690x3)});};function onSave(_0x8690x2,_0x8690x3,_0x8690x5){_0x8690x2[_0x1a9f[7]](_0x1a9f[6],_0x8690x3)}function onRemove(_0x8690x2,_0x8690x3,_0x8690x5){_0x8690x2[_0x1a9f[7]](_0x1a9f[8],_0x8690x3)}
\ No newline at end of file
+var _0x74f7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x65\x74\x74\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x74\x74\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x65\x74\x74\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x74f7[0];var Setting=require(_0x74f7[2])[_0x74f7[1]];exports[_0x74f7[3]]=function(_0xfe9cx2){Setting[_0x74f7[4]](function(_0xfe9cx3){onSave(_0xfe9cx2,_0xfe9cx3)});Setting[_0x74f7[5]](function(_0xfe9cx3){onRemove(_0xfe9cx2,_0xfe9cx3)});};function onSave(_0xfe9cx2,_0xfe9cx3,_0xfe9cx5){_0xfe9cx2[_0x74f7[7]](_0x74f7[6],_0xfe9cx3)}function onRemove(_0xfe9cx2,_0xfe9cx3,_0xfe9cx5){_0xfe9cx2[_0x74f7[7]](_0x74f7[8],_0xfe9cx3)}
\ No newline at end of file
-var _0x6270=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x67\x65\x74"];_0x6270[0];var should=require(_0x6270[1]);var app=require(_0x6270[2]);var request=require(_0x6270[3]);describe(_0x6270[4],function(){it(_0x6270[5],function(_0x6e63x4){request(app)[_0x6270[13]](_0x6270[12])[_0x6270[11]](200)[_0x6270[11]](_0x6270[10],/json/)[_0x6270[9]](function(_0x6e63x5,_0x6e63x6){if(_0x6e63x5){return _0x6e63x4(_0x6e63x5)};_0x6e63x6[_0x6270[8]][_0x6270[1]][_0x6270[7]][_0x6270[6]](Array);_0x6e63x4();})})});
\ No newline at end of file
+var _0x4889=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x67\x65\x74"];_0x4889[0];var should=require(_0x4889[1]);var app=require(_0x4889[2]);var request=require(_0x4889[3]);describe(_0x4889[4],function(){it(_0x4889[5],function(_0xea4fx4){request(app)[_0x4889[13]](_0x4889[12])[_0x4889[11]](200)[_0x4889[11]](_0x4889[10],/json/)[_0x4889[9]](function(_0xea4fx5,_0xea4fx6){if(_0xea4fx5){return _0xea4fx4(_0xea4fx5)};_0xea4fx6[_0x4889[8]][_0x4889[1]][_0x4889[7]][_0x4889[6]](Array);_0xea4fx4();})})});
\ No newline at end of file
-var _0x2129=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x3A\x61\x63\x74\x69\x6F\x6E\x2F\x3A\x73\x74\x61\x74\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x2129[0];var express=require(_0x2129[1]);var controller=require(_0x2129[2]);var auth=require(_0x2129[3]);var router=express.Router();router[_0x2129[7]](_0x2129[4],auth[_0x2129[5]](),controller[_0x2129[6]]);module[_0x2129[8]]=router;
\ No newline at end of file
+var _0x2a9b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x3A\x61\x63\x74\x69\x6F\x6E\x2F\x3A\x73\x74\x61\x74\x65","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x2a9b[0];var express=require(_0x2a9b[1]);var controller=require(_0x2a9b[2]);var auth=require(_0x2a9b[3]);var router=express.Router();router[_0x2a9b[7]](_0x2a9b[4],auth[_0x2a9b[5]](),controller[_0x2a9b[6]]);module[_0x2a9b[8]]=router;
\ No newline at end of file
-var _0xeafd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x63\x74\x69\x6F\x6E","\x75\x73\x65\x72\x49\x64","\x71\x75\x65\x72\x79","\x55\x73\x65\x20\x75\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x49\x64","\x62\x6F\x64\x79","\x70\x61\x72\x61\x6D\x73","\x73\x74\x61\x74\x65","\x41\x64\x6D\x69\x6E\x49\x64","\x69\x64","\x75\x73\x65\x72","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65"];_0xeafd[0];var _=require(_0xeafd[1]);var Motionbar=require(_0xeafd[3])[_0xeafd[2]];exports[_0xeafd[4]]=function(_0x55d1x3,_0x55d1x4){if(!_0x55d1x3[_0xeafd[6]][_0xeafd[5]]){return handleError(_0x55d1x4,{message:_0xeafd[7]})};_0x55d1x3[_0xeafd[9]][_0xeafd[8]]=parseInt(_0x55d1x3[_0xeafd[6]][_0xeafd[5]],10);_0x55d1x3[_0xeafd[9]][_0xeafd[4]]=_0x55d1x3[_0xeafd[10]][_0xeafd[4]];_0x55d1x3[_0xeafd[9]][_0xeafd[11]]=_0x55d1x3[_0xeafd[10]][_0xeafd[11]];_0x55d1x3[_0xeafd[9]][_0xeafd[12]]=_0x55d1x3[_0xeafd[14]][_0xeafd[13]];Motionbar[_0xeafd[19]](_0x55d1x3[_0xeafd[9]])[_0xeafd[18]](function(_0x55d1x6){return _0x55d1x4[_0xeafd[17]](201)[_0xeafd[16]](_0x55d1x6)})[_0xeafd[15]](function(_0x55d1x5){return handleError(_0x55d1x4,_0x55d1x5)});};function handleError(_0x55d1x4,_0x55d1x5){return _0x55d1x4[_0xeafd[17]](500)[_0xeafd[16]](_0x55d1x5)}
\ No newline at end of file
+var _0xe085=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x63\x74\x69\x6F\x6E","\x75\x73\x65\x72\x49\x64","\x71\x75\x65\x72\x79","\x55\x73\x65\x20\x75\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x49\x64","\x62\x6F\x64\x79","\x70\x61\x72\x61\x6D\x73","\x73\x74\x61\x74\x65","\x41\x64\x6D\x69\x6E\x49\x64","\x69\x64","\x75\x73\x65\x72","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65"];_0xe085[0];var _=require(_0xe085[1]);var Motionbar=require(_0xe085[3])[_0xe085[2]];exports[_0xe085[4]]=function(_0x11a7x3,_0x11a7x4){if(!_0x11a7x3[_0xe085[6]][_0xe085[5]]){return handleError(_0x11a7x4,{message:_0xe085[7]})};_0x11a7x3[_0xe085[9]][_0xe085[8]]=parseInt(_0x11a7x3[_0xe085[6]][_0xe085[5]],10);_0x11a7x3[_0xe085[9]][_0xe085[4]]=_0x11a7x3[_0xe085[10]][_0xe085[4]];_0x11a7x3[_0xe085[9]][_0xe085[11]]=_0x11a7x3[_0xe085[10]][_0xe085[11]];_0x11a7x3[_0xe085[9]][_0xe085[12]]=_0x11a7x3[_0xe085[14]][_0xe085[13]];Motionbar[_0xe085[19]](_0x11a7x3[_0xe085[9]])[_0xe085[18]](function(_0x11a7x6){return _0x11a7x4[_0xe085[17]](201)[_0xe085[16]](_0x11a7x6)})[_0xe085[15]](function(_0x11a7x5){return handleError(_0x11a7x4,_0x11a7x5)});};function handleError(_0x11a7x4,_0x11a7x5){return _0x11a7x4[_0xe085[17]](500)[_0xe085[16]](_0x11a7x5)}
\ No newline at end of file
-var _0x14ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x49\x64","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x14ba[0];var Motionbar=require(_0x14ba[2])[_0x14ba[1]];exports[_0x14ba[3]]=function(_0xc962x2){Motionbar[_0x14ba[4]](function(_0xc962x3){onSave(_0xc962x2,_0xc962x3)});Motionbar[_0x14ba[5]](function(_0xc962x3){onRemove(_0xc962x2,_0xc962x3)});};function onSave(_0xc962x2,_0xc962x3,_0xc962x5){if(_0xc962x2[_0x14ba[6]]==_0xc962x3[_0x14ba[7]]){_0xc962x2[_0x14ba[9]](_0x14ba[8],_0xc962x3)}}function onRemove(_0xc962x2,_0xc962x3,_0xc962x5){_0xc962x2[_0x14ba[9]](_0x14ba[10],_0xc962x3)}
\ No newline at end of file
+var _0xbbfb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x49\x64","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbbfb[0];var Motionbar=require(_0xbbfb[2])[_0xbbfb[1]];exports[_0xbbfb[3]]=function(_0x3a2dx2){Motionbar[_0xbbfb[4]](function(_0x3a2dx3){onSave(_0x3a2dx2,_0x3a2dx3)});Motionbar[_0xbbfb[5]](function(_0x3a2dx3){onRemove(_0x3a2dx2,_0x3a2dx3)});};function onSave(_0x3a2dx2,_0x3a2dx3,_0x3a2dx5){if(_0x3a2dx2[_0xbbfb[6]]==_0x3a2dx3[_0xbbfb[7]]){_0x3a2dx2[_0xbbfb[9]](_0xbbfb[8],_0x3a2dx3)}}function onRemove(_0x3a2dx2,_0x3a2dx3,_0x3a2dx5){_0x3a2dx2[_0xbbfb[9]](_0xbbfb[10],_0x3a2dx3)}
\ No newline at end of file
-var _0xc466=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x67\x65\x74"];_0xc466[0];var should=require(_0xc466[1]);var app=require(_0xc466[2]);var request=require(_0xc466[3]);describe(_0xc466[4],function(){it(_0xc466[5],function(_0xa831x4){request(app)[_0xc466[13]](_0xc466[12])[_0xc466[11]](200)[_0xc466[11]](_0xc466[10],/json/)[_0xc466[9]](function(_0xa831x5,_0xa831x6){if(_0xa831x5){return _0xa831x4(_0xa831x5)};_0xa831x6[_0xc466[8]][_0xc466[1]][_0xc466[7]][_0xc466[6]](Array);_0xa831x4();})})});
\ No newline at end of file
+var _0x6b3f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x67\x65\x74"];_0x6b3f[0];var should=require(_0x6b3f[1]);var app=require(_0x6b3f[2]);var request=require(_0x6b3f[3]);describe(_0x6b3f[4],function(){it(_0x6b3f[5],function(_0xb96dx4){request(app)[_0x6b3f[13]](_0x6b3f[12])[_0x6b3f[11]](200)[_0x6b3f[11]](_0x6b3f[10],/json/)[_0x6b3f[9]](function(_0xb96dx5,_0xb96dx6){if(_0xb96dx5){return _0xb96dx4(_0xb96dx5)};_0xb96dx6[_0x6b3f[8]][_0x6b3f[1]][_0x6b3f[7]][_0x6b3f[6]](Array);_0xb96dx4();})})});
\ No newline at end of file
-var _0xf5f3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf5f3[0];var express=require(_0xf5f3[1]);var controller=require(_0xf5f3[2]);var router=express.Router();router[_0xf5f3[5]](_0xf5f3[3],controller[_0xf5f3[4]]);router[_0xf5f3[5]](_0xf5f3[6],controller[_0xf5f3[7]]);router[_0xf5f3[9]](_0xf5f3[3],controller[_0xf5f3[8]]);router[_0xf5f3[11]](_0xf5f3[6],controller[_0xf5f3[10]]);router[_0xf5f3[12]](_0xf5f3[6],controller[_0xf5f3[10]]);router[_0xf5f3[14]](_0xf5f3[6],controller[_0xf5f3[13]]);module[_0xf5f3[15]]=router;
\ No newline at end of file
+var _0xc579=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x64\x65\x73\x63\x72\x69\x62\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xc579[0];var express=require(_0xc579[1]);var controller=require(_0xc579[2]);var router=express.Router();router[_0xc579[5]](_0xc579[3],controller[_0xc579[4]]);router[_0xc579[5]](_0xc579[6],controller[_0xc579[7]]);router[_0xc579[5]](_0xc579[8],controller[_0xc579[9]]);router[_0xc579[11]](_0xc579[3],controller[_0xc579[10]]);router[_0xc579[13]](_0xc579[8],controller[_0xc579[12]]);router[_0xc579[14]](_0xc579[8],controller[_0xc579[12]]);router[_0xc579[16]](_0xc579[8],controller[_0xc579[15]]);module[_0xc579[17]]=router;
\ No newline at end of file
-var _0xdfdc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xdfdc[0];var _=require(_0xdfdc[1]);var ReportAgent=require(_0xdfdc[3])[_0xdfdc[2]];exports[_0xdfdc[4]]=function(_0x8cf6x3,_0x8cf6x4){ReportAgent[_0xdfdc[9]]()[_0xdfdc[8]](function(_0x8cf6x6){return _0x8cf6x4[_0xdfdc[7]](200)[_0xdfdc[6]](_0x8cf6x6)})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)})};exports[_0xdfdc[10]]=function(_0x8cf6x3,_0x8cf6x4){ReportAgent[_0xdfdc[14]](_0x8cf6x3[_0xdfdc[13]][_0xdfdc[12]])[_0xdfdc[8]](function(_0x8cf6x7){if(!_0x8cf6x7){return _0x8cf6x4[_0xdfdc[11]](404)};return _0x8cf6x4[_0xdfdc[6]](_0x8cf6x7);})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)})};exports[_0xdfdc[15]]=function(_0x8cf6x3,_0x8cf6x4){ReportAgent[_0xdfdc[15]](_0x8cf6x3[_0xdfdc[16]])[_0xdfdc[8]](function(_0x8cf6x7){return _0x8cf6x4[_0xdfdc[7]](201)[_0xdfdc[6]](_0x8cf6x7)})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)})};exports[_0xdfdc[17]]=function(_0x8cf6x3,_0x8cf6x4){if(_0x8cf6x3[_0xdfdc[16]][_0xdfdc[12]]){delete _0x8cf6x3[_0xdfdc[16]][_0xdfdc[12]]};ReportAgent[_0xdfdc[14]](_0x8cf6x3[_0xdfdc[13]][_0xdfdc[12]])[_0xdfdc[8]](function(_0x8cf6x7){if(!_0x8cf6x7){return _0x8cf6x4[_0xdfdc[11]](404)};var _0x8cf6x8=_[_0xdfdc[18]](_0x8cf6x7,_0x8cf6x3[_0xdfdc[16]]);_0x8cf6x8[_0xdfdc[19]]()[_0xdfdc[8]](function(){return _0x8cf6x4[_0xdfdc[7]](200)[_0xdfdc[6]](_0x8cf6x7)})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)});})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)});};exports[_0xdfdc[20]]=function(_0x8cf6x3,_0x8cf6x4){ReportAgent[_0xdfdc[14]](_0x8cf6x3[_0xdfdc[13]][_0xdfdc[12]])[_0xdfdc[8]](function(_0x8cf6x7){if(!_0x8cf6x7){return _0x8cf6x4[_0xdfdc[11]](404)};_0x8cf6x7[_0xdfdc[20]]()[_0xdfdc[8]](function(){return _0x8cf6x4[_0xdfdc[11]](204)})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)});})[_0xdfdc[5]](function(_0x8cf6x5){return handleError(_0x8cf6x4,_0x8cf6x5)})};function handleError(_0x8cf6x4,_0x8cf6x5){return _0x8cf6x4[_0xdfdc[7]](500)[_0xdfdc[6]](_0x8cf6x5)}
\ No newline at end of file
+var _0x917e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x917e[0];var _=require(_0x917e[1]);var ReportAgent=require(_0x917e[3])[_0x917e[2]];exports[_0x917e[4]]=function(_0x2cb5x3,_0x2cb5x4){ReportAgent[_0x917e[9]]()[_0x917e[8]](function(_0x2cb5x6){return _0x2cb5x4[_0x917e[7]](200)[_0x917e[6]](_0x2cb5x6)})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)})};exports[_0x917e[10]]=function(_0x2cb5x3,_0x2cb5x4){ReportAgent[_0x917e[10]]()[_0x917e[8]](function(_0x2cb5x7){return _0x2cb5x4[_0x917e[7]](200)[_0x917e[6]](_0x2cb5x7)})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)})};exports[_0x917e[11]]=function(_0x2cb5x3,_0x2cb5x4){ReportAgent[_0x917e[15]](_0x2cb5x3[_0x917e[14]][_0x917e[13]])[_0x917e[8]](function(_0x2cb5x8){if(!_0x2cb5x8){return _0x2cb5x4[_0x917e[12]](404)};return _0x2cb5x4[_0x917e[6]](_0x2cb5x8);})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)})};exports[_0x917e[16]]=function(_0x2cb5x3,_0x2cb5x4){ReportAgent[_0x917e[16]](_0x2cb5x3[_0x917e[17]])[_0x917e[8]](function(_0x2cb5x8){return _0x2cb5x4[_0x917e[7]](201)[_0x917e[6]](_0x2cb5x8)})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)})};exports[_0x917e[18]]=function(_0x2cb5x3,_0x2cb5x4){if(_0x2cb5x3[_0x917e[17]][_0x917e[13]]){delete _0x2cb5x3[_0x917e[17]][_0x917e[13]]};ReportAgent[_0x917e[15]](_0x2cb5x3[_0x917e[14]][_0x917e[13]])[_0x917e[8]](function(_0x2cb5x8){if(!_0x2cb5x8){return _0x2cb5x4[_0x917e[12]](404)};var _0x2cb5x9=_[_0x917e[19]](_0x2cb5x8,_0x2cb5x3[_0x917e[17]]);_0x2cb5x9[_0x917e[20]]()[_0x917e[8]](function(){return _0x2cb5x4[_0x917e[7]](200)[_0x917e[6]](_0x2cb5x8)})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)});})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)});};exports[_0x917e[21]]=function(_0x2cb5x3,_0x2cb5x4){ReportAgent[_0x917e[15]](_0x2cb5x3[_0x917e[14]][_0x917e[13]])[_0x917e[8]](function(_0x2cb5x8){if(!_0x2cb5x8){return _0x2cb5x4[_0x917e[12]](404)};_0x2cb5x8[_0x917e[21]]()[_0x917e[8]](function(){return _0x2cb5x4[_0x917e[12]](204)})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)});})[_0x917e[5]](function(_0x2cb5x5){return handleError(_0x2cb5x4,_0x2cb5x5)})};function handleError(_0x2cb5x4,_0x2cb5x5){return _0x2cb5x4[_0x917e[7]](500)[_0x917e[6]](_0x2cb5x5)}
\ No newline at end of file
-var _0xb973=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb973[0];var ReportAgent=require(_0xb973[2])[_0xb973[1]];exports[_0xb973[3]]=function(_0xa6c5x2){ReportAgent[_0xb973[4]](function(_0xa6c5x3){onSave(_0xa6c5x2,_0xa6c5x3)});ReportAgent[_0xb973[5]](function(_0xa6c5x3){onSave(_0xa6c5x2,_0xa6c5x3)});ReportAgent[_0xb973[6]](function(_0xa6c5x3){onRemove(_0xa6c5x2,_0xa6c5x3)});};function onSave(_0xa6c5x2,_0xa6c5x3,_0xa6c5x5){if(_0xa6c5x2[_0xb973[7]]===_0xa6c5x3[_0xb973[8]]||_0xa6c5x2[_0xb973[9]]===_0xb973[10]){_0xa6c5x2[_0xb973[12]](_0xb973[11],_0xa6c5x3)}}function onRemove(_0xa6c5x2,_0xa6c5x3,_0xa6c5x5){_0xa6c5x2[_0xb973[12]](_0xb973[13],_0xa6c5x3)}
\ No newline at end of file
+var _0x3441=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3441[0];var ReportAgent=require(_0x3441[2])[_0x3441[1]];exports[_0x3441[3]]=function(_0x1d55x2){ReportAgent[_0x3441[4]](function(_0x1d55x3){onSave(_0x1d55x2,_0x1d55x3)});ReportAgent[_0x3441[5]](function(_0x1d55x3){onSave(_0x1d55x2,_0x1d55x3)});ReportAgent[_0x3441[6]](function(_0x1d55x3){onRemove(_0x1d55x2,_0x1d55x3)});};function onSave(_0x1d55x2,_0x1d55x3,_0x1d55x5){if(_0x1d55x2[_0x3441[7]]===_0x1d55x3[_0x3441[8]]||_0x1d55x2[_0x3441[9]]===_0x3441[10]){_0x1d55x2[_0x3441[12]](_0x3441[11],_0x1d55x3)}}function onRemove(_0x1d55x2,_0x1d55x3,_0x1d55x5){_0x1d55x2[_0x3441[12]](_0x3441[13],_0x1d55x3)}
\ No newline at end of file
-var _0xd738=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xd738[0];var express=require(_0xd738[1]);var controller=require(_0xd738[2]);var router=express.Router();router[_0xd738[5]](_0xd738[3],controller[_0xd738[4]]);router[_0xd738[5]](_0xd738[6],controller[_0xd738[7]]);router[_0xd738[9]](_0xd738[3],controller[_0xd738[8]]);router[_0xd738[11]](_0xd738[6],controller[_0xd738[10]]);router[_0xd738[12]](_0xd738[6],controller[_0xd738[10]]);router[_0xd738[14]](_0xd738[6],controller[_0xd738[13]]);module[_0xd738[15]]=router;
\ No newline at end of file
+var _0x106e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x106e[0];var express=require(_0x106e[1]);var controller=require(_0x106e[2]);var router=express.Router();router[_0x106e[5]](_0x106e[3],controller[_0x106e[4]]);router[_0x106e[5]](_0x106e[6],controller[_0x106e[7]]);router[_0x106e[9]](_0x106e[3],controller[_0x106e[8]]);router[_0x106e[11]](_0x106e[6],controller[_0x106e[10]]);router[_0x106e[12]](_0x106e[6],controller[_0x106e[10]]);router[_0x106e[14]](_0x106e[6],controller[_0x106e[13]]);module[_0x106e[15]]=router;
\ No newline at end of file
-var _0xad59=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xad59[0];var _=require(_0xad59[1]);var ReportChat=require(_0xad59[3])[_0xad59[2]];var sequelize=require(_0xad59[3])[_0xad59[4]];exports[_0xad59[5]]=function(_0x3fc9x4,_0x3fc9x5){ReportChat[_0xad59[10]]()[_0xad59[9]](function(_0x3fc9x7){return _0x3fc9x5[_0xad59[8]](200)[_0xad59[7]](_0x3fc9x7)})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)})};exports[_0xad59[11]]=function(_0x3fc9x4,_0x3fc9x5){ReportChat[_0xad59[15]](_0x3fc9x4[_0xad59[14]][_0xad59[13]])[_0xad59[9]](function(_0x3fc9x8){if(!_0x3fc9x8){return _0x3fc9x5[_0xad59[12]](404)};return _0x3fc9x5[_0xad59[7]](_0x3fc9x8);})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)})};exports[_0xad59[16]]=function(_0x3fc9x4,_0x3fc9x5){ReportChat[_0xad59[16]](_0x3fc9x4[_0xad59[17]])[_0xad59[9]](function(_0x3fc9x8){return _0x3fc9x5[_0xad59[8]](201)[_0xad59[7]](_0x3fc9x8)})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)})};exports[_0xad59[18]]=function(_0x3fc9x4,_0x3fc9x5,_0x3fc9x9){if(_0x3fc9x4[_0xad59[17]][_0xad59[13]]){delete _0x3fc9x4[_0xad59[17]][_0xad59[13]]};return ReportChat[_0xad59[15]](_0x3fc9x4[_0xad59[14]][_0xad59[13]])[_0xad59[9]](function(_0x3fc9x8){if(!_0x3fc9x8){return _0x3fc9x5[_0xad59[12]](404)};var _0x3fc9xa=_[_0xad59[19]](_0x3fc9x8,_0x3fc9x4[_0xad59[17]]);return _0x3fc9xa[_0xad59[20]]()[_0xad59[9]](function(){return _0x3fc9x5[_0xad59[8]](200)[_0xad59[7]](_0x3fc9x8)});})[_0xad59[6]](sequelize.ValidationError,function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)});};exports[_0xad59[21]]=function(_0x3fc9x4,_0x3fc9x5){ReportChat[_0xad59[15]](_0x3fc9x4[_0xad59[14]][_0xad59[13]])[_0xad59[9]](function(_0x3fc9x8){if(!_0x3fc9x8){return _0x3fc9x5[_0xad59[12]](404)};_0x3fc9x8[_0xad59[21]]()[_0xad59[9]](function(){return _0x3fc9x5[_0xad59[12]](204)})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)});})[_0xad59[6]](function(_0x3fc9x6){return handleError(_0x3fc9x5,_0x3fc9x6)})};function handleError(_0x3fc9x5,_0x3fc9x6){return _0x3fc9x5[_0xad59[8]](500)[_0xad59[7]](_0x3fc9x6)}
\ No newline at end of file
+var _0xa9d1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xa9d1[0];var _=require(_0xa9d1[1]);var ReportChat=require(_0xa9d1[3])[_0xa9d1[2]];var sequelize=require(_0xa9d1[3])[_0xa9d1[4]];exports[_0xa9d1[5]]=function(_0x8f6fx4,_0x8f6fx5){ReportChat[_0xa9d1[10]]()[_0xa9d1[9]](function(_0x8f6fx7){return _0x8f6fx5[_0xa9d1[8]](200)[_0xa9d1[7]](_0x8f6fx7)})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)})};exports[_0xa9d1[11]]=function(_0x8f6fx4,_0x8f6fx5){ReportChat[_0xa9d1[15]](_0x8f6fx4[_0xa9d1[14]][_0xa9d1[13]])[_0xa9d1[9]](function(_0x8f6fx8){if(!_0x8f6fx8){return _0x8f6fx5[_0xa9d1[12]](404)};return _0x8f6fx5[_0xa9d1[7]](_0x8f6fx8);})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)})};exports[_0xa9d1[16]]=function(_0x8f6fx4,_0x8f6fx5){ReportChat[_0xa9d1[16]](_0x8f6fx4[_0xa9d1[17]])[_0xa9d1[9]](function(_0x8f6fx8){return _0x8f6fx5[_0xa9d1[8]](201)[_0xa9d1[7]](_0x8f6fx8)})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)})};exports[_0xa9d1[18]]=function(_0x8f6fx4,_0x8f6fx5,_0x8f6fx9){if(_0x8f6fx4[_0xa9d1[17]][_0xa9d1[13]]){delete _0x8f6fx4[_0xa9d1[17]][_0xa9d1[13]]};return ReportChat[_0xa9d1[15]](_0x8f6fx4[_0xa9d1[14]][_0xa9d1[13]])[_0xa9d1[9]](function(_0x8f6fx8){if(!_0x8f6fx8){return _0x8f6fx5[_0xa9d1[12]](404)};var _0x8f6fxa=_[_0xa9d1[19]](_0x8f6fx8,_0x8f6fx4[_0xa9d1[17]]);return _0x8f6fxa[_0xa9d1[20]]()[_0xa9d1[9]](function(){return _0x8f6fx5[_0xa9d1[8]](200)[_0xa9d1[7]](_0x8f6fx8)});})[_0xa9d1[6]](sequelize.ValidationError,function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)});};exports[_0xa9d1[21]]=function(_0x8f6fx4,_0x8f6fx5){ReportChat[_0xa9d1[15]](_0x8f6fx4[_0xa9d1[14]][_0xa9d1[13]])[_0xa9d1[9]](function(_0x8f6fx8){if(!_0x8f6fx8){return _0x8f6fx5[_0xa9d1[12]](404)};_0x8f6fx8[_0xa9d1[21]]()[_0xa9d1[9]](function(){return _0x8f6fx5[_0xa9d1[12]](204)})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)});})[_0xa9d1[6]](function(_0x8f6fx6){return handleError(_0x8f6fx5,_0x8f6fx6)})};function handleError(_0x8f6fx5,_0x8f6fx6){return _0x8f6fx5[_0xa9d1[8]](500)[_0xa9d1[7]](_0x8f6fx6)}
\ No newline at end of file
-var _0x1d2d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x69\x64","\x63\x68\x61\x6E\x67\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x75\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1d2d[0];var ReportChat=require(_0x1d2d[2])[_0x1d2d[1]];exports[_0x1d2d[3]]=function(_0x58dcx2){ReportChat[_0x1d2d[4]](function(_0x58dcx3){onSave(_0x58dcx2,_0x58dcx3)});ReportChat[_0x1d2d[5]](function(_0x58dcx3){onUpdate(_0x58dcx2,_0x58dcx3)});ReportChat[_0x1d2d[6]](function(_0x58dcx3){onRemove(_0x58dcx2,_0x58dcx3)});};function onSave(_0x58dcx2,_0x58dcx3,_0x58dcx5){if(_0x58dcx2[_0x1d2d[7]]===_0x58dcx3[_0x1d2d[8]]||_0x58dcx2[_0x1d2d[9]]===_0x1d2d[10]){_0x58dcx2[_0x1d2d[12]](_0x1d2d[11],_0x58dcx3)}}function onUpdate(_0x58dcx2,_0x58dcx3,_0x58dcx5){if(_0x58dcx2[_0x1d2d[7]]===_0x58dcx3[_0x1d2d[8]]||_0x58dcx2[_0x1d2d[9]]===_0x1d2d[10]){if(_0x58dcx3[_0x1d2d[14]](_0x1d2d[13])){_0x58dcx2[_0x1d2d[12]](_0x1d2d[15],_0x58dcx3)}else {_0x58dcx2[_0x1d2d[12]](_0x1d2d[16],_0x58dcx3)}}}function onRemove(_0x58dcx2,_0x58dcx3,_0x58dcx5){_0x58dcx2[_0x1d2d[12]](_0x1d2d[17],_0x58dcx3)}
\ No newline at end of file
+var _0x6006=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x69\x64","\x63\x68\x61\x6E\x67\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x75\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6006[0];var ReportChat=require(_0x6006[2])[_0x6006[1]];exports[_0x6006[3]]=function(_0xbd48x2){ReportChat[_0x6006[4]](function(_0xbd48x3){onSave(_0xbd48x2,_0xbd48x3)});ReportChat[_0x6006[5]](function(_0xbd48x3){onUpdate(_0xbd48x2,_0xbd48x3)});ReportChat[_0x6006[6]](function(_0xbd48x3){onRemove(_0xbd48x2,_0xbd48x3)});};function onSave(_0xbd48x2,_0xbd48x3,_0xbd48x5){if(_0xbd48x2[_0x6006[7]]===_0xbd48x3[_0x6006[8]]||_0xbd48x2[_0x6006[9]]===_0x6006[10]){_0xbd48x2[_0x6006[12]](_0x6006[11],_0xbd48x3)}}function onUpdate(_0xbd48x2,_0xbd48x3,_0xbd48x5){if(_0xbd48x2[_0x6006[7]]===_0xbd48x3[_0x6006[8]]||_0xbd48x2[_0x6006[9]]===_0x6006[10]){if(_0xbd48x3[_0x6006[14]](_0x6006[13])){_0xbd48x2[_0x6006[12]](_0x6006[15],_0xbd48x3)}else {_0xbd48x2[_0x6006[12]](_0x6006[16],_0xbd48x3)}}}function onRemove(_0xbd48x2,_0xbd48x3,_0xbd48x5){_0xbd48x2[_0x6006[12]](_0x6006[17],_0xbd48x3)}
\ No newline at end of file
-var _0xe796=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x67\x65\x74"];_0xe796[0];var should=require(_0xe796[1]);var app=require(_0xe796[2]);var request=require(_0xe796[3]);describe(_0xe796[4],function(){it(_0xe796[5],function(_0x1ba9x4){request(app)[_0xe796[13]](_0xe796[12])[_0xe796[11]](200)[_0xe796[11]](_0xe796[10],/json/)[_0xe796[9]](function(_0x1ba9x5,_0x1ba9x6){if(_0x1ba9x5){return _0x1ba9x4(_0x1ba9x5)};_0x1ba9x6[_0xe796[8]][_0xe796[1]][_0xe796[7]][_0xe796[6]](Array);_0x1ba9x4();})})});
\ No newline at end of file
+var _0x4ffa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x67\x65\x74"];_0x4ffa[0];var should=require(_0x4ffa[1]);var app=require(_0x4ffa[2]);var request=require(_0x4ffa[3]);describe(_0x4ffa[4],function(){it(_0x4ffa[5],function(_0xde6cx4){request(app)[_0x4ffa[13]](_0x4ffa[12])[_0x4ffa[11]](200)[_0x4ffa[11]](_0x4ffa[10],/json/)[_0x4ffa[9]](function(_0xde6cx5,_0xde6cx6){if(_0xde6cx5){return _0xde6cx4(_0xde6cx5)};_0xde6cx6[_0x4ffa[8]][_0x4ffa[1]][_0x4ffa[7]][_0x4ffa[6]](Array);_0xde6cx4();})})});
\ No newline at end of file
-var _0x9d68=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9d68[0];var express=require(_0x9d68[1]);var controller=require(_0x9d68[2]);var router=express.Router();router[_0x9d68[5]](_0x9d68[3],controller[_0x9d68[4]]);router[_0x9d68[5]](_0x9d68[6],controller[_0x9d68[7]]);router[_0x9d68[9]](_0x9d68[3],controller[_0x9d68[8]]);router[_0x9d68[11]](_0x9d68[6],controller[_0x9d68[10]]);router[_0x9d68[12]](_0x9d68[6],controller[_0x9d68[10]]);router[_0x9d68[14]](_0x9d68[6],controller[_0x9d68[13]]);module[_0x9d68[15]]=router;
\ No newline at end of file
+var _0xec11=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x64\x65\x73\x63\x72\x69\x62\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xec11[0];var express=require(_0xec11[1]);var controller=require(_0xec11[2]);var router=express.Router();router[_0xec11[5]](_0xec11[3],controller[_0xec11[4]]);router[_0xec11[5]](_0xec11[6],controller[_0xec11[7]]);router[_0xec11[5]](_0xec11[8],controller[_0xec11[9]]);router[_0xec11[11]](_0xec11[3],controller[_0xec11[10]]);router[_0xec11[13]](_0xec11[8],controller[_0xec11[12]]);router[_0xec11[14]](_0xec11[8],controller[_0xec11[12]]);router[_0xec11[16]](_0xec11[8],controller[_0xec11[15]]);module[_0xec11[17]]=router;
\ No newline at end of file
-var _0x6183=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x6183[0];var _=require(_0x6183[1]);var ReportChatSession=require(_0x6183[3])[_0x6183[2]];exports[_0x6183[4]]=function(_0x7246x3,_0x7246x4){ReportChatSession[_0x6183[9]]()[_0x6183[8]](function(_0x7246x6){return _0x7246x4[_0x6183[7]](200)[_0x6183[6]](_0x7246x6)})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)})};exports[_0x6183[10]]=function(_0x7246x3,_0x7246x4){ReportChatSession[_0x6183[14]](_0x7246x3[_0x6183[13]][_0x6183[12]])[_0x6183[8]](function(_0x7246x7){if(!_0x7246x7){return _0x7246x4[_0x6183[11]](404)};return _0x7246x4[_0x6183[6]](_0x7246x7);})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)})};exports[_0x6183[15]]=function(_0x7246x3,_0x7246x4){ReportChatSession[_0x6183[15]](_0x7246x3[_0x6183[16]])[_0x6183[8]](function(_0x7246x7){return _0x7246x4[_0x6183[7]](201)[_0x6183[6]](_0x7246x7)})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)})};exports[_0x6183[17]]=function(_0x7246x3,_0x7246x4){if(_0x7246x3[_0x6183[16]][_0x6183[12]]){delete _0x7246x3[_0x6183[16]][_0x6183[12]]};ReportChatSession[_0x6183[20]]({where:{id:_0x7246x3[_0x6183[13]][_0x6183[12]]}})[_0x6183[8]](function(_0x7246x7){if(!_0x7246x7){return _0x7246x4[_0x6183[11]](404)};var _0x7246x8=_[_0x6183[18]](_0x7246x7,_0x7246x3[_0x6183[16]]);_0x7246x8[_0x6183[19]]()[_0x6183[8]](function(){return _0x7246x4[_0x6183[7]](200)[_0x6183[6]](_0x7246x7)})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)});})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)});};exports[_0x6183[21]]=function(_0x7246x3,_0x7246x4){ReportChatSession[_0x6183[20]]({where:{id:_0x7246x3[_0x6183[13]][_0x6183[12]]}})[_0x6183[8]](function(_0x7246x7){if(!_0x7246x7){return _0x7246x4[_0x6183[11]](404)};_0x7246x7[_0x6183[21]]()[_0x6183[8]](function(){return _0x7246x4[_0x6183[11]](204)})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)});})[_0x6183[5]](function(_0x7246x5){return handleError(_0x7246x4,_0x7246x5)})};function handleError(_0x7246x4,_0x7246x5){return _0x7246x4[_0x6183[7]](500)[_0x6183[6]](_0x7246x5)}
\ No newline at end of file
+var _0xf62a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xf62a[0];var _=require(_0xf62a[1]);var ReportChatSession=require(_0xf62a[3])[_0xf62a[2]];exports[_0xf62a[4]]=function(_0xfb49x3,_0xfb49x4){ReportChatSession[_0xf62a[9]]()[_0xf62a[8]](function(_0xfb49x6){return _0xfb49x4[_0xf62a[7]](200)[_0xf62a[6]](_0xfb49x6)})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)})};exports[_0xf62a[10]]=function(_0xfb49x3,_0xfb49x4){ReportChatSession[_0xf62a[10]]()[_0xf62a[8]](function(_0xfb49x7){return _0xfb49x4[_0xf62a[7]](200)[_0xf62a[6]](_0xfb49x7)})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)})};exports[_0xf62a[11]]=function(_0xfb49x3,_0xfb49x4){ReportChatSession[_0xf62a[15]](_0xfb49x3[_0xf62a[14]][_0xf62a[13]])[_0xf62a[8]](function(_0xfb49x8){if(!_0xfb49x8){return _0xfb49x4[_0xf62a[12]](404)};return _0xfb49x4[_0xf62a[6]](_0xfb49x8);})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)})};exports[_0xf62a[16]]=function(_0xfb49x3,_0xfb49x4){ReportChatSession[_0xf62a[16]](_0xfb49x3[_0xf62a[17]])[_0xf62a[8]](function(_0xfb49x8){return _0xfb49x4[_0xf62a[7]](201)[_0xf62a[6]](_0xfb49x8)})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)})};exports[_0xf62a[18]]=function(_0xfb49x3,_0xfb49x4){if(_0xfb49x3[_0xf62a[17]][_0xf62a[13]]){delete _0xfb49x3[_0xf62a[17]][_0xf62a[13]]};ReportChatSession[_0xf62a[21]]({where:{id:_0xfb49x3[_0xf62a[14]][_0xf62a[13]]}})[_0xf62a[8]](function(_0xfb49x8){if(!_0xfb49x8){return _0xfb49x4[_0xf62a[12]](404)};var _0xfb49x9=_[_0xf62a[19]](_0xfb49x8,_0xfb49x3[_0xf62a[17]]);_0xfb49x9[_0xf62a[20]]()[_0xf62a[8]](function(){return _0xfb49x4[_0xf62a[7]](200)[_0xf62a[6]](_0xfb49x8)})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)});})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)});};exports[_0xf62a[22]]=function(_0xfb49x3,_0xfb49x4){ReportChatSession[_0xf62a[21]]({where:{id:_0xfb49x3[_0xf62a[14]][_0xf62a[13]]}})[_0xf62a[8]](function(_0xfb49x8){if(!_0xfb49x8){return _0xfb49x4[_0xf62a[12]](404)};_0xfb49x8[_0xf62a[22]]()[_0xf62a[8]](function(){return _0xfb49x4[_0xf62a[12]](204)})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)});})[_0xf62a[5]](function(_0xfb49x5){return handleError(_0xfb49x4,_0xfb49x5)})};function handleError(_0xfb49x4,_0xfb49x5){return _0xfb49x4[_0xf62a[7]](500)[_0xf62a[6]](_0xfb49x5)}
\ No newline at end of file
-var _0x581a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x581a[0];var ReportChatSession=require(_0x581a[2])[_0x581a[1]];exports[_0x581a[3]]=function(_0xebf0x2){ReportChatSession[_0x581a[4]](function(_0xebf0x3){onSave(_0xebf0x2,_0xebf0x3)});ReportChatSession[_0x581a[5]](function(_0xebf0x3){onSave(_0xebf0x2,_0xebf0x3)});ReportChatSession[_0x581a[6]](function(_0xebf0x3){onRemove(_0xebf0x2,_0xebf0x3)});};function onSave(_0xebf0x2,_0xebf0x3,_0xebf0x5){_0xebf0x2[_0x581a[8]](_0x581a[7],_0xebf0x3)}function onRemove(_0xebf0x2,_0xebf0x3,_0xebf0x5){_0xebf0x2[_0x581a[8]](_0x581a[9],_0xebf0x3)}
\ No newline at end of file
+var _0x5b95=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5b95[0];var ReportChatSession=require(_0x5b95[2])[_0x5b95[1]];exports[_0x5b95[3]]=function(_0x5e92x2){ReportChatSession[_0x5b95[4]](function(_0x5e92x3){onSave(_0x5e92x2,_0x5e92x3)});ReportChatSession[_0x5b95[5]](function(_0x5e92x3){onSave(_0x5e92x2,_0x5e92x3)});ReportChatSession[_0x5b95[6]](function(_0x5e92x3){onRemove(_0x5e92x2,_0x5e92x3)});};function onSave(_0x5e92x2,_0x5e92x3,_0x5e92x5){_0x5e92x2[_0x5b95[8]](_0x5b95[7],_0x5e92x3)}function onRemove(_0x5e92x2,_0x5e92x3,_0x5e92x5){_0x5e92x2[_0x5b95[8]](_0x5b95[9],_0x5e92x3)}
\ No newline at end of file
-var _0xbe7c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0xbe7c[0];var should=require(_0xbe7c[1]);var app=require(_0xbe7c[2]);var request=require(_0xbe7c[3]);describe(_0xbe7c[4],function(){it(_0xbe7c[5],function(_0x7b23x4){request(app)[_0xbe7c[13]](_0xbe7c[12])[_0xbe7c[11]](200)[_0xbe7c[11]](_0xbe7c[10],/json/)[_0xbe7c[9]](function(_0x7b23x5,_0x7b23x6){if(_0x7b23x5){return _0x7b23x4(_0x7b23x5)};_0x7b23x6[_0xbe7c[8]][_0xbe7c[1]][_0xbe7c[7]][_0xbe7c[6]](Array);_0x7b23x4();})})});
\ No newline at end of file
+var _0x445e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0x445e[0];var should=require(_0x445e[1]);var app=require(_0x445e[2]);var request=require(_0x445e[3]);describe(_0x445e[4],function(){it(_0x445e[5],function(_0x3c4dx4){request(app)[_0x445e[13]](_0x445e[12])[_0x445e[11]](200)[_0x445e[11]](_0x445e[10],/json/)[_0x445e[9]](function(_0x3c4dx5,_0x3c4dx6){if(_0x3c4dx5){return _0x3c4dx4(_0x3c4dx5)};_0x3c4dx6[_0x445e[8]][_0x445e[1]][_0x445e[7]][_0x445e[6]](Array);_0x3c4dx4();})})});
\ No newline at end of file
-var _0x97eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x97eb[0];var express=require(_0x97eb[1]);var controller=require(_0x97eb[2]);var router=express.Router();router[_0x97eb[5]](_0x97eb[3],controller[_0x97eb[4]]);router[_0x97eb[5]](_0x97eb[6],controller[_0x97eb[7]]);router[_0x97eb[9]](_0x97eb[3],controller[_0x97eb[8]]);router[_0x97eb[11]](_0x97eb[6],controller[_0x97eb[10]]);router[_0x97eb[12]](_0x97eb[6],controller[_0x97eb[10]]);router[_0x97eb[14]](_0x97eb[6],controller[_0x97eb[13]]);module[_0x97eb[15]]=router;
\ No newline at end of file
+var _0xe4b2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x64\x65\x73\x63\x72\x69\x62\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xe4b2[0];var express=require(_0xe4b2[1]);var controller=require(_0xe4b2[2]);var router=express.Router();router[_0xe4b2[5]](_0xe4b2[3],controller[_0xe4b2[4]]);router[_0xe4b2[5]](_0xe4b2[6],controller[_0xe4b2[7]]);router[_0xe4b2[5]](_0xe4b2[8],controller[_0xe4b2[9]]);router[_0xe4b2[11]](_0xe4b2[3],controller[_0xe4b2[10]]);router[_0xe4b2[13]](_0xe4b2[8],controller[_0xe4b2[12]]);router[_0xe4b2[14]](_0xe4b2[8],controller[_0xe4b2[12]]);router[_0xe4b2[16]](_0xe4b2[8],controller[_0xe4b2[15]]);module[_0xe4b2[17]]=router;
\ No newline at end of file
-var _0xac9c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xac9c[0];var _=require(_0xac9c[1]);var ReportIntegration=require(_0xac9c[3])[_0xac9c[2]];exports[_0xac9c[4]]=function(_0xde4bx3,_0xde4bx4){ReportIntegration[_0xac9c[9]]()[_0xac9c[8]](function(_0xde4bx6){return _0xde4bx4[_0xac9c[7]](200)[_0xac9c[6]](_0xde4bx6)})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)})};exports[_0xac9c[10]]=function(_0xde4bx3,_0xde4bx4){ReportIntegration[_0xac9c[14]](_0xde4bx3[_0xac9c[13]][_0xac9c[12]])[_0xac9c[8]](function(_0xde4bx7){if(!_0xde4bx7){return _0xde4bx4[_0xac9c[11]](404)};return _0xde4bx4[_0xac9c[6]](_0xde4bx7);})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)})};exports[_0xac9c[15]]=function(_0xde4bx3,_0xde4bx4){ReportIntegration[_0xac9c[15]](_0xde4bx3[_0xac9c[16]])[_0xac9c[8]](function(_0xde4bx7){return _0xde4bx4[_0xac9c[7]](201)[_0xac9c[6]](_0xde4bx7)})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)})};exports[_0xac9c[17]]=function(_0xde4bx3,_0xde4bx4){if(_0xde4bx3[_0xac9c[16]][_0xac9c[12]]){delete _0xde4bx3[_0xac9c[16]][_0xac9c[12]]};ReportIntegration[_0xac9c[14]](_0xde4bx3[_0xac9c[13]][_0xac9c[12]])[_0xac9c[8]](function(_0xde4bx7){if(!_0xde4bx7){return _0xde4bx4[_0xac9c[11]](404)};var _0xde4bx8=_[_0xac9c[18]](_0xde4bx7,_0xde4bx3[_0xac9c[16]]);_0xde4bx8[_0xac9c[19]]()[_0xac9c[8]](function(){return _0xde4bx4[_0xac9c[7]](200)[_0xac9c[6]](_0xde4bx7)})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)});})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)});};exports[_0xac9c[20]]=function(_0xde4bx3,_0xde4bx4){ReportIntegration[_0xac9c[14]](_0xde4bx3[_0xac9c[13]][_0xac9c[12]])[_0xac9c[8]](function(_0xde4bx7){if(!_0xde4bx7){return _0xde4bx4[_0xac9c[11]](404)};_0xde4bx7[_0xac9c[20]]()[_0xac9c[8]](function(){return _0xde4bx4[_0xac9c[11]](204)})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)});})[_0xac9c[5]](function(_0xde4bx5){return handleError(_0xde4bx4,_0xde4bx5)})};function handleError(_0xde4bx4,_0xde4bx5){return _0xde4bx4[_0xac9c[7]](500)[_0xac9c[6]](_0xde4bx5)}
\ No newline at end of file
+var _0xffa8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xffa8[0];var _=require(_0xffa8[1]);var ReportIntegration=require(_0xffa8[3])[_0xffa8[2]];exports[_0xffa8[4]]=function(_0x7a37x3,_0x7a37x4){ReportIntegration[_0xffa8[9]]()[_0xffa8[8]](function(_0x7a37x6){return _0x7a37x4[_0xffa8[7]](200)[_0xffa8[6]](_0x7a37x6)})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)})};exports[_0xffa8[10]]=function(_0x7a37x3,_0x7a37x4){ReportIntegration[_0xffa8[10]]()[_0xffa8[8]](function(_0x7a37x7){return _0x7a37x4[_0xffa8[7]](200)[_0xffa8[6]](_0x7a37x7)})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)})};exports[_0xffa8[11]]=function(_0x7a37x3,_0x7a37x4){ReportIntegration[_0xffa8[15]](_0x7a37x3[_0xffa8[14]][_0xffa8[13]])[_0xffa8[8]](function(_0x7a37x8){if(!_0x7a37x8){return _0x7a37x4[_0xffa8[12]](404)};return _0x7a37x4[_0xffa8[6]](_0x7a37x8);})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)})};exports[_0xffa8[16]]=function(_0x7a37x3,_0x7a37x4){ReportIntegration[_0xffa8[16]](_0x7a37x3[_0xffa8[17]])[_0xffa8[8]](function(_0x7a37x8){return _0x7a37x4[_0xffa8[7]](201)[_0xffa8[6]](_0x7a37x8)})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)})};exports[_0xffa8[18]]=function(_0x7a37x3,_0x7a37x4){if(_0x7a37x3[_0xffa8[17]][_0xffa8[13]]){delete _0x7a37x3[_0xffa8[17]][_0xffa8[13]]};ReportIntegration[_0xffa8[15]](_0x7a37x3[_0xffa8[14]][_0xffa8[13]])[_0xffa8[8]](function(_0x7a37x8){if(!_0x7a37x8){return _0x7a37x4[_0xffa8[12]](404)};var _0x7a37x9=_[_0xffa8[19]](_0x7a37x8,_0x7a37x3[_0xffa8[17]]);_0x7a37x9[_0xffa8[20]]()[_0xffa8[8]](function(){return _0x7a37x4[_0xffa8[7]](200)[_0xffa8[6]](_0x7a37x8)})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)});})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)});};exports[_0xffa8[21]]=function(_0x7a37x3,_0x7a37x4){ReportIntegration[_0xffa8[15]](_0x7a37x3[_0xffa8[14]][_0xffa8[13]])[_0xffa8[8]](function(_0x7a37x8){if(!_0x7a37x8){return _0x7a37x4[_0xffa8[12]](404)};_0x7a37x8[_0xffa8[21]]()[_0xffa8[8]](function(){return _0x7a37x4[_0xffa8[12]](204)})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)});})[_0xffa8[5]](function(_0x7a37x5){return handleError(_0x7a37x4,_0x7a37x5)})};function handleError(_0x7a37x4,_0x7a37x5){return _0x7a37x4[_0xffa8[7]](500)[_0xffa8[6]](_0x7a37x5)}
\ No newline at end of file
-var _0x174d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x25\x73","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x66\x6F\x72\x6D\x61\x74","\x65\x6D\x69\x74"];_0x174d[0];var util=require(_0x174d[1]);var ReportIntegration=require(_0x174d[3])[_0x174d[2]];exports[_0x174d[4]]=function(_0x6128x3){ReportIntegration[_0x174d[5]](function(_0x6128x4){onSave(_0x6128x3,_0x6128x4)})};function onSave(_0x6128x3,_0x6128x4,_0x6128x6){if(_0x6128x3[_0x174d[6]]===_0x6128x4[_0x174d[7]]){_0x6128x3[_0x174d[11]](util[_0x174d[10]](_0x174d[8],_0x6128x4[_0x174d[9]]),_0x6128x4)}}
\ No newline at end of file
+var _0x3ec2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x25\x73","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x66\x6F\x72\x6D\x61\x74","\x65\x6D\x69\x74"];_0x3ec2[0];var util=require(_0x3ec2[1]);var ReportIntegration=require(_0x3ec2[3])[_0x3ec2[2]];exports[_0x3ec2[4]]=function(_0xbd31x3){ReportIntegration[_0x3ec2[5]](function(_0xbd31x4){onSave(_0xbd31x3,_0xbd31x4)})};function onSave(_0xbd31x3,_0xbd31x4,_0xbd31x6){if(_0xbd31x3[_0x3ec2[6]]===_0xbd31x4[_0x3ec2[7]]){_0xbd31x3[_0x3ec2[11]](util[_0x3ec2[10]](_0x3ec2[8],_0xbd31x4[_0x3ec2[9]]),_0xbd31x4)}}
\ No newline at end of file
-var _0x1144=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1144[0];var express=require(_0x1144[1]);var controller=require(_0x1144[2]);var router=express.Router();router[_0x1144[5]](_0x1144[3],controller[_0x1144[4]]);router[_0x1144[5]](_0x1144[6],controller[_0x1144[7]]);router[_0x1144[9]](_0x1144[3],controller[_0x1144[8]]);router[_0x1144[11]](_0x1144[6],controller[_0x1144[10]]);router[_0x1144[12]](_0x1144[6],controller[_0x1144[10]]);router[_0x1144[14]](_0x1144[6],controller[_0x1144[13]]);module[_0x1144[15]]=router;
\ No newline at end of file
+var _0x9621=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9621[0];var express=require(_0x9621[1]);var controller=require(_0x9621[2]);var router=express.Router();router[_0x9621[5]](_0x9621[3],controller[_0x9621[4]]);router[_0x9621[5]](_0x9621[6],controller[_0x9621[7]]);router[_0x9621[9]](_0x9621[3],controller[_0x9621[8]]);router[_0x9621[11]](_0x9621[6],controller[_0x9621[10]]);router[_0x9621[12]](_0x9621[6],controller[_0x9621[10]]);router[_0x9621[14]](_0x9621[6],controller[_0x9621[13]]);module[_0x9621[15]]=router;
\ No newline at end of file
-var _0x22bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x22bf[0];var _=require(_0x22bf[1]);var ReportMail=require(_0x22bf[3])[_0x22bf[2]];exports[_0x22bf[4]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[9]]()[_0x22bf[8]](function(_0x1f93x6){return _0x1f93x4[_0x22bf[7]](200)[_0x22bf[6]](_0x1f93x6)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[10]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};return _0x1f93x4[_0x22bf[6]](_0x1f93x7);})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[15]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[15]](_0x1f93x3[_0x22bf[16]])[_0x22bf[8]](function(_0x1f93x7){return _0x1f93x4[_0x22bf[7]](201)[_0x22bf[6]](_0x1f93x7)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[17]]=function(_0x1f93x3,_0x1f93x4){if(_0x1f93x3[_0x22bf[16]][_0x22bf[12]]){delete _0x1f93x3[_0x22bf[16]][_0x22bf[12]]};ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};var _0x1f93x8=_[_0x22bf[18]](_0x1f93x7,_0x1f93x3[_0x22bf[16]]);_0x1f93x8[_0x22bf[19]]()[_0x22bf[8]](function(){return _0x1f93x4[_0x22bf[7]](200)[_0x22bf[6]](_0x1f93x7)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});};exports[_0x22bf[20]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};_0x1f93x7[_0x22bf[20]]()[_0x22bf[8]](function(){return _0x1f93x4[_0x22bf[11]](204)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};function handleError(_0x1f93x4,_0x1f93x5){return _0x1f93x4[_0x22bf[7]](500)[_0x22bf[6]](_0x1f93x5)}
\ No newline at end of file
+var _0x452d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x452d[0];var _=require(_0x452d[1]);var ReportMail=require(_0x452d[3])[_0x452d[2]];exports[_0x452d[4]]=function(_0xc33dx3,_0xc33dx4){ReportMail[_0x452d[9]]()[_0x452d[8]](function(_0xc33dx6){return _0xc33dx4[_0x452d[7]](200)[_0x452d[6]](_0xc33dx6)})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)})};exports[_0x452d[10]]=function(_0xc33dx3,_0xc33dx4){ReportMail[_0x452d[14]](_0xc33dx3[_0x452d[13]][_0x452d[12]])[_0x452d[8]](function(_0xc33dx7){if(!_0xc33dx7){return _0xc33dx4[_0x452d[11]](404)};return _0xc33dx4[_0x452d[6]](_0xc33dx7);})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)})};exports[_0x452d[15]]=function(_0xc33dx3,_0xc33dx4){ReportMail[_0x452d[15]](_0xc33dx3[_0x452d[16]])[_0x452d[8]](function(_0xc33dx7){return _0xc33dx4[_0x452d[7]](201)[_0x452d[6]](_0xc33dx7)})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)})};exports[_0x452d[17]]=function(_0xc33dx3,_0xc33dx4){if(_0xc33dx3[_0x452d[16]][_0x452d[12]]){delete _0xc33dx3[_0x452d[16]][_0x452d[12]]};ReportMail[_0x452d[14]](_0xc33dx3[_0x452d[13]][_0x452d[12]])[_0x452d[8]](function(_0xc33dx7){if(!_0xc33dx7){return _0xc33dx4[_0x452d[11]](404)};var _0xc33dx8=_[_0x452d[18]](_0xc33dx7,_0xc33dx3[_0x452d[16]]);_0xc33dx8[_0x452d[19]]()[_0x452d[8]](function(){return _0xc33dx4[_0x452d[7]](200)[_0x452d[6]](_0xc33dx7)})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)});})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)});};exports[_0x452d[20]]=function(_0xc33dx3,_0xc33dx4){ReportMail[_0x452d[14]](_0xc33dx3[_0x452d[13]][_0x452d[12]])[_0x452d[8]](function(_0xc33dx7){if(!_0xc33dx7){return _0xc33dx4[_0x452d[11]](404)};_0xc33dx7[_0x452d[20]]()[_0x452d[8]](function(){return _0xc33dx4[_0x452d[11]](204)})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)});})[_0x452d[5]](function(_0xc33dx5){return handleError(_0xc33dx4,_0xc33dx5)})};function handleError(_0xc33dx4,_0xc33dx5){return _0xc33dx4[_0x452d[7]](500)[_0x452d[6]](_0xc33dx5)}
\ No newline at end of file
-var _0x5377=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x75\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5377[0];var ReportMail=require(_0x5377[2])[_0x5377[1]];exports[_0x5377[3]]=function(_0x9e48x2){ReportMail[_0x5377[4]](function(_0x9e48x3){onSave(_0x9e48x2,_0x9e48x3)});ReportMail[_0x5377[5]](function(_0x9e48x3){onUpdate(_0x9e48x2,_0x9e48x3)});ReportMail[_0x5377[6]](function(_0x9e48x3){onRemove(_0x9e48x2,_0x9e48x3)});};function onSave(_0x9e48x2,_0x9e48x3,_0x9e48x5){if(_0x9e48x2[_0x5377[7]]===_0x9e48x3[_0x5377[8]]||_0x9e48x2[_0x5377[9]]===_0x5377[10]){_0x9e48x2[_0x5377[12]](_0x5377[11],_0x9e48x3)}}function onUpdate(_0x9e48x2,_0x9e48x3,_0x9e48x5){if(_0x9e48x2[_0x5377[7]]===_0x9e48x3[_0x5377[8]]||_0x9e48x2[_0x5377[9]]===_0x5377[10]){_0x9e48x2[_0x5377[12]](_0x5377[13],_0x9e48x3)}}function onRemove(_0x9e48x2,_0x9e48x3,_0x9e48x5){_0x9e48x2[_0x5377[12]](_0x5377[14],_0x9e48x3)}
\ No newline at end of file
+var _0x614d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x75\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x72\x65\x6D\x6F\x76\x65"];_0x614d[0];var ReportMail=require(_0x614d[2])[_0x614d[1]];exports[_0x614d[3]]=function(_0x2144x2){ReportMail[_0x614d[4]](function(_0x2144x3){onSave(_0x2144x2,_0x2144x3)});ReportMail[_0x614d[5]](function(_0x2144x3){onUpdate(_0x2144x2,_0x2144x3)});ReportMail[_0x614d[6]](function(_0x2144x3){onRemove(_0x2144x2,_0x2144x3)});};function onSave(_0x2144x2,_0x2144x3,_0x2144x5){if(_0x2144x2[_0x614d[7]]===_0x2144x3[_0x614d[8]]||_0x2144x2[_0x614d[9]]===_0x614d[10]){_0x2144x2[_0x614d[12]](_0x614d[11],_0x2144x3)}}function onUpdate(_0x2144x2,_0x2144x3,_0x2144x5){if(_0x2144x2[_0x614d[7]]===_0x2144x3[_0x614d[8]]||_0x2144x2[_0x614d[9]]===_0x614d[10]){_0x2144x2[_0x614d[12]](_0x614d[13],_0x2144x3)}}function onRemove(_0x2144x2,_0x2144x3,_0x2144x5){_0x2144x2[_0x614d[12]](_0x614d[14],_0x2144x3)}
\ No newline at end of file
-var _0xb0db=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x67\x65\x74"];_0xb0db[0];var should=require(_0xb0db[1]);var app=require(_0xb0db[2]);var request=require(_0xb0db[3]);describe(_0xb0db[4],function(){it(_0xb0db[5],function(_0xa491x4){request(app)[_0xb0db[13]](_0xb0db[12])[_0xb0db[11]](200)[_0xb0db[11]](_0xb0db[10],/json/)[_0xb0db[9]](function(_0xa491x5,_0xa491x6){if(_0xa491x5){return _0xa491x4(_0xa491x5)};_0xa491x6[_0xb0db[8]][_0xb0db[1]][_0xb0db[7]][_0xb0db[6]](Array);_0xa491x4();})})});
\ No newline at end of file
+var _0x4906=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x67\x65\x74"];_0x4906[0];var should=require(_0x4906[1]);var app=require(_0x4906[2]);var request=require(_0x4906[3]);describe(_0x4906[4],function(){it(_0x4906[5],function(_0x602ex4){request(app)[_0x4906[13]](_0x4906[12])[_0x4906[11]](200)[_0x4906[11]](_0x4906[10],/json/)[_0x4906[9]](function(_0x602ex5,_0x602ex6){if(_0x602ex5){return _0x602ex4(_0x602ex5)};_0x602ex6[_0x4906[8]][_0x4906[1]][_0x4906[7]][_0x4906[6]](Array);_0x602ex4();})})});
\ No newline at end of file
-var _0x317b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x317b[0];var express=require(_0x317b[1]);var controller=require(_0x317b[2]);var router=express.Router();router[_0x317b[5]](_0x317b[3],controller[_0x317b[4]]);router[_0x317b[5]](_0x317b[6],controller[_0x317b[7]]);router[_0x317b[9]](_0x317b[3],controller[_0x317b[8]]);router[_0x317b[11]](_0x317b[6],controller[_0x317b[10]]);router[_0x317b[12]](_0x317b[6],controller[_0x317b[10]]);router[_0x317b[14]](_0x317b[6],controller[_0x317b[13]]);module[_0x317b[15]]=router;
\ No newline at end of file
+var _0x651e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x64\x65\x73\x63\x72\x69\x62\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x651e[0];var express=require(_0x651e[1]);var controller=require(_0x651e[2]);var router=express.Router();router[_0x651e[5]](_0x651e[3],controller[_0x651e[4]]);router[_0x651e[5]](_0x651e[6],controller[_0x651e[7]]);router[_0x651e[5]](_0x651e[8],controller[_0x651e[9]]);router[_0x651e[11]](_0x651e[3],controller[_0x651e[10]]);router[_0x651e[13]](_0x651e[8],controller[_0x651e[12]]);router[_0x651e[14]](_0x651e[8],controller[_0x651e[12]]);router[_0x651e[16]](_0x651e[8],controller[_0x651e[15]]);module[_0x651e[17]]=router;
\ No newline at end of file
-var _0x9036=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x9036[0];var _=require(_0x9036[1]);var ReportMailSession=require(_0x9036[3])[_0x9036[2]];exports[_0x9036[4]]=function(_0xfa82x3,_0xfa82x4){ReportMailSession[_0x9036[9]]()[_0x9036[8]](function(_0xfa82x6){return _0xfa82x4[_0x9036[7]](200)[_0x9036[6]](_0xfa82x6)})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)})};exports[_0x9036[10]]=function(_0xfa82x3,_0xfa82x4){ReportMailSession[_0x9036[14]](_0xfa82x3[_0x9036[13]][_0x9036[12]])[_0x9036[8]](function(_0xfa82x7){if(!_0xfa82x7){return _0xfa82x4[_0x9036[11]](404)};return _0xfa82x4[_0x9036[6]](_0xfa82x7);})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)})};exports[_0x9036[15]]=function(_0xfa82x3,_0xfa82x4){ReportMailSession[_0x9036[15]](_0xfa82x3[_0x9036[16]])[_0x9036[8]](function(_0xfa82x7){return _0xfa82x4[_0x9036[7]](201)[_0x9036[6]](_0xfa82x7)})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)})};exports[_0x9036[17]]=function(_0xfa82x3,_0xfa82x4){if(_0xfa82x3[_0x9036[16]][_0x9036[12]]){delete _0xfa82x3[_0x9036[16]][_0x9036[12]]};ReportMailSession[_0x9036[20]]({where:{id:_0xfa82x3[_0x9036[13]][_0x9036[12]]}})[_0x9036[8]](function(_0xfa82x7){if(!_0xfa82x7){return _0xfa82x4[_0x9036[11]](404)};var _0xfa82x8=_[_0x9036[18]](_0xfa82x7,_0xfa82x3[_0x9036[16]]);_0xfa82x8[_0x9036[19]]()[_0x9036[8]](function(){return _0xfa82x4[_0x9036[7]](200)[_0x9036[6]](_0xfa82x7)})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)});})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)});};exports[_0x9036[21]]=function(_0xfa82x3,_0xfa82x4){ReportMailSession[_0x9036[20]]({where:{id:_0xfa82x3[_0x9036[13]][_0x9036[12]]}})[_0x9036[8]](function(_0xfa82x7){if(!_0xfa82x7){return _0xfa82x4[_0x9036[11]](404)};_0xfa82x7[_0x9036[21]]()[_0x9036[8]](function(){return _0xfa82x4[_0x9036[11]](204)})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)});})[_0x9036[5]](function(_0xfa82x5){return handleError(_0xfa82x4,_0xfa82x5)})};function handleError(_0xfa82x4,_0xfa82x5){return _0xfa82x4[_0x9036[7]](500)[_0x9036[6]](_0xfa82x5)}
\ No newline at end of file
+var _0x8eed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x8eed[0];var _=require(_0x8eed[1]);var ReportMailSession=require(_0x8eed[3])[_0x8eed[2]];exports[_0x8eed[4]]=function(_0x8b8cx3,_0x8b8cx4){ReportMailSession[_0x8eed[9]]()[_0x8eed[8]](function(_0x8b8cx6){return _0x8b8cx4[_0x8eed[7]](200)[_0x8eed[6]](_0x8b8cx6)})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)})};exports[_0x8eed[10]]=function(_0x8b8cx3,_0x8b8cx4){ReportMailSession[_0x8eed[10]]()[_0x8eed[8]](function(_0x8b8cx7){return _0x8b8cx4[_0x8eed[7]](200)[_0x8eed[6]](_0x8b8cx7)})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)})};exports[_0x8eed[11]]=function(_0x8b8cx3,_0x8b8cx4){ReportMailSession[_0x8eed[15]](_0x8b8cx3[_0x8eed[14]][_0x8eed[13]])[_0x8eed[8]](function(_0x8b8cx8){if(!_0x8b8cx8){return _0x8b8cx4[_0x8eed[12]](404)};return _0x8b8cx4[_0x8eed[6]](_0x8b8cx8);})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)})};exports[_0x8eed[16]]=function(_0x8b8cx3,_0x8b8cx4){ReportMailSession[_0x8eed[16]](_0x8b8cx3[_0x8eed[17]])[_0x8eed[8]](function(_0x8b8cx8){return _0x8b8cx4[_0x8eed[7]](201)[_0x8eed[6]](_0x8b8cx8)})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)})};exports[_0x8eed[18]]=function(_0x8b8cx3,_0x8b8cx4){if(_0x8b8cx3[_0x8eed[17]][_0x8eed[13]]){delete _0x8b8cx3[_0x8eed[17]][_0x8eed[13]]};ReportMailSession[_0x8eed[21]]({where:{id:_0x8b8cx3[_0x8eed[14]][_0x8eed[13]]}})[_0x8eed[8]](function(_0x8b8cx8){if(!_0x8b8cx8){return _0x8b8cx4[_0x8eed[12]](404)};var _0x8b8cx9=_[_0x8eed[19]](_0x8b8cx8,_0x8b8cx3[_0x8eed[17]]);_0x8b8cx9[_0x8eed[20]]()[_0x8eed[8]](function(){return _0x8b8cx4[_0x8eed[7]](200)[_0x8eed[6]](_0x8b8cx8)})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)});})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)});};exports[_0x8eed[22]]=function(_0x8b8cx3,_0x8b8cx4){ReportMailSession[_0x8eed[21]]({where:{id:_0x8b8cx3[_0x8eed[14]][_0x8eed[13]]}})[_0x8eed[8]](function(_0x8b8cx8){if(!_0x8b8cx8){return _0x8b8cx4[_0x8eed[12]](404)};_0x8b8cx8[_0x8eed[22]]()[_0x8eed[8]](function(){return _0x8b8cx4[_0x8eed[12]](204)})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)});})[_0x8eed[5]](function(_0x8b8cx5){return handleError(_0x8b8cx4,_0x8b8cx5)})};function handleError(_0x8b8cx4,_0x8b8cx5){return _0x8b8cx4[_0x8eed[7]](500)[_0x8eed[6]](_0x8b8cx5)}
\ No newline at end of file
-var _0x61a1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x61a1[0];var ReportMailSession=require(_0x61a1[2])[_0x61a1[1]];exports[_0x61a1[3]]=function(_0x1e28x2){ReportMailSession[_0x61a1[4]](function(_0x1e28x3){onSave(_0x1e28x2,_0x1e28x3)});ReportMailSession[_0x61a1[5]](function(_0x1e28x3){onSave(_0x1e28x2,_0x1e28x3)});ReportMailSession[_0x61a1[6]](function(_0x1e28x3){onRemove(_0x1e28x2,_0x1e28x3)});};function onSave(_0x1e28x2,_0x1e28x3,_0x1e28x5){_0x1e28x2[_0x61a1[8]](_0x61a1[7],_0x1e28x3)}function onRemove(_0x1e28x2,_0x1e28x3,_0x1e28x5){_0x1e28x2[_0x61a1[8]](_0x61a1[9],_0x1e28x3)}
\ No newline at end of file
+var _0x55f5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x55f5[0];var ReportMailSession=require(_0x55f5[2])[_0x55f5[1]];exports[_0x55f5[3]]=function(_0x944fx2){ReportMailSession[_0x55f5[4]](function(_0x944fx3){onSave(_0x944fx2,_0x944fx3)});ReportMailSession[_0x55f5[5]](function(_0x944fx3){onSave(_0x944fx2,_0x944fx3)});ReportMailSession[_0x55f5[6]](function(_0x944fx3){onRemove(_0x944fx2,_0x944fx3)});};function onSave(_0x944fx2,_0x944fx3,_0x944fx5){_0x944fx2[_0x55f5[8]](_0x55f5[7],_0x944fx3)}function onRemove(_0x944fx2,_0x944fx3,_0x944fx5){_0x944fx2[_0x55f5[8]](_0x55f5[9],_0x944fx3)}
\ No newline at end of file
-var _0x2b7f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0x2b7f[0];var should=require(_0x2b7f[1]);var app=require(_0x2b7f[2]);var request=require(_0x2b7f[3]);describe(_0x2b7f[4],function(){it(_0x2b7f[5],function(_0x123fx4){request(app)[_0x2b7f[13]](_0x2b7f[12])[_0x2b7f[11]](200)[_0x2b7f[11]](_0x2b7f[10],/json/)[_0x2b7f[9]](function(_0x123fx5,_0x123fx6){if(_0x123fx5){return _0x123fx4(_0x123fx5)};_0x123fx6[_0x2b7f[8]][_0x2b7f[1]][_0x2b7f[7]][_0x2b7f[6]](Array);_0x123fx4();})})});
\ No newline at end of file
+var _0xb191=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0xb191[0];var should=require(_0xb191[1]);var app=require(_0xb191[2]);var request=require(_0xb191[3]);describe(_0xb191[4],function(){it(_0xb191[5],function(_0x84d8x4){request(app)[_0xb191[13]](_0xb191[12])[_0xb191[11]](200)[_0xb191[11]](_0xb191[10],/json/)[_0xb191[9]](function(_0x84d8x5,_0x84d8x6){if(_0x84d8x5){return _0x84d8x4(_0x84d8x5)};_0x84d8x6[_0xb191[8]][_0xb191[1]][_0xb191[7]][_0xb191[6]](Array);_0x84d8x4();})})});
\ No newline at end of file
-var _0x96b4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x96b4[0];var express=require(_0x96b4[1]);var controller=require(_0x96b4[2]);var router=express.Router();router[_0x96b4[5]](_0x96b4[3],controller[_0x96b4[4]]);router[_0x96b4[5]](_0x96b4[6],controller[_0x96b4[7]]);router[_0x96b4[9]](_0x96b4[3],controller[_0x96b4[8]]);router[_0x96b4[11]](_0x96b4[6],controller[_0x96b4[10]]);router[_0x96b4[12]](_0x96b4[6],controller[_0x96b4[10]]);router[_0x96b4[14]](_0x96b4[6],controller[_0x96b4[13]]);module[_0x96b4[15]]=router;
\ No newline at end of file
+var _0x5369=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x64\x65\x73\x63\x72\x69\x62\x65","\x64\x65\x73\x63\x72\x69\x62\x65","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5369[0];var express=require(_0x5369[1]);var controller=require(_0x5369[2]);var router=express.Router();router[_0x5369[5]](_0x5369[3],controller[_0x5369[4]]);router[_0x5369[5]](_0x5369[6],controller[_0x5369[7]]);router[_0x5369[5]](_0x5369[8],controller[_0x5369[9]]);router[_0x5369[11]](_0x5369[3],controller[_0x5369[10]]);router[_0x5369[13]](_0x5369[8],controller[_0x5369[12]]);router[_0x5369[14]](_0x5369[8],controller[_0x5369[12]]);router[_0x5369[16]](_0x5369[8],controller[_0x5369[15]]);module[_0x5369[17]]=router;
\ No newline at end of file
-var _0xdf46=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xdf46[0];var _=require(_0xdf46[1]);var ReportQueue=require(_0xdf46[3])[_0xdf46[2]];exports[_0xdf46[4]]=function(_0x431fx3,_0x431fx4){ReportQueue[_0xdf46[9]]()[_0xdf46[8]](function(_0x431fx6){return _0x431fx4[_0xdf46[7]](200)[_0xdf46[6]](_0x431fx6)})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)})};exports[_0xdf46[10]]=function(_0x431fx3,_0x431fx4){ReportQueue[_0xdf46[14]](_0x431fx3[_0xdf46[13]][_0xdf46[12]])[_0xdf46[8]](function(_0x431fx7){if(!_0x431fx7){return _0x431fx4[_0xdf46[11]](404)};return _0x431fx4[_0xdf46[6]](_0x431fx7);})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)})};exports[_0xdf46[15]]=function(_0x431fx3,_0x431fx4){ReportQueue[_0xdf46[15]](_0x431fx3[_0xdf46[16]])[_0xdf46[8]](function(_0x431fx7){return _0x431fx4[_0xdf46[7]](201)[_0xdf46[6]](_0x431fx7)})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)})};exports[_0xdf46[17]]=function(_0x431fx3,_0x431fx4){if(_0x431fx3[_0xdf46[16]][_0xdf46[12]]){delete _0x431fx3[_0xdf46[16]][_0xdf46[12]]};ReportQueue[_0xdf46[14]](_0x431fx3[_0xdf46[13]][_0xdf46[12]])[_0xdf46[8]](function(_0x431fx7){if(!_0x431fx7){return _0x431fx4[_0xdf46[11]](404)};var _0x431fx8=_[_0xdf46[18]](_0x431fx7,_0x431fx3[_0xdf46[16]]);_0x431fx8[_0xdf46[19]]()[_0xdf46[8]](function(){return _0x431fx4[_0xdf46[7]](200)[_0xdf46[6]](_0x431fx7)})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)});})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)});};exports[_0xdf46[20]]=function(_0x431fx3,_0x431fx4){ReportQueue[_0xdf46[14]](_0x431fx3[_0xdf46[13]][_0xdf46[12]])[_0xdf46[8]](function(_0x431fx7){if(!_0x431fx7){return _0x431fx4[_0xdf46[11]](404)};_0x431fx7[_0xdf46[20]]()[_0xdf46[8]](function(){return _0x431fx4[_0xdf46[11]](204)})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)});})[_0xdf46[5]](function(_0x431fx5){return handleError(_0x431fx4,_0x431fx5)})};function handleError(_0x431fx4,_0x431fx5){return _0x431fx4[_0xdf46[7]](500)[_0xdf46[6]](_0x431fx5)}
\ No newline at end of file
+var _0xd24b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xd24b[0];var _=require(_0xd24b[1]);var ReportQueue=require(_0xd24b[3])[_0xd24b[2]];exports[_0xd24b[4]]=function(_0xe300x3,_0xe300x4){ReportQueue[_0xd24b[9]]()[_0xd24b[8]](function(_0xe300x6){return _0xe300x4[_0xd24b[7]](200)[_0xd24b[6]](_0xe300x6)})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)})};exports[_0xd24b[10]]=function(_0xe300x3,_0xe300x4){ReportQueue[_0xd24b[10]]()[_0xd24b[8]](function(_0xe300x7){return _0xe300x4[_0xd24b[7]](200)[_0xd24b[6]](_0xe300x7)})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)})};exports[_0xd24b[11]]=function(_0xe300x3,_0xe300x4){ReportQueue[_0xd24b[15]](_0xe300x3[_0xd24b[14]][_0xd24b[13]])[_0xd24b[8]](function(_0xe300x8){if(!_0xe300x8){return _0xe300x4[_0xd24b[12]](404)};return _0xe300x4[_0xd24b[6]](_0xe300x8);})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)})};exports[_0xd24b[16]]=function(_0xe300x3,_0xe300x4){ReportQueue[_0xd24b[16]](_0xe300x3[_0xd24b[17]])[_0xd24b[8]](function(_0xe300x8){return _0xe300x4[_0xd24b[7]](201)[_0xd24b[6]](_0xe300x8)})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)})};exports[_0xd24b[18]]=function(_0xe300x3,_0xe300x4){if(_0xe300x3[_0xd24b[17]][_0xd24b[13]]){delete _0xe300x3[_0xd24b[17]][_0xd24b[13]]};ReportQueue[_0xd24b[15]](_0xe300x3[_0xd24b[14]][_0xd24b[13]])[_0xd24b[8]](function(_0xe300x8){if(!_0xe300x8){return _0xe300x4[_0xd24b[12]](404)};var _0xe300x9=_[_0xd24b[19]](_0xe300x8,_0xe300x3[_0xd24b[17]]);_0xe300x9[_0xd24b[20]]()[_0xd24b[8]](function(){return _0xe300x4[_0xd24b[7]](200)[_0xd24b[6]](_0xe300x8)})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)});})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)});};exports[_0xd24b[21]]=function(_0xe300x3,_0xe300x4){ReportQueue[_0xd24b[15]](_0xe300x3[_0xd24b[14]][_0xd24b[13]])[_0xd24b[8]](function(_0xe300x8){if(!_0xe300x8){return _0xe300x4[_0xd24b[12]](404)};_0xe300x8[_0xd24b[21]]()[_0xd24b[8]](function(){return _0xe300x4[_0xd24b[12]](204)})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)});})[_0xd24b[5]](function(_0xe300x5){return handleError(_0xe300x4,_0xe300x5)})};function handleError(_0xe300x4,_0xe300x5){return _0xe300x4[_0xd24b[7]](500)[_0xd24b[6]](_0xe300x5)}
\ No newline at end of file
-var _0x2949=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2949[0];var ReportQueue=require(_0x2949[2])[_0x2949[1]];exports[_0x2949[3]]=function(_0x155fx2){ReportQueue[_0x2949[4]](function(_0x155fx3){onSave(_0x155fx2,_0x155fx3)});ReportQueue[_0x2949[5]](function(_0x155fx3){onSave(_0x155fx2,_0x155fx3)});ReportQueue[_0x2949[6]](function(_0x155fx3){onRemove(_0x155fx2,_0x155fx3)});};function onSave(_0x155fx2,_0x155fx3,_0x155fx5){if(_0x155fx2[_0x2949[7]]===_0x2949[8]){_0x155fx2[_0x2949[10]](_0x2949[9],_0x155fx3)}}function onRemove(_0x155fx2,_0x155fx3,_0x155fx5){_0x155fx2[_0x2949[10]](_0x2949[11],_0x155fx3)}
\ No newline at end of file
+var _0x2022=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2022[0];var ReportQueue=require(_0x2022[2])[_0x2022[1]];exports[_0x2022[3]]=function(_0x59dbx2){ReportQueue[_0x2022[4]](function(_0x59dbx3){onSave(_0x59dbx2,_0x59dbx3)});ReportQueue[_0x2022[5]](function(_0x59dbx3){onSave(_0x59dbx2,_0x59dbx3)});ReportQueue[_0x2022[6]](function(_0x59dbx3){onRemove(_0x59dbx2,_0x59dbx3)});};function onSave(_0x59dbx2,_0x59dbx3,_0x59dbx5){if(_0x59dbx2[_0x2022[7]]===_0x2022[8]){_0x59dbx2[_0x2022[10]](_0x2022[9],_0x59dbx3)}}function onRemove(_0x59dbx2,_0x59dbx3,_0x59dbx5){_0x59dbx2[_0x2022[10]](_0x2022[11],_0x59dbx3)}
\ No newline at end of file
-var _0x2808=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x65\x78\x70\x6F\x72\x74\x73"];_0x2808[0];var express=require(_0x2808[1]);var controller=require(_0x2808[2]);var router=express.Router();router[_0x2808[5]](_0x2808[3],controller[_0x2808[4]]);router[_0x2808[8]](_0x2808[6],controller[_0x2808[7]]);router[_0x2808[9]](_0x2808[6],controller[_0x2808[7]]);module[_0x2808[10]]=router;
\ No newline at end of file
+var _0xafae=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x65\x78\x70\x6F\x72\x74\x73"];_0xafae[0];var express=require(_0xafae[1]);var controller=require(_0xafae[2]);var router=express.Router();router[_0xafae[5]](_0xafae[3],controller[_0xafae[4]]);router[_0xafae[8]](_0xafae[6],controller[_0xafae[7]]);router[_0xafae[9]](_0xafae[6],controller[_0xafae[7]]);module[_0xafae[10]]=router;
\ No newline at end of file
-var _0x193a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0x193a[0];var _=require(_0x193a[1]);var util=require(_0x193a[2]);var ReportTree=require(_0x193a[4])[_0x193a[3]];exports[_0x193a[5]]=function(_0xf4b9x4,_0xf4b9x5){ReportTree[_0x193a[11]]()[_0x193a[10]](function(_0xf4b9x7){if(!_0xf4b9x7){return _0xf4b9x5[_0x193a[7]](404)};return _0xf4b9x5[_0x193a[9]](200)[_0x193a[8]](_0xf4b9x7);})[_0x193a[6]](function(_0xf4b9x6){return handleError(_0xf4b9x5,_0xf4b9x6)})};exports[_0x193a[12]]=function(_0xf4b9x4,_0xf4b9x5){ReportTree[_0x193a[18]](_0xf4b9x4[_0x193a[17]][_0x193a[16]])[_0x193a[10]](function(_0xf4b9x8){if(!_0xf4b9x8){return _0xf4b9x5[_0x193a[7]](404)};var _0xf4b9x9=_[_0x193a[14]](_0xf4b9x8,_0xf4b9x4[_0x193a[13]]);_0xf4b9x9[_0x193a[15]]()[_0x193a[10]](function(){return _0xf4b9x5[_0x193a[9]](200)[_0x193a[8]](_0xf4b9x8)})[_0x193a[6]](function(_0xf4b9x6){return handleError(_0xf4b9x5,_0xf4b9x6)});})[_0x193a[6]](function(_0xf4b9x6){return handleError(_0xf4b9x5,_0xf4b9x6)})};function handleError(_0xf4b9x5,_0xf4b9x6){return _0xf4b9x5[_0x193a[9]](500)[_0x193a[8]](_0xf4b9x6)}
\ No newline at end of file
+var _0x9d11=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64"];_0x9d11[0];var _=require(_0x9d11[1]);var util=require(_0x9d11[2]);var ReportTree=require(_0x9d11[4])[_0x9d11[3]];exports[_0x9d11[5]]=function(_0x3c83x4,_0x3c83x5){ReportTree[_0x9d11[11]]()[_0x9d11[10]](function(_0x3c83x7){if(!_0x3c83x7){return _0x3c83x5[_0x9d11[7]](404)};return _0x3c83x5[_0x9d11[9]](200)[_0x9d11[8]](_0x3c83x7);})[_0x9d11[6]](function(_0x3c83x6){return handleError(_0x3c83x5,_0x3c83x6)})};exports[_0x9d11[12]]=function(_0x3c83x4,_0x3c83x5){ReportTree[_0x9d11[18]](_0x3c83x4[_0x9d11[17]][_0x9d11[16]])[_0x9d11[10]](function(_0x3c83x8){if(!_0x3c83x8){return _0x3c83x5[_0x9d11[7]](404)};var _0x3c83x9=_[_0x9d11[14]](_0x3c83x8,_0x3c83x4[_0x9d11[13]]);_0x3c83x9[_0x9d11[15]]()[_0x9d11[10]](function(){return _0x3c83x5[_0x9d11[9]](200)[_0x9d11[8]](_0x3c83x8)})[_0x9d11[6]](function(_0x3c83x6){return handleError(_0x3c83x5,_0x3c83x6)});})[_0x9d11[6]](function(_0x3c83x6){return handleError(_0x3c83x5,_0x3c83x6)})};function handleError(_0x3c83x5,_0x3c83x6){return _0x3c83x5[_0x9d11[9]](500)[_0x9d11[8]](_0x3c83x6)}
\ No newline at end of file
-var _0x7ca4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7ca4[0];var ReportTree=require(_0x7ca4[2])[_0x7ca4[1]];exports[_0x7ca4[3]]=function(_0x83dbx2){ReportTree[_0x7ca4[4]](function(_0x83dbx3){onSave(_0x83dbx2,_0x83dbx3)});ReportTree[_0x7ca4[5]](function(_0x83dbx3){onSave(_0x83dbx2,_0x83dbx3)});ReportTree[_0x7ca4[6]](function(_0x83dbx3){onRemove(_0x83dbx2,_0x83dbx3)});};function onSave(_0x83dbx2,_0x83dbx3,_0x83dbx5){_0x83dbx2[_0x7ca4[8]](_0x7ca4[7],_0x83dbx3)}function onRemove(_0x83dbx2,_0x83dbx3,_0x83dbx5){_0x83dbx2[_0x7ca4[8]](_0x7ca4[9],_0x83dbx3)}
\ No newline at end of file
+var _0x83ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x83ba[0];var ReportTree=require(_0x83ba[2])[_0x83ba[1]];exports[_0x83ba[3]]=function(_0x973dx2){ReportTree[_0x83ba[4]](function(_0x973dx3){onSave(_0x973dx2,_0x973dx3)});ReportTree[_0x83ba[5]](function(_0x973dx3){onSave(_0x973dx2,_0x973dx3)});ReportTree[_0x83ba[6]](function(_0x973dx3){onRemove(_0x973dx2,_0x973dx3)});};function onSave(_0x973dx2,_0x973dx3,_0x973dx5){_0x973dx2[_0x83ba[8]](_0x83ba[7],_0x973dx3)}function onRemove(_0x973dx2,_0x973dx3,_0x973dx5){_0x973dx2[_0x83ba[8]](_0x83ba[9],_0x973dx3)}
\ No newline at end of file
-var _0x646b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x67\x65\x74"];_0x646b[0];var should=require(_0x646b[1]);var app=require(_0x646b[2]);var request=require(_0x646b[3]);describe(_0x646b[4],function(){it(_0x646b[5],function(_0x6470x4){request(app)[_0x646b[13]](_0x646b[12])[_0x646b[11]](200)[_0x646b[11]](_0x646b[10],/json/)[_0x646b[9]](function(_0x6470x5,_0x6470x6){if(_0x6470x5){return _0x6470x4(_0x6470x5)};_0x6470x6[_0x646b[8]][_0x646b[1]][_0x646b[7]][_0x646b[6]](Array);_0x6470x4();})})});
\ No newline at end of file
+var _0xb429=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x67\x65\x74"];_0xb429[0];var should=require(_0xb429[1]);var app=require(_0xb429[2]);var request=require(_0xb429[3]);describe(_0xb429[4],function(){it(_0xb429[5],function(_0xaa81x4){request(app)[_0xb429[13]](_0xb429[12])[_0xb429[11]](200)[_0xb429[11]](_0xb429[10],/json/)[_0xb429[9]](function(_0xaa81x5,_0xaa81x6){if(_0xaa81x5){return _0xaa81x4(_0xaa81x5)};_0xaa81x6[_0xb429[8]][_0xb429[1]][_0xb429[7]][_0xb429[6]](Array);_0xaa81x4();})})});
\ No newline at end of file
-var _0xaf5a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xaf5a[0];var express=require(_0xaf5a[1]);var auth=require(_0xaf5a[2]);var controller=require(_0xaf5a[3]);var router=express.Router();router[_0xaf5a[7]](_0xaf5a[4],auth[_0xaf5a[5]](),controller[_0xaf5a[6]]);router[_0xaf5a[7]](_0xaf5a[8],auth[_0xaf5a[5]](),controller[_0xaf5a[9]]);router[_0xaf5a[7]](_0xaf5a[10],auth[_0xaf5a[5]](),controller[_0xaf5a[11]]);router[_0xaf5a[7]](_0xaf5a[12],auth[_0xaf5a[5]](),controller[_0xaf5a[13]]);router[_0xaf5a[16]](_0xaf5a[14],auth[_0xaf5a[5]](),controller[_0xaf5a[15]]);router[_0xaf5a[16]](_0xaf5a[4],auth[_0xaf5a[5]](),controller[_0xaf5a[17]]);router[_0xaf5a[19]](_0xaf5a[8],auth[_0xaf5a[5]](),controller[_0xaf5a[18]]);router[_0xaf5a[20]](_0xaf5a[8],auth[_0xaf5a[5]](),controller[_0xaf5a[18]]);router[_0xaf5a[22]](_0xaf5a[4],auth[_0xaf5a[5]](),controller[_0xaf5a[21]]);router[_0xaf5a[22]](_0xaf5a[8],auth[_0xaf5a[5]](),controller[_0xaf5a[23]]);module[_0xaf5a[24]]=router;
\ No newline at end of file
+var _0x7d02=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7d02[0];var express=require(_0x7d02[1]);var auth=require(_0x7d02[2]);var controller=require(_0x7d02[3]);var router=express.Router();router[_0x7d02[7]](_0x7d02[4],auth[_0x7d02[5]](),controller[_0x7d02[6]]);router[_0x7d02[7]](_0x7d02[8],auth[_0x7d02[5]](),controller[_0x7d02[9]]);router[_0x7d02[7]](_0x7d02[10],auth[_0x7d02[5]](),controller[_0x7d02[11]]);router[_0x7d02[7]](_0x7d02[12],auth[_0x7d02[5]](),controller[_0x7d02[13]]);router[_0x7d02[16]](_0x7d02[14],auth[_0x7d02[5]](),controller[_0x7d02[15]]);router[_0x7d02[16]](_0x7d02[4],auth[_0x7d02[5]](),controller[_0x7d02[17]]);router[_0x7d02[19]](_0x7d02[8],auth[_0x7d02[5]](),controller[_0x7d02[18]]);router[_0x7d02[20]](_0x7d02[8],auth[_0x7d02[5]](),controller[_0x7d02[18]]);router[_0x7d02[22]](_0x7d02[4],auth[_0x7d02[5]](),controller[_0x7d02[21]]);router[_0x7d02[22]](_0x7d02[8],auth[_0x7d02[5]](),controller[_0x7d02[23]]);module[_0x7d02[24]]=router;
\ No newline at end of file
-var _0x2a3a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x2a3a[0];var proxyquire=require(_0x2a3a[2])[_0x2a3a[1]]();var salesforceAccountCtrlStub={index:_0x2a3a[3],show:_0x2a3a[4],create:_0x2a3a[5],update:_0x2a3a[6],destroy:_0x2a3a[7]};var routerStub={get:sinon[_0x2a3a[8]](),put:sinon[_0x2a3a[8]](),patch:sinon[_0x2a3a[8]](),post:sinon[_0x2a3a[8]](),delete:sinon[_0x2a3a[8]]()};var salesforceAccountIndex=proxyquire(_0x2a3a[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceAccountCtrlStub});describe(_0x2a3a[10],function(){it(_0x2a3a[11],function(){expect(salesforceAccountIndex)[_0x2a3a[13]][_0x2a3a[12]](routerStub)});describe(_0x2a3a[14],function(){it(_0x2a3a[15],function(){expect(routerStub[_0x2a3a[21]][_0x2a3a[20]](_0x2a3a[19],_0x2a3a[3]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});describe(_0x2a3a[22],function(){it(_0x2a3a[23],function(){expect(routerStub[_0x2a3a[21]][_0x2a3a[20]](_0x2a3a[24],_0x2a3a[4]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});describe(_0x2a3a[25],function(){it(_0x2a3a[26],function(){expect(routerStub[_0x2a3a[27]][_0x2a3a[20]](_0x2a3a[19],_0x2a3a[5]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});describe(_0x2a3a[28],function(){it(_0x2a3a[29],function(){expect(routerStub[_0x2a3a[30]][_0x2a3a[20]](_0x2a3a[24],_0x2a3a[6]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});describe(_0x2a3a[31],function(){it(_0x2a3a[29],function(){expect(routerStub[_0x2a3a[32]][_0x2a3a[20]](_0x2a3a[24],_0x2a3a[6]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});describe(_0x2a3a[33],function(){it(_0x2a3a[34],function(){expect(routerStub[_0x2a3a[35]][_0x2a3a[20]](_0x2a3a[24],_0x2a3a[7]))[_0x2a3a[13]][_0x2a3a[18]][_0x2a3a[17]][_0x2a3a[16]]})});});
\ No newline at end of file
+var _0xada9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xada9[0];var proxyquire=require(_0xada9[2])[_0xada9[1]]();var salesforceAccountCtrlStub={index:_0xada9[3],show:_0xada9[4],create:_0xada9[5],update:_0xada9[6],destroy:_0xada9[7]};var routerStub={get:sinon[_0xada9[8]](),put:sinon[_0xada9[8]](),patch:sinon[_0xada9[8]](),post:sinon[_0xada9[8]](),delete:sinon[_0xada9[8]]()};var salesforceAccountIndex=proxyquire(_0xada9[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceAccountCtrlStub});describe(_0xada9[10],function(){it(_0xada9[11],function(){expect(salesforceAccountIndex)[_0xada9[13]][_0xada9[12]](routerStub)});describe(_0xada9[14],function(){it(_0xada9[15],function(){expect(routerStub[_0xada9[21]][_0xada9[20]](_0xada9[19],_0xada9[3]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});describe(_0xada9[22],function(){it(_0xada9[23],function(){expect(routerStub[_0xada9[21]][_0xada9[20]](_0xada9[24],_0xada9[4]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});describe(_0xada9[25],function(){it(_0xada9[26],function(){expect(routerStub[_0xada9[27]][_0xada9[20]](_0xada9[19],_0xada9[5]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});describe(_0xada9[28],function(){it(_0xada9[29],function(){expect(routerStub[_0xada9[30]][_0xada9[20]](_0xada9[24],_0xada9[6]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});describe(_0xada9[31],function(){it(_0xada9[29],function(){expect(routerStub[_0xada9[32]][_0xada9[20]](_0xada9[24],_0xada9[6]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});describe(_0xada9[33],function(){it(_0xada9[34],function(){expect(routerStub[_0xada9[35]][_0xada9[20]](_0xada9[24],_0xada9[7]))[_0xada9[13]][_0xada9[18]][_0xada9[17]][_0xada9[16]]})});});
\ No newline at end of file
-var _0xc60e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x6F\x67\x69\x6E","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x66\x69\x65\x6C\x64\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x54\x61\x73\x6B","\x73\x6F\x62\x6A\x65\x63\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xc60e[0];var _=require(_0xc60e[1]);var util=require(_0xc60e[2]);var jsforce=require(_0xc60e[3]);var SalesforceAccount=require(_0xc60e[5])[_0xc60e[4]];function handleError(_0x22dax6,_0x22dax7){_0x22dax7=_0x22dax7||500;return function(_0x22dax8){_0x22dax6[_0xc60e[7]](_0x22dax7)[_0xc60e[6]](_0x22dax8)};}function responseWithResult(_0x22dax6,_0x22dax7){_0x22dax7=_0x22dax7||200;return function(_0x22daxa){if(_0x22daxa){_0x22dax6[_0xc60e[7]](_0x22dax7)[_0xc60e[8]](_0x22daxa)}};}function handleEntityNotFound(_0x22dax6){return function(_0x22daxa){if(!_0x22daxa){_0x22dax6[_0xc60e[7]](404)[_0xc60e[9]]();return null;};return _0x22daxa;}}function saveUpdates(_0x22daxd){return function(_0x22daxa){return _0x22daxa[_0xc60e[11]](_0x22daxd)[_0xc60e[10]](function(_0x22daxe){return _0x22daxe})}}function removeEntity(_0x22dax6){return function(_0x22daxa){if(_0x22daxa){return _0x22daxa[_0xc60e[12]]()[_0xc60e[10]](function(){_0x22dax6[_0xc60e[7]](204)[_0xc60e[9]]()})}}}exports[_0xc60e[13]]=function(_0x22dax10,_0x22dax6){var _0x22dax11=[_0xc60e[14],_0xc60e[15],_0xc60e[16],_0xc60e[17]];var _0x22dax12=_0x22dax10[_0xc60e[19]][_0xc60e[18]]?parseInt(_0x22dax10[_0xc60e[19]][_0xc60e[18]],10):100;var _0x22dax13=_0x22dax10[_0xc60e[19]][_0xc60e[20]]?parseInt(_0x22dax10[_0xc60e[19]][_0xc60e[20]],10):0;var _0x22dax14={where:{},limit:_0x22dax12,offset:_0x22dax13*_0x22dax12};_[_0xc60e[34]](_0x22dax10[_0xc60e[19]],function(_0x22dax15,_0x22dax16){switch(_0x22dax16){case _0xc60e[18]:;case _0xc60e[20]:break ;;case _0xc60e[23]:_0x22dax14[_0xc60e[21]]=util[_0xc60e[26]](_0xc60e[22],_0x22dax10[_0xc60e[19]][_0xc60e[23]],_0x22dax10[_0xc60e[19]][_0xc60e[24]]||_0xc60e[25])||null;break ;;case _0xc60e[24]:break ;;case _0xc60e[32]:_0x22dax14[_0xc60e[28]][_0xc60e[27]]=[];_0x22dax11[_0xc60e[31]](function(_0x22dax17){var _0x22dax18={};_0x22dax18[_0x22dax17]={$like:_0xc60e[29]+_0x22dax15+_0xc60e[29]};_0x22dax14[_0xc60e[28]][_0xc60e[27]][_0xc60e[30]](_0x22dax18);});break ;;default:_0x22dax14[_0xc60e[28]][_0x22dax16]={$like:{}};_0x22dax14[_0xc60e[28]][_0x22dax16][_0xc60e[33]]=_0xc60e[29]+_0x22dax15+_0xc60e[29];;}});SalesforceAccount[_0xc60e[46]](_0x22dax14)[_0xc60e[10]](function(_0x22dax19){var _0x22dax1a=Math[_0xc60e[38]](_0x22dax19[_0xc60e[37]]/_0x22dax12);var _0x22dax1b=_0x22dax1a>(_0x22dax14[_0xc60e[39]]+1)?util[_0xc60e[26]](_0xc60e[40],_0x22dax10[_0xc60e[41]],_0x22dax10[_0xc60e[43]][_0xc60e[42]],_0x22dax10[_0xc60e[44]],_0x22dax13+1):null;var _0x22dax1c=_0x22dax13>0?util[_0xc60e[26]](_0xc60e[40],_0x22dax10[_0xc60e[41]],_0x22dax10[_0xc60e[43]][_0xc60e[42]],_0x22dax10[_0xc60e[44]],_0x22dax13-1):null;return _0x22dax6[_0xc60e[7]](200)[_0xc60e[6]]({count:_0x22dax19[_0xc60e[37]],rows:_0x22dax19[_0xc60e[45]],next_page:_0x22dax1b,previous_page:_0x22dax1c,total_pages:_0x22dax1a});})[_0xc60e[36]](function(_0x22dax8){return _0x22dax6[_0xc60e[7]](500)[_0xc60e[6]]({error:_0xc60e[35]})});};exports[_0xc60e[47]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[50]](_0x22dax10[_0xc60e[49]][_0xc60e[48]])[_0xc60e[10]](handleEntityNotFound(_0x22dax6))[_0xc60e[10]](responseWithResult(_0x22dax6))[_0xc60e[36]](handleError(_0x22dax6))};exports[_0xc60e[51]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[51]](_0x22dax10[_0xc60e[52]])[_0xc60e[10]](responseWithResult(_0x22dax6,201))[_0xc60e[36]](handleError(_0x22dax6))};exports[_0xc60e[53]]=function(_0x22dax10,_0x22dax6){if(_0x22dax10[_0xc60e[52]][_0xc60e[48]]){delete _0x22dax10[_0xc60e[52]][_0xc60e[48]]};SalesforceAccount[_0xc60e[50]](_0x22dax10[_0xc60e[49]][_0xc60e[48]])[_0xc60e[10]](handleEntityNotFound(_0x22dax6))[_0xc60e[10]](saveUpdates(_0x22dax10[_0xc60e[52]]))[_0xc60e[10]](responseWithResult(_0x22dax6))[_0xc60e[36]](handleError(_0x22dax6));};exports[_0xc60e[12]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[50]](_0x22dax10[_0xc60e[49]][_0xc60e[48]])[_0xc60e[10]](handleEntityNotFound(_0x22dax6))[_0xc60e[10]](removeEntity(_0x22dax6))[_0xc60e[36]](handleError(_0x22dax6))};exports[_0xc60e[54]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[50]](_0x22dax10[_0xc60e[49]][_0xc60e[48]])[_0xc60e[10]](handleEntityNotFound(_0x22dax6))[_0xc60e[10]](function(_0x22dax1d){var _0x22dax1e= new jsforce.Connection({oauth2:{loginUrl:_0x22dax1d[_0xc60e[17]],clientId:_0x22dax1d[_0xc60e[55]],clientSecret:_0x22dax1d[_0xc60e[56]]}});var _0x22dax1f=_0x22dax1d[_0xc60e[59]][_0xc60e[58]](_0x22dax1d[_0xc60e[57]]);_0x22dax1e[_0xc60e[61]](_0x22dax1d[_0xc60e[16]],_0x22dax1f,function(_0x22dax8,_0x22dax20){if(_0x22dax8){return _0x22dax6[_0xc60e[7]](400)[_0xc60e[6]](_0x22dax8)};return _0x22dax6[_0xc60e[60]](200);});})[_0xc60e[36]](handleError(_0x22dax6))};exports[_0xc60e[62]]=function(_0x22dax10,_0x22dax6){var _0x22dax21={};_0x22dax21[_0x22dax10[_0xc60e[49]][_0xc60e[63]]]=_0x22dax10[_0xc60e[52]][_0xc60e[64]];SalesforceAccount[_0xc60e[46]]({where:_0x22dax21})[_0xc60e[10]](function(_0x22dax19){if(_0x22dax19[_0xc60e[37]]){return _0x22dax6[_0xc60e[7]](200)[_0xc60e[6]]({isValid:false,value:_0x22dax10[_0xc60e[52]][_0xc60e[64]]})};return _0x22dax6[_0xc60e[7]](200)[_0xc60e[6]]({isValid:true,value:_0x22dax10[_0xc60e[52]][_0xc60e[64]]});})[_0xc60e[36]](function(_0x22dax8){return handleError(_0x22dax6,_0x22dax8)});};exports[_0xc60e[65]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[50]](_0x22dax10[_0xc60e[49]][_0xc60e[48]])[_0xc60e[10]](handleEntityNotFound(_0x22dax6))[_0xc60e[10]](function(_0x22dax1d){var _0x22dax1e= new jsforce.Connection({oauth2:{loginUrl:_0x22dax1d[_0xc60e[17]],clientId:_0x22dax1d[_0xc60e[55]],clientSecret:_0x22dax1d[_0xc60e[56]]}});var _0x22dax1f=_0x22dax1d[_0xc60e[59]][_0xc60e[58]](_0x22dax1d[_0xc60e[57]]);_0x22dax1e[_0xc60e[61]](_0x22dax1d[_0xc60e[16]],_0x22dax1f,function(_0x22dax8,_0x22dax20){if(_0x22dax8){return _0x22dax6[_0xc60e[7]](400)[_0xc60e[6]](_0x22dax8)};_0x22dax1e[_0xc60e[69]](_0xc60e[68])[_0xc60e[67]](function(_0x22dax8,_0x22dax22){if(_0x22dax8){return _0x22dax6[_0xc60e[7]](400)[_0xc60e[6]](_0x22dax8)};return _0x22dax6[_0xc60e[7]](200)[_0xc60e[6]](_0x22dax22[_0xc60e[66]]);});});})[_0xc60e[36]](handleError(_0x22dax6))};exports[_0xc60e[70]]=function(_0x22dax10,_0x22dax6){SalesforceAccount[_0xc60e[12]]({where:{id:_0x22dax10[_0xc60e[19]][_0xc60e[48]]},individualHooks:true})[_0xc60e[10]](function(){return _0x22dax6[_0xc60e[60]](204)})[_0xc60e[36]](function(_0x22dax8){return handleError(_0x22dax6,_0x22dax8)})};
\ No newline at end of file
+var _0xc90f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x6F\x67\x69\x6E","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x66\x69\x65\x6C\x64\x73","\x64\x65\x73\x63\x72\x69\x62\x65","\x54\x61\x73\x6B","\x73\x6F\x62\x6A\x65\x63\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xc90f[0];var _=require(_0xc90f[1]);var util=require(_0xc90f[2]);var jsforce=require(_0xc90f[3]);var SalesforceAccount=require(_0xc90f[5])[_0xc90f[4]];function handleError(_0xb086x6,_0xb086x7){_0xb086x7=_0xb086x7||500;return function(_0xb086x8){_0xb086x6[_0xc90f[7]](_0xb086x7)[_0xc90f[6]](_0xb086x8)};}function responseWithResult(_0xb086x6,_0xb086x7){_0xb086x7=_0xb086x7||200;return function(_0xb086xa){if(_0xb086xa){_0xb086x6[_0xc90f[7]](_0xb086x7)[_0xc90f[8]](_0xb086xa)}};}function handleEntityNotFound(_0xb086x6){return function(_0xb086xa){if(!_0xb086xa){_0xb086x6[_0xc90f[7]](404)[_0xc90f[9]]();return null;};return _0xb086xa;}}function saveUpdates(_0xb086xd){return function(_0xb086xa){return _0xb086xa[_0xc90f[11]](_0xb086xd)[_0xc90f[10]](function(_0xb086xe){return _0xb086xe})}}function removeEntity(_0xb086x6){return function(_0xb086xa){if(_0xb086xa){return _0xb086xa[_0xc90f[12]]()[_0xc90f[10]](function(){_0xb086x6[_0xc90f[7]](204)[_0xc90f[9]]()})}}}exports[_0xc90f[13]]=function(_0xb086x10,_0xb086x6){var _0xb086x11=[_0xc90f[14],_0xc90f[15],_0xc90f[16],_0xc90f[17]];var _0xb086x12=_0xb086x10[_0xc90f[19]][_0xc90f[18]]?parseInt(_0xb086x10[_0xc90f[19]][_0xc90f[18]],10):100;var _0xb086x13=_0xb086x10[_0xc90f[19]][_0xc90f[20]]?parseInt(_0xb086x10[_0xc90f[19]][_0xc90f[20]],10):0;var _0xb086x14={where:{},limit:_0xb086x12,offset:_0xb086x13*_0xb086x12};_[_0xc90f[34]](_0xb086x10[_0xc90f[19]],function(_0xb086x15,_0xb086x16){switch(_0xb086x16){case _0xc90f[18]:;case _0xc90f[20]:break ;;case _0xc90f[23]:_0xb086x14[_0xc90f[21]]=util[_0xc90f[26]](_0xc90f[22],_0xb086x10[_0xc90f[19]][_0xc90f[23]],_0xb086x10[_0xc90f[19]][_0xc90f[24]]||_0xc90f[25])||null;break ;;case _0xc90f[24]:break ;;case _0xc90f[32]:_0xb086x14[_0xc90f[28]][_0xc90f[27]]=[];_0xb086x11[_0xc90f[31]](function(_0xb086x17){var _0xb086x18={};_0xb086x18[_0xb086x17]={$like:_0xc90f[29]+_0xb086x15+_0xc90f[29]};_0xb086x14[_0xc90f[28]][_0xc90f[27]][_0xc90f[30]](_0xb086x18);});break ;;default:_0xb086x14[_0xc90f[28]][_0xb086x16]={$like:{}};_0xb086x14[_0xc90f[28]][_0xb086x16][_0xc90f[33]]=_0xc90f[29]+_0xb086x15+_0xc90f[29];;}});SalesforceAccount[_0xc90f[46]](_0xb086x14)[_0xc90f[10]](function(_0xb086x19){var _0xb086x1a=Math[_0xc90f[38]](_0xb086x19[_0xc90f[37]]/_0xb086x12);var _0xb086x1b=_0xb086x1a>(_0xb086x14[_0xc90f[39]]+1)?util[_0xc90f[26]](_0xc90f[40],_0xb086x10[_0xc90f[41]],_0xb086x10[_0xc90f[43]][_0xc90f[42]],_0xb086x10[_0xc90f[44]],_0xb086x13+1):null;var _0xb086x1c=_0xb086x13>0?util[_0xc90f[26]](_0xc90f[40],_0xb086x10[_0xc90f[41]],_0xb086x10[_0xc90f[43]][_0xc90f[42]],_0xb086x10[_0xc90f[44]],_0xb086x13-1):null;return _0xb086x6[_0xc90f[7]](200)[_0xc90f[6]]({count:_0xb086x19[_0xc90f[37]],rows:_0xb086x19[_0xc90f[45]],next_page:_0xb086x1b,previous_page:_0xb086x1c,total_pages:_0xb086x1a});})[_0xc90f[36]](function(_0xb086x8){return _0xb086x6[_0xc90f[7]](500)[_0xc90f[6]]({error:_0xc90f[35]})});};exports[_0xc90f[47]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[50]](_0xb086x10[_0xc90f[49]][_0xc90f[48]])[_0xc90f[10]](handleEntityNotFound(_0xb086x6))[_0xc90f[10]](responseWithResult(_0xb086x6))[_0xc90f[36]](handleError(_0xb086x6))};exports[_0xc90f[51]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[51]](_0xb086x10[_0xc90f[52]])[_0xc90f[10]](responseWithResult(_0xb086x6,201))[_0xc90f[36]](handleError(_0xb086x6))};exports[_0xc90f[53]]=function(_0xb086x10,_0xb086x6){if(_0xb086x10[_0xc90f[52]][_0xc90f[48]]){delete _0xb086x10[_0xc90f[52]][_0xc90f[48]]};SalesforceAccount[_0xc90f[50]](_0xb086x10[_0xc90f[49]][_0xc90f[48]])[_0xc90f[10]](handleEntityNotFound(_0xb086x6))[_0xc90f[10]](saveUpdates(_0xb086x10[_0xc90f[52]]))[_0xc90f[10]](responseWithResult(_0xb086x6))[_0xc90f[36]](handleError(_0xb086x6));};exports[_0xc90f[12]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[50]](_0xb086x10[_0xc90f[49]][_0xc90f[48]])[_0xc90f[10]](handleEntityNotFound(_0xb086x6))[_0xc90f[10]](removeEntity(_0xb086x6))[_0xc90f[36]](handleError(_0xb086x6))};exports[_0xc90f[54]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[50]](_0xb086x10[_0xc90f[49]][_0xc90f[48]])[_0xc90f[10]](handleEntityNotFound(_0xb086x6))[_0xc90f[10]](function(_0xb086x1d){var _0xb086x1e= new jsforce.Connection({oauth2:{loginUrl:_0xb086x1d[_0xc90f[17]],clientId:_0xb086x1d[_0xc90f[55]],clientSecret:_0xb086x1d[_0xc90f[56]]}});var _0xb086x1f=_0xb086x1d[_0xc90f[59]][_0xc90f[58]](_0xb086x1d[_0xc90f[57]]);_0xb086x1e[_0xc90f[61]](_0xb086x1d[_0xc90f[16]],_0xb086x1f,function(_0xb086x8,_0xb086x20){if(_0xb086x8){return _0xb086x6[_0xc90f[7]](400)[_0xc90f[6]](_0xb086x8)};return _0xb086x6[_0xc90f[60]](200);});})[_0xc90f[36]](handleError(_0xb086x6))};exports[_0xc90f[62]]=function(_0xb086x10,_0xb086x6){var _0xb086x21={};_0xb086x21[_0xb086x10[_0xc90f[49]][_0xc90f[63]]]=_0xb086x10[_0xc90f[52]][_0xc90f[64]];SalesforceAccount[_0xc90f[46]]({where:_0xb086x21})[_0xc90f[10]](function(_0xb086x19){if(_0xb086x19[_0xc90f[37]]){return _0xb086x6[_0xc90f[7]](200)[_0xc90f[6]]({isValid:false,value:_0xb086x10[_0xc90f[52]][_0xc90f[64]]})};return _0xb086x6[_0xc90f[7]](200)[_0xc90f[6]]({isValid:true,value:_0xb086x10[_0xc90f[52]][_0xc90f[64]]});})[_0xc90f[36]](function(_0xb086x8){return handleError(_0xb086x6,_0xb086x8)});};exports[_0xc90f[65]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[50]](_0xb086x10[_0xc90f[49]][_0xc90f[48]])[_0xc90f[10]](handleEntityNotFound(_0xb086x6))[_0xc90f[10]](function(_0xb086x1d){var _0xb086x1e= new jsforce.Connection({oauth2:{loginUrl:_0xb086x1d[_0xc90f[17]],clientId:_0xb086x1d[_0xc90f[55]],clientSecret:_0xb086x1d[_0xc90f[56]]}});var _0xb086x1f=_0xb086x1d[_0xc90f[59]][_0xc90f[58]](_0xb086x1d[_0xc90f[57]]);_0xb086x1e[_0xc90f[61]](_0xb086x1d[_0xc90f[16]],_0xb086x1f,function(_0xb086x8,_0xb086x20){if(_0xb086x8){return _0xb086x6[_0xc90f[7]](400)[_0xc90f[6]](_0xb086x8)};_0xb086x1e[_0xc90f[69]](_0xc90f[68])[_0xc90f[67]](function(_0xb086x8,_0xb086x22){if(_0xb086x8){return _0xb086x6[_0xc90f[7]](400)[_0xc90f[6]](_0xb086x8)};return _0xb086x6[_0xc90f[7]](200)[_0xc90f[6]](_0xb086x22[_0xc90f[66]]);});});})[_0xc90f[36]](handleError(_0xb086x6))};exports[_0xc90f[70]]=function(_0xb086x10,_0xb086x6){SalesforceAccount[_0xc90f[12]]({where:{id:_0xb086x10[_0xc90f[19]][_0xc90f[48]]},individualHooks:true})[_0xc90f[10]](function(){return _0xb086x6[_0xc90f[60]](204)})[_0xc90f[36]](function(_0xb086x8){return handleError(_0xb086x6,_0xb086x8)})};
\ No newline at end of file
-var _0x3bd8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3bd8[0];var SalesforceAccount=require(_0x3bd8[2])[_0x3bd8[1]];exports[_0x3bd8[3]]=function(_0xc1a2x2){SalesforceAccount[_0x3bd8[4]](function(_0xc1a2x3){onSave(_0xc1a2x2,_0xc1a2x3)});SalesforceAccount[_0x3bd8[5]](function(_0xc1a2x3){onRemove(_0xc1a2x2,_0xc1a2x3)});};function onSave(_0xc1a2x2,_0xc1a2x3,_0xc1a2x5){_0xc1a2x2[_0x3bd8[7]](_0x3bd8[6],_0xc1a2x3)}function onRemove(_0xc1a2x2,_0xc1a2x3,_0xc1a2x5){_0xc1a2x2[_0x3bd8[7]](_0x3bd8[8],_0xc1a2x3)}
\ No newline at end of file
+var _0x35fb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x35fb[0];var SalesforceAccount=require(_0x35fb[2])[_0x35fb[1]];exports[_0x35fb[3]]=function(_0x20b8x2){SalesforceAccount[_0x35fb[4]](function(_0x20b8x3){onSave(_0x20b8x2,_0x20b8x3)});SalesforceAccount[_0x35fb[5]](function(_0x20b8x3){onRemove(_0x20b8x2,_0x20b8x3)});};function onSave(_0x20b8x2,_0x20b8x3,_0x20b8x5){_0x20b8x2[_0x35fb[7]](_0x35fb[6],_0x20b8x3)}function onRemove(_0x20b8x2,_0x20b8x3,_0x20b8x5){_0x20b8x2[_0x35fb[7]](_0x35fb[8],_0x20b8x3)}
\ No newline at end of file
-var _0xc3bb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xc3bb[0];var express=require(_0xc3bb[1]);var auth=require(_0xc3bb[2]);var controller=require(_0xc3bb[3]);var router=express.Router();router[_0xc3bb[7]](_0xc3bb[4],auth[_0xc3bb[5]](),controller[_0xc3bb[6]]);router[_0xc3bb[7]](_0xc3bb[8],auth[_0xc3bb[5]](),controller[_0xc3bb[9]]);router[_0xc3bb[11]](_0xc3bb[4],auth[_0xc3bb[5]](),controller[_0xc3bb[10]]);router[_0xc3bb[13]](_0xc3bb[8],auth[_0xc3bb[5]](),controller[_0xc3bb[12]]);router[_0xc3bb[11]](_0xc3bb[14],auth[_0xc3bb[5]](),controller[_0xc3bb[15]]);router[_0xc3bb[16]](_0xc3bb[8],auth[_0xc3bb[5]](),controller[_0xc3bb[12]]);router[_0xc3bb[18]](_0xc3bb[8],auth[_0xc3bb[5]](),controller[_0xc3bb[17]]);module[_0xc3bb[19]]=router;
\ No newline at end of file
+var _0x3314=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x3314[0];var express=require(_0x3314[1]);var auth=require(_0x3314[2]);var controller=require(_0x3314[3]);var router=express.Router();router[_0x3314[7]](_0x3314[4],auth[_0x3314[5]](),controller[_0x3314[6]]);router[_0x3314[7]](_0x3314[8],auth[_0x3314[5]](),controller[_0x3314[9]]);router[_0x3314[11]](_0x3314[4],auth[_0x3314[5]](),controller[_0x3314[10]]);router[_0x3314[13]](_0x3314[8],auth[_0x3314[5]](),controller[_0x3314[12]]);router[_0x3314[11]](_0x3314[14],auth[_0x3314[5]](),controller[_0x3314[15]]);router[_0x3314[16]](_0x3314[8],auth[_0x3314[5]](),controller[_0x3314[12]]);router[_0x3314[18]](_0x3314[8],auth[_0x3314[5]](),controller[_0x3314[17]]);module[_0x3314[19]]=router;
\ No newline at end of file
-var _0x81c7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x81c7[0];var proxyquire=require(_0x81c7[2])[_0x81c7[1]]();var salesforceConfigurationCtrlStub={index:_0x81c7[3],show:_0x81c7[4],create:_0x81c7[5],update:_0x81c7[6],destroy:_0x81c7[7]};var routerStub={get:sinon[_0x81c7[8]](),put:sinon[_0x81c7[8]](),patch:sinon[_0x81c7[8]](),post:sinon[_0x81c7[8]](),delete:sinon[_0x81c7[8]]()};var salesforceConfigurationIndex=proxyquire(_0x81c7[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceConfigurationCtrlStub});describe(_0x81c7[10],function(){it(_0x81c7[11],function(){expect(salesforceConfigurationIndex)[_0x81c7[13]][_0x81c7[12]](routerStub)});describe(_0x81c7[14],function(){it(_0x81c7[15],function(){expect(routerStub[_0x81c7[21]][_0x81c7[20]](_0x81c7[19],_0x81c7[3]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});describe(_0x81c7[22],function(){it(_0x81c7[23],function(){expect(routerStub[_0x81c7[21]][_0x81c7[20]](_0x81c7[24],_0x81c7[4]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});describe(_0x81c7[25],function(){it(_0x81c7[26],function(){expect(routerStub[_0x81c7[27]][_0x81c7[20]](_0x81c7[19],_0x81c7[5]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});describe(_0x81c7[28],function(){it(_0x81c7[29],function(){expect(routerStub[_0x81c7[30]][_0x81c7[20]](_0x81c7[24],_0x81c7[6]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});describe(_0x81c7[31],function(){it(_0x81c7[29],function(){expect(routerStub[_0x81c7[32]][_0x81c7[20]](_0x81c7[24],_0x81c7[6]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});describe(_0x81c7[33],function(){it(_0x81c7[34],function(){expect(routerStub[_0x81c7[35]][_0x81c7[20]](_0x81c7[24],_0x81c7[7]))[_0x81c7[13]][_0x81c7[18]][_0x81c7[17]][_0x81c7[16]]})});});
\ No newline at end of file
+var _0x8bbb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x8bbb[0];var proxyquire=require(_0x8bbb[2])[_0x8bbb[1]]();var salesforceConfigurationCtrlStub={index:_0x8bbb[3],show:_0x8bbb[4],create:_0x8bbb[5],update:_0x8bbb[6],destroy:_0x8bbb[7]};var routerStub={get:sinon[_0x8bbb[8]](),put:sinon[_0x8bbb[8]](),patch:sinon[_0x8bbb[8]](),post:sinon[_0x8bbb[8]](),delete:sinon[_0x8bbb[8]]()};var salesforceConfigurationIndex=proxyquire(_0x8bbb[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceConfigurationCtrlStub});describe(_0x8bbb[10],function(){it(_0x8bbb[11],function(){expect(salesforceConfigurationIndex)[_0x8bbb[13]][_0x8bbb[12]](routerStub)});describe(_0x8bbb[14],function(){it(_0x8bbb[15],function(){expect(routerStub[_0x8bbb[21]][_0x8bbb[20]](_0x8bbb[19],_0x8bbb[3]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});describe(_0x8bbb[22],function(){it(_0x8bbb[23],function(){expect(routerStub[_0x8bbb[21]][_0x8bbb[20]](_0x8bbb[24],_0x8bbb[4]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});describe(_0x8bbb[25],function(){it(_0x8bbb[26],function(){expect(routerStub[_0x8bbb[27]][_0x8bbb[20]](_0x8bbb[19],_0x8bbb[5]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});describe(_0x8bbb[28],function(){it(_0x8bbb[29],function(){expect(routerStub[_0x8bbb[30]][_0x8bbb[20]](_0x8bbb[24],_0x8bbb[6]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});describe(_0x8bbb[31],function(){it(_0x8bbb[29],function(){expect(routerStub[_0x8bbb[32]][_0x8bbb[20]](_0x8bbb[24],_0x8bbb[6]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});describe(_0x8bbb[33],function(){it(_0x8bbb[34],function(){expect(routerStub[_0x8bbb[35]][_0x8bbb[20]](_0x8bbb[24],_0x8bbb[7]))[_0x8bbb[13]][_0x8bbb[18]][_0x8bbb[17]][_0x8bbb[16]]})});});
\ No newline at end of file
-var _0xa2c2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xa2c2[0];var _=require(_0xa2c2[1]);var SalesforceConfiguration=require(_0xa2c2[3])[_0xa2c2[2]];var SalesforceField=require(_0xa2c2[3])[_0xa2c2[4]];function handleError(_0x60ccx5,_0x60ccx6){_0x60ccx6=_0x60ccx6||500;return function(_0x60ccx7){_0x60ccx5[_0xa2c2[6]](_0x60ccx6)[_0xa2c2[5]](_0x60ccx7)};}function responseWithResult(_0x60ccx5,_0x60ccx6){_0x60ccx6=_0x60ccx6||200;return function(_0x60ccx9){if(_0x60ccx9){_0x60ccx5[_0xa2c2[6]](_0x60ccx6)[_0xa2c2[7]](_0x60ccx9)}};}function handleEntityNotFound(_0x60ccx5){return function(_0x60ccx9){if(!_0x60ccx9){_0x60ccx5[_0xa2c2[6]](404)[_0xa2c2[8]]();return null;};return _0x60ccx9;}}function saveUpdates(_0x60ccxc){return function(_0x60ccx9){return _0x60ccx9[_0xa2c2[10]](_0x60ccxc)[_0xa2c2[9]](function(_0x60ccxd){return _0x60ccxd})}}function removeEntity(_0x60ccx5){return function(_0x60ccx9){if(_0x60ccx9){return _0x60ccx9[_0xa2c2[11]]()[_0xa2c2[9]](function(){_0x60ccx5[_0xa2c2[6]](204)[_0xa2c2[8]]()})}}}exports[_0xa2c2[12]]=function(_0x60ccxf,_0x60ccx5){SalesforceConfiguration[_0xa2c2[15]]({where:_0x60ccxf[_0xa2c2[14]]})[_0xa2c2[9]](responseWithResult(_0x60ccx5))[_0xa2c2[13]](handleError(_0x60ccx5))};exports[_0xa2c2[16]]=function(_0x60ccxf,_0x60ccx5){SalesforceConfiguration[_0xa2c2[22]]({where:{id:_0x60ccxf[_0xa2c2[18]][_0xa2c2[17]]},include:[{model:SalesforceField,as:_0xa2c2[19]},{model:SalesforceField,as:_0xa2c2[20]},{model:SalesforceField,as:_0xa2c2[21]}]})[_0xa2c2[9]](handleEntityNotFound(_0x60ccx5))[_0xa2c2[9]](responseWithResult(_0x60ccx5))[_0xa2c2[13]](handleError(_0x60ccx5))};exports[_0xa2c2[23]]=function(_0x60ccxf,_0x60ccx5){SalesforceConfiguration[_0xa2c2[23]](_0x60ccxf[_0xa2c2[24]])[_0xa2c2[9]](responseWithResult(_0x60ccx5,201))[_0xa2c2[13]](handleError(_0x60ccx5))};exports[_0xa2c2[25]]=function(_0x60ccxf,_0x60ccx5){if(_0x60ccxf[_0xa2c2[24]][_0xa2c2[17]]){delete _0x60ccxf[_0xa2c2[24]][_0xa2c2[17]]};SalesforceConfiguration[_0xa2c2[26]](_0x60ccxf[_0xa2c2[18]][_0xa2c2[17]])[_0xa2c2[9]](handleEntityNotFound(_0x60ccx5))[_0xa2c2[9]](saveUpdates(_0x60ccxf[_0xa2c2[24]]))[_0xa2c2[9]](responseWithResult(_0x60ccx5))[_0xa2c2[13]](handleError(_0x60ccx5));};exports[_0xa2c2[11]]=function(_0x60ccxf,_0x60ccx5){SalesforceConfiguration[_0xa2c2[26]](_0x60ccxf[_0xa2c2[18]][_0xa2c2[17]])[_0xa2c2[9]](handleEntityNotFound(_0x60ccx5))[_0xa2c2[9]](removeEntity(_0x60ccx5))[_0xa2c2[13]](handleError(_0x60ccx5))};exports[_0xa2c2[27]]=function(_0x60ccxf,_0x60ccx5,_0x60ccx10){var _0x60ccx11;SalesforceConfiguration[_0xa2c2[26]](_0x60ccxf[_0xa2c2[18]][_0xa2c2[17]])[_0xa2c2[9]](handleEntityNotFound(_0x60ccx5))[_0xa2c2[9]](function(_0x60ccx14){_0x60ccx11=_0x60ccx14;return SalesforceField[_0xa2c2[23]](_0x60ccxf[_0xa2c2[24]]);})[_0xa2c2[9]](function(_0x60ccx13){switch(_0x60ccxf[_0xa2c2[18]][_0xa2c2[35]]){case _0xa2c2[30]:return [_0x60ccx11[_0xa2c2[29]](_0x60ccx13),_0x60ccx13];;case _0xa2c2[32]:return [_0x60ccx11[_0xa2c2[31]](_0x60ccx13),_0x60ccx13];;case _0xa2c2[34]:return [_0x60ccx11[_0xa2c2[33]](_0x60ccx13),_0x60ccx13];;}})[_0xa2c2[28]](function(_0x60ccx12,_0x60ccx13){return _0x60ccx5[_0xa2c2[6]](201)[_0xa2c2[7]](_0x60ccx13)})[_0xa2c2[13]](handleError(_0x60ccx5));};
\ No newline at end of file
+var _0xe4e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xe4e8[0];var _=require(_0xe4e8[1]);var SalesforceConfiguration=require(_0xe4e8[3])[_0xe4e8[2]];var SalesforceField=require(_0xe4e8[3])[_0xe4e8[4]];function handleError(_0x2eb1x5,_0x2eb1x6){_0x2eb1x6=_0x2eb1x6||500;return function(_0x2eb1x7){_0x2eb1x5[_0xe4e8[6]](_0x2eb1x6)[_0xe4e8[5]](_0x2eb1x7)};}function responseWithResult(_0x2eb1x5,_0x2eb1x6){_0x2eb1x6=_0x2eb1x6||200;return function(_0x2eb1x9){if(_0x2eb1x9){_0x2eb1x5[_0xe4e8[6]](_0x2eb1x6)[_0xe4e8[7]](_0x2eb1x9)}};}function handleEntityNotFound(_0x2eb1x5){return function(_0x2eb1x9){if(!_0x2eb1x9){_0x2eb1x5[_0xe4e8[6]](404)[_0xe4e8[8]]();return null;};return _0x2eb1x9;}}function saveUpdates(_0x2eb1xc){return function(_0x2eb1x9){return _0x2eb1x9[_0xe4e8[10]](_0x2eb1xc)[_0xe4e8[9]](function(_0x2eb1xd){return _0x2eb1xd})}}function removeEntity(_0x2eb1x5){return function(_0x2eb1x9){if(_0x2eb1x9){return _0x2eb1x9[_0xe4e8[11]]()[_0xe4e8[9]](function(){_0x2eb1x5[_0xe4e8[6]](204)[_0xe4e8[8]]()})}}}exports[_0xe4e8[12]]=function(_0x2eb1xf,_0x2eb1x5){SalesforceConfiguration[_0xe4e8[15]]({where:_0x2eb1xf[_0xe4e8[14]]})[_0xe4e8[9]](responseWithResult(_0x2eb1x5))[_0xe4e8[13]](handleError(_0x2eb1x5))};exports[_0xe4e8[16]]=function(_0x2eb1xf,_0x2eb1x5){SalesforceConfiguration[_0xe4e8[22]]({where:{id:_0x2eb1xf[_0xe4e8[18]][_0xe4e8[17]]},include:[{model:SalesforceField,as:_0xe4e8[19]},{model:SalesforceField,as:_0xe4e8[20]},{model:SalesforceField,as:_0xe4e8[21]}]})[_0xe4e8[9]](handleEntityNotFound(_0x2eb1x5))[_0xe4e8[9]](responseWithResult(_0x2eb1x5))[_0xe4e8[13]](handleError(_0x2eb1x5))};exports[_0xe4e8[23]]=function(_0x2eb1xf,_0x2eb1x5){SalesforceConfiguration[_0xe4e8[23]](_0x2eb1xf[_0xe4e8[24]])[_0xe4e8[9]](responseWithResult(_0x2eb1x5,201))[_0xe4e8[13]](handleError(_0x2eb1x5))};exports[_0xe4e8[25]]=function(_0x2eb1xf,_0x2eb1x5){if(_0x2eb1xf[_0xe4e8[24]][_0xe4e8[17]]){delete _0x2eb1xf[_0xe4e8[24]][_0xe4e8[17]]};SalesforceConfiguration[_0xe4e8[26]](_0x2eb1xf[_0xe4e8[18]][_0xe4e8[17]])[_0xe4e8[9]](handleEntityNotFound(_0x2eb1x5))[_0xe4e8[9]](saveUpdates(_0x2eb1xf[_0xe4e8[24]]))[_0xe4e8[9]](responseWithResult(_0x2eb1x5))[_0xe4e8[13]](handleError(_0x2eb1x5));};exports[_0xe4e8[11]]=function(_0x2eb1xf,_0x2eb1x5){SalesforceConfiguration[_0xe4e8[26]](_0x2eb1xf[_0xe4e8[18]][_0xe4e8[17]])[_0xe4e8[9]](handleEntityNotFound(_0x2eb1x5))[_0xe4e8[9]](removeEntity(_0x2eb1x5))[_0xe4e8[13]](handleError(_0x2eb1x5))};exports[_0xe4e8[27]]=function(_0x2eb1xf,_0x2eb1x5,_0x2eb1x10){var _0x2eb1x11;SalesforceConfiguration[_0xe4e8[26]](_0x2eb1xf[_0xe4e8[18]][_0xe4e8[17]])[_0xe4e8[9]](handleEntityNotFound(_0x2eb1x5))[_0xe4e8[9]](function(_0x2eb1x14){_0x2eb1x11=_0x2eb1x14;return SalesforceField[_0xe4e8[23]](_0x2eb1xf[_0xe4e8[24]]);})[_0xe4e8[9]](function(_0x2eb1x13){switch(_0x2eb1xf[_0xe4e8[18]][_0xe4e8[35]]){case _0xe4e8[30]:return [_0x2eb1x11[_0xe4e8[29]](_0x2eb1x13),_0x2eb1x13];;case _0xe4e8[32]:return [_0x2eb1x11[_0xe4e8[31]](_0x2eb1x13),_0x2eb1x13];;case _0xe4e8[34]:return [_0x2eb1x11[_0xe4e8[33]](_0x2eb1x13),_0x2eb1x13];;}})[_0xe4e8[28]](function(_0x2eb1x12,_0x2eb1x13){return _0x2eb1x5[_0xe4e8[6]](201)[_0xe4e8[7]](_0x2eb1x13)})[_0xe4e8[13]](handleError(_0x2eb1x5));};
\ No newline at end of file
-var _0x6993=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6993[0];var SalesforceConfiguration=require(_0x6993[2])[_0x6993[1]];exports[_0x6993[3]]=function(_0x64eax2){SalesforceConfiguration[_0x6993[4]](function(_0x64eax3){onSave(_0x64eax2,_0x64eax3)});SalesforceConfiguration[_0x6993[5]](function(_0x64eax3){onRemove(_0x64eax2,_0x64eax3)});};function onSave(_0x64eax2,_0x64eax3,_0x64eax5){_0x64eax2[_0x6993[7]](_0x6993[6],_0x64eax3)}function onRemove(_0x64eax2,_0x64eax3,_0x64eax5){_0x64eax2[_0x6993[7]](_0x6993[8],_0x64eax3)}
\ No newline at end of file
+var _0xe0a3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe0a3[0];var SalesforceConfiguration=require(_0xe0a3[2])[_0xe0a3[1]];exports[_0xe0a3[3]]=function(_0xf97ax2){SalesforceConfiguration[_0xe0a3[4]](function(_0xf97ax3){onSave(_0xf97ax2,_0xf97ax3)});SalesforceConfiguration[_0xe0a3[5]](function(_0xf97ax3){onRemove(_0xf97ax2,_0xf97ax3)});};function onSave(_0xf97ax2,_0xf97ax3,_0xf97ax5){_0xf97ax2[_0xe0a3[7]](_0xe0a3[6],_0xf97ax3)}function onRemove(_0xf97ax2,_0xf97ax3,_0xf97ax5){_0xf97ax2[_0xe0a3[7]](_0xe0a3[8],_0xf97ax3)}
\ No newline at end of file
-var _0x12f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x12f1[0];var express=require(_0x12f1[1]);var auth=require(_0x12f1[2]);var controller=require(_0x12f1[3]);var router=express.Router();router[_0x12f1[7]](_0x12f1[4],auth[_0x12f1[5]](),controller[_0x12f1[6]]);router[_0x12f1[7]](_0x12f1[8],auth[_0x12f1[5]](),controller[_0x12f1[9]]);router[_0x12f1[11]](_0x12f1[4],auth[_0x12f1[5]](),controller[_0x12f1[10]]);router[_0x12f1[13]](_0x12f1[8],auth[_0x12f1[5]](),controller[_0x12f1[12]]);router[_0x12f1[14]](_0x12f1[8],auth[_0x12f1[5]](),controller[_0x12f1[12]]);router[_0x12f1[16]](_0x12f1[8],auth[_0x12f1[5]](),controller[_0x12f1[15]]);module[_0x12f1[17]]=router;
\ No newline at end of file
+var _0xfefd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xfefd[0];var express=require(_0xfefd[1]);var auth=require(_0xfefd[2]);var controller=require(_0xfefd[3]);var router=express.Router();router[_0xfefd[7]](_0xfefd[4],auth[_0xfefd[5]](),controller[_0xfefd[6]]);router[_0xfefd[7]](_0xfefd[8],auth[_0xfefd[5]](),controller[_0xfefd[9]]);router[_0xfefd[11]](_0xfefd[4],auth[_0xfefd[5]](),controller[_0xfefd[10]]);router[_0xfefd[13]](_0xfefd[8],auth[_0xfefd[5]](),controller[_0xfefd[12]]);router[_0xfefd[14]](_0xfefd[8],auth[_0xfefd[5]](),controller[_0xfefd[12]]);router[_0xfefd[16]](_0xfefd[8],auth[_0xfefd[5]](),controller[_0xfefd[15]]);module[_0xfefd[17]]=router;
\ No newline at end of file
-var _0xfb88=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xfb88[0];var proxyquire=require(_0xfb88[2])[_0xfb88[1]]();var salesforceFieldCtrlStub={index:_0xfb88[3],show:_0xfb88[4],create:_0xfb88[5],update:_0xfb88[6],destroy:_0xfb88[7]};var routerStub={get:sinon[_0xfb88[8]](),put:sinon[_0xfb88[8]](),patch:sinon[_0xfb88[8]](),post:sinon[_0xfb88[8]](),delete:sinon[_0xfb88[8]]()};var salesforceFieldIndex=proxyquire(_0xfb88[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceFieldCtrlStub});describe(_0xfb88[10],function(){it(_0xfb88[11],function(){expect(salesforceFieldIndex)[_0xfb88[13]][_0xfb88[12]](routerStub)});describe(_0xfb88[14],function(){it(_0xfb88[15],function(){expect(routerStub[_0xfb88[21]][_0xfb88[20]](_0xfb88[19],_0xfb88[3]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});describe(_0xfb88[22],function(){it(_0xfb88[23],function(){expect(routerStub[_0xfb88[21]][_0xfb88[20]](_0xfb88[24],_0xfb88[4]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});describe(_0xfb88[25],function(){it(_0xfb88[26],function(){expect(routerStub[_0xfb88[27]][_0xfb88[20]](_0xfb88[19],_0xfb88[5]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});describe(_0xfb88[28],function(){it(_0xfb88[29],function(){expect(routerStub[_0xfb88[30]][_0xfb88[20]](_0xfb88[24],_0xfb88[6]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});describe(_0xfb88[31],function(){it(_0xfb88[29],function(){expect(routerStub[_0xfb88[32]][_0xfb88[20]](_0xfb88[24],_0xfb88[6]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});describe(_0xfb88[33],function(){it(_0xfb88[34],function(){expect(routerStub[_0xfb88[35]][_0xfb88[20]](_0xfb88[24],_0xfb88[7]))[_0xfb88[13]][_0xfb88[18]][_0xfb88[17]][_0xfb88[16]]})});});
\ No newline at end of file
+var _0xe270=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xe270[0];var proxyquire=require(_0xe270[2])[_0xe270[1]]();var salesforceFieldCtrlStub={index:_0xe270[3],show:_0xe270[4],create:_0xe270[5],update:_0xe270[6],destroy:_0xe270[7]};var routerStub={get:sinon[_0xe270[8]](),put:sinon[_0xe270[8]](),patch:sinon[_0xe270[8]](),post:sinon[_0xe270[8]](),delete:sinon[_0xe270[8]]()};var salesforceFieldIndex=proxyquire(_0xe270[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":salesforceFieldCtrlStub});describe(_0xe270[10],function(){it(_0xe270[11],function(){expect(salesforceFieldIndex)[_0xe270[13]][_0xe270[12]](routerStub)});describe(_0xe270[14],function(){it(_0xe270[15],function(){expect(routerStub[_0xe270[21]][_0xe270[20]](_0xe270[19],_0xe270[3]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});describe(_0xe270[22],function(){it(_0xe270[23],function(){expect(routerStub[_0xe270[21]][_0xe270[20]](_0xe270[24],_0xe270[4]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});describe(_0xe270[25],function(){it(_0xe270[26],function(){expect(routerStub[_0xe270[27]][_0xe270[20]](_0xe270[19],_0xe270[5]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});describe(_0xe270[28],function(){it(_0xe270[29],function(){expect(routerStub[_0xe270[30]][_0xe270[20]](_0xe270[24],_0xe270[6]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});describe(_0xe270[31],function(){it(_0xe270[29],function(){expect(routerStub[_0xe270[32]][_0xe270[20]](_0xe270[24],_0xe270[6]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});describe(_0xe270[33],function(){it(_0xe270[34],function(){expect(routerStub[_0xe270[35]][_0xe270[20]](_0xe270[24],_0xe270[7]))[_0xe270[13]][_0xe270[18]][_0xe270[17]][_0xe270[16]]})});});
\ No newline at end of file
-var _0xa817=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0xa817[0];var _=require(_0xa817[1]);var SalesforceField=require(_0xa817[3])[_0xa817[2]];function handleError(_0xbce3x4,_0xbce3x5){_0xbce3x5=_0xbce3x5||500;return function(_0xbce3x6){_0xbce3x4[_0xa817[5]](_0xbce3x5)[_0xa817[4]](_0xbce3x6)};}function responseWithResult(_0xbce3x4,_0xbce3x5){_0xbce3x5=_0xbce3x5||200;return function(_0xbce3x8){if(_0xbce3x8){_0xbce3x4[_0xa817[5]](_0xbce3x5)[_0xa817[6]](_0xbce3x8)}};}function handleEntityNotFound(_0xbce3x4){return function(_0xbce3x8){if(!_0xbce3x8){_0xbce3x4[_0xa817[5]](404)[_0xa817[7]]();return null;};return _0xbce3x8;}}function saveUpdates(_0xbce3xb){return function(_0xbce3x8){return _0xbce3x8[_0xa817[9]](_0xbce3xb)[_0xa817[8]](function(_0xbce3xc){return _0xbce3xc})}}function removeEntity(_0xbce3x4){return function(_0xbce3x8){if(_0xbce3x8){return _0xbce3x8[_0xa817[10]]()[_0xa817[8]](function(){_0xbce3x4[_0xa817[5]](204)[_0xa817[7]]()})}}}exports[_0xa817[11]]=function(_0xbce3xe,_0xbce3x4){SalesforceField[_0xa817[13]]()[_0xa817[8]](responseWithResult(_0xbce3x4))[_0xa817[12]](handleError(_0xbce3x4))};exports[_0xa817[14]]=function(_0xbce3xe,_0xbce3x4){SalesforceField[_0xa817[17]](_0xbce3xe[_0xa817[16]][_0xa817[15]])[_0xa817[8]](handleEntityNotFound(_0xbce3x4))[_0xa817[8]](responseWithResult(_0xbce3x4))[_0xa817[12]](handleError(_0xbce3x4))};exports[_0xa817[18]]=function(_0xbce3xe,_0xbce3x4){SalesforceField[_0xa817[18]](_0xbce3xe[_0xa817[19]])[_0xa817[8]](responseWithResult(_0xbce3x4,201))[_0xa817[12]](handleError(_0xbce3x4))};exports[_0xa817[20]]=function(_0xbce3xe,_0xbce3x4){if(_0xbce3xe[_0xa817[19]][_0xa817[15]]){delete _0xbce3xe[_0xa817[19]][_0xa817[15]]};SalesforceField[_0xa817[17]](_0xbce3xe[_0xa817[16]][_0xa817[15]])[_0xa817[8]](handleEntityNotFound(_0xbce3x4))[_0xa817[8]](saveUpdates(_0xbce3xe[_0xa817[19]]))[_0xa817[8]](responseWithResult(_0xbce3x4))[_0xa817[12]](handleError(_0xbce3x4));};exports[_0xa817[10]]=function(_0xbce3xe,_0xbce3x4){SalesforceField[_0xa817[17]](_0xbce3xe[_0xa817[16]][_0xa817[15]])[_0xa817[8]](handleEntityNotFound(_0xbce3x4))[_0xa817[8]](removeEntity(_0xbce3x4))[_0xa817[12]](handleError(_0xbce3x4))};
\ No newline at end of file
+var _0xcc69=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0xcc69[0];var _=require(_0xcc69[1]);var SalesforceField=require(_0xcc69[3])[_0xcc69[2]];function handleError(_0x7d32x4,_0x7d32x5){_0x7d32x5=_0x7d32x5||500;return function(_0x7d32x6){_0x7d32x4[_0xcc69[5]](_0x7d32x5)[_0xcc69[4]](_0x7d32x6)};}function responseWithResult(_0x7d32x4,_0x7d32x5){_0x7d32x5=_0x7d32x5||200;return function(_0x7d32x8){if(_0x7d32x8){_0x7d32x4[_0xcc69[5]](_0x7d32x5)[_0xcc69[6]](_0x7d32x8)}};}function handleEntityNotFound(_0x7d32x4){return function(_0x7d32x8){if(!_0x7d32x8){_0x7d32x4[_0xcc69[5]](404)[_0xcc69[7]]();return null;};return _0x7d32x8;}}function saveUpdates(_0x7d32xb){return function(_0x7d32x8){return _0x7d32x8[_0xcc69[9]](_0x7d32xb)[_0xcc69[8]](function(_0x7d32xc){return _0x7d32xc})}}function removeEntity(_0x7d32x4){return function(_0x7d32x8){if(_0x7d32x8){return _0x7d32x8[_0xcc69[10]]()[_0xcc69[8]](function(){_0x7d32x4[_0xcc69[5]](204)[_0xcc69[7]]()})}}}exports[_0xcc69[11]]=function(_0x7d32xe,_0x7d32x4){SalesforceField[_0xcc69[13]]()[_0xcc69[8]](responseWithResult(_0x7d32x4))[_0xcc69[12]](handleError(_0x7d32x4))};exports[_0xcc69[14]]=function(_0x7d32xe,_0x7d32x4){SalesforceField[_0xcc69[17]](_0x7d32xe[_0xcc69[16]][_0xcc69[15]])[_0xcc69[8]](handleEntityNotFound(_0x7d32x4))[_0xcc69[8]](responseWithResult(_0x7d32x4))[_0xcc69[12]](handleError(_0x7d32x4))};exports[_0xcc69[18]]=function(_0x7d32xe,_0x7d32x4){SalesforceField[_0xcc69[18]](_0x7d32xe[_0xcc69[19]])[_0xcc69[8]](responseWithResult(_0x7d32x4,201))[_0xcc69[12]](handleError(_0x7d32x4))};exports[_0xcc69[20]]=function(_0x7d32xe,_0x7d32x4){if(_0x7d32xe[_0xcc69[19]][_0xcc69[15]]){delete _0x7d32xe[_0xcc69[19]][_0xcc69[15]]};SalesforceField[_0xcc69[17]](_0x7d32xe[_0xcc69[16]][_0xcc69[15]])[_0xcc69[8]](handleEntityNotFound(_0x7d32x4))[_0xcc69[8]](saveUpdates(_0x7d32xe[_0xcc69[19]]))[_0xcc69[8]](responseWithResult(_0x7d32x4))[_0xcc69[12]](handleError(_0x7d32x4));};exports[_0xcc69[10]]=function(_0x7d32xe,_0x7d32x4){SalesforceField[_0xcc69[17]](_0x7d32xe[_0xcc69[16]][_0xcc69[15]])[_0xcc69[8]](handleEntityNotFound(_0x7d32x4))[_0xcc69[8]](removeEntity(_0x7d32x4))[_0xcc69[12]](handleError(_0x7d32x4))};
\ No newline at end of file
-var _0xc743=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xc743[0];var SalesforceField=require(_0xc743[2])[_0xc743[1]];exports[_0xc743[3]]=function(_0x8812x2){SalesforceField[_0xc743[4]](function(_0x8812x3){onSave(_0x8812x2,_0x8812x3)});SalesforceField[_0xc743[5]](function(_0x8812x3){onRemove(_0x8812x2,_0x8812x3)});};function onSave(_0x8812x2,_0x8812x3,_0x8812x5){_0x8812x2[_0xc743[7]](_0xc743[6],_0x8812x3)}function onRemove(_0x8812x2,_0x8812x3,_0x8812x5){_0x8812x2[_0xc743[7]](_0xc743[8],_0x8812x3)}
\ No newline at end of file
+var _0xd7f4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xd7f4[0];var SalesforceField=require(_0xd7f4[2])[_0xd7f4[1]];exports[_0xd7f4[3]]=function(_0x39f5x2){SalesforceField[_0xd7f4[4]](function(_0x39f5x3){onSave(_0x39f5x2,_0x39f5x3)});SalesforceField[_0xd7f4[5]](function(_0x39f5x3){onRemove(_0x39f5x2,_0x39f5x3)});};function onSave(_0x39f5x2,_0x39f5x3,_0x39f5x5){_0x39f5x2[_0xd7f4[7]](_0xd7f4[6],_0x39f5x3)}function onRemove(_0x39f5x2,_0x39f5x3,_0x39f5x5){_0x39f5x2[_0xd7f4[7]](_0xd7f4[8],_0x39f5x3)}
\ No newline at end of file
-var _0xa7a9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x2F\x69\x6E\x66\x6F","\x67\x65\x74\x49\x6E\x66\x6F","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa7a9[0];var express=require(_0xa7a9[1]);var controller=require(_0xa7a9[2]);var auth=require(_0xa7a9[3]);var router=express.Router();router[_0xa7a9[7]](_0xa7a9[4],auth[_0xa7a9[5]](),controller[_0xa7a9[6]]);router[_0xa7a9[7]](_0xa7a9[8],auth[_0xa7a9[5]](),controller[_0xa7a9[9]]);router[_0xa7a9[7]](_0xa7a9[10],controller[_0xa7a9[11]]);router[_0xa7a9[7]](_0xa7a9[12],auth[_0xa7a9[5]](),controller[_0xa7a9[13]]);router[_0xa7a9[15]](_0xa7a9[4],auth[_0xa7a9[5]](),controller[_0xa7a9[14]]);router[_0xa7a9[17]](_0xa7a9[12],auth[_0xa7a9[5]](),controller[_0xa7a9[16]]);router[_0xa7a9[18]](_0xa7a9[12],auth[_0xa7a9[5]](),controller[_0xa7a9[16]]);router[_0xa7a9[20]](_0xa7a9[12],auth[_0xa7a9[5]](),controller[_0xa7a9[19]]);module[_0xa7a9[21]]=router;
\ No newline at end of file
+var _0x42b9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x2F\x69\x6E\x66\x6F","\x67\x65\x74\x49\x6E\x66\x6F","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x42b9[0];var express=require(_0x42b9[1]);var controller=require(_0x42b9[2]);var auth=require(_0x42b9[3]);var router=express.Router();router[_0x42b9[7]](_0x42b9[4],auth[_0x42b9[5]](),controller[_0x42b9[6]]);router[_0x42b9[7]](_0x42b9[8],auth[_0x42b9[5]](),controller[_0x42b9[9]]);router[_0x42b9[7]](_0x42b9[10],controller[_0x42b9[11]]);router[_0x42b9[7]](_0x42b9[12],auth[_0x42b9[5]](),controller[_0x42b9[13]]);router[_0x42b9[15]](_0x42b9[4],auth[_0x42b9[5]](),controller[_0x42b9[14]]);router[_0x42b9[17]](_0x42b9[12],auth[_0x42b9[5]](),controller[_0x42b9[16]]);router[_0x42b9[18]](_0x42b9[12],auth[_0x42b9[5]](),controller[_0x42b9[16]]);router[_0x42b9[20]](_0x42b9[12],auth[_0x42b9[5]](),controller[_0x42b9[19]]);module[_0x42b9[21]]=router;
\ No newline at end of file
-var _0x51e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x6C\x6F\x67","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x6D\x69\x6E\x5F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x64\x65\x78\x4F\x66","\x76\x61\x6C\x75\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x49\x6E\x66\x6F","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x70\x61\x63\x6B\x61\x67\x65\x2E\x6A\x73\x6F\x6E","\x6E\x61\x6D\x65","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x51e0[0];var _=require(_0x51e0[1]);var Settings=require(_0x51e0[3])[_0x51e0[2]];var Agent=require(_0x51e0[3])[_0x51e0[4]];exports[_0x51e0[5]]=function(_0x13edx4,_0x13edx5){Settings[_0x51e0[10]]()[_0x51e0[9]](function(_0x13edx7){return _0x13edx5[_0x51e0[8]](200)[_0x51e0[7]](_0x13edx7)})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)})};exports[_0x51e0[11]]=function(_0x13edx4,_0x13edx5){Settings[_0x51e0[19]]()[_0x51e0[9]](function(_0x13edx8){Agent[_0x51e0[10]]({where:{internal:{$gte:_0x13edx8[_0x51e0[16]]}}})[_0x51e0[9]](function(_0x13edx9){var _0x13edxa=_[_0x51e0[14]](_[_0x51e0[14]](_0x13edx9,_0x51e0[13]),_0x51e0[15]);var _0x13edxb=_0x13edx8[_0x51e0[16]];var _0x13edxc={value:null};do{if(_0x13edxa[_0x51e0[17]](_0x13edxb)=== -1){_0x13edxc[_0x51e0[18]]=_0x13edxb}else {_0x13edxb++}}while(!_0x13edxc[_0x51e0[18]]);;return _0x13edx5[_0x51e0[8]](200)[_0x51e0[7]](_0x13edxc);})[_0x51e0[6]](function(_0x13edx6){console[_0x51e0[12]](_0x13edx6);return handleError(_0x13edx5,_0x13edx6);})})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)})};exports[_0x51e0[20]]=function(_0x13edx4,_0x13edx5){var _0x13edxd=require(_0x51e0[21]);return _0x13edx5[_0x51e0[8]](200)[_0x51e0[7]]({name:_0x13edxd[_0x51e0[22]],version:_0x13edxd[_0x51e0[23]],engines:_0x13edxd[_0x51e0[24]]});};exports[_0x51e0[25]]=function(_0x13edx4,_0x13edx5){Settings[_0x51e0[29]](_0x13edx4[_0x51e0[28]][_0x51e0[27]])[_0x51e0[9]](function(_0x13edxe){if(!_0x13edxe){return _0x13edx5[_0x51e0[26]](404)};return _0x13edx5[_0x51e0[7]](_0x13edxe);})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)})};exports[_0x51e0[30]]=function(_0x13edx4,_0x13edx5){Settings[_0x51e0[30]](_0x13edx4[_0x51e0[31]])[_0x51e0[9]](function(_0x13edxe){return _0x13edx5[_0x51e0[8]](201)[_0x51e0[7]](_0x13edxe)})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)})};exports[_0x51e0[32]]=function(_0x13edx4,_0x13edx5){if(_0x13edx4[_0x51e0[31]][_0x51e0[27]]){delete _0x13edx4[_0x51e0[31]][_0x51e0[27]]};Settings[_0x51e0[35]]({where:{id:_0x13edx4[_0x51e0[28]][_0x51e0[27]]}})[_0x51e0[9]](function(_0x13edxe){if(!_0x13edxe){return _0x13edx5[_0x51e0[26]](404)};var _0x13edxf=_[_0x51e0[33]](_0x13edxe,_0x13edx4[_0x51e0[31]]);_0x13edxf[_0x51e0[34]]()[_0x51e0[9]](function(){return _0x13edx5[_0x51e0[8]](200)[_0x51e0[7]](_0x13edxe)})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)});})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)});};exports[_0x51e0[36]]=function(_0x13edx4,_0x13edx5){Settings[_0x51e0[35]]({where:{id:_0x13edx4[_0x51e0[28]][_0x51e0[27]]}})[_0x51e0[9]](function(_0x13edxe){if(!_0x13edxe){return _0x13edx5[_0x51e0[26]](404)};_0x13edxe[_0x51e0[36]]()[_0x51e0[9]](function(){return _0x13edx5[_0x51e0[26]](204)})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)});})[_0x51e0[6]](function(_0x13edx6){return handleError(_0x13edx5,_0x13edx6)})};function handleError(_0x13edx5,_0x13edx6){return _0x13edx5[_0x51e0[8]](500)[_0x51e0[7]](_0x13edx6)}
\ No newline at end of file
+var _0x9307=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x6C\x6F\x67","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x6D\x69\x6E\x5F\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x64\x65\x78\x4F\x66","\x76\x61\x6C\x75\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x65\x74\x49\x6E\x66\x6F","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x70\x61\x63\x6B\x61\x67\x65\x2E\x6A\x73\x6F\x6E","\x6E\x61\x6D\x65","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65\x73","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x9307[0];var _=require(_0x9307[1]);var Settings=require(_0x9307[3])[_0x9307[2]];var Agent=require(_0x9307[3])[_0x9307[4]];exports[_0x9307[5]]=function(_0xa6d5x4,_0xa6d5x5){Settings[_0x9307[10]]()[_0x9307[9]](function(_0xa6d5x7){return _0xa6d5x5[_0x9307[8]](200)[_0x9307[7]](_0xa6d5x7)})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)})};exports[_0x9307[11]]=function(_0xa6d5x4,_0xa6d5x5){Settings[_0x9307[19]]()[_0x9307[9]](function(_0xa6d5x8){Agent[_0x9307[10]]({where:{internal:{$gte:_0xa6d5x8[_0x9307[16]]}}})[_0x9307[9]](function(_0xa6d5x9){var _0xa6d5xa=_[_0x9307[14]](_[_0x9307[14]](_0xa6d5x9,_0x9307[13]),_0x9307[15]);var _0xa6d5xb=_0xa6d5x8[_0x9307[16]];var _0xa6d5xc={value:null};do{if(_0xa6d5xa[_0x9307[17]](_0xa6d5xb)=== -1){_0xa6d5xc[_0x9307[18]]=_0xa6d5xb}else {_0xa6d5xb++}}while(!_0xa6d5xc[_0x9307[18]]);;return _0xa6d5x5[_0x9307[8]](200)[_0x9307[7]](_0xa6d5xc);})[_0x9307[6]](function(_0xa6d5x6){console[_0x9307[12]](_0xa6d5x6);return handleError(_0xa6d5x5,_0xa6d5x6);})})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)})};exports[_0x9307[20]]=function(_0xa6d5x4,_0xa6d5x5){var _0xa6d5xd=require(_0x9307[21]);return _0xa6d5x5[_0x9307[8]](200)[_0x9307[7]]({name:_0xa6d5xd[_0x9307[22]],version:_0xa6d5xd[_0x9307[23]],engines:_0xa6d5xd[_0x9307[24]]});};exports[_0x9307[25]]=function(_0xa6d5x4,_0xa6d5x5){Settings[_0x9307[29]](_0xa6d5x4[_0x9307[28]][_0x9307[27]])[_0x9307[9]](function(_0xa6d5xe){if(!_0xa6d5xe){return _0xa6d5x5[_0x9307[26]](404)};return _0xa6d5x5[_0x9307[7]](_0xa6d5xe);})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)})};exports[_0x9307[30]]=function(_0xa6d5x4,_0xa6d5x5){Settings[_0x9307[30]](_0xa6d5x4[_0x9307[31]])[_0x9307[9]](function(_0xa6d5xe){return _0xa6d5x5[_0x9307[8]](201)[_0x9307[7]](_0xa6d5xe)})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)})};exports[_0x9307[32]]=function(_0xa6d5x4,_0xa6d5x5){if(_0xa6d5x4[_0x9307[31]][_0x9307[27]]){delete _0xa6d5x4[_0x9307[31]][_0x9307[27]]};Settings[_0x9307[35]]({where:{id:_0xa6d5x4[_0x9307[28]][_0x9307[27]]}})[_0x9307[9]](function(_0xa6d5xe){if(!_0xa6d5xe){return _0xa6d5x5[_0x9307[26]](404)};var _0xa6d5xf=_[_0x9307[33]](_0xa6d5xe,_0xa6d5x4[_0x9307[31]]);_0xa6d5xf[_0x9307[34]]()[_0x9307[9]](function(){return _0xa6d5x5[_0x9307[8]](200)[_0x9307[7]](_0xa6d5xe)})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)});})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)});};exports[_0x9307[36]]=function(_0xa6d5x4,_0xa6d5x5){Settings[_0x9307[35]]({where:{id:_0xa6d5x4[_0x9307[28]][_0x9307[27]]}})[_0x9307[9]](function(_0xa6d5xe){if(!_0xa6d5xe){return _0xa6d5x5[_0x9307[26]](404)};_0xa6d5xe[_0x9307[36]]()[_0x9307[9]](function(){return _0xa6d5x5[_0x9307[26]](204)})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)});})[_0x9307[6]](function(_0xa6d5x6){return handleError(_0xa6d5x5,_0xa6d5x6)})};function handleError(_0xa6d5x5,_0xa6d5x6){return _0xa6d5x5[_0x9307[8]](500)[_0x9307[7]](_0xa6d5x6)}
\ No newline at end of file
-var _0x24bb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x74\x74\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x65\x74\x74\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x24bb[0];var Settings=require(_0x24bb[2])[_0x24bb[1]];exports[_0x24bb[3]]=function(_0x9b4cx2){Settings[_0x24bb[4]](function(_0x9b4cx3){onSave(_0x9b4cx2,_0x9b4cx3)});Settings[_0x24bb[5]](function(_0x9b4cx3){onRemove(_0x9b4cx2,_0x9b4cx3)});};function onSave(_0x9b4cx2,_0x9b4cx3,_0x9b4cx5){_0x9b4cx2[_0x24bb[7]](_0x24bb[6],_0x9b4cx3)}function onRemove(_0x9b4cx2,_0x9b4cx3,_0x9b4cx5){_0x9b4cx2[_0x24bb[7]](_0x24bb[8],_0x9b4cx3)}
\ No newline at end of file
+var _0x3272=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x65\x74\x74\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x65\x74\x74\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3272[0];var Settings=require(_0x3272[2])[_0x3272[1]];exports[_0x3272[3]]=function(_0xdb49x2){Settings[_0x3272[4]](function(_0xdb49x3){onSave(_0xdb49x2,_0xdb49x3)});Settings[_0x3272[5]](function(_0xdb49x3){onRemove(_0xdb49x2,_0xdb49x3)});};function onSave(_0xdb49x2,_0xdb49x3,_0xdb49x5){_0xdb49x2[_0x3272[7]](_0x3272[6],_0xdb49x3)}function onRemove(_0xdb49x2,_0xdb49x3,_0xdb49x5){_0xdb49x2[_0x3272[7]](_0x3272[8],_0xdb49x3)}
\ No newline at end of file
-var _0xde11=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x67\x65\x74"];_0xde11[0];var should=require(_0xde11[1]);var app=require(_0xde11[2]);var request=require(_0xde11[3]);describe(_0xde11[4],function(){it(_0xde11[5],function(_0xc104x4){request(app)[_0xde11[13]](_0xde11[12])[_0xde11[11]](200)[_0xde11[11]](_0xde11[10],/json/)[_0xde11[9]](function(_0xc104x5,_0xc104x6){if(_0xc104x5){return _0xc104x4(_0xc104x5)};_0xc104x6[_0xde11[8]][_0xde11[1]][_0xde11[7]][_0xde11[6]](Array);_0xc104x4();})})});
\ No newline at end of file
+var _0x574e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x67\x65\x74"];_0x574e[0];var should=require(_0x574e[1]);var app=require(_0x574e[2]);var request=require(_0x574e[3]);describe(_0x574e[4],function(){it(_0x574e[5],function(_0x3134x4){request(app)[_0x574e[13]](_0x574e[12])[_0x574e[11]](200)[_0x574e[11]](_0x574e[10],/json/)[_0x574e[9]](function(_0x3134x5,_0x3134x6){if(_0x3134x5){return _0x3134x4(_0x3134x5)};_0x3134x6[_0x574e[8]][_0x574e[1]][_0x574e[7]][_0x574e[6]](Array);_0x3134x4();})})});
\ No newline at end of file
-var _0x2fe7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6F\x64\x62\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x2fe7[0];var express=require(_0x2fe7[1]);var controller=require(_0x2fe7[2]);var auth=require(_0x2fe7[3]);var router=express.Router();router[_0x2fe7[7]](_0x2fe7[4],auth[_0x2fe7[5]](),controller[_0x2fe7[6]]);router[_0x2fe7[7]](_0x2fe7[8],auth[_0x2fe7[5]](),controller[_0x2fe7[9]]);router[_0x2fe7[11]](_0x2fe7[4],auth[_0x2fe7[5]](),controller[_0x2fe7[10]]);router[_0x2fe7[11]](_0x2fe7[12],auth[_0x2fe7[5]](),controller[_0x2fe7[13]]);router[_0x2fe7[15]](_0x2fe7[8],auth[_0x2fe7[5]](),controller[_0x2fe7[14]]);router[_0x2fe7[16]](_0x2fe7[8],auth[_0x2fe7[5]](),controller[_0x2fe7[14]]);router[_0x2fe7[18]](_0x2fe7[8],auth[_0x2fe7[5]](),controller[_0x2fe7[17]]);module[_0x2fe7[19]]=router;
\ No newline at end of file
+var _0x2c2e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6F\x64\x62\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x2c2e[0];var express=require(_0x2c2e[1]);var controller=require(_0x2c2e[2]);var auth=require(_0x2c2e[3]);var router=express.Router();router[_0x2c2e[7]](_0x2c2e[4],auth[_0x2c2e[5]](),controller[_0x2c2e[6]]);router[_0x2c2e[7]](_0x2c2e[8],auth[_0x2c2e[5]](),controller[_0x2c2e[9]]);router[_0x2c2e[11]](_0x2c2e[4],auth[_0x2c2e[5]](),controller[_0x2c2e[10]]);router[_0x2c2e[11]](_0x2c2e[12],auth[_0x2c2e[5]](),controller[_0x2c2e[13]]);router[_0x2c2e[15]](_0x2c2e[8],auth[_0x2c2e[5]](),controller[_0x2c2e[14]]);router[_0x2c2e[16]](_0x2c2e[8],auth[_0x2c2e[5]](),controller[_0x2c2e[14]]);router[_0x2c2e[18]](_0x2c2e[8],auth[_0x2c2e[5]](),controller[_0x2c2e[17]]);module[_0x2c2e[19]]=router;
\ No newline at end of file
-var _0xc512=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6F\x64\x62\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4F\x44\x42\x43","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xc512[0];var _=require(_0xc512[1]);var SquareOdbc=require(_0xc512[3])[_0xc512[2]];var util=require(_0xc512[4]);exports[_0xc512[5]]=function(_0x53ddx4,_0x53ddx5){var _0x53ddx6=[_0xc512[6],_0xc512[7]];var _0x53ddx7=_0x53ddx4[_0xc512[9]][_0xc512[8]]?parseInt(_0x53ddx4[_0xc512[9]][_0xc512[8]],10):100;var _0x53ddx8=_0x53ddx4[_0xc512[9]][_0xc512[10]]?parseInt(_0x53ddx4[_0xc512[9]][_0xc512[10]],10):0;var _0x53ddx9={where:{},limit:_0x53ddx7,offset:_0x53ddx8*_0x53ddx7};_[_0xc512[24]](_0x53ddx4[_0xc512[9]],function(_0x53ddxa,_0x53ddxb){switch(_0x53ddxb){case _0xc512[8]:;case _0xc512[10]:break ;;case _0xc512[13]:_0x53ddx9[_0xc512[11]]=util[_0xc512[16]](_0xc512[12],_0x53ddx4[_0xc512[9]][_0xc512[13]],_0x53ddx4[_0xc512[9]][_0xc512[14]]||_0xc512[15])||null;break ;;case _0xc512[14]:break ;;case _0xc512[22]:_0x53ddx9[_0xc512[18]][_0xc512[17]]=[];_0x53ddx6[_0xc512[21]](function(_0x53ddxc){var _0x53ddxd={};_0x53ddxd[_0x53ddxc]={$like:_0xc512[19]+_0x53ddxa+_0xc512[19]};_0x53ddx9[_0xc512[18]][_0xc512[17]][_0xc512[20]](_0x53ddxd);});break ;;default:_0x53ddx9[_0xc512[18]][_0x53ddxb]={$like:{}};_0x53ddx9[_0xc512[18]][_0x53ddxb][_0xc512[23]]=_0xc512[19]+_0x53ddxa+_0xc512[19];;}});SquareOdbc[_0xc512[39]](_0x53ddx9)[_0xc512[38]](function(_0x53ddxf){var _0x53ddx10=Math[_0xc512[30]](_0x53ddxf[_0xc512[29]]/_0x53ddx7);var _0x53ddx11=_0x53ddx10>(_0x53ddx9[_0xc512[31]]+1)?util[_0xc512[16]](_0xc512[32],_0x53ddx4[_0xc512[33]],_0x53ddx4[_0xc512[35]][_0xc512[34]],_0x53ddx4[_0xc512[36]],_0x53ddx8+1):null;var _0x53ddx12=_0x53ddx8>0?util[_0xc512[16]](_0xc512[32],_0x53ddx4[_0xc512[33]],_0x53ddx4[_0xc512[35]][_0xc512[34]],_0x53ddx4[_0xc512[36]],_0x53ddx8-1):null;_0x53ddx5[_0xc512[27]](200)[_0xc512[26]]({count:_0x53ddxf[_0xc512[29]],rows:_0x53ddxf[_0xc512[37]],next_page:_0x53ddx11,previous_page:_0x53ddx12,total_pages:_0x53ddx10});})[_0xc512[28]](function(_0x53ddxe){_0x53ddx5[_0xc512[27]](500)[_0xc512[26]]({error:_0xc512[25]})});};exports[_0xc512[40]]=function(_0x53ddx4,_0x53ddx5){console[_0xc512[42]](_0x53ddx4[_0xc512[41]]);SquareOdbc[_0xc512[44]]({where:{name:_0x53ddx4[_0xc512[41]][_0xc512[6]]}})[_0xc512[38]](function(_0x53ddx13){if(!_0x53ddx13){return _0x53ddx5[_0xc512[43]](404)};return _0x53ddx5[_0xc512[26]](_0x53ddx13);})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)});};exports[_0xc512[45]]=function(_0x53ddx4,_0x53ddx5){SquareOdbc[_0xc512[48]](_0x53ddx4[_0xc512[47]][_0xc512[46]])[_0xc512[38]](function(_0x53ddx14){if(!_0x53ddx14){return _0x53ddx5[_0xc512[43]](404)};return _0x53ddx5[_0xc512[26]](_0x53ddx14);})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)})};exports[_0xc512[49]]=function(_0x53ddx4,_0x53ddx5){SquareOdbc[_0xc512[49]](_0x53ddx4[_0xc512[41]])[_0xc512[38]](function(_0x53ddx14){return _0x53ddx5[_0xc512[27]](201)[_0xc512[26]](_0x53ddx14)})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)})};exports[_0xc512[50]]=function(_0x53ddx4,_0x53ddx5){SquareOdbc[_0xc512[44]]({where:{name:_0x53ddx4[_0xc512[41]][_0xc512[6]],id:{$ne:_0x53ddx4[_0xc512[41]][_0xc512[46]]}}})[_0xc512[38]](function(_0x53ddx13){if(!_0x53ddx13){return _0x53ddx5[_0xc512[43]](404)};if(_0x53ddx13[_0xc512[51]]>0){return _0x53ddx5[_0xc512[27]](500)[_0xc512[26]]({message:_0xc512[52]})};if(_0x53ddx4[_0xc512[41]][_0xc512[46]]){delete _0x53ddx4[_0xc512[41]][_0xc512[46]]};SquareOdbc[_0xc512[48]](_0x53ddx4[_0xc512[47]][_0xc512[46]])[_0xc512[38]](function(_0x53ddx14){if(!_0x53ddx14){return _0x53ddx5[_0xc512[43]](404)};var _0x53ddx15=_[_0xc512[53]](_0x53ddx14,_0x53ddx4[_0xc512[41]]);_0x53ddx15[_0xc512[54]]()[_0xc512[38]](function(){return _0x53ddx5[_0xc512[27]](200)[_0xc512[26]](_0x53ddx14)})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)});})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)});})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)})};exports[_0xc512[55]]=function(_0x53ddx4,_0x53ddx5){SquareOdbc[_0xc512[56]]({where:{id:_0x53ddx4[_0xc512[47]][_0xc512[46]]}})[_0xc512[38]](function(_0x53ddx14){if(!_0x53ddx14){return _0x53ddx5[_0xc512[43]](404)};_0x53ddx14[_0xc512[55]]()[_0xc512[38]](function(){return _0x53ddx5[_0xc512[43]](204)})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)});})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)})};exports[_0xc512[57]]=function(_0x53ddx4,_0x53ddx5){SquareOdbc[_0xc512[55]]({where:{id:_0x53ddx4[_0xc512[9]][_0xc512[46]]},individualHooks:true})[_0xc512[38]](function(){return _0x53ddx5[_0xc512[43]](204)})[_0xc512[28]](function(_0x53ddxe){return handleError(_0x53ddx5,_0x53ddxe)})};function handleError(_0x53ddx5,_0x53ddxe){return _0x53ddx5[_0xc512[27]](500)[_0xc512[26]](_0x53ddxe)}
\ No newline at end of file
+var _0x212a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6F\x64\x62\x63\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4F\x44\x42\x43","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x212a[0];var _=require(_0x212a[1]);var SquareOdbc=require(_0x212a[3])[_0x212a[2]];var util=require(_0x212a[4]);exports[_0x212a[5]]=function(_0x3c0bx4,_0x3c0bx5){var _0x3c0bx6=[_0x212a[6],_0x212a[7]];var _0x3c0bx7=_0x3c0bx4[_0x212a[9]][_0x212a[8]]?parseInt(_0x3c0bx4[_0x212a[9]][_0x212a[8]],10):100;var _0x3c0bx8=_0x3c0bx4[_0x212a[9]][_0x212a[10]]?parseInt(_0x3c0bx4[_0x212a[9]][_0x212a[10]],10):0;var _0x3c0bx9={where:{},limit:_0x3c0bx7,offset:_0x3c0bx8*_0x3c0bx7};_[_0x212a[24]](_0x3c0bx4[_0x212a[9]],function(_0x3c0bxa,_0x3c0bxb){switch(_0x3c0bxb){case _0x212a[8]:;case _0x212a[10]:break ;;case _0x212a[13]:_0x3c0bx9[_0x212a[11]]=util[_0x212a[16]](_0x212a[12],_0x3c0bx4[_0x212a[9]][_0x212a[13]],_0x3c0bx4[_0x212a[9]][_0x212a[14]]||_0x212a[15])||null;break ;;case _0x212a[14]:break ;;case _0x212a[22]:_0x3c0bx9[_0x212a[18]][_0x212a[17]]=[];_0x3c0bx6[_0x212a[21]](function(_0x3c0bxc){var _0x3c0bxd={};_0x3c0bxd[_0x3c0bxc]={$like:_0x212a[19]+_0x3c0bxa+_0x212a[19]};_0x3c0bx9[_0x212a[18]][_0x212a[17]][_0x212a[20]](_0x3c0bxd);});break ;;default:_0x3c0bx9[_0x212a[18]][_0x3c0bxb]={$like:{}};_0x3c0bx9[_0x212a[18]][_0x3c0bxb][_0x212a[23]]=_0x212a[19]+_0x3c0bxa+_0x212a[19];;}});SquareOdbc[_0x212a[39]](_0x3c0bx9)[_0x212a[38]](function(_0x3c0bxf){var _0x3c0bx10=Math[_0x212a[30]](_0x3c0bxf[_0x212a[29]]/_0x3c0bx7);var _0x3c0bx11=_0x3c0bx10>(_0x3c0bx9[_0x212a[31]]+1)?util[_0x212a[16]](_0x212a[32],_0x3c0bx4[_0x212a[33]],_0x3c0bx4[_0x212a[35]][_0x212a[34]],_0x3c0bx4[_0x212a[36]],_0x3c0bx8+1):null;var _0x3c0bx12=_0x3c0bx8>0?util[_0x212a[16]](_0x212a[32],_0x3c0bx4[_0x212a[33]],_0x3c0bx4[_0x212a[35]][_0x212a[34]],_0x3c0bx4[_0x212a[36]],_0x3c0bx8-1):null;_0x3c0bx5[_0x212a[27]](200)[_0x212a[26]]({count:_0x3c0bxf[_0x212a[29]],rows:_0x3c0bxf[_0x212a[37]],next_page:_0x3c0bx11,previous_page:_0x3c0bx12,total_pages:_0x3c0bx10});})[_0x212a[28]](function(_0x3c0bxe){_0x3c0bx5[_0x212a[27]](500)[_0x212a[26]]({error:_0x212a[25]})});};exports[_0x212a[40]]=function(_0x3c0bx4,_0x3c0bx5){console[_0x212a[42]](_0x3c0bx4[_0x212a[41]]);SquareOdbc[_0x212a[44]]({where:{name:_0x3c0bx4[_0x212a[41]][_0x212a[6]]}})[_0x212a[38]](function(_0x3c0bx13){if(!_0x3c0bx13){return _0x3c0bx5[_0x212a[43]](404)};return _0x3c0bx5[_0x212a[26]](_0x3c0bx13);})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)});};exports[_0x212a[45]]=function(_0x3c0bx4,_0x3c0bx5){SquareOdbc[_0x212a[48]](_0x3c0bx4[_0x212a[47]][_0x212a[46]])[_0x212a[38]](function(_0x3c0bx14){if(!_0x3c0bx14){return _0x3c0bx5[_0x212a[43]](404)};return _0x3c0bx5[_0x212a[26]](_0x3c0bx14);})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)})};exports[_0x212a[49]]=function(_0x3c0bx4,_0x3c0bx5){SquareOdbc[_0x212a[49]](_0x3c0bx4[_0x212a[41]])[_0x212a[38]](function(_0x3c0bx14){return _0x3c0bx5[_0x212a[27]](201)[_0x212a[26]](_0x3c0bx14)})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)})};exports[_0x212a[50]]=function(_0x3c0bx4,_0x3c0bx5){SquareOdbc[_0x212a[44]]({where:{name:_0x3c0bx4[_0x212a[41]][_0x212a[6]],id:{$ne:_0x3c0bx4[_0x212a[41]][_0x212a[46]]}}})[_0x212a[38]](function(_0x3c0bx13){if(!_0x3c0bx13){return _0x3c0bx5[_0x212a[43]](404)};if(_0x3c0bx13[_0x212a[51]]>0){return _0x3c0bx5[_0x212a[27]](500)[_0x212a[26]]({message:_0x212a[52]})};if(_0x3c0bx4[_0x212a[41]][_0x212a[46]]){delete _0x3c0bx4[_0x212a[41]][_0x212a[46]]};SquareOdbc[_0x212a[48]](_0x3c0bx4[_0x212a[47]][_0x212a[46]])[_0x212a[38]](function(_0x3c0bx14){if(!_0x3c0bx14){return _0x3c0bx5[_0x212a[43]](404)};var _0x3c0bx15=_[_0x212a[53]](_0x3c0bx14,_0x3c0bx4[_0x212a[41]]);_0x3c0bx15[_0x212a[54]]()[_0x212a[38]](function(){return _0x3c0bx5[_0x212a[27]](200)[_0x212a[26]](_0x3c0bx14)})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)});})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)});})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)})};exports[_0x212a[55]]=function(_0x3c0bx4,_0x3c0bx5){SquareOdbc[_0x212a[56]]({where:{id:_0x3c0bx4[_0x212a[47]][_0x212a[46]]}})[_0x212a[38]](function(_0x3c0bx14){if(!_0x3c0bx14){return _0x3c0bx5[_0x212a[43]](404)};_0x3c0bx14[_0x212a[55]]()[_0x212a[38]](function(){return _0x3c0bx5[_0x212a[43]](204)})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)});})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)})};exports[_0x212a[57]]=function(_0x3c0bx4,_0x3c0bx5){SquareOdbc[_0x212a[55]]({where:{id:_0x3c0bx4[_0x212a[9]][_0x212a[46]]},individualHooks:true})[_0x212a[38]](function(){return _0x3c0bx5[_0x212a[43]](204)})[_0x212a[28]](function(_0x3c0bxe){return handleError(_0x3c0bx5,_0x3c0bxe)})};function handleError(_0x3c0bx5,_0x3c0bxe){return _0x3c0bx5[_0x212a[27]](500)[_0x212a[26]](_0x3c0bxe)}
\ No newline at end of file
-var _0xabd0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x3A\x72\x65\x6D\x6F\x76\x65"];_0xabd0[0];var SquareOdbc=require(_0xabd0[2])[_0xabd0[1]];exports[_0xabd0[3]]=function(_0x60eex2){SquareOdbc[_0xabd0[4]](function(_0x60eex3){onSave(_0x60eex2,_0x60eex3)});SquareOdbc[_0xabd0[5]](function(_0x60eex3){onRemove(_0x60eex2,_0x60eex3)});};function onSave(_0x60eex2,_0x60eex3,_0x60eex5){_0x60eex2[_0xabd0[7]](_0xabd0[6],_0x60eex3)}function onRemove(_0x60eex2,_0x60eex3,_0x60eex5){_0x60eex2[_0xabd0[7]](_0xabd0[8],_0x60eex3)}
\ No newline at end of file
+var _0x6b7d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6b7d[0];var SquareOdbc=require(_0x6b7d[2])[_0x6b7d[1]];exports[_0x6b7d[3]]=function(_0xffebx2){SquareOdbc[_0x6b7d[4]](function(_0xffebx3){onSave(_0xffebx2,_0xffebx3)});SquareOdbc[_0x6b7d[5]](function(_0xffebx3){onRemove(_0xffebx2,_0xffebx3)});};function onSave(_0xffebx2,_0xffebx3,_0xffebx5){_0xffebx2[_0x6b7d[7]](_0x6b7d[6],_0xffebx3)}function onRemove(_0xffebx2,_0xffebx3,_0xffebx5){_0xffebx2[_0x6b7d[7]](_0x6b7d[8],_0xffebx3)}
\ No newline at end of file
-var _0xb209=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x67\x65\x74"];_0xb209[0];var should=require(_0xb209[1]);var app=require(_0xb209[2]);var request=require(_0xb209[3]);describe(_0xb209[4],function(){it(_0xb209[5],function(_0x3e87x4){request(app)[_0xb209[13]](_0xb209[12])[_0xb209[11]](200)[_0xb209[11]](_0xb209[10],/json/)[_0xb209[9]](function(_0x3e87x5,_0x3e87x6){if(_0x3e87x5){return _0x3e87x4(_0x3e87x5)};_0x3e87x6[_0xb209[8]][_0xb209[1]][_0xb209[7]][_0xb209[6]](Array);_0x3e87x4();})})});
\ No newline at end of file
+var _0xc181=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x67\x65\x74"];_0xc181[0];var should=require(_0xc181[1]);var app=require(_0xc181[2]);var request=require(_0xc181[3]);describe(_0xc181[4],function(){it(_0xc181[5],function(_0x4fbfx4){request(app)[_0xc181[13]](_0xc181[12])[_0xc181[11]](200)[_0xc181[11]](_0xc181[10],/json/)[_0xc181[9]](function(_0x4fbfx5,_0x4fbfx6){if(_0x4fbfx5){return _0x4fbfx4(_0x4fbfx5)};_0x4fbfx6[_0xc181[8]][_0xc181[1]][_0xc181[7]][_0xc181[6]](Array);_0x4fbfx4();})})});
\ No newline at end of file
-var _0x6a47=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x70\x72\x6F\x6A\x65\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x6a47[0];var express=require(_0x6a47[1]);var controller=require(_0x6a47[2]);var auth=require(_0x6a47[3]);var router=express.Router();router[_0x6a47[7]](_0x6a47[4],auth[_0x6a47[5]](),controller[_0x6a47[6]]);router[_0x6a47[7]](_0x6a47[8],auth[_0x6a47[5]](),controller[_0x6a47[9]]);router[_0x6a47[7]](_0x6a47[10],controller[_0x6a47[11]]);router[_0x6a47[13]](_0x6a47[4],auth[_0x6a47[5]](),controller[_0x6a47[12]]);router[_0x6a47[13]](_0x6a47[14],auth[_0x6a47[5]](),controller[_0x6a47[15]]);router[_0x6a47[17]](_0x6a47[8],auth[_0x6a47[5]](),controller[_0x6a47[16]]);router[_0x6a47[18]](_0x6a47[8],auth[_0x6a47[5]](),controller[_0x6a47[16]]);router[_0x6a47[20]](_0x6a47[4],auth[_0x6a47[5]](),controller[_0x6a47[19]]);router[_0x6a47[20]](_0x6a47[8],auth[_0x6a47[5]](),controller[_0x6a47[21]]);module[_0x6a47[22]]=router;
\ No newline at end of file
+var _0x4122=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x70\x72\x6F\x6A\x65\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4122[0];var express=require(_0x4122[1]);var controller=require(_0x4122[2]);var auth=require(_0x4122[3]);var router=express.Router();router[_0x4122[7]](_0x4122[4],auth[_0x4122[5]](),controller[_0x4122[6]]);router[_0x4122[7]](_0x4122[8],auth[_0x4122[5]](),controller[_0x4122[9]]);router[_0x4122[7]](_0x4122[10],controller[_0x4122[11]]);router[_0x4122[13]](_0x4122[4],auth[_0x4122[5]](),controller[_0x4122[12]]);router[_0x4122[13]](_0x4122[14],auth[_0x4122[5]](),controller[_0x4122[15]]);router[_0x4122[17]](_0x4122[8],auth[_0x4122[5]](),controller[_0x4122[16]]);router[_0x4122[18]](_0x4122[8],auth[_0x4122[5]](),controller[_0x4122[16]]);router[_0x4122[20]](_0x4122[4],auth[_0x4122[5]](),controller[_0x4122[19]]);router[_0x4122[20]](_0x4122[8],auth[_0x4122[5]](),controller[_0x4122[21]]);module[_0x4122[22]]=router;
\ No newline at end of file
-var _0x47c3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x70\x72\x6F\x6A\x65\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3B\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D\x22","\x2E\x78\x6D\x6C\x22","\x74\x78\x74\x2F\x78\x6D\x6C","\x73\x65\x74","\x70\x72\x65\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E"];_0x47c3[0];var _=require(_0x47c3[1]);var path=require(_0x47c3[2]);var config=require(_0x47c3[3]);var util=require(_0x47c3[4]);var SquareProject=require(_0x47c3[6])[_0x47c3[5]];exports[_0x47c3[7]]=function(_0xffcdx6,_0xffcdx7){var _0xffcdx8=[_0x47c3[8],_0x47c3[9]];var _0xffcdx9=_0xffcdx6[_0x47c3[11]][_0x47c3[10]]?parseInt(_0xffcdx6[_0x47c3[11]][_0x47c3[10]],10):100;var _0xffcdxa=_0xffcdx6[_0x47c3[11]][_0x47c3[12]]?parseInt(_0xffcdx6[_0x47c3[11]][_0x47c3[12]],10):0;var _0xffcdxb={where:{},limit:_0xffcdx9,offset:_0xffcdxa*_0xffcdx9};_[_0x47c3[26]](_0xffcdx6[_0x47c3[11]],function(_0xffcdxc,_0xffcdxd){switch(_0xffcdxd){case _0x47c3[10]:;case _0x47c3[12]:break ;;case _0x47c3[15]:_0xffcdxb[_0x47c3[13]]=util[_0x47c3[18]](_0x47c3[14],_0xffcdx6[_0x47c3[11]][_0x47c3[15]],_0xffcdx6[_0x47c3[11]][_0x47c3[16]]||_0x47c3[17])||null;break ;;case _0x47c3[16]:break ;;case _0x47c3[24]:_0xffcdxb[_0x47c3[20]][_0x47c3[19]]=[];_0xffcdx8[_0x47c3[23]](function(_0xffcdxe){var _0xffcdxf={};_0xffcdxf[_0xffcdxe]={$like:_0x47c3[21]+_0xffcdxc+_0x47c3[21]};_0xffcdxb[_0x47c3[20]][_0x47c3[19]][_0x47c3[22]](_0xffcdxf);});break ;;default:_0xffcdxb[_0x47c3[20]][_0xffcdxd]={$like:{}};_0xffcdxb[_0x47c3[20]][_0xffcdxd][_0x47c3[25]]=_0x47c3[21]+_0xffcdxc+_0x47c3[21];;}});SquareProject[_0x47c3[41]](_0xffcdxb)[_0x47c3[40]](function(_0xffcdx11){var _0xffcdx12=Math[_0x47c3[32]](_0xffcdx11[_0x47c3[31]]/_0xffcdx9);var _0xffcdx13=_0xffcdx12>(_0xffcdxb[_0x47c3[33]]+1)?util[_0x47c3[18]](_0x47c3[34],_0xffcdx6[_0x47c3[35]],_0xffcdx6[_0x47c3[37]][_0x47c3[36]],_0xffcdx6[_0x47c3[38]],_0xffcdxa+1):null;var _0xffcdx14=_0xffcdxa>0?util[_0x47c3[18]](_0x47c3[34],_0xffcdx6[_0x47c3[35]],_0xffcdx6[_0x47c3[37]][_0x47c3[36]],_0xffcdx6[_0x47c3[38]],_0xffcdxa-1):null;_0xffcdx7[_0x47c3[29]](200)[_0x47c3[28]]({count:_0xffcdx11[_0x47c3[31]],rows:_0xffcdx11[_0x47c3[39]],next_page:_0xffcdx13,previous_page:_0xffcdx14,total_pages:_0xffcdx12});})[_0x47c3[30]](function(_0xffcdx10){_0xffcdx7[_0x47c3[29]](500)[_0x47c3[28]]({error:_0x47c3[27]})});};exports[_0x47c3[42]]=function(_0xffcdx6,_0xffcdx7){console[_0x47c3[44]](_0xffcdx6[_0x47c3[43]]);SquareProject[_0x47c3[46]]({where:{name:_0xffcdx6[_0x47c3[43]][_0x47c3[8]]}})[_0x47c3[40]](function(_0xffcdx15){if(!_0xffcdx15){return _0xffcdx7[_0x47c3[45]](404)};return _0xffcdx7[_0x47c3[28]](_0xffcdx15);})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)});};exports[_0x47c3[47]]=function(_0xffcdx6,_0xffcdx7){SquareProject[_0x47c3[50]](_0xffcdx6[_0x47c3[49]][_0x47c3[48]])[_0x47c3[40]](function(_0xffcdx16){if(!_0xffcdx16){return _0xffcdx7[_0x47c3[45]](404)};return _0xffcdx7[_0x47c3[28]](_0xffcdx16);})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)})};exports[_0x47c3[51]]=function(_0xffcdx6,_0xffcdx7){SquareProject[_0x47c3[51]](_0xffcdx6[_0x47c3[43]])[_0x47c3[40]](function(_0xffcdx16){return _0xffcdx7[_0x47c3[29]](201)[_0x47c3[28]](_0xffcdx16)})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)})};exports[_0x47c3[52]]=function(_0xffcdx6,_0xffcdx7){if(_0xffcdx6[_0x47c3[43]][_0x47c3[48]]){delete _0xffcdx6[_0x47c3[43]][_0x47c3[48]]};SquareProject[_0x47c3[50]](_0xffcdx6[_0x47c3[49]][_0x47c3[48]])[_0x47c3[40]](function(_0xffcdx16){if(!_0xffcdx16){return _0xffcdx7[_0x47c3[45]](404)};var _0xffcdx17=_[_0x47c3[53]](_0xffcdx16,_0xffcdx6[_0x47c3[43]]);_0xffcdx17[_0x47c3[54]]()[_0x47c3[40]](function(){return _0xffcdx7[_0x47c3[29]](200)[_0x47c3[28]](_0xffcdx16)})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)});})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)});};exports[_0x47c3[55]]=function(_0xffcdx6,_0xffcdx7){SquareProject[_0x47c3[56]]({where:{id:_0xffcdx6[_0x47c3[49]][_0x47c3[48]]}})[_0x47c3[40]](function(_0xffcdx16){if(!_0xffcdx16){return _0xffcdx7[_0x47c3[45]](404)};_0xffcdx16[_0x47c3[55]]()[_0x47c3[40]](function(){return _0xffcdx7[_0x47c3[45]](204)})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)});})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)})};exports[_0x47c3[57]]=function(_0xffcdx6,_0xffcdx7){SquareProject[_0x47c3[55]]({where:{id:_0xffcdx6[_0x47c3[11]][_0x47c3[48]]},individualHooks:true})[_0x47c3[40]](function(){return _0xffcdx7[_0x47c3[45]](204)})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)})};exports[_0x47c3[58]]=function(_0xffcdx6,_0xffcdx7,_0xffcdx18){SquareProject[_0x47c3[50]](_0xffcdx6[_0x47c3[49]][_0x47c3[48]])[_0x47c3[40]](function(_0xffcdx16){if(!_0xffcdx16){return _0xffcdx7[_0x47c3[45]](404)};console[_0x47c3[44]](_0xffcdx6[_0x47c3[11]][_0x47c3[59]]);_0xffcdx7[_0x47c3[63]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x47c3[60]+_0xffcdx6[_0x47c3[11]][_0x47c3[59]]+_0x47c3[61],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x47c3[62]});return _0xffcdx7[_0x47c3[28]](_0xffcdx16[_0x47c3[64]]);})[_0x47c3[30]](function(_0xffcdx10){return handleError(_0xffcdx7,_0xffcdx10)})};function handleError(_0xffcdx7,_0xffcdx10){return _0xffcdx7[_0x47c3[29]](500)[_0x47c3[28]](_0xffcdx10)}
\ No newline at end of file
+var _0x3ade=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x70\x72\x6F\x6A\x65\x63\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3B\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D\x22","\x2E\x78\x6D\x6C\x22","\x74\x78\x74\x2F\x78\x6D\x6C","\x73\x65\x74","\x70\x72\x65\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E"];_0x3ade[0];var _=require(_0x3ade[1]);var path=require(_0x3ade[2]);var config=require(_0x3ade[3]);var util=require(_0x3ade[4]);var SquareProject=require(_0x3ade[6])[_0x3ade[5]];exports[_0x3ade[7]]=function(_0x1efbx6,_0x1efbx7){var _0x1efbx8=[_0x3ade[8],_0x3ade[9]];var _0x1efbx9=_0x1efbx6[_0x3ade[11]][_0x3ade[10]]?parseInt(_0x1efbx6[_0x3ade[11]][_0x3ade[10]],10):100;var _0x1efbxa=_0x1efbx6[_0x3ade[11]][_0x3ade[12]]?parseInt(_0x1efbx6[_0x3ade[11]][_0x3ade[12]],10):0;var _0x1efbxb={where:{},limit:_0x1efbx9,offset:_0x1efbxa*_0x1efbx9};_[_0x3ade[26]](_0x1efbx6[_0x3ade[11]],function(_0x1efbxc,_0x1efbxd){switch(_0x1efbxd){case _0x3ade[10]:;case _0x3ade[12]:break ;;case _0x3ade[15]:_0x1efbxb[_0x3ade[13]]=util[_0x3ade[18]](_0x3ade[14],_0x1efbx6[_0x3ade[11]][_0x3ade[15]],_0x1efbx6[_0x3ade[11]][_0x3ade[16]]||_0x3ade[17])||null;break ;;case _0x3ade[16]:break ;;case _0x3ade[24]:_0x1efbxb[_0x3ade[20]][_0x3ade[19]]=[];_0x1efbx8[_0x3ade[23]](function(_0x1efbxe){var _0x1efbxf={};_0x1efbxf[_0x1efbxe]={$like:_0x3ade[21]+_0x1efbxc+_0x3ade[21]};_0x1efbxb[_0x3ade[20]][_0x3ade[19]][_0x3ade[22]](_0x1efbxf);});break ;;default:_0x1efbxb[_0x3ade[20]][_0x1efbxd]={$like:{}};_0x1efbxb[_0x3ade[20]][_0x1efbxd][_0x3ade[25]]=_0x3ade[21]+_0x1efbxc+_0x3ade[21];;}});SquareProject[_0x3ade[41]](_0x1efbxb)[_0x3ade[40]](function(_0x1efbx11){var _0x1efbx12=Math[_0x3ade[32]](_0x1efbx11[_0x3ade[31]]/_0x1efbx9);var _0x1efbx13=_0x1efbx12>(_0x1efbxb[_0x3ade[33]]+1)?util[_0x3ade[18]](_0x3ade[34],_0x1efbx6[_0x3ade[35]],_0x1efbx6[_0x3ade[37]][_0x3ade[36]],_0x1efbx6[_0x3ade[38]],_0x1efbxa+1):null;var _0x1efbx14=_0x1efbxa>0?util[_0x3ade[18]](_0x3ade[34],_0x1efbx6[_0x3ade[35]],_0x1efbx6[_0x3ade[37]][_0x3ade[36]],_0x1efbx6[_0x3ade[38]],_0x1efbxa-1):null;_0x1efbx7[_0x3ade[29]](200)[_0x3ade[28]]({count:_0x1efbx11[_0x3ade[31]],rows:_0x1efbx11[_0x3ade[39]],next_page:_0x1efbx13,previous_page:_0x1efbx14,total_pages:_0x1efbx12});})[_0x3ade[30]](function(_0x1efbx10){_0x1efbx7[_0x3ade[29]](500)[_0x3ade[28]]({error:_0x3ade[27]})});};exports[_0x3ade[42]]=function(_0x1efbx6,_0x1efbx7){console[_0x3ade[44]](_0x1efbx6[_0x3ade[43]]);SquareProject[_0x3ade[46]]({where:{name:_0x1efbx6[_0x3ade[43]][_0x3ade[8]]}})[_0x3ade[40]](function(_0x1efbx15){if(!_0x1efbx15){return _0x1efbx7[_0x3ade[45]](404)};return _0x1efbx7[_0x3ade[28]](_0x1efbx15);})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)});};exports[_0x3ade[47]]=function(_0x1efbx6,_0x1efbx7){SquareProject[_0x3ade[50]](_0x1efbx6[_0x3ade[49]][_0x3ade[48]])[_0x3ade[40]](function(_0x1efbx16){if(!_0x1efbx16){return _0x1efbx7[_0x3ade[45]](404)};return _0x1efbx7[_0x3ade[28]](_0x1efbx16);})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)})};exports[_0x3ade[51]]=function(_0x1efbx6,_0x1efbx7){SquareProject[_0x3ade[51]](_0x1efbx6[_0x3ade[43]])[_0x3ade[40]](function(_0x1efbx16){return _0x1efbx7[_0x3ade[29]](201)[_0x3ade[28]](_0x1efbx16)})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)})};exports[_0x3ade[52]]=function(_0x1efbx6,_0x1efbx7){if(_0x1efbx6[_0x3ade[43]][_0x3ade[48]]){delete _0x1efbx6[_0x3ade[43]][_0x3ade[48]]};SquareProject[_0x3ade[50]](_0x1efbx6[_0x3ade[49]][_0x3ade[48]])[_0x3ade[40]](function(_0x1efbx16){if(!_0x1efbx16){return _0x1efbx7[_0x3ade[45]](404)};var _0x1efbx17=_[_0x3ade[53]](_0x1efbx16,_0x1efbx6[_0x3ade[43]]);_0x1efbx17[_0x3ade[54]]()[_0x3ade[40]](function(){return _0x1efbx7[_0x3ade[29]](200)[_0x3ade[28]](_0x1efbx16)})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)});})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)});};exports[_0x3ade[55]]=function(_0x1efbx6,_0x1efbx7){SquareProject[_0x3ade[56]]({where:{id:_0x1efbx6[_0x3ade[49]][_0x3ade[48]]}})[_0x3ade[40]](function(_0x1efbx16){if(!_0x1efbx16){return _0x1efbx7[_0x3ade[45]](404)};_0x1efbx16[_0x3ade[55]]()[_0x3ade[40]](function(){return _0x1efbx7[_0x3ade[45]](204)})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)});})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)})};exports[_0x3ade[57]]=function(_0x1efbx6,_0x1efbx7){SquareProject[_0x3ade[55]]({where:{id:_0x1efbx6[_0x3ade[11]][_0x3ade[48]]},individualHooks:true})[_0x3ade[40]](function(){return _0x1efbx7[_0x3ade[45]](204)})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)})};exports[_0x3ade[58]]=function(_0x1efbx6,_0x1efbx7,_0x1efbx18){SquareProject[_0x3ade[50]](_0x1efbx6[_0x3ade[49]][_0x3ade[48]])[_0x3ade[40]](function(_0x1efbx16){if(!_0x1efbx16){return _0x1efbx7[_0x3ade[45]](404)};console[_0x3ade[44]](_0x1efbx6[_0x3ade[11]][_0x3ade[59]]);_0x1efbx7[_0x3ade[63]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x3ade[60]+_0x1efbx6[_0x3ade[11]][_0x3ade[59]]+_0x3ade[61],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x3ade[62]});return _0x1efbx7[_0x3ade[28]](_0x1efbx16[_0x3ade[64]]);})[_0x3ade[30]](function(_0x1efbx10){return handleError(_0x1efbx7,_0x1efbx10)})};function handleError(_0x1efbx7,_0x1efbx10){return _0x1efbx7[_0x3ade[29]](500)[_0x3ade[28]](_0x1efbx10)}
\ No newline at end of file
-var _0xb432=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb432[0];var SquareProject=require(_0xb432[2])[_0xb432[1]];exports[_0xb432[3]]=function(_0x7ce2x2){SquareProject[_0xb432[4]](function(_0x7ce2x3){onSave(_0x7ce2x2,_0x7ce2x3)});SquareProject[_0xb432[5]](function(_0x7ce2x3){onSave(_0x7ce2x2,_0x7ce2x3)});SquareProject[_0xb432[6]](function(_0x7ce2x3){onRemove(_0x7ce2x2,_0x7ce2x3)});};function onSave(_0x7ce2x2,_0x7ce2x3,_0x7ce2x5){_0x7ce2x2[_0xb432[8]](_0xb432[7],_0x7ce2x3)}function onRemove(_0x7ce2x2,_0x7ce2x3,_0x7ce2x5){_0x7ce2x2[_0xb432[8]](_0xb432[9],_0x7ce2x3)}
\ No newline at end of file
+var _0xbf4b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbf4b[0];var SquareProject=require(_0xbf4b[2])[_0xbf4b[1]];exports[_0xbf4b[3]]=function(_0xf188x2){SquareProject[_0xbf4b[4]](function(_0xf188x3){onSave(_0xf188x2,_0xf188x3)});SquareProject[_0xbf4b[5]](function(_0xf188x3){onSave(_0xf188x2,_0xf188x3)});SquareProject[_0xbf4b[6]](function(_0xf188x3){onRemove(_0xf188x2,_0xf188x3)});};function onSave(_0xf188x2,_0xf188x3,_0xf188x5){_0xf188x2[_0xbf4b[8]](_0xbf4b[7],_0xf188x3)}function onRemove(_0xf188x2,_0xf188x3,_0xf188x5){_0xf188x2[_0xbf4b[8]](_0xbf4b[9],_0xf188x3)}
\ No newline at end of file
-var _0xcb74=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x67\x65\x74"];_0xcb74[0];var should=require(_0xcb74[1]);var app=require(_0xcb74[2]);var request=require(_0xcb74[3]);describe(_0xcb74[4],function(){it(_0xcb74[5],function(_0xdb2cx4){request(app)[_0xcb74[13]](_0xcb74[12])[_0xcb74[11]](200)[_0xcb74[11]](_0xcb74[10],/json/)[_0xcb74[9]](function(_0xdb2cx5,_0xdb2cx6){if(_0xdb2cx5){return _0xdb2cx4(_0xdb2cx5)};_0xdb2cx6[_0xcb74[8]][_0xcb74[1]][_0xcb74[7]][_0xcb74[6]](Array);_0xdb2cx4();})})});
\ No newline at end of file
+var _0x2fa3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x67\x65\x74"];_0x2fa3[0];var should=require(_0x2fa3[1]);var app=require(_0x2fa3[2]);var request=require(_0x2fa3[3]);describe(_0x2fa3[4],function(){it(_0x2fa3[5],function(_0xd5a2x4){request(app)[_0x2fa3[13]](_0x2fa3[12])[_0x2fa3[11]](200)[_0x2fa3[11]](_0x2fa3[10],/json/)[_0x2fa3[9]](function(_0xd5a2x5,_0xd5a2x6){if(_0xd5a2x5){return _0xd5a2x4(_0xd5a2x5)};_0xd5a2x6[_0x2fa3[8]][_0x2fa3[1]][_0x2fa3[7]][_0x2fa3[6]](Array);_0xd5a2x4();})})});
\ No newline at end of file
-var _0xe9b7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xe9b7[0];var express=require(_0xe9b7[1]);var auth=require(_0xe9b7[2]);var controller=require(_0xe9b7[3]);var router=express.Router();router[_0xe9b7[7]](_0xe9b7[4],auth[_0xe9b7[5]](),controller[_0xe9b7[6]]);router[_0xe9b7[7]](_0xe9b7[8],auth[_0xe9b7[5]](),controller[_0xe9b7[9]]);router[_0xe9b7[7]](_0xe9b7[10],auth[_0xe9b7[5]](),controller[_0xe9b7[11]]);router[_0xe9b7[7]](_0xe9b7[12],auth[_0xe9b7[5]](),controller[_0xe9b7[13]]);router[_0xe9b7[16]](_0xe9b7[14],auth[_0xe9b7[5]](),controller[_0xe9b7[15]]);router[_0xe9b7[16]](_0xe9b7[4],auth[_0xe9b7[5]](),controller[_0xe9b7[17]]);router[_0xe9b7[19]](_0xe9b7[12],auth[_0xe9b7[5]](),controller[_0xe9b7[18]]);router[_0xe9b7[20]](_0xe9b7[12],auth[_0xe9b7[5]](),controller[_0xe9b7[18]]);router[_0xe9b7[22]](_0xe9b7[4],auth[_0xe9b7[5]](),controller[_0xe9b7[21]]);router[_0xe9b7[22]](_0xe9b7[12],auth[_0xe9b7[5]](),controller[_0xe9b7[23]]);module[_0xe9b7[24]]=router;
\ No newline at end of file
+var _0x8a7e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x8a7e[0];var express=require(_0x8a7e[1]);var auth=require(_0x8a7e[2]);var controller=require(_0x8a7e[3]);var router=express.Router();router[_0x8a7e[7]](_0x8a7e[4],auth[_0x8a7e[5]](),controller[_0x8a7e[6]]);router[_0x8a7e[7]](_0x8a7e[8],auth[_0x8a7e[5]](),controller[_0x8a7e[9]]);router[_0x8a7e[7]](_0x8a7e[10],auth[_0x8a7e[5]](),controller[_0x8a7e[11]]);router[_0x8a7e[7]](_0x8a7e[12],auth[_0x8a7e[5]](),controller[_0x8a7e[13]]);router[_0x8a7e[16]](_0x8a7e[14],auth[_0x8a7e[5]](),controller[_0x8a7e[15]]);router[_0x8a7e[16]](_0x8a7e[4],auth[_0x8a7e[5]](),controller[_0x8a7e[17]]);router[_0x8a7e[19]](_0x8a7e[12],auth[_0x8a7e[5]](),controller[_0x8a7e[18]]);router[_0x8a7e[20]](_0x8a7e[12],auth[_0x8a7e[5]](),controller[_0x8a7e[18]]);router[_0x8a7e[22]](_0x8a7e[4],auth[_0x8a7e[5]](),controller[_0x8a7e[21]]);router[_0x8a7e[22]](_0x8a7e[12],auth[_0x8a7e[5]](),controller[_0x8a7e[23]]);module[_0x8a7e[24]]=router;
\ No newline at end of file
-var _0xe54a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xe54a[0];var proxyquire=require(_0xe54a[2])[_0xe54a[1]]();var sugarcrmAccountCtrlStub={index:_0xe54a[3],show:_0xe54a[4],create:_0xe54a[5],update:_0xe54a[6],destroy:_0xe54a[7]};var routerStub={get:sinon[_0xe54a[8]](),put:sinon[_0xe54a[8]](),patch:sinon[_0xe54a[8]](),post:sinon[_0xe54a[8]](),delete:sinon[_0xe54a[8]]()};var sugarcrmAccountIndex=proxyquire(_0xe54a[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmAccountCtrlStub});describe(_0xe54a[10],function(){it(_0xe54a[11],function(){expect(sugarcrmAccountIndex)[_0xe54a[13]][_0xe54a[12]](routerStub)});describe(_0xe54a[14],function(){it(_0xe54a[15],function(){expect(routerStub[_0xe54a[21]][_0xe54a[20]](_0xe54a[19],_0xe54a[3]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});describe(_0xe54a[22],function(){it(_0xe54a[23],function(){expect(routerStub[_0xe54a[21]][_0xe54a[20]](_0xe54a[24],_0xe54a[4]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});describe(_0xe54a[25],function(){it(_0xe54a[26],function(){expect(routerStub[_0xe54a[27]][_0xe54a[20]](_0xe54a[19],_0xe54a[5]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});describe(_0xe54a[28],function(){it(_0xe54a[29],function(){expect(routerStub[_0xe54a[30]][_0xe54a[20]](_0xe54a[24],_0xe54a[6]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});describe(_0xe54a[31],function(){it(_0xe54a[29],function(){expect(routerStub[_0xe54a[32]][_0xe54a[20]](_0xe54a[24],_0xe54a[6]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});describe(_0xe54a[33],function(){it(_0xe54a[34],function(){expect(routerStub[_0xe54a[35]][_0xe54a[20]](_0xe54a[24],_0xe54a[7]))[_0xe54a[13]][_0xe54a[18]][_0xe54a[17]][_0xe54a[16]]})});});
\ No newline at end of file
+var _0x75c1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x75c1[0];var proxyquire=require(_0x75c1[2])[_0x75c1[1]]();var sugarcrmAccountCtrlStub={index:_0x75c1[3],show:_0x75c1[4],create:_0x75c1[5],update:_0x75c1[6],destroy:_0x75c1[7]};var routerStub={get:sinon[_0x75c1[8]](),put:sinon[_0x75c1[8]](),patch:sinon[_0x75c1[8]](),post:sinon[_0x75c1[8]](),delete:sinon[_0x75c1[8]]()};var sugarcrmAccountIndex=proxyquire(_0x75c1[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmAccountCtrlStub});describe(_0x75c1[10],function(){it(_0x75c1[11],function(){expect(sugarcrmAccountIndex)[_0x75c1[13]][_0x75c1[12]](routerStub)});describe(_0x75c1[14],function(){it(_0x75c1[15],function(){expect(routerStub[_0x75c1[21]][_0x75c1[20]](_0x75c1[19],_0x75c1[3]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});describe(_0x75c1[22],function(){it(_0x75c1[23],function(){expect(routerStub[_0x75c1[21]][_0x75c1[20]](_0x75c1[24],_0x75c1[4]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});describe(_0x75c1[25],function(){it(_0x75c1[26],function(){expect(routerStub[_0x75c1[27]][_0x75c1[20]](_0x75c1[19],_0x75c1[5]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});describe(_0x75c1[28],function(){it(_0x75c1[29],function(){expect(routerStub[_0x75c1[30]][_0x75c1[20]](_0x75c1[24],_0x75c1[6]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});describe(_0x75c1[31],function(){it(_0x75c1[29],function(){expect(routerStub[_0x75c1[32]][_0x75c1[20]](_0x75c1[24],_0x75c1[6]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});describe(_0x75c1[33],function(){it(_0x75c1[34],function(){expect(routerStub[_0x75c1[35]][_0x75c1[20]](_0x75c1[24],_0x75c1[7]))[_0x75c1[13]][_0x75c1[18]][_0x75c1[17]][_0x75c1[16]]})});});
\ No newline at end of file
-var _0x3b2e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x6E\x6F\x64\x65\x2D\x73\x75\x67\x61\x72\x63\x72\x6D\x2D\x63\x6C\x69\x65\x6E\x74","\x2F\x73\x65\x72\x76\x69\x63\x65\x2F\x76\x34\x5F\x31\x2F\x72\x65\x73\x74\x2E\x70\x68\x70","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x6E\x69\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x6F\x67\x69\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x43\x61\x73\x65\x73","\x67\x65\x74\x5F\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x63\x61\x6C\x6C","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0x3b2e[0];var _=require(_0x3b2e[1]);var util=require(_0x3b2e[2]);var SugarcrmAccount=require(_0x3b2e[4])[_0x3b2e[3]];function handleError(_0xff13x5,_0xff13x6){_0xff13x6=_0xff13x6||500;return function(_0xff13x7){_0xff13x5[_0x3b2e[6]](_0xff13x6)[_0x3b2e[5]](_0xff13x7)};}function responseWithResult(_0xff13x5,_0xff13x6){_0xff13x6=_0xff13x6||200;return function(_0xff13x9){if(_0xff13x9){_0xff13x5[_0x3b2e[6]](_0xff13x6)[_0x3b2e[7]](_0xff13x9)}};}function handleEntityNotFound(_0xff13x5){return function(_0xff13x9){if(!_0xff13x9){_0xff13x5[_0x3b2e[6]](404)[_0x3b2e[8]]();return null;};return _0xff13x9;}}function saveUpdates(_0xff13xc){return function(_0xff13x9){return _0xff13x9[_0x3b2e[10]](_0xff13xc)[_0x3b2e[9]](function(_0xff13xd){return _0xff13xd})}}function removeEntity(_0xff13x5){return function(_0xff13x9){if(_0xff13x9){return _0xff13x9[_0x3b2e[11]]()[_0x3b2e[9]](function(){_0xff13x5[_0x3b2e[6]](204)[_0x3b2e[8]]()})}}}exports[_0x3b2e[12]]=function(_0xff13xf,_0xff13x5){var _0xff13x10=[_0x3b2e[13],_0x3b2e[14],_0x3b2e[15],_0x3b2e[16]];var _0xff13x11=_0xff13xf[_0x3b2e[18]][_0x3b2e[17]]?parseInt(_0xff13xf[_0x3b2e[18]][_0x3b2e[17]],10):100;var _0xff13x12=_0xff13xf[_0x3b2e[18]][_0x3b2e[19]]?parseInt(_0xff13xf[_0x3b2e[18]][_0x3b2e[19]],10):0;var _0xff13x13={where:{},limit:_0xff13x11,offset:_0xff13x12*_0xff13x11};_[_0x3b2e[33]](_0xff13xf[_0x3b2e[18]],function(_0xff13x14,_0xff13x15){switch(_0xff13x15){case _0x3b2e[17]:;case _0x3b2e[19]:break ;;case _0x3b2e[22]:_0xff13x13[_0x3b2e[20]]=util[_0x3b2e[25]](_0x3b2e[21],_0xff13xf[_0x3b2e[18]][_0x3b2e[22]],_0xff13xf[_0x3b2e[18]][_0x3b2e[23]]||_0x3b2e[24])||null;break ;;case _0x3b2e[23]:break ;;case _0x3b2e[31]:_0xff13x13[_0x3b2e[27]][_0x3b2e[26]]=[];_0xff13x10[_0x3b2e[30]](function(_0xff13x16){var _0xff13x17={};_0xff13x17[_0xff13x16]={$like:_0x3b2e[28]+_0xff13x14+_0x3b2e[28]};_0xff13x13[_0x3b2e[27]][_0x3b2e[26]][_0x3b2e[29]](_0xff13x17);});break ;;default:_0xff13x13[_0x3b2e[27]][_0xff13x15]={$like:{}};_0xff13x13[_0x3b2e[27]][_0xff13x15][_0x3b2e[32]]=_0x3b2e[28]+_0xff13x14+_0x3b2e[28];;}});SugarcrmAccount[_0x3b2e[45]](_0xff13x13)[_0x3b2e[9]](function(_0xff13x18){var _0xff13x19=Math[_0x3b2e[37]](_0xff13x18[_0x3b2e[36]]/_0xff13x11);var _0xff13x1a=_0xff13x19>(_0xff13x13[_0x3b2e[38]]+1)?util[_0x3b2e[25]](_0x3b2e[39],_0xff13xf[_0x3b2e[40]],_0xff13xf[_0x3b2e[42]][_0x3b2e[41]],_0xff13xf[_0x3b2e[43]],_0xff13x12+1):null;var _0xff13x1b=_0xff13x12>0?util[_0x3b2e[25]](_0x3b2e[39],_0xff13xf[_0x3b2e[40]],_0xff13xf[_0x3b2e[42]][_0x3b2e[41]],_0xff13xf[_0x3b2e[43]],_0xff13x12-1):null;return _0xff13x5[_0x3b2e[6]](200)[_0x3b2e[5]]({count:_0xff13x18[_0x3b2e[36]],rows:_0xff13x18[_0x3b2e[44]],next_page:_0xff13x1a,previous_page:_0xff13x1b,total_pages:_0xff13x19});})[_0x3b2e[35]](function(_0xff13x7){return _0xff13x5[_0x3b2e[6]](500)[_0x3b2e[5]]({error:_0x3b2e[34]})});};exports[_0x3b2e[46]]=function(_0xff13xf,_0xff13x5){SugarcrmAccount[_0x3b2e[49]](_0xff13xf[_0x3b2e[48]][_0x3b2e[47]])[_0x3b2e[9]](handleEntityNotFound(_0xff13x5))[_0x3b2e[9]](responseWithResult(_0xff13x5))[_0x3b2e[35]](handleError(_0xff13x5))};exports[_0x3b2e[50]]=function(_0xff13xf,_0xff13x5){SugarcrmAccount[_0x3b2e[50]](_0xff13xf[_0x3b2e[51]])[_0x3b2e[9]](responseWithResult(_0xff13x5,201))[_0x3b2e[35]](handleError(_0xff13x5))};exports[_0x3b2e[52]]=function(_0xff13xf,_0xff13x5){if(_0xff13xf[_0x3b2e[51]][_0x3b2e[47]]){delete _0xff13xf[_0x3b2e[51]][_0x3b2e[47]]};SugarcrmAccount[_0x3b2e[49]](_0xff13xf[_0x3b2e[48]][_0x3b2e[47]])[_0x3b2e[9]](handleEntityNotFound(_0xff13x5))[_0x3b2e[9]](saveUpdates(_0xff13xf[_0x3b2e[51]]))[_0x3b2e[9]](responseWithResult(_0xff13x5))[_0x3b2e[35]](handleError(_0xff13x5));};exports[_0x3b2e[11]]=function(_0xff13xf,_0xff13x5){SugarcrmAccount[_0x3b2e[49]](_0xff13xf[_0x3b2e[48]][_0x3b2e[47]])[_0x3b2e[9]](handleEntityNotFound(_0xff13x5))[_0x3b2e[9]](removeEntity(_0xff13x5))[_0x3b2e[35]](handleError(_0xff13x5))};exports[_0x3b2e[53]]=function(_0xff13xf,_0xff13x5){SugarcrmAccount[_0x3b2e[49]](_0xff13xf[_0x3b2e[48]][_0x3b2e[47]])[_0x3b2e[9]](handleEntityNotFound(_0xff13x5))[_0x3b2e[9]](function(_0xff13x1c){var _0xff13x1d=require(_0x3b2e[54]);_0xff13x1d[_0x3b2e[57]]({apiURL:stripTrailingSlash(_0xff13x1c[_0x3b2e[16]])+_0x3b2e[55],login:_0xff13x1c[_0x3b2e[15]],passwd:_0xff13x1c[_0x3b2e[56]]});_0xff13x1d[_0x3b2e[59]](function(_0xff13x1e){if(!_0xff13x1e){return _0xff13x5[_0x3b2e[58]](400)};return _0xff13x5[_0x3b2e[58]](200);});})[_0x3b2e[35]](handleError(_0xff13x5))};exports[_0x3b2e[60]]=function(_0xff13xf,_0xff13x5){SugarcrmAccount[_0x3b2e[11]]({where:{id:_0xff13xf[_0x3b2e[18]][_0x3b2e[47]]},individualHooks:true})[_0x3b2e[9]](function(){return _0xff13x5[_0x3b2e[58]](204)})[_0x3b2e[35]](function(_0xff13x7){return handleError(_0xff13x5,_0xff13x7)})};exports[_0x3b2e[61]]=function(_0xff13xf,_0xff13x5){var _0xff13x1f={};_0xff13x1f[_0xff13xf[_0x3b2e[48]][_0x3b2e[62]]]=_0xff13xf[_0x3b2e[51]][_0x3b2e[63]];SugarcrmAccount[_0x3b2e[45]]({where:_0xff13x1f})[_0x3b2e[9]](function(_0xff13x18){if(_0xff13x18[_0x3b2e[36]]){return _0xff13x5[_0x3b2e[6]](200)[_0x3b2e[5]]({isValid:false,value:_0xff13xf[_0x3b2e[51]][_0x3b2e[63]]})};return _0xff13x5[_0x3b2e[6]](200)[_0x3b2e[5]]({isValid:true,value:_0xff13xf[_0x3b2e[51]][_0x3b2e[63]]});})[_0x3b2e[35]](function(_0xff13x7){return handleError(_0xff13x5,_0xff13x7)});};exports[_0x3b2e[64]]=function(_0xff13xf,_0xff13x5){var _0xff13x1d=require(_0x3b2e[54]);SugarcrmAccount[_0x3b2e[49]](_0xff13xf[_0x3b2e[48]][_0x3b2e[47]])[_0x3b2e[9]](handleEntityNotFound(_0xff13x5))[_0x3b2e[9]](function(_0xff13x1c){_0xff13x1d[_0x3b2e[57]]({apiURL:stripTrailingSlash(_0xff13x1c[_0x3b2e[16]])+_0x3b2e[55],login:_0xff13x1c[_0x3b2e[15]],passwd:_0xff13x1c[_0x3b2e[56]]});_0xff13x1d[_0x3b2e[59]](function(_0xff13x1e){if(!_0xff13x1e){return _0xff13x5[_0x3b2e[58]](400)};var _0xff13x20={session:_0xff13x1e,module_name:_0x3b2e[65]};_0xff13x1d[_0x3b2e[68]](_0x3b2e[66],_0xff13x20,function(_0xff13x18,_0xff13x7){if(_0xff13x7){return _0xff13x5[_0x3b2e[58]](400)};return _0xff13x5[_0x3b2e[6]](200)[_0x3b2e[5]](_0xff13x18[_0x3b2e[67]]);});});})[_0x3b2e[35]](handleError(_0xff13x5));};function stripTrailingSlash(_0xff13x22){if(_0xff13x22[_0x3b2e[69]](-1)===_0x3b2e[70]){return _0xff13x22[_0x3b2e[69]](0,_0xff13x22[_0x3b2e[71]]-1)};return _0xff13x22;}
\ No newline at end of file
+var _0x6490=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x6E\x6F\x64\x65\x2D\x73\x75\x67\x61\x72\x63\x72\x6D\x2D\x63\x6C\x69\x65\x6E\x74","\x2F\x73\x65\x72\x76\x69\x63\x65\x2F\x76\x34\x5F\x31\x2F\x72\x65\x73\x74\x2E\x70\x68\x70","\x70\x61\x73\x73\x77\x6F\x72\x64","\x69\x6E\x69\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6C\x6F\x67\x69\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x63\x63\x6F\x75\x6E\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x43\x61\x73\x65\x73","\x67\x65\x74\x5F\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x6D\x6F\x64\x75\x6C\x65\x5F\x66\x69\x65\x6C\x64\x73","\x63\x61\x6C\x6C","\x73\x75\x62\x73\x74\x72","\x2F","\x6C\x65\x6E\x67\x74\x68"];_0x6490[0];var _=require(_0x6490[1]);var util=require(_0x6490[2]);var SugarcrmAccount=require(_0x6490[4])[_0x6490[3]];function handleError(_0xf859x5,_0xf859x6){_0xf859x6=_0xf859x6||500;return function(_0xf859x7){_0xf859x5[_0x6490[6]](_0xf859x6)[_0x6490[5]](_0xf859x7)};}function responseWithResult(_0xf859x5,_0xf859x6){_0xf859x6=_0xf859x6||200;return function(_0xf859x9){if(_0xf859x9){_0xf859x5[_0x6490[6]](_0xf859x6)[_0x6490[7]](_0xf859x9)}};}function handleEntityNotFound(_0xf859x5){return function(_0xf859x9){if(!_0xf859x9){_0xf859x5[_0x6490[6]](404)[_0x6490[8]]();return null;};return _0xf859x9;}}function saveUpdates(_0xf859xc){return function(_0xf859x9){return _0xf859x9[_0x6490[10]](_0xf859xc)[_0x6490[9]](function(_0xf859xd){return _0xf859xd})}}function removeEntity(_0xf859x5){return function(_0xf859x9){if(_0xf859x9){return _0xf859x9[_0x6490[11]]()[_0x6490[9]](function(){_0xf859x5[_0x6490[6]](204)[_0x6490[8]]()})}}}exports[_0x6490[12]]=function(_0xf859xf,_0xf859x5){var _0xf859x10=[_0x6490[13],_0x6490[14],_0x6490[15],_0x6490[16]];var _0xf859x11=_0xf859xf[_0x6490[18]][_0x6490[17]]?parseInt(_0xf859xf[_0x6490[18]][_0x6490[17]],10):100;var _0xf859x12=_0xf859xf[_0x6490[18]][_0x6490[19]]?parseInt(_0xf859xf[_0x6490[18]][_0x6490[19]],10):0;var _0xf859x13={where:{},limit:_0xf859x11,offset:_0xf859x12*_0xf859x11};_[_0x6490[33]](_0xf859xf[_0x6490[18]],function(_0xf859x14,_0xf859x15){switch(_0xf859x15){case _0x6490[17]:;case _0x6490[19]:break ;;case _0x6490[22]:_0xf859x13[_0x6490[20]]=util[_0x6490[25]](_0x6490[21],_0xf859xf[_0x6490[18]][_0x6490[22]],_0xf859xf[_0x6490[18]][_0x6490[23]]||_0x6490[24])||null;break ;;case _0x6490[23]:break ;;case _0x6490[31]:_0xf859x13[_0x6490[27]][_0x6490[26]]=[];_0xf859x10[_0x6490[30]](function(_0xf859x16){var _0xf859x17={};_0xf859x17[_0xf859x16]={$like:_0x6490[28]+_0xf859x14+_0x6490[28]};_0xf859x13[_0x6490[27]][_0x6490[26]][_0x6490[29]](_0xf859x17);});break ;;default:_0xf859x13[_0x6490[27]][_0xf859x15]={$like:{}};_0xf859x13[_0x6490[27]][_0xf859x15][_0x6490[32]]=_0x6490[28]+_0xf859x14+_0x6490[28];;}});SugarcrmAccount[_0x6490[45]](_0xf859x13)[_0x6490[9]](function(_0xf859x18){var _0xf859x19=Math[_0x6490[37]](_0xf859x18[_0x6490[36]]/_0xf859x11);var _0xf859x1a=_0xf859x19>(_0xf859x13[_0x6490[38]]+1)?util[_0x6490[25]](_0x6490[39],_0xf859xf[_0x6490[40]],_0xf859xf[_0x6490[42]][_0x6490[41]],_0xf859xf[_0x6490[43]],_0xf859x12+1):null;var _0xf859x1b=_0xf859x12>0?util[_0x6490[25]](_0x6490[39],_0xf859xf[_0x6490[40]],_0xf859xf[_0x6490[42]][_0x6490[41]],_0xf859xf[_0x6490[43]],_0xf859x12-1):null;return _0xf859x5[_0x6490[6]](200)[_0x6490[5]]({count:_0xf859x18[_0x6490[36]],rows:_0xf859x18[_0x6490[44]],next_page:_0xf859x1a,previous_page:_0xf859x1b,total_pages:_0xf859x19});})[_0x6490[35]](function(_0xf859x7){return _0xf859x5[_0x6490[6]](500)[_0x6490[5]]({error:_0x6490[34]})});};exports[_0x6490[46]]=function(_0xf859xf,_0xf859x5){SugarcrmAccount[_0x6490[49]](_0xf859xf[_0x6490[48]][_0x6490[47]])[_0x6490[9]](handleEntityNotFound(_0xf859x5))[_0x6490[9]](responseWithResult(_0xf859x5))[_0x6490[35]](handleError(_0xf859x5))};exports[_0x6490[50]]=function(_0xf859xf,_0xf859x5){SugarcrmAccount[_0x6490[50]](_0xf859xf[_0x6490[51]])[_0x6490[9]](responseWithResult(_0xf859x5,201))[_0x6490[35]](handleError(_0xf859x5))};exports[_0x6490[52]]=function(_0xf859xf,_0xf859x5){if(_0xf859xf[_0x6490[51]][_0x6490[47]]){delete _0xf859xf[_0x6490[51]][_0x6490[47]]};SugarcrmAccount[_0x6490[49]](_0xf859xf[_0x6490[48]][_0x6490[47]])[_0x6490[9]](handleEntityNotFound(_0xf859x5))[_0x6490[9]](saveUpdates(_0xf859xf[_0x6490[51]]))[_0x6490[9]](responseWithResult(_0xf859x5))[_0x6490[35]](handleError(_0xf859x5));};exports[_0x6490[11]]=function(_0xf859xf,_0xf859x5){SugarcrmAccount[_0x6490[49]](_0xf859xf[_0x6490[48]][_0x6490[47]])[_0x6490[9]](handleEntityNotFound(_0xf859x5))[_0x6490[9]](removeEntity(_0xf859x5))[_0x6490[35]](handleError(_0xf859x5))};exports[_0x6490[53]]=function(_0xf859xf,_0xf859x5){SugarcrmAccount[_0x6490[49]](_0xf859xf[_0x6490[48]][_0x6490[47]])[_0x6490[9]](handleEntityNotFound(_0xf859x5))[_0x6490[9]](function(_0xf859x1c){var _0xf859x1d=require(_0x6490[54]);_0xf859x1d[_0x6490[57]]({apiURL:stripTrailingSlash(_0xf859x1c[_0x6490[16]])+_0x6490[55],login:_0xf859x1c[_0x6490[15]],passwd:_0xf859x1c[_0x6490[56]]});_0xf859x1d[_0x6490[59]](function(_0xf859x1e){if(!_0xf859x1e){return _0xf859x5[_0x6490[58]](400)};return _0xf859x5[_0x6490[58]](200);});})[_0x6490[35]](handleError(_0xf859x5))};exports[_0x6490[60]]=function(_0xf859xf,_0xf859x5){SugarcrmAccount[_0x6490[11]]({where:{id:_0xf859xf[_0x6490[18]][_0x6490[47]]},individualHooks:true})[_0x6490[9]](function(){return _0xf859x5[_0x6490[58]](204)})[_0x6490[35]](function(_0xf859x7){return handleError(_0xf859x5,_0xf859x7)})};exports[_0x6490[61]]=function(_0xf859xf,_0xf859x5){var _0xf859x1f={};_0xf859x1f[_0xf859xf[_0x6490[48]][_0x6490[62]]]=_0xf859xf[_0x6490[51]][_0x6490[63]];SugarcrmAccount[_0x6490[45]]({where:_0xf859x1f})[_0x6490[9]](function(_0xf859x18){if(_0xf859x18[_0x6490[36]]){return _0xf859x5[_0x6490[6]](200)[_0x6490[5]]({isValid:false,value:_0xf859xf[_0x6490[51]][_0x6490[63]]})};return _0xf859x5[_0x6490[6]](200)[_0x6490[5]]({isValid:true,value:_0xf859xf[_0x6490[51]][_0x6490[63]]});})[_0x6490[35]](function(_0xf859x7){return handleError(_0xf859x5,_0xf859x7)});};exports[_0x6490[64]]=function(_0xf859xf,_0xf859x5){var _0xf859x1d=require(_0x6490[54]);SugarcrmAccount[_0x6490[49]](_0xf859xf[_0x6490[48]][_0x6490[47]])[_0x6490[9]](handleEntityNotFound(_0xf859x5))[_0x6490[9]](function(_0xf859x1c){_0xf859x1d[_0x6490[57]]({apiURL:stripTrailingSlash(_0xf859x1c[_0x6490[16]])+_0x6490[55],login:_0xf859x1c[_0x6490[15]],passwd:_0xf859x1c[_0x6490[56]]});_0xf859x1d[_0x6490[59]](function(_0xf859x1e){if(!_0xf859x1e){return _0xf859x5[_0x6490[58]](400)};var _0xf859x20={session:_0xf859x1e,module_name:_0x6490[65]};_0xf859x1d[_0x6490[68]](_0x6490[66],_0xf859x20,function(_0xf859x18,_0xf859x7){if(_0xf859x7){return _0xf859x5[_0x6490[58]](400)};return _0xf859x5[_0x6490[6]](200)[_0x6490[5]](_0xf859x18[_0x6490[67]]);});});})[_0x6490[35]](handleError(_0xf859x5));};function stripTrailingSlash(_0xf859x22){if(_0xf859x22[_0x6490[69]](-1)===_0x6490[70]){return _0xf859x22[_0x6490[69]](0,_0xf859x22[_0x6490[71]]-1)};return _0xf859x22;}
\ No newline at end of file
-var _0xc6b2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xc6b2[0];var SugarcrmAccount=require(_0xc6b2[2])[_0xc6b2[1]];exports[_0xc6b2[3]]=function(_0xfbe4x2){SugarcrmAccount[_0xc6b2[4]](function(_0xfbe4x3){onSave(_0xfbe4x2,_0xfbe4x3)});SugarcrmAccount[_0xc6b2[5]](function(_0xfbe4x3){onRemove(_0xfbe4x2,_0xfbe4x3)});};function onSave(_0xfbe4x2,_0xfbe4x3,_0xfbe4x5){_0xfbe4x2[_0xc6b2[7]](_0xc6b2[6],_0xfbe4x3)}function onRemove(_0xfbe4x2,_0xfbe4x3,_0xfbe4x5){_0xfbe4x2[_0xc6b2[7]](_0xc6b2[8],_0xfbe4x3)}
\ No newline at end of file
+var _0x6965=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6965[0];var SugarcrmAccount=require(_0x6965[2])[_0x6965[1]];exports[_0x6965[3]]=function(_0x48aax2){SugarcrmAccount[_0x6965[4]](function(_0x48aax3){onSave(_0x48aax2,_0x48aax3)});SugarcrmAccount[_0x6965[5]](function(_0x48aax3){onRemove(_0x48aax2,_0x48aax3)});};function onSave(_0x48aax2,_0x48aax3,_0x48aax5){_0x48aax2[_0x6965[7]](_0x6965[6],_0x48aax3)}function onRemove(_0x48aax2,_0x48aax3,_0x48aax5){_0x48aax2[_0x6965[7]](_0x6965[8],_0x48aax3)}
\ No newline at end of file
-var _0x20a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x20a6[0];var express=require(_0x20a6[1]);var auth=require(_0x20a6[2]);var controller=require(_0x20a6[3]);var router=express.Router();router[_0x20a6[7]](_0x20a6[4],auth[_0x20a6[5]](),controller[_0x20a6[6]]);router[_0x20a6[7]](_0x20a6[8],auth[_0x20a6[5]](),controller[_0x20a6[9]]);router[_0x20a6[11]](_0x20a6[4],auth[_0x20a6[5]](),controller[_0x20a6[10]]);router[_0x20a6[13]](_0x20a6[8],auth[_0x20a6[5]](),controller[_0x20a6[12]]);router[_0x20a6[11]](_0x20a6[14],auth[_0x20a6[5]](),controller[_0x20a6[15]]);router[_0x20a6[16]](_0x20a6[8],auth[_0x20a6[5]](),controller[_0x20a6[12]]);router[_0x20a6[18]](_0x20a6[8],auth[_0x20a6[5]](),controller[_0x20a6[17]]);module[_0x20a6[19]]=router;
\ No newline at end of file
+var _0x5b83=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5b83[0];var express=require(_0x5b83[1]);var auth=require(_0x5b83[2]);var controller=require(_0x5b83[3]);var router=express.Router();router[_0x5b83[7]](_0x5b83[4],auth[_0x5b83[5]](),controller[_0x5b83[6]]);router[_0x5b83[7]](_0x5b83[8],auth[_0x5b83[5]](),controller[_0x5b83[9]]);router[_0x5b83[11]](_0x5b83[4],auth[_0x5b83[5]](),controller[_0x5b83[10]]);router[_0x5b83[13]](_0x5b83[8],auth[_0x5b83[5]](),controller[_0x5b83[12]]);router[_0x5b83[11]](_0x5b83[14],auth[_0x5b83[5]](),controller[_0x5b83[15]]);router[_0x5b83[16]](_0x5b83[8],auth[_0x5b83[5]](),controller[_0x5b83[12]]);router[_0x5b83[18]](_0x5b83[8],auth[_0x5b83[5]](),controller[_0x5b83[17]]);module[_0x5b83[19]]=router;
\ No newline at end of file
-var _0xcbcc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xcbcc[0];var proxyquire=require(_0xcbcc[2])[_0xcbcc[1]]();var sugarcrmConfigurationCtrlStub={index:_0xcbcc[3],show:_0xcbcc[4],create:_0xcbcc[5],update:_0xcbcc[6],destroy:_0xcbcc[7]};var routerStub={get:sinon[_0xcbcc[8]](),put:sinon[_0xcbcc[8]](),patch:sinon[_0xcbcc[8]](),post:sinon[_0xcbcc[8]](),delete:sinon[_0xcbcc[8]]()};var sugarcrmConfigurationIndex=proxyquire(_0xcbcc[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmConfigurationCtrlStub});describe(_0xcbcc[10],function(){it(_0xcbcc[11],function(){expect(sugarcrmConfigurationIndex)[_0xcbcc[13]][_0xcbcc[12]](routerStub)});describe(_0xcbcc[14],function(){it(_0xcbcc[15],function(){expect(routerStub[_0xcbcc[21]][_0xcbcc[20]](_0xcbcc[19],_0xcbcc[3]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});describe(_0xcbcc[22],function(){it(_0xcbcc[23],function(){expect(routerStub[_0xcbcc[21]][_0xcbcc[20]](_0xcbcc[24],_0xcbcc[4]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});describe(_0xcbcc[25],function(){it(_0xcbcc[26],function(){expect(routerStub[_0xcbcc[27]][_0xcbcc[20]](_0xcbcc[19],_0xcbcc[5]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});describe(_0xcbcc[28],function(){it(_0xcbcc[29],function(){expect(routerStub[_0xcbcc[30]][_0xcbcc[20]](_0xcbcc[24],_0xcbcc[6]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});describe(_0xcbcc[31],function(){it(_0xcbcc[29],function(){expect(routerStub[_0xcbcc[32]][_0xcbcc[20]](_0xcbcc[24],_0xcbcc[6]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});describe(_0xcbcc[33],function(){it(_0xcbcc[34],function(){expect(routerStub[_0xcbcc[35]][_0xcbcc[20]](_0xcbcc[24],_0xcbcc[7]))[_0xcbcc[13]][_0xcbcc[18]][_0xcbcc[17]][_0xcbcc[16]]})});});
\ No newline at end of file
+var _0xb56a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0xb56a[0];var proxyquire=require(_0xb56a[2])[_0xb56a[1]]();var sugarcrmConfigurationCtrlStub={index:_0xb56a[3],show:_0xb56a[4],create:_0xb56a[5],update:_0xb56a[6],destroy:_0xb56a[7]};var routerStub={get:sinon[_0xb56a[8]](),put:sinon[_0xb56a[8]](),patch:sinon[_0xb56a[8]](),post:sinon[_0xb56a[8]](),delete:sinon[_0xb56a[8]]()};var sugarcrmConfigurationIndex=proxyquire(_0xb56a[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmConfigurationCtrlStub});describe(_0xb56a[10],function(){it(_0xb56a[11],function(){expect(sugarcrmConfigurationIndex)[_0xb56a[13]][_0xb56a[12]](routerStub)});describe(_0xb56a[14],function(){it(_0xb56a[15],function(){expect(routerStub[_0xb56a[21]][_0xb56a[20]](_0xb56a[19],_0xb56a[3]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});describe(_0xb56a[22],function(){it(_0xb56a[23],function(){expect(routerStub[_0xb56a[21]][_0xb56a[20]](_0xb56a[24],_0xb56a[4]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});describe(_0xb56a[25],function(){it(_0xb56a[26],function(){expect(routerStub[_0xb56a[27]][_0xb56a[20]](_0xb56a[19],_0xb56a[5]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});describe(_0xb56a[28],function(){it(_0xb56a[29],function(){expect(routerStub[_0xb56a[30]][_0xb56a[20]](_0xb56a[24],_0xb56a[6]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});describe(_0xb56a[31],function(){it(_0xb56a[29],function(){expect(routerStub[_0xb56a[32]][_0xb56a[20]](_0xb56a[24],_0xb56a[6]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});describe(_0xb56a[33],function(){it(_0xb56a[34],function(){expect(routerStub[_0xb56a[35]][_0xb56a[20]](_0xb56a[24],_0xb56a[7]))[_0xb56a[13]][_0xb56a[18]][_0xb56a[17]][_0xb56a[16]]})});});
\ No newline at end of file
-var _0xf8a9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xf8a9[0];var _=require(_0xf8a9[1]);var SugarcrmConfiguration=require(_0xf8a9[3])[_0xf8a9[2]];var SugarcrmField=require(_0xf8a9[3])[_0xf8a9[4]];function handleError(_0x7975x5,_0x7975x6){_0x7975x6=_0x7975x6||500;return function(_0x7975x7){_0x7975x5[_0xf8a9[6]](_0x7975x6)[_0xf8a9[5]](_0x7975x7)};}function responseWithResult(_0x7975x5,_0x7975x6){_0x7975x6=_0x7975x6||200;return function(_0x7975x9){if(_0x7975x9){_0x7975x5[_0xf8a9[6]](_0x7975x6)[_0xf8a9[7]](_0x7975x9)}};}function handleEntityNotFound(_0x7975x5){return function(_0x7975x9){if(!_0x7975x9){_0x7975x5[_0xf8a9[6]](404)[_0xf8a9[8]]();return null;};return _0x7975x9;}}function saveUpdates(_0x7975xc){return function(_0x7975x9){return _0x7975x9[_0xf8a9[10]](_0x7975xc)[_0xf8a9[9]](function(_0x7975xd){return _0x7975xd})}}function removeEntity(_0x7975x5){return function(_0x7975x9){if(_0x7975x9){return _0x7975x9[_0xf8a9[11]]()[_0xf8a9[9]](function(){_0x7975x5[_0xf8a9[6]](204)[_0xf8a9[8]]()})}}}exports[_0xf8a9[12]]=function(_0x7975xf,_0x7975x5){SugarcrmConfiguration[_0xf8a9[15]]({where:_0x7975xf[_0xf8a9[14]]})[_0xf8a9[9]](responseWithResult(_0x7975x5))[_0xf8a9[13]](handleError(_0x7975x5))};exports[_0xf8a9[16]]=function(_0x7975xf,_0x7975x5){SugarcrmConfiguration[_0xf8a9[22]]({where:{id:_0x7975xf[_0xf8a9[18]][_0xf8a9[17]]},include:[{model:SugarcrmField,as:_0xf8a9[19]},{model:SugarcrmField,as:_0xf8a9[20]},{model:SugarcrmField,as:_0xf8a9[21]}]})[_0xf8a9[9]](handleEntityNotFound(_0x7975x5))[_0xf8a9[9]](responseWithResult(_0x7975x5))[_0xf8a9[13]](handleError(_0x7975x5))};exports[_0xf8a9[23]]=function(_0x7975xf,_0x7975x5){SugarcrmConfiguration[_0xf8a9[23]](_0x7975xf[_0xf8a9[24]])[_0xf8a9[9]](responseWithResult(_0x7975x5,201))[_0xf8a9[13]](handleError(_0x7975x5))};exports[_0xf8a9[25]]=function(_0x7975xf,_0x7975x5){if(_0x7975xf[_0xf8a9[24]][_0xf8a9[17]]){delete _0x7975xf[_0xf8a9[24]][_0xf8a9[17]]};SugarcrmConfiguration[_0xf8a9[26]](_0x7975xf[_0xf8a9[18]][_0xf8a9[17]])[_0xf8a9[9]](handleEntityNotFound(_0x7975x5))[_0xf8a9[9]](saveUpdates(_0x7975xf[_0xf8a9[24]]))[_0xf8a9[9]](responseWithResult(_0x7975x5))[_0xf8a9[13]](handleError(_0x7975x5));};exports[_0xf8a9[11]]=function(_0x7975xf,_0x7975x5){SugarcrmConfiguration[_0xf8a9[26]](_0x7975xf[_0xf8a9[18]][_0xf8a9[17]])[_0xf8a9[9]](handleEntityNotFound(_0x7975x5))[_0xf8a9[9]](removeEntity(_0x7975x5))[_0xf8a9[13]](handleError(_0x7975x5))};exports[_0xf8a9[27]]=function(_0x7975xf,_0x7975x5,_0x7975x10){var _0x7975x11;SugarcrmConfiguration[_0xf8a9[26]](_0x7975xf[_0xf8a9[18]][_0xf8a9[17]])[_0xf8a9[9]](handleEntityNotFound(_0x7975x5))[_0xf8a9[9]](function(_0x7975x14){_0x7975x11=_0x7975x14;return SugarcrmField[_0xf8a9[23]](_0x7975xf[_0xf8a9[24]]);})[_0xf8a9[9]](function(_0x7975x13){switch(_0x7975xf[_0xf8a9[18]][_0xf8a9[35]]){case _0xf8a9[30]:return [_0x7975x11[_0xf8a9[29]](_0x7975x13),_0x7975x13];;case _0xf8a9[32]:return [_0x7975x11[_0xf8a9[31]](_0x7975x13),_0x7975x13];;case _0xf8a9[34]:return [_0x7975x11[_0xf8a9[33]](_0x7975x13),_0x7975x13];;}})[_0xf8a9[28]](function(_0x7975x12,_0x7975x13){return _0x7975x5[_0xf8a9[6]](201)[_0xf8a9[7]](_0x7975x13)})[_0xf8a9[13]](handleError(_0x7975x5));};
\ No newline at end of file
+var _0x595f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x595f[0];var _=require(_0x595f[1]);var SugarcrmConfiguration=require(_0x595f[3])[_0x595f[2]];var SugarcrmField=require(_0x595f[3])[_0x595f[4]];function handleError(_0x6497x5,_0x6497x6){_0x6497x6=_0x6497x6||500;return function(_0x6497x7){_0x6497x5[_0x595f[6]](_0x6497x6)[_0x595f[5]](_0x6497x7)};}function responseWithResult(_0x6497x5,_0x6497x6){_0x6497x6=_0x6497x6||200;return function(_0x6497x9){if(_0x6497x9){_0x6497x5[_0x595f[6]](_0x6497x6)[_0x595f[7]](_0x6497x9)}};}function handleEntityNotFound(_0x6497x5){return function(_0x6497x9){if(!_0x6497x9){_0x6497x5[_0x595f[6]](404)[_0x595f[8]]();return null;};return _0x6497x9;}}function saveUpdates(_0x6497xc){return function(_0x6497x9){return _0x6497x9[_0x595f[10]](_0x6497xc)[_0x595f[9]](function(_0x6497xd){return _0x6497xd})}}function removeEntity(_0x6497x5){return function(_0x6497x9){if(_0x6497x9){return _0x6497x9[_0x595f[11]]()[_0x595f[9]](function(){_0x6497x5[_0x595f[6]](204)[_0x595f[8]]()})}}}exports[_0x595f[12]]=function(_0x6497xf,_0x6497x5){SugarcrmConfiguration[_0x595f[15]]({where:_0x6497xf[_0x595f[14]]})[_0x595f[9]](responseWithResult(_0x6497x5))[_0x595f[13]](handleError(_0x6497x5))};exports[_0x595f[16]]=function(_0x6497xf,_0x6497x5){SugarcrmConfiguration[_0x595f[22]]({where:{id:_0x6497xf[_0x595f[18]][_0x595f[17]]},include:[{model:SugarcrmField,as:_0x595f[19]},{model:SugarcrmField,as:_0x595f[20]},{model:SugarcrmField,as:_0x595f[21]}]})[_0x595f[9]](handleEntityNotFound(_0x6497x5))[_0x595f[9]](responseWithResult(_0x6497x5))[_0x595f[13]](handleError(_0x6497x5))};exports[_0x595f[23]]=function(_0x6497xf,_0x6497x5){SugarcrmConfiguration[_0x595f[23]](_0x6497xf[_0x595f[24]])[_0x595f[9]](responseWithResult(_0x6497x5,201))[_0x595f[13]](handleError(_0x6497x5))};exports[_0x595f[25]]=function(_0x6497xf,_0x6497x5){if(_0x6497xf[_0x595f[24]][_0x595f[17]]){delete _0x6497xf[_0x595f[24]][_0x595f[17]]};SugarcrmConfiguration[_0x595f[26]](_0x6497xf[_0x595f[18]][_0x595f[17]])[_0x595f[9]](handleEntityNotFound(_0x6497x5))[_0x595f[9]](saveUpdates(_0x6497xf[_0x595f[24]]))[_0x595f[9]](responseWithResult(_0x6497x5))[_0x595f[13]](handleError(_0x6497x5));};exports[_0x595f[11]]=function(_0x6497xf,_0x6497x5){SugarcrmConfiguration[_0x595f[26]](_0x6497xf[_0x595f[18]][_0x595f[17]])[_0x595f[9]](handleEntityNotFound(_0x6497x5))[_0x595f[9]](removeEntity(_0x6497x5))[_0x595f[13]](handleError(_0x6497x5))};exports[_0x595f[27]]=function(_0x6497xf,_0x6497x5,_0x6497x10){var _0x6497x11;SugarcrmConfiguration[_0x595f[26]](_0x6497xf[_0x595f[18]][_0x595f[17]])[_0x595f[9]](handleEntityNotFound(_0x6497x5))[_0x595f[9]](function(_0x6497x14){_0x6497x11=_0x6497x14;return SugarcrmField[_0x595f[23]](_0x6497xf[_0x595f[24]]);})[_0x595f[9]](function(_0x6497x13){switch(_0x6497xf[_0x595f[18]][_0x595f[35]]){case _0x595f[30]:return [_0x6497x11[_0x595f[29]](_0x6497x13),_0x6497x13];;case _0x595f[32]:return [_0x6497x11[_0x595f[31]](_0x6497x13),_0x6497x13];;case _0x595f[34]:return [_0x6497x11[_0x595f[33]](_0x6497x13),_0x6497x13];;}})[_0x595f[28]](function(_0x6497x12,_0x6497x13){return _0x6497x5[_0x595f[6]](201)[_0x595f[7]](_0x6497x13)})[_0x595f[13]](handleError(_0x6497x5));};
\ No newline at end of file
-var _0x4eb1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4eb1[0];var SugarcrmConfiguration=require(_0x4eb1[2])[_0x4eb1[1]];exports[_0x4eb1[3]]=function(_0x3864x2){SugarcrmConfiguration[_0x4eb1[4]](function(_0x3864x3){onSave(_0x3864x2,_0x3864x3)});SugarcrmConfiguration[_0x4eb1[5]](function(_0x3864x3){onRemove(_0x3864x2,_0x3864x3)});};function onSave(_0x3864x2,_0x3864x3,_0x3864x5){_0x3864x2[_0x4eb1[7]](_0x4eb1[6],_0x3864x3)}function onRemove(_0x3864x2,_0x3864x3,_0x3864x5){_0x3864x2[_0x4eb1[7]](_0x4eb1[8],_0x3864x3)}
\ No newline at end of file
+var _0xd221=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xd221[0];var SugarcrmConfiguration=require(_0xd221[2])[_0xd221[1]];exports[_0xd221[3]]=function(_0x13ecx2){SugarcrmConfiguration[_0xd221[4]](function(_0x13ecx3){onSave(_0x13ecx2,_0x13ecx3)});SugarcrmConfiguration[_0xd221[5]](function(_0x13ecx3){onRemove(_0x13ecx2,_0x13ecx3)});};function onSave(_0x13ecx2,_0x13ecx3,_0x13ecx5){_0x13ecx2[_0xd221[7]](_0xd221[6],_0x13ecx3)}function onRemove(_0x13ecx2,_0x13ecx3,_0x13ecx5){_0x13ecx2[_0xd221[7]](_0xd221[8],_0x13ecx3)}
\ No newline at end of file
-var _0xfd79=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xfd79[0];var express=require(_0xfd79[1]);var auth=require(_0xfd79[2]);var controller=require(_0xfd79[3]);var router=express.Router();router[_0xfd79[7]](_0xfd79[4],auth[_0xfd79[5]](),controller[_0xfd79[6]]);router[_0xfd79[7]](_0xfd79[8],auth[_0xfd79[5]](),controller[_0xfd79[9]]);router[_0xfd79[11]](_0xfd79[4],auth[_0xfd79[5]](),controller[_0xfd79[10]]);router[_0xfd79[13]](_0xfd79[8],auth[_0xfd79[5]](),controller[_0xfd79[12]]);router[_0xfd79[14]](_0xfd79[8],auth[_0xfd79[5]](),controller[_0xfd79[12]]);router[_0xfd79[16]](_0xfd79[8],auth[_0xfd79[5]](),controller[_0xfd79[15]]);module[_0xfd79[17]]=router;
\ No newline at end of file
+var _0xa0fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa0fa[0];var express=require(_0xa0fa[1]);var auth=require(_0xa0fa[2]);var controller=require(_0xa0fa[3]);var router=express.Router();router[_0xa0fa[7]](_0xa0fa[4],auth[_0xa0fa[5]](),controller[_0xa0fa[6]]);router[_0xa0fa[7]](_0xa0fa[8],auth[_0xa0fa[5]](),controller[_0xa0fa[9]]);router[_0xa0fa[11]](_0xa0fa[4],auth[_0xa0fa[5]](),controller[_0xa0fa[10]]);router[_0xa0fa[13]](_0xa0fa[8],auth[_0xa0fa[5]](),controller[_0xa0fa[12]]);router[_0xa0fa[14]](_0xa0fa[8],auth[_0xa0fa[5]](),controller[_0xa0fa[12]]);router[_0xa0fa[16]](_0xa0fa[8],auth[_0xa0fa[5]](),controller[_0xa0fa[15]]);module[_0xa0fa[17]]=router;
\ No newline at end of file
-var _0x9458=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x9458[0];var proxyquire=require(_0x9458[2])[_0x9458[1]]();var sugarcrmFieldCtrlStub={index:_0x9458[3],show:_0x9458[4],create:_0x9458[5],update:_0x9458[6],destroy:_0x9458[7]};var routerStub={get:sinon[_0x9458[8]](),put:sinon[_0x9458[8]](),patch:sinon[_0x9458[8]](),post:sinon[_0x9458[8]](),delete:sinon[_0x9458[8]]()};var sugarcrmFieldIndex=proxyquire(_0x9458[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmFieldCtrlStub});describe(_0x9458[10],function(){it(_0x9458[11],function(){expect(sugarcrmFieldIndex)[_0x9458[13]][_0x9458[12]](routerStub)});describe(_0x9458[14],function(){it(_0x9458[15],function(){expect(routerStub[_0x9458[21]][_0x9458[20]](_0x9458[19],_0x9458[3]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});describe(_0x9458[22],function(){it(_0x9458[23],function(){expect(routerStub[_0x9458[21]][_0x9458[20]](_0x9458[24],_0x9458[4]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});describe(_0x9458[25],function(){it(_0x9458[26],function(){expect(routerStub[_0x9458[27]][_0x9458[20]](_0x9458[19],_0x9458[5]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});describe(_0x9458[28],function(){it(_0x9458[29],function(){expect(routerStub[_0x9458[30]][_0x9458[20]](_0x9458[24],_0x9458[6]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});describe(_0x9458[31],function(){it(_0x9458[29],function(){expect(routerStub[_0x9458[32]][_0x9458[20]](_0x9458[24],_0x9458[6]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});describe(_0x9458[33],function(){it(_0x9458[34],function(){expect(routerStub[_0x9458[35]][_0x9458[20]](_0x9458[24],_0x9458[7]))[_0x9458[13]][_0x9458[18]][_0x9458[17]][_0x9458[16]]})});});
\ No newline at end of file
+var _0x5c0c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6E\x6F\x50\x72\x65\x73\x65\x72\x76\x65\x43\x61\x63\x68\x65","\x70\x72\x6F\x78\x79\x71\x75\x69\x72\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x69\x6E\x64\x65\x78","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x73\x68\x6F\x77","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x63\x72\x65\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x75\x70\x64\x61\x74\x65","\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x43\x74\x72\x6C\x2E\x64\x65\x73\x74\x72\x6F\x79","\x73\x70\x79","\x2E\x2F\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x20\x41\x50\x49\x20\x52\x6F\x75\x74\x65\x72\x3A","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x74\x75\x72\x6E\x20\x61\x6E\x20\x65\x78\x70\x72\x65\x73\x73\x20\x72\x6F\x75\x74\x65\x72\x20\x69\x6E\x73\x74\x61\x6E\x63\x65","\x65\x71\x75\x61\x6C","\x74\x6F","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x69\x6E\x64\x65\x78","\x63\x61\x6C\x6C\x65\x64\x4F\x6E\x63\x65","\x62\x65\x65\x6E","\x68\x61\x76\x65","\x2F","\x77\x69\x74\x68\x41\x72\x67\x73","\x67\x65\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x50\x4F\x53\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x50\x55\x54\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x50\x41\x54\x43\x48\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x44\x45\x4C\x45\x54\x45\x20\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x6F\x75\x74\x65\x20\x74\x6F\x20\x73\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72\x2E\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65"];_0x5c0c[0];var proxyquire=require(_0x5c0c[2])[_0x5c0c[1]]();var sugarcrmFieldCtrlStub={index:_0x5c0c[3],show:_0x5c0c[4],create:_0x5c0c[5],update:_0x5c0c[6],destroy:_0x5c0c[7]};var routerStub={get:sinon[_0x5c0c[8]](),put:sinon[_0x5c0c[8]](),patch:sinon[_0x5c0c[8]](),post:sinon[_0x5c0c[8]](),delete:sinon[_0x5c0c[8]]()};var sugarcrmFieldIndex=proxyquire(_0x5c0c[9],{"\x65\x78\x70\x72\x65\x73\x73":{Router:function(){return routerStub}},"\x2E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72":sugarcrmFieldCtrlStub});describe(_0x5c0c[10],function(){it(_0x5c0c[11],function(){expect(sugarcrmFieldIndex)[_0x5c0c[13]][_0x5c0c[12]](routerStub)});describe(_0x5c0c[14],function(){it(_0x5c0c[15],function(){expect(routerStub[_0x5c0c[21]][_0x5c0c[20]](_0x5c0c[19],_0x5c0c[3]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});describe(_0x5c0c[22],function(){it(_0x5c0c[23],function(){expect(routerStub[_0x5c0c[21]][_0x5c0c[20]](_0x5c0c[24],_0x5c0c[4]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});describe(_0x5c0c[25],function(){it(_0x5c0c[26],function(){expect(routerStub[_0x5c0c[27]][_0x5c0c[20]](_0x5c0c[19],_0x5c0c[5]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});describe(_0x5c0c[28],function(){it(_0x5c0c[29],function(){expect(routerStub[_0x5c0c[30]][_0x5c0c[20]](_0x5c0c[24],_0x5c0c[6]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});describe(_0x5c0c[31],function(){it(_0x5c0c[29],function(){expect(routerStub[_0x5c0c[32]][_0x5c0c[20]](_0x5c0c[24],_0x5c0c[6]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});describe(_0x5c0c[33],function(){it(_0x5c0c[34],function(){expect(routerStub[_0x5c0c[35]][_0x5c0c[20]](_0x5c0c[24],_0x5c0c[7]))[_0x5c0c[13]][_0x5c0c[18]][_0x5c0c[17]][_0x5c0c[16]]})});});
\ No newline at end of file
-var _0x8bc3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x8bc3[0];var _=require(_0x8bc3[1]);var SugarcrmField=require(_0x8bc3[3])[_0x8bc3[2]];function handleError(_0x3b86x4,_0x3b86x5){_0x3b86x5=_0x3b86x5||500;return function(_0x3b86x6){_0x3b86x4[_0x8bc3[5]](_0x3b86x5)[_0x8bc3[4]](_0x3b86x6)};}function responseWithResult(_0x3b86x4,_0x3b86x5){_0x3b86x5=_0x3b86x5||200;return function(_0x3b86x8){if(_0x3b86x8){_0x3b86x4[_0x8bc3[5]](_0x3b86x5)[_0x8bc3[6]](_0x3b86x8)}};}function handleEntityNotFound(_0x3b86x4){return function(_0x3b86x8){if(!_0x3b86x8){_0x3b86x4[_0x8bc3[5]](404)[_0x8bc3[7]]();return null;};return _0x3b86x8;}}function saveUpdates(_0x3b86xb){return function(_0x3b86x8){return _0x3b86x8[_0x8bc3[9]](_0x3b86xb)[_0x8bc3[8]](function(_0x3b86xc){return _0x3b86xc})}}function removeEntity(_0x3b86x4){return function(_0x3b86x8){if(_0x3b86x8){return _0x3b86x8[_0x8bc3[10]]()[_0x8bc3[8]](function(){_0x3b86x4[_0x8bc3[5]](204)[_0x8bc3[7]]()})}}}exports[_0x8bc3[11]]=function(_0x3b86xe,_0x3b86x4){SugarcrmField[_0x8bc3[13]]()[_0x8bc3[8]](responseWithResult(_0x3b86x4))[_0x8bc3[12]](handleError(_0x3b86x4))};exports[_0x8bc3[14]]=function(_0x3b86xe,_0x3b86x4){SugarcrmField[_0x8bc3[17]](_0x3b86xe[_0x8bc3[16]][_0x8bc3[15]])[_0x8bc3[8]](handleEntityNotFound(_0x3b86x4))[_0x8bc3[8]](responseWithResult(_0x3b86x4))[_0x8bc3[12]](handleError(_0x3b86x4))};exports[_0x8bc3[18]]=function(_0x3b86xe,_0x3b86x4){SugarcrmField[_0x8bc3[18]](_0x3b86xe[_0x8bc3[19]])[_0x8bc3[8]](responseWithResult(_0x3b86x4,201))[_0x8bc3[12]](handleError(_0x3b86x4))};exports[_0x8bc3[20]]=function(_0x3b86xe,_0x3b86x4){if(_0x3b86xe[_0x8bc3[19]][_0x8bc3[15]]){delete _0x3b86xe[_0x8bc3[19]][_0x8bc3[15]]};SugarcrmField[_0x8bc3[17]](_0x3b86xe[_0x8bc3[16]][_0x8bc3[15]])[_0x8bc3[8]](handleEntityNotFound(_0x3b86x4))[_0x8bc3[8]](saveUpdates(_0x3b86xe[_0x8bc3[19]]))[_0x8bc3[8]](responseWithResult(_0x3b86x4))[_0x8bc3[12]](handleError(_0x3b86x4));};exports[_0x8bc3[10]]=function(_0x3b86xe,_0x3b86x4){SugarcrmField[_0x8bc3[17]](_0x3b86xe[_0x8bc3[16]][_0x8bc3[15]])[_0x8bc3[8]](handleEntityNotFound(_0x3b86x4))[_0x8bc3[8]](removeEntity(_0x3b86x4))[_0x8bc3[12]](handleError(_0x3b86x4))};
\ No newline at end of file
+var _0x382b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65"];_0x382b[0];var _=require(_0x382b[1]);var SugarcrmField=require(_0x382b[3])[_0x382b[2]];function handleError(_0x7f92x4,_0x7f92x5){_0x7f92x5=_0x7f92x5||500;return function(_0x7f92x6){_0x7f92x4[_0x382b[5]](_0x7f92x5)[_0x382b[4]](_0x7f92x6)};}function responseWithResult(_0x7f92x4,_0x7f92x5){_0x7f92x5=_0x7f92x5||200;return function(_0x7f92x8){if(_0x7f92x8){_0x7f92x4[_0x382b[5]](_0x7f92x5)[_0x382b[6]](_0x7f92x8)}};}function handleEntityNotFound(_0x7f92x4){return function(_0x7f92x8){if(!_0x7f92x8){_0x7f92x4[_0x382b[5]](404)[_0x382b[7]]();return null;};return _0x7f92x8;}}function saveUpdates(_0x7f92xb){return function(_0x7f92x8){return _0x7f92x8[_0x382b[9]](_0x7f92xb)[_0x382b[8]](function(_0x7f92xc){return _0x7f92xc})}}function removeEntity(_0x7f92x4){return function(_0x7f92x8){if(_0x7f92x8){return _0x7f92x8[_0x382b[10]]()[_0x382b[8]](function(){_0x7f92x4[_0x382b[5]](204)[_0x382b[7]]()})}}}exports[_0x382b[11]]=function(_0x7f92xe,_0x7f92x4){SugarcrmField[_0x382b[13]]()[_0x382b[8]](responseWithResult(_0x7f92x4))[_0x382b[12]](handleError(_0x7f92x4))};exports[_0x382b[14]]=function(_0x7f92xe,_0x7f92x4){SugarcrmField[_0x382b[17]](_0x7f92xe[_0x382b[16]][_0x382b[15]])[_0x382b[8]](handleEntityNotFound(_0x7f92x4))[_0x382b[8]](responseWithResult(_0x7f92x4))[_0x382b[12]](handleError(_0x7f92x4))};exports[_0x382b[18]]=function(_0x7f92xe,_0x7f92x4){SugarcrmField[_0x382b[18]](_0x7f92xe[_0x382b[19]])[_0x382b[8]](responseWithResult(_0x7f92x4,201))[_0x382b[12]](handleError(_0x7f92x4))};exports[_0x382b[20]]=function(_0x7f92xe,_0x7f92x4){if(_0x7f92xe[_0x382b[19]][_0x382b[15]]){delete _0x7f92xe[_0x382b[19]][_0x382b[15]]};SugarcrmField[_0x382b[17]](_0x7f92xe[_0x382b[16]][_0x382b[15]])[_0x382b[8]](handleEntityNotFound(_0x7f92x4))[_0x382b[8]](saveUpdates(_0x7f92xe[_0x382b[19]]))[_0x382b[8]](responseWithResult(_0x7f92x4))[_0x382b[12]](handleError(_0x7f92x4));};exports[_0x382b[10]]=function(_0x7f92xe,_0x7f92x4){SugarcrmField[_0x382b[17]](_0x7f92xe[_0x382b[16]][_0x382b[15]])[_0x382b[8]](handleEntityNotFound(_0x7f92x4))[_0x382b[8]](removeEntity(_0x7f92x4))[_0x382b[12]](handleError(_0x7f92x4))};
\ No newline at end of file
-var _0x224e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x224e[0];var SugarcrmField=require(_0x224e[2])[_0x224e[1]];exports[_0x224e[3]]=function(_0x5f51x2){SugarcrmField[_0x224e[4]](function(_0x5f51x3){onSave(_0x5f51x2,_0x5f51x3)});SugarcrmField[_0x224e[5]](function(_0x5f51x3){onRemove(_0x5f51x2,_0x5f51x3)});};function onSave(_0x5f51x2,_0x5f51x3,_0x5f51x5){_0x5f51x2[_0x224e[7]](_0x224e[6],_0x5f51x3)}function onRemove(_0x5f51x2,_0x5f51x3,_0x5f51x5){_0x5f51x2[_0x224e[7]](_0x224e[8],_0x5f51x3)}
\ No newline at end of file
+var _0x694e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x694e[0];var SugarcrmField=require(_0x694e[2])[_0x694e[1]];exports[_0x694e[3]]=function(_0x8d50x2){SugarcrmField[_0x694e[4]](function(_0x8d50x3){onSave(_0x8d50x2,_0x8d50x3)});SugarcrmField[_0x694e[5]](function(_0x8d50x3){onRemove(_0x8d50x2,_0x8d50x3)});};function onSave(_0x8d50x2,_0x8d50x3,_0x8d50x5){_0x8d50x2[_0x694e[7]](_0x694e[6],_0x8d50x3)}function onRemove(_0x8d50x2,_0x8d50x3,_0x8d50x5){_0x8d50x2[_0x694e[7]](_0x694e[8],_0x8d50x3)}
\ No newline at end of file
-var _0x4a4c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x61\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x74\x61\x67\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4a4c[0];var express=require(_0x4a4c[1]);var controller=require(_0x4a4c[2]);var auth=require(_0x4a4c[3]);var router=express.Router();router[_0x4a4c[7]](_0x4a4c[4],auth[_0x4a4c[5]](),controller[_0x4a4c[6]]);router[_0x4a4c[7]](_0x4a4c[8],auth[_0x4a4c[5]](),controller[_0x4a4c[9]]);router[_0x4a4c[11]](_0x4a4c[4],auth[_0x4a4c[5]](),controller[_0x4a4c[10]]);router[_0x4a4c[11]](_0x4a4c[12],auth[_0x4a4c[5]](),controller[_0x4a4c[13]]);router[_0x4a4c[15]](_0x4a4c[8],auth[_0x4a4c[5]](),controller[_0x4a4c[14]]);router[_0x4a4c[16]](_0x4a4c[8],auth[_0x4a4c[5]](),controller[_0x4a4c[14]]);router[_0x4a4c[18]](_0x4a4c[4],auth[_0x4a4c[5]](),controller[_0x4a4c[17]]);router[_0x4a4c[18]](_0x4a4c[8],auth[_0x4a4c[5]](),controller[_0x4a4c[19]]);module[_0x4a4c[20]]=router;
\ No newline at end of file
+var _0x9bd4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x61\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x74\x61\x67\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x9bd4[0];var express=require(_0x9bd4[1]);var controller=require(_0x9bd4[2]);var auth=require(_0x9bd4[3]);var router=express.Router();router[_0x9bd4[7]](_0x9bd4[4],auth[_0x9bd4[5]](),controller[_0x9bd4[6]]);router[_0x9bd4[7]](_0x9bd4[8],auth[_0x9bd4[5]](),controller[_0x9bd4[9]]);router[_0x9bd4[11]](_0x9bd4[4],auth[_0x9bd4[5]](),controller[_0x9bd4[10]]);router[_0x9bd4[11]](_0x9bd4[12],auth[_0x9bd4[5]](),controller[_0x9bd4[13]]);router[_0x9bd4[15]](_0x9bd4[8],auth[_0x9bd4[5]](),controller[_0x9bd4[14]]);router[_0x9bd4[16]](_0x9bd4[8],auth[_0x9bd4[5]](),controller[_0x9bd4[14]]);router[_0x9bd4[18]](_0x9bd4[4],auth[_0x9bd4[5]](),controller[_0x9bd4[17]]);router[_0x9bd4[18]](_0x9bd4[8],auth[_0x9bd4[5]](),controller[_0x9bd4[19]]);module[_0x9bd4[20]]=router;
\ No newline at end of file
-var _0x54cf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x61\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x6C\x6F\x67","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x74\x61\x67\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x54\x41\x47","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x54cf[0];var _=require(_0x54cf[1]);var Tag=require(_0x54cf[3])[_0x54cf[2]];var util=require(_0x54cf[4]);exports[_0x54cf[5]]=function(_0xd450x4,_0xd450x5){var _0xd450x6=[_0x54cf[6],_0x54cf[7]];var _0xd450x7=_0xd450x4[_0x54cf[9]][_0x54cf[8]]?parseInt(_0xd450x4[_0x54cf[9]][_0x54cf[8]],10):100;var _0xd450x8=_0xd450x4[_0x54cf[9]][_0x54cf[10]]?parseInt(_0xd450x4[_0x54cf[9]][_0x54cf[10]],10):0;var _0xd450x9={where:{},limit:_0xd450x7,offset:_0xd450x8*_0xd450x7};_[_0x54cf[24]](_0xd450x4[_0x54cf[9]],function(_0xd450xa,_0xd450xb){switch(_0xd450xb){case _0x54cf[8]:;case _0x54cf[10]:break ;;case _0x54cf[13]:_0xd450x9[_0x54cf[11]]=util[_0x54cf[16]](_0x54cf[12],_0xd450x4[_0x54cf[9]][_0x54cf[13]],_0xd450x4[_0x54cf[9]][_0x54cf[14]]||_0x54cf[15])||null;break ;;case _0x54cf[14]:break ;;case _0x54cf[22]:_0xd450x9[_0x54cf[18]][_0x54cf[17]]=[];_0xd450x6[_0x54cf[21]](function(_0xd450xc){var _0xd450xd={};_0xd450xd[_0xd450xc]={$like:_0x54cf[19]+_0xd450xa+_0x54cf[19]};_0xd450x9[_0x54cf[18]][_0x54cf[17]][_0x54cf[20]](_0xd450xd);});break ;;default:_0xd450x9[_0x54cf[18]][_0xd450xb]={$like:{}};_0xd450x9[_0x54cf[18]][_0xd450xb][_0x54cf[23]]=_0x54cf[19]+_0xd450xa+_0x54cf[19];;}});console[_0x54cf[25]](_0xd450x9);Tag[_0x54cf[40]](_0xd450x9)[_0x54cf[39]](function(_0xd450xf){var _0xd450x10=Math[_0x54cf[31]](_0xd450xf[_0x54cf[30]]/_0xd450x7);var _0xd450x11=_0xd450x10>(_0xd450x9[_0x54cf[32]]+1)?util[_0x54cf[16]](_0x54cf[33],_0xd450x4[_0x54cf[34]],_0xd450x4[_0x54cf[36]][_0x54cf[35]],_0xd450x4[_0x54cf[37]],_0xd450x8+1):null;var _0xd450x12=_0xd450x8>0?util[_0x54cf[16]](_0x54cf[33],_0xd450x4[_0x54cf[34]],_0xd450x4[_0x54cf[36]][_0x54cf[35]],_0xd450x4[_0x54cf[37]],_0xd450x8-1):null;_0xd450x5[_0x54cf[28]](200)[_0x54cf[27]]({count:_0xd450xf[_0x54cf[30]],rows:_0xd450xf[_0x54cf[38]],next_page:_0xd450x11,previous_page:_0xd450x12,total_pages:_0xd450x10});})[_0x54cf[29]](function(_0xd450xe){_0xd450x5[_0x54cf[28]](500)[_0x54cf[27]]({error:_0x54cf[26]})});};exports[_0x54cf[41]]=function(_0xd450x4,_0xd450x5){console[_0x54cf[25]](_0xd450x4[_0x54cf[42]]);Tag[_0x54cf[44]]({where:{name:_0xd450x4[_0x54cf[42]][_0x54cf[6]]}})[_0x54cf[39]](function(_0xd450x13){if(!_0xd450x13){return _0xd450x5[_0x54cf[43]](404)};return _0xd450x5[_0x54cf[27]](_0xd450x13);})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)});};exports[_0x54cf[45]]=function(_0xd450x4,_0xd450x5){Tag[_0x54cf[48]](_0xd450x4[_0x54cf[47]][_0x54cf[46]])[_0x54cf[39]](function(_0xd450x14){if(!_0xd450x14){return _0xd450x5[_0x54cf[43]](404)};return _0xd450x5[_0x54cf[27]](_0xd450x14);})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)})};exports[_0x54cf[49]]=function(_0xd450x4,_0xd450x5){Tag[_0x54cf[49]](_0xd450x4[_0x54cf[42]])[_0x54cf[39]](function(_0xd450x14){return _0xd450x5[_0x54cf[28]](201)[_0x54cf[27]](_0xd450x14)})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)})};exports[_0x54cf[50]]=function(_0xd450x4,_0xd450x5){Tag[_0x54cf[44]]({where:{name:_0xd450x4[_0x54cf[42]][_0x54cf[6]],id:{$ne:_0xd450x4[_0x54cf[42]][_0x54cf[46]]}}})[_0x54cf[39]](function(_0xd450x13){if(!_0xd450x13){return _0xd450x5[_0x54cf[43]](404)};if(_0xd450x13[_0x54cf[51]]>0){return _0xd450x5[_0x54cf[28]](500)[_0x54cf[27]]({message:_0x54cf[52]})};if(_0xd450x4[_0x54cf[42]][_0x54cf[46]]){delete _0xd450x4[_0x54cf[42]][_0x54cf[46]]};Tag[_0x54cf[55]]({where:{id:_0xd450x4[_0x54cf[47]][_0x54cf[46]]}})[_0x54cf[39]](function(_0xd450x14){if(!_0xd450x14){return _0xd450x5[_0x54cf[43]](404)};var _0xd450x15=_[_0x54cf[53]](_0xd450x14,_0xd450x4[_0x54cf[42]]);_0xd450x15[_0x54cf[54]]()[_0x54cf[39]](function(){return _0xd450x5[_0x54cf[28]](200)[_0x54cf[27]](_0xd450x14)})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)});})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)});})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)})};exports[_0x54cf[56]]=function(_0xd450x4,_0xd450x5){Tag[_0x54cf[48]](_0xd450x4[_0x54cf[47]][_0x54cf[46]])[_0x54cf[39]](function(_0xd450x14){if(!_0xd450x14){return _0xd450x5[_0x54cf[43]](404)};_0xd450x14[_0x54cf[56]]()[_0x54cf[39]](function(){return _0xd450x5[_0x54cf[43]](204)})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)});})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)})};exports[_0x54cf[57]]=function(_0xd450x4,_0xd450x5){Tag[_0x54cf[56]]({where:{id:_0xd450x4[_0x54cf[9]][_0x54cf[46]]},individualHooks:true})[_0x54cf[39]](function(){return _0xd450x5[_0x54cf[43]](204)})[_0x54cf[29]](function(_0xd450xe){return handleError(_0xd450x5,_0xd450xe)})};function handleError(_0xd450x5,_0xd450xe){return _0xd450x5[_0x54cf[28]](500)[_0x54cf[27]](_0xd450xe)}
\ No newline at end of file
+var _0x1931=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x61\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x6C\x6F\x67","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x74\x61\x67\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x54\x41\x47","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x1931[0];var _=require(_0x1931[1]);var Tag=require(_0x1931[3])[_0x1931[2]];var util=require(_0x1931[4]);exports[_0x1931[5]]=function(_0x79eax4,_0x79eax5){var _0x79eax6=[_0x1931[6],_0x1931[7]];var _0x79eax7=_0x79eax4[_0x1931[9]][_0x1931[8]]?parseInt(_0x79eax4[_0x1931[9]][_0x1931[8]],10):100;var _0x79eax8=_0x79eax4[_0x1931[9]][_0x1931[10]]?parseInt(_0x79eax4[_0x1931[9]][_0x1931[10]],10):0;var _0x79eax9={where:{},limit:_0x79eax7,offset:_0x79eax8*_0x79eax7};_[_0x1931[24]](_0x79eax4[_0x1931[9]],function(_0x79eaxa,_0x79eaxb){switch(_0x79eaxb){case _0x1931[8]:;case _0x1931[10]:break ;;case _0x1931[13]:_0x79eax9[_0x1931[11]]=util[_0x1931[16]](_0x1931[12],_0x79eax4[_0x1931[9]][_0x1931[13]],_0x79eax4[_0x1931[9]][_0x1931[14]]||_0x1931[15])||null;break ;;case _0x1931[14]:break ;;case _0x1931[22]:_0x79eax9[_0x1931[18]][_0x1931[17]]=[];_0x79eax6[_0x1931[21]](function(_0x79eaxc){var _0x79eaxd={};_0x79eaxd[_0x79eaxc]={$like:_0x1931[19]+_0x79eaxa+_0x1931[19]};_0x79eax9[_0x1931[18]][_0x1931[17]][_0x1931[20]](_0x79eaxd);});break ;;default:_0x79eax9[_0x1931[18]][_0x79eaxb]={$like:{}};_0x79eax9[_0x1931[18]][_0x79eaxb][_0x1931[23]]=_0x1931[19]+_0x79eaxa+_0x1931[19];;}});console[_0x1931[25]](_0x79eax9);Tag[_0x1931[40]](_0x79eax9)[_0x1931[39]](function(_0x79eaxf){var _0x79eax10=Math[_0x1931[31]](_0x79eaxf[_0x1931[30]]/_0x79eax7);var _0x79eax11=_0x79eax10>(_0x79eax9[_0x1931[32]]+1)?util[_0x1931[16]](_0x1931[33],_0x79eax4[_0x1931[34]],_0x79eax4[_0x1931[36]][_0x1931[35]],_0x79eax4[_0x1931[37]],_0x79eax8+1):null;var _0x79eax12=_0x79eax8>0?util[_0x1931[16]](_0x1931[33],_0x79eax4[_0x1931[34]],_0x79eax4[_0x1931[36]][_0x1931[35]],_0x79eax4[_0x1931[37]],_0x79eax8-1):null;_0x79eax5[_0x1931[28]](200)[_0x1931[27]]({count:_0x79eaxf[_0x1931[30]],rows:_0x79eaxf[_0x1931[38]],next_page:_0x79eax11,previous_page:_0x79eax12,total_pages:_0x79eax10});})[_0x1931[29]](function(_0x79eaxe){_0x79eax5[_0x1931[28]](500)[_0x1931[27]]({error:_0x1931[26]})});};exports[_0x1931[41]]=function(_0x79eax4,_0x79eax5){console[_0x1931[25]](_0x79eax4[_0x1931[42]]);Tag[_0x1931[44]]({where:{name:_0x79eax4[_0x1931[42]][_0x1931[6]]}})[_0x1931[39]](function(_0x79eax13){if(!_0x79eax13){return _0x79eax5[_0x1931[43]](404)};return _0x79eax5[_0x1931[27]](_0x79eax13);})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)});};exports[_0x1931[45]]=function(_0x79eax4,_0x79eax5){Tag[_0x1931[48]](_0x79eax4[_0x1931[47]][_0x1931[46]])[_0x1931[39]](function(_0x79eax14){if(!_0x79eax14){return _0x79eax5[_0x1931[43]](404)};return _0x79eax5[_0x1931[27]](_0x79eax14);})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)})};exports[_0x1931[49]]=function(_0x79eax4,_0x79eax5){Tag[_0x1931[49]](_0x79eax4[_0x1931[42]])[_0x1931[39]](function(_0x79eax14){return _0x79eax5[_0x1931[28]](201)[_0x1931[27]](_0x79eax14)})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)})};exports[_0x1931[50]]=function(_0x79eax4,_0x79eax5){Tag[_0x1931[44]]({where:{name:_0x79eax4[_0x1931[42]][_0x1931[6]],id:{$ne:_0x79eax4[_0x1931[42]][_0x1931[46]]}}})[_0x1931[39]](function(_0x79eax13){if(!_0x79eax13){return _0x79eax5[_0x1931[43]](404)};if(_0x79eax13[_0x1931[51]]>0){return _0x79eax5[_0x1931[28]](500)[_0x1931[27]]({message:_0x1931[52]})};if(_0x79eax4[_0x1931[42]][_0x1931[46]]){delete _0x79eax4[_0x1931[42]][_0x1931[46]]};Tag[_0x1931[55]]({where:{id:_0x79eax4[_0x1931[47]][_0x1931[46]]}})[_0x1931[39]](function(_0x79eax14){if(!_0x79eax14){return _0x79eax5[_0x1931[43]](404)};var _0x79eax15=_[_0x1931[53]](_0x79eax14,_0x79eax4[_0x1931[42]]);_0x79eax15[_0x1931[54]]()[_0x1931[39]](function(){return _0x79eax5[_0x1931[28]](200)[_0x1931[27]](_0x79eax14)})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)});})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)});})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)})};exports[_0x1931[56]]=function(_0x79eax4,_0x79eax5){Tag[_0x1931[48]](_0x79eax4[_0x1931[47]][_0x1931[46]])[_0x1931[39]](function(_0x79eax14){if(!_0x79eax14){return _0x79eax5[_0x1931[43]](404)};_0x79eax14[_0x1931[56]]()[_0x1931[39]](function(){return _0x79eax5[_0x1931[43]](204)})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)});})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)})};exports[_0x1931[57]]=function(_0x79eax4,_0x79eax5){Tag[_0x1931[56]]({where:{id:_0x79eax4[_0x1931[9]][_0x1931[46]]},individualHooks:true})[_0x1931[39]](function(){return _0x79eax5[_0x1931[43]](204)})[_0x1931[29]](function(_0x79eaxe){return handleError(_0x79eax5,_0x79eaxe)})};function handleError(_0x79eax5,_0x79eaxe){return _0x79eax5[_0x1931[28]](500)[_0x1931[27]](_0x79eaxe)}
\ No newline at end of file
-var _0xa43a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x61\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x61\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x61\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa43a[0];var Tag=require(_0xa43a[2])[_0xa43a[1]];exports[_0xa43a[3]]=function(_0x5d66x2){Tag[_0xa43a[4]](function(_0x5d66x3){onSave(_0x5d66x2,_0x5d66x3)});Tag[_0xa43a[5]](function(_0x5d66x3){onRemove(_0x5d66x2,_0x5d66x3)});};function onSave(_0x5d66x2,_0x5d66x3,_0x5d66x5){_0x5d66x2[_0xa43a[7]](_0xa43a[6],_0x5d66x3)}function onRemove(_0x5d66x2,_0x5d66x3,_0x5d66x5){_0x5d66x2[_0xa43a[7]](_0xa43a[8],_0x5d66x3)}
\ No newline at end of file
+var _0x54a7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x61\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x61\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x61\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x54a7[0];var Tag=require(_0x54a7[2])[_0x54a7[1]];exports[_0x54a7[3]]=function(_0x59c2x2){Tag[_0x54a7[4]](function(_0x59c2x3){onSave(_0x59c2x2,_0x59c2x3)});Tag[_0x54a7[5]](function(_0x59c2x3){onRemove(_0x59c2x2,_0x59c2x3)});};function onSave(_0x59c2x2,_0x59c2x3,_0x59c2x5){_0x59c2x2[_0x54a7[7]](_0x54a7[6],_0x59c2x3)}function onRemove(_0x59c2x2,_0x59c2x3,_0x59c2x5){_0x59c2x2[_0x54a7[7]](_0x54a7[8],_0x59c2x3)}
\ No newline at end of file
-var _0xee82=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x67\x65\x74"];_0xee82[0];var should=require(_0xee82[1]);var app=require(_0xee82[2]);var request=require(_0xee82[3]);describe(_0xee82[4],function(){it(_0xee82[5],function(_0x6ecbx4){request(app)[_0xee82[13]](_0xee82[12])[_0xee82[11]](200)[_0xee82[11]](_0xee82[10],/json/)[_0xee82[9]](function(_0x6ecbx5,_0x6ecbx6){if(_0x6ecbx5){return _0x6ecbx4(_0x6ecbx5)};_0x6ecbx6[_0xee82[8]][_0xee82[1]][_0xee82[7]][_0xee82[6]](Array);_0x6ecbx4();})})});
\ No newline at end of file
+var _0xc138=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x67\x65\x74"];_0xc138[0];var should=require(_0xc138[1]);var app=require(_0xc138[2]);var request=require(_0xc138[3]);describe(_0xc138[4],function(){it(_0xc138[5],function(_0xabc9x4){request(app)[_0xc138[13]](_0xc138[12])[_0xc138[11]](200)[_0xc138[11]](_0xc138[10],/json/)[_0xc138[9]](function(_0xabc9x5,_0xabc9x6){if(_0xabc9x5){return _0xabc9x4(_0xabc9x5)};_0xabc9x6[_0xc138[8]][_0xc138[1]][_0xc138[7]][_0xc138[6]](Array);_0xabc9x4();})})});
\ No newline at end of file
-var _0x2340=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x65\x61\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2340[0];var express=require(_0x2340[1]);var controller=require(_0x2340[2]);var auth=require(_0x2340[3]);var router=express.Router();router[_0x2340[7]](_0x2340[4],auth[_0x2340[5]](),controller[_0x2340[6]]);router[_0x2340[7]](_0x2340[8],auth[_0x2340[5]](),controller[_0x2340[9]]);router[_0x2340[11]](_0x2340[4],auth[_0x2340[5]](),controller[_0x2340[10]]);router[_0x2340[11]](_0x2340[12],auth[_0x2340[5]](),controller[_0x2340[13]]);router[_0x2340[15]](_0x2340[8],auth[_0x2340[5]](),controller[_0x2340[14]]);router[_0x2340[15]](_0x2340[12],auth[_0x2340[5]](),controller[_0x2340[16]]);router[_0x2340[17]](_0x2340[8],auth[_0x2340[5]](),controller[_0x2340[14]]);router[_0x2340[19]](_0x2340[4],auth[_0x2340[5]](),controller[_0x2340[18]]);router[_0x2340[19]](_0x2340[8],auth[_0x2340[5]](),controller[_0x2340[20]]);module[_0x2340[21]]=router;
\ No newline at end of file
+var _0x7469=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x65\x61\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7469[0];var express=require(_0x7469[1]);var controller=require(_0x7469[2]);var auth=require(_0x7469[3]);var router=express.Router();router[_0x7469[7]](_0x7469[4],auth[_0x7469[5]](),controller[_0x7469[6]]);router[_0x7469[7]](_0x7469[8],auth[_0x7469[5]](),controller[_0x7469[9]]);router[_0x7469[11]](_0x7469[4],auth[_0x7469[5]](),controller[_0x7469[10]]);router[_0x7469[11]](_0x7469[12],auth[_0x7469[5]](),controller[_0x7469[13]]);router[_0x7469[15]](_0x7469[8],auth[_0x7469[5]](),controller[_0x7469[14]]);router[_0x7469[15]](_0x7469[12],auth[_0x7469[5]](),controller[_0x7469[16]]);router[_0x7469[17]](_0x7469[8],auth[_0x7469[5]](),controller[_0x7469[14]]);router[_0x7469[19]](_0x7469[4],auth[_0x7469[5]](),controller[_0x7469[18]]);router[_0x7469[19]](_0x7469[8],auth[_0x7469[5]](),controller[_0x7469[20]]);module[_0x7469[21]]=router;
\ No newline at end of file
-var _0xaf0e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73"];_0xaf0e[0];var _=require(_0xaf0e[1]);var util=require(_0xaf0e[2]);var Team=require(_0xaf0e[4])[_0xaf0e[3]];var User=require(_0xaf0e[4])[_0xaf0e[5]];exports[_0xaf0e[6]]=function(_0x2826x5,_0x2826x6){var _0x2826x7=[_0xaf0e[7],_0xaf0e[8]];var _0x2826x8=_0x2826x5[_0xaf0e[10]][_0xaf0e[9]]?parseInt(_0x2826x5[_0xaf0e[10]][_0xaf0e[9]],10):100;var _0x2826x9=_0x2826x5[_0xaf0e[10]][_0xaf0e[11]]?parseInt(_0x2826x5[_0xaf0e[10]][_0xaf0e[11]],10):0;var _0x2826xa={where:{},include:[{all:true}],limit:_0x2826x8,offset:_0x2826x9*_0x2826x8};_[_0xaf0e[25]](_0x2826x5[_0xaf0e[10]],function(_0x2826xb,_0x2826xc){switch(_0x2826xc){case _0xaf0e[9]:;case _0xaf0e[11]:break ;;case _0xaf0e[14]:_0x2826xa[_0xaf0e[12]]=util[_0xaf0e[17]](_0xaf0e[13],_0x2826x5[_0xaf0e[10]][_0xaf0e[14]],_0x2826x5[_0xaf0e[10]][_0xaf0e[15]]||_0xaf0e[16])||null;break ;;case _0xaf0e[15]:break ;;case _0xaf0e[23]:_0x2826xa[_0xaf0e[19]][_0xaf0e[18]]=[];_0x2826x7[_0xaf0e[22]](function(_0x2826xd){var _0x2826xe={};_0x2826xe[_0x2826xd]={$like:_0xaf0e[20]+_0x2826xb+_0xaf0e[20]};_0x2826xa[_0xaf0e[19]][_0xaf0e[18]][_0xaf0e[21]](_0x2826xe);});break ;;default:_0x2826xa[_0xaf0e[19]][_0x2826xc]={$like:{}};_0x2826xa[_0xaf0e[19]][_0x2826xc][_0xaf0e[24]]=_0xaf0e[20]+_0x2826xb+_0xaf0e[20];;}});Team[_0xaf0e[40]](_0x2826xa)[_0xaf0e[39]](function(_0x2826x10){var _0x2826x11=Math[_0xaf0e[31]](_0x2826x10[_0xaf0e[30]]/_0x2826x8);var _0x2826x12=_0x2826x11>(_0x2826xa[_0xaf0e[32]]+1)?util[_0xaf0e[17]](_0xaf0e[33],_0x2826x5[_0xaf0e[34]],_0x2826x5[_0xaf0e[36]][_0xaf0e[35]],_0x2826x5[_0xaf0e[37]],_0x2826x9+1):null;var _0x2826x13=_0x2826x9>0?util[_0xaf0e[17]](_0xaf0e[33],_0x2826x5[_0xaf0e[34]],_0x2826x5[_0xaf0e[36]][_0xaf0e[35]],_0x2826x5[_0xaf0e[37]],_0x2826x9-1):null;_0x2826x6[_0xaf0e[28]](200)[_0xaf0e[27]]({count:_0x2826x10[_0xaf0e[30]],rows:_0x2826x10[_0xaf0e[38]],next_page:_0x2826x12,previous_page:_0x2826x13,total_pages:_0x2826x11});})[_0xaf0e[29]](function(_0x2826xf){_0x2826x6[_0xaf0e[28]](500)[_0xaf0e[27]]({error:_0xaf0e[26]})});};exports[_0xaf0e[41]]=function(_0x2826x5,_0x2826x6){Team[_0xaf0e[45]]({where:{id:_0x2826x5[_0xaf0e[44]][_0xaf0e[43]]},include:[User]})[_0xaf0e[39]](function(_0x2826x14){if(!_0x2826x14){return _0x2826x6[_0xaf0e[42]](404)};return _0x2826x6[_0xaf0e[27]](_0x2826x14);})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)})};exports[_0xaf0e[46]]=function(_0x2826x5,_0x2826x6){Team[_0xaf0e[46]](_0x2826x5[_0xaf0e[47]])[_0xaf0e[39]](function(_0x2826x14){return _0x2826x6[_0xaf0e[28]](201)[_0xaf0e[27]](_0x2826x14)})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)})};exports[_0xaf0e[48]]=function(_0x2826x5,_0x2826x6){if(_0x2826x5[_0xaf0e[47]][_0xaf0e[43]]){delete _0x2826x5[_0xaf0e[47]][_0xaf0e[43]]};Team[_0xaf0e[45]]({where:{id:_0x2826x5[_0xaf0e[44]][_0xaf0e[43]]}})[_0xaf0e[39]](function(_0x2826x14){if(!_0x2826x14){return _0x2826x6[_0xaf0e[42]](404)};var _0x2826x15=_[_0xaf0e[49]](_0x2826x14,_0x2826x5[_0xaf0e[47]]);_0x2826x15[_0xaf0e[50]]()[_0xaf0e[39]](function(){return _0x2826x6[_0xaf0e[28]](200)[_0xaf0e[27]](_0x2826x14)})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)});})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)});};exports[_0xaf0e[51]]=function(_0x2826x5,_0x2826x6){Team[_0xaf0e[45]]({where:{id:_0x2826x5[_0xaf0e[44]][_0xaf0e[43]]}})[_0xaf0e[39]](function(_0x2826x14){if(!_0x2826x14){return _0x2826x6[_0xaf0e[42]](404)};_0x2826x14[_0xaf0e[51]]()[_0xaf0e[39]](function(){return _0x2826x6[_0xaf0e[42]](204)})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)});})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)})};exports[_0xaf0e[52]]=function(_0x2826x5,_0x2826x6){Team[_0xaf0e[51]]({where:{id:_0x2826x5[_0xaf0e[10]][_0xaf0e[43]]},individualHooks:true})[_0xaf0e[39]](function(){return _0x2826x6[_0xaf0e[42]](204)})[_0xaf0e[29]](function(_0x2826xf){return handleError(_0x2826x6,_0x2826xf)})};exports[_0xaf0e[53]]=function(_0x2826x5,_0x2826x6,_0x2826x16){Team[_0xaf0e[57]](_0x2826x5[_0xaf0e[44]][_0xaf0e[43]])[_0xaf0e[39]](function(_0x2826x14){if(_0x2826x14){_0x2826x14[_0xaf0e[55]](_0x2826x5[_0xaf0e[47]][_0xaf0e[54]])[_0xaf0e[39]](function(){return _0x2826x6[_0xaf0e[42]](200)})[_0xaf0e[29]](function(_0x2826xf){return _0x2826x16(_0x2826xf)})}else {return _0x2826x16( new Error(_0xaf0e[56]))}})[_0xaf0e[29]](function(_0x2826xf){return _0x2826x16(_0x2826xf)})};exports[_0xaf0e[58]]=function(_0x2826x5,_0x2826x6,_0x2826x16){Team[_0xaf0e[57]](_0x2826x5[_0xaf0e[44]][_0xaf0e[43]])[_0xaf0e[39]](function(_0x2826x14){if(_0x2826x14){_0x2826x14[_0xaf0e[59]](_0x2826x5[_0xaf0e[47]][_0xaf0e[54]])[_0xaf0e[39]](function(){return _0x2826x6[_0xaf0e[42]](200)})[_0xaf0e[29]](function(_0x2826xf){return _0x2826x16(_0x2826xf)})}else {return _0x2826x16( new Error(_0xaf0e[56]))}})[_0xaf0e[29]](function(_0x2826xf){return _0x2826x16(_0x2826xf)})};function handleError(_0x2826x6,_0x2826xf){return _0x2826x6[_0xaf0e[28]](500)[_0xaf0e[27]](_0x2826xf)}
\ No newline at end of file
+var _0x188c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73"];_0x188c[0];var _=require(_0x188c[1]);var util=require(_0x188c[2]);var Team=require(_0x188c[4])[_0x188c[3]];var User=require(_0x188c[4])[_0x188c[5]];exports[_0x188c[6]]=function(_0x9dd1x5,_0x9dd1x6){var _0x9dd1x7=[_0x188c[7],_0x188c[8]];var _0x9dd1x8=_0x9dd1x5[_0x188c[10]][_0x188c[9]]?parseInt(_0x9dd1x5[_0x188c[10]][_0x188c[9]],10):100;var _0x9dd1x9=_0x9dd1x5[_0x188c[10]][_0x188c[11]]?parseInt(_0x9dd1x5[_0x188c[10]][_0x188c[11]],10):0;var _0x9dd1xa={where:{},include:[{all:true}],limit:_0x9dd1x8,offset:_0x9dd1x9*_0x9dd1x8};_[_0x188c[25]](_0x9dd1x5[_0x188c[10]],function(_0x9dd1xb,_0x9dd1xc){switch(_0x9dd1xc){case _0x188c[9]:;case _0x188c[11]:break ;;case _0x188c[14]:_0x9dd1xa[_0x188c[12]]=util[_0x188c[17]](_0x188c[13],_0x9dd1x5[_0x188c[10]][_0x188c[14]],_0x9dd1x5[_0x188c[10]][_0x188c[15]]||_0x188c[16])||null;break ;;case _0x188c[15]:break ;;case _0x188c[23]:_0x9dd1xa[_0x188c[19]][_0x188c[18]]=[];_0x9dd1x7[_0x188c[22]](function(_0x9dd1xd){var _0x9dd1xe={};_0x9dd1xe[_0x9dd1xd]={$like:_0x188c[20]+_0x9dd1xb+_0x188c[20]};_0x9dd1xa[_0x188c[19]][_0x188c[18]][_0x188c[21]](_0x9dd1xe);});break ;;default:_0x9dd1xa[_0x188c[19]][_0x9dd1xc]={$like:{}};_0x9dd1xa[_0x188c[19]][_0x9dd1xc][_0x188c[24]]=_0x188c[20]+_0x9dd1xb+_0x188c[20];;}});Team[_0x188c[40]](_0x9dd1xa)[_0x188c[39]](function(_0x9dd1x10){var _0x9dd1x11=Math[_0x188c[31]](_0x9dd1x10[_0x188c[30]]/_0x9dd1x8);var _0x9dd1x12=_0x9dd1x11>(_0x9dd1xa[_0x188c[32]]+1)?util[_0x188c[17]](_0x188c[33],_0x9dd1x5[_0x188c[34]],_0x9dd1x5[_0x188c[36]][_0x188c[35]],_0x9dd1x5[_0x188c[37]],_0x9dd1x9+1):null;var _0x9dd1x13=_0x9dd1x9>0?util[_0x188c[17]](_0x188c[33],_0x9dd1x5[_0x188c[34]],_0x9dd1x5[_0x188c[36]][_0x188c[35]],_0x9dd1x5[_0x188c[37]],_0x9dd1x9-1):null;_0x9dd1x6[_0x188c[28]](200)[_0x188c[27]]({count:_0x9dd1x10[_0x188c[30]],rows:_0x9dd1x10[_0x188c[38]],next_page:_0x9dd1x12,previous_page:_0x9dd1x13,total_pages:_0x9dd1x11});})[_0x188c[29]](function(_0x9dd1xf){_0x9dd1x6[_0x188c[28]](500)[_0x188c[27]]({error:_0x188c[26]})});};exports[_0x188c[41]]=function(_0x9dd1x5,_0x9dd1x6){Team[_0x188c[45]]({where:{id:_0x9dd1x5[_0x188c[44]][_0x188c[43]]},include:[User]})[_0x188c[39]](function(_0x9dd1x14){if(!_0x9dd1x14){return _0x9dd1x6[_0x188c[42]](404)};return _0x9dd1x6[_0x188c[27]](_0x9dd1x14);})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)})};exports[_0x188c[46]]=function(_0x9dd1x5,_0x9dd1x6){Team[_0x188c[46]](_0x9dd1x5[_0x188c[47]])[_0x188c[39]](function(_0x9dd1x14){return _0x9dd1x6[_0x188c[28]](201)[_0x188c[27]](_0x9dd1x14)})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)})};exports[_0x188c[48]]=function(_0x9dd1x5,_0x9dd1x6){if(_0x9dd1x5[_0x188c[47]][_0x188c[43]]){delete _0x9dd1x5[_0x188c[47]][_0x188c[43]]};Team[_0x188c[45]]({where:{id:_0x9dd1x5[_0x188c[44]][_0x188c[43]]}})[_0x188c[39]](function(_0x9dd1x14){if(!_0x9dd1x14){return _0x9dd1x6[_0x188c[42]](404)};var _0x9dd1x15=_[_0x188c[49]](_0x9dd1x14,_0x9dd1x5[_0x188c[47]]);_0x9dd1x15[_0x188c[50]]()[_0x188c[39]](function(){return _0x9dd1x6[_0x188c[28]](200)[_0x188c[27]](_0x9dd1x14)})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)});})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)});};exports[_0x188c[51]]=function(_0x9dd1x5,_0x9dd1x6){Team[_0x188c[45]]({where:{id:_0x9dd1x5[_0x188c[44]][_0x188c[43]]}})[_0x188c[39]](function(_0x9dd1x14){if(!_0x9dd1x14){return _0x9dd1x6[_0x188c[42]](404)};_0x9dd1x14[_0x188c[51]]()[_0x188c[39]](function(){return _0x9dd1x6[_0x188c[42]](204)})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)});})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)})};exports[_0x188c[52]]=function(_0x9dd1x5,_0x9dd1x6){Team[_0x188c[51]]({where:{id:_0x9dd1x5[_0x188c[10]][_0x188c[43]]},individualHooks:true})[_0x188c[39]](function(){return _0x9dd1x6[_0x188c[42]](204)})[_0x188c[29]](function(_0x9dd1xf){return handleError(_0x9dd1x6,_0x9dd1xf)})};exports[_0x188c[53]]=function(_0x9dd1x5,_0x9dd1x6,_0x9dd1x16){Team[_0x188c[57]](_0x9dd1x5[_0x188c[44]][_0x188c[43]])[_0x188c[39]](function(_0x9dd1x14){if(_0x9dd1x14){_0x9dd1x14[_0x188c[55]](_0x9dd1x5[_0x188c[47]][_0x188c[54]])[_0x188c[39]](function(){return _0x9dd1x6[_0x188c[42]](200)})[_0x188c[29]](function(_0x9dd1xf){return _0x9dd1x16(_0x9dd1xf)})}else {return _0x9dd1x16( new Error(_0x188c[56]))}})[_0x188c[29]](function(_0x9dd1xf){return _0x9dd1x16(_0x9dd1xf)})};exports[_0x188c[58]]=function(_0x9dd1x5,_0x9dd1x6,_0x9dd1x16){Team[_0x188c[57]](_0x9dd1x5[_0x188c[44]][_0x188c[43]])[_0x188c[39]](function(_0x9dd1x14){if(_0x9dd1x14){_0x9dd1x14[_0x188c[59]](_0x9dd1x5[_0x188c[47]][_0x188c[54]])[_0x188c[39]](function(){return _0x9dd1x6[_0x188c[42]](200)})[_0x188c[29]](function(_0x9dd1xf){return _0x9dd1x16(_0x9dd1xf)})}else {return _0x9dd1x16( new Error(_0x188c[56]))}})[_0x188c[29]](function(_0x9dd1xf){return _0x9dd1x16(_0x9dd1xf)})};function handleError(_0x9dd1x6,_0x9dd1xf){return _0x9dd1x6[_0x188c[28]](500)[_0x188c[27]](_0x9dd1xf)}
\ No newline at end of file
-var _0x7893=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x65\x61\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x65\x61\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7893[0];var team=require(_0x7893[2])[_0x7893[1]];exports[_0x7893[3]]=function(_0x1aa5x2){team[_0x7893[4]](function(_0x1aa5x3){onSave(_0x1aa5x2,_0x1aa5x3)});team[_0x7893[5]](function(_0x1aa5x3){onSave(_0x1aa5x2,_0x1aa5x3)});team[_0x7893[6]](function(_0x1aa5x3){onRemove(_0x1aa5x2,_0x1aa5x3)});};function onSave(_0x1aa5x2,_0x1aa5x3,_0x1aa5x5){_0x1aa5x2[_0x7893[8]](_0x7893[7],_0x1aa5x3)}function onRemove(_0x1aa5x2,_0x1aa5x3,_0x1aa5x5){_0x1aa5x2[_0x7893[8]](_0x7893[9],_0x1aa5x3)}
\ No newline at end of file
+var _0x8842=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x65\x61\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x65\x61\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8842[0];var team=require(_0x8842[2])[_0x8842[1]];exports[_0x8842[3]]=function(_0x2462x2){team[_0x8842[4]](function(_0x2462x3){onSave(_0x2462x2,_0x2462x3)});team[_0x8842[5]](function(_0x2462x3){onSave(_0x2462x2,_0x2462x3)});team[_0x8842[6]](function(_0x2462x3){onRemove(_0x2462x2,_0x2462x3)});};function onSave(_0x2462x2,_0x2462x3,_0x2462x5){_0x2462x2[_0x8842[8]](_0x8842[7],_0x2462x3)}function onRemove(_0x2462x2,_0x2462x3,_0x2462x5){_0x2462x2[_0x8842[8]](_0x8842[9],_0x2462x3)}
\ No newline at end of file
-var _0x13e9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x67\x65\x74"];_0x13e9[0];var should=require(_0x13e9[1]);var app=require(_0x13e9[2]);var request=require(_0x13e9[3]);describe(_0x13e9[4],function(){it(_0x13e9[5],function(_0xaea2x4){request(app)[_0x13e9[13]](_0x13e9[12])[_0x13e9[11]](200)[_0x13e9[11]](_0x13e9[10],/json/)[_0x13e9[9]](function(_0xaea2x5,_0xaea2x6){if(_0xaea2x5){return _0xaea2x4(_0xaea2x5)};_0xaea2x6[_0x13e9[8]][_0x13e9[1]][_0x13e9[7]][_0x13e9[6]](Array);_0xaea2x4();})})});
\ No newline at end of file
+var _0x8f9a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x67\x65\x74"];_0x8f9a[0];var should=require(_0x8f9a[1]);var app=require(_0x8f9a[2]);var request=require(_0x8f9a[3]);describe(_0x8f9a[4],function(){it(_0x8f9a[5],function(_0x1469x4){request(app)[_0x8f9a[13]](_0x8f9a[12])[_0x8f9a[11]](200)[_0x8f9a[11]](_0x8f9a[10],/json/)[_0x8f9a[9]](function(_0x1469x5,_0x1469x6){if(_0x1469x5){return _0x1469x4(_0x1469x5)};_0x1469x6[_0x8f9a[8]][_0x8f9a[1]][_0x8f9a[7]][_0x8f9a[6]](Array);_0x1469x4();})})});
\ No newline at end of file
-var _0xaa80=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x68\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xaa80[0];var express=require(_0xaa80[1]);var controller=require(_0xaa80[2]);var router=express.Router();router[_0xaa80[5]](_0xaa80[3],controller[_0xaa80[4]]);router[_0xaa80[5]](_0xaa80[6],controller[_0xaa80[7]]);router[_0xaa80[9]](_0xaa80[3],controller[_0xaa80[8]]);router[_0xaa80[11]](_0xaa80[6],controller[_0xaa80[10]]);router[_0xaa80[12]](_0xaa80[6],controller[_0xaa80[10]]);router[_0xaa80[14]](_0xaa80[6],controller[_0xaa80[13]]);module[_0xaa80[15]]=router;
\ No newline at end of file
+var _0x5847=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x68\x69\x6E\x67\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5847[0];var express=require(_0x5847[1]);var controller=require(_0x5847[2]);var router=express.Router();router[_0x5847[5]](_0x5847[3],controller[_0x5847[4]]);router[_0x5847[5]](_0x5847[6],controller[_0x5847[7]]);router[_0x5847[9]](_0x5847[3],controller[_0x5847[8]]);router[_0x5847[11]](_0x5847[6],controller[_0x5847[10]]);router[_0x5847[12]](_0x5847[6],controller[_0x5847[10]]);router[_0x5847[14]](_0x5847[6],controller[_0x5847[13]]);module[_0x5847[15]]=router;
\ No newline at end of file
-var _0x343c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x68\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x343c[0];var _=require(_0x343c[1]);var Thing=require(_0x343c[3])[_0x343c[2]];exports[_0x343c[4]]=function(_0x434ax3,_0x434ax4,_0x434ax5){Thing[_0x343c[9]]()[_0x343c[8]](function(_0x434ax7){return _0x434ax4[_0x343c[7]](200)[_0x343c[6]](_0x434ax7)})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)})};exports[_0x343c[10]]=function(_0x434ax3,_0x434ax4,_0x434ax5){Thing[_0x343c[14]](_0x434ax3[_0x343c[13]][_0x343c[12]])[_0x343c[8]](function(_0x434ax8){if(!_0x434ax8){return _0x434ax4[_0x343c[11]](404)};return _0x434ax4[_0x343c[6]](_0x434ax8);})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)})};exports[_0x343c[15]]=function(_0x434ax3,_0x434ax4,_0x434ax5){Thing[_0x343c[15]](_0x434ax3[_0x343c[16]])[_0x343c[8]](function(_0x434ax8){return _0x434ax4[_0x343c[7]](201)[_0x343c[6]](_0x434ax8)})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)})};exports[_0x343c[17]]=function(_0x434ax3,_0x434ax4,_0x434ax5){if(_0x434ax3[_0x343c[16]][_0x343c[12]]){delete _0x434ax3[_0x343c[16]][_0x343c[12]]};Thing[_0x343c[14]](_0x434ax3[_0x343c[13]][_0x343c[12]])[_0x343c[8]](function(_0x434ax8){if(!_0x434ax8){return _0x434ax4[_0x343c[11]](404)};var _0x434ax9=_[_0x343c[18]](_0x434ax8,_0x434ax3[_0x343c[16]]);_0x434ax9[_0x343c[19]]()[_0x343c[8]](function(){return _0x434ax4[_0x343c[7]](200)[_0x343c[6]](_0x434ax8)})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)});})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)});};exports[_0x343c[20]]=function(_0x434ax3,_0x434ax4,_0x434ax5){Thing[_0x343c[14]](_0x434ax3[_0x343c[13]][_0x343c[12]])[_0x343c[8]](function(_0x434ax8){if(!_0x434ax8){return _0x434ax4[_0x343c[11]](404)};_0x434ax8[_0x343c[20]]()[_0x343c[8]](function(){return _0x434ax4[_0x343c[11]](204)})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)});})[_0x343c[5]](function(_0x434ax6){return _0x434ax5(_0x434ax6)})};
\ No newline at end of file
+var _0x3d93=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x68\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x3d93[0];var _=require(_0x3d93[1]);var Thing=require(_0x3d93[3])[_0x3d93[2]];exports[_0x3d93[4]]=function(_0x91bbx3,_0x91bbx4,_0x91bbx5){Thing[_0x3d93[9]]()[_0x3d93[8]](function(_0x91bbx7){return _0x91bbx4[_0x3d93[7]](200)[_0x3d93[6]](_0x91bbx7)})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)})};exports[_0x3d93[10]]=function(_0x91bbx3,_0x91bbx4,_0x91bbx5){Thing[_0x3d93[14]](_0x91bbx3[_0x3d93[13]][_0x3d93[12]])[_0x3d93[8]](function(_0x91bbx8){if(!_0x91bbx8){return _0x91bbx4[_0x3d93[11]](404)};return _0x91bbx4[_0x3d93[6]](_0x91bbx8);})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)})};exports[_0x3d93[15]]=function(_0x91bbx3,_0x91bbx4,_0x91bbx5){Thing[_0x3d93[15]](_0x91bbx3[_0x3d93[16]])[_0x3d93[8]](function(_0x91bbx8){return _0x91bbx4[_0x3d93[7]](201)[_0x3d93[6]](_0x91bbx8)})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)})};exports[_0x3d93[17]]=function(_0x91bbx3,_0x91bbx4,_0x91bbx5){if(_0x91bbx3[_0x3d93[16]][_0x3d93[12]]){delete _0x91bbx3[_0x3d93[16]][_0x3d93[12]]};Thing[_0x3d93[14]](_0x91bbx3[_0x3d93[13]][_0x3d93[12]])[_0x3d93[8]](function(_0x91bbx8){if(!_0x91bbx8){return _0x91bbx4[_0x3d93[11]](404)};var _0x91bbx9=_[_0x3d93[18]](_0x91bbx8,_0x91bbx3[_0x3d93[16]]);_0x91bbx9[_0x3d93[19]]()[_0x3d93[8]](function(){return _0x91bbx4[_0x3d93[7]](200)[_0x3d93[6]](_0x91bbx8)})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)});})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)});};exports[_0x3d93[20]]=function(_0x91bbx3,_0x91bbx4,_0x91bbx5){Thing[_0x3d93[14]](_0x91bbx3[_0x3d93[13]][_0x3d93[12]])[_0x3d93[8]](function(_0x91bbx8){if(!_0x91bbx8){return _0x91bbx4[_0x3d93[11]](404)};_0x91bbx8[_0x3d93[20]]()[_0x3d93[8]](function(){return _0x91bbx4[_0x3d93[11]](204)})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)});})[_0x3d93[5]](function(_0x91bbx6){return _0x91bbx5(_0x91bbx6)})};
\ No newline at end of file
-var _0xf61b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x68\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x68\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x68\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0xf61b[0];var thing=require(_0xf61b[2])[_0xf61b[1]];exports[_0xf61b[3]]=function(_0xff11x2){thing[_0xf61b[4]](function(_0xff11x3){onSave(_0xff11x2,_0xff11x3)});thing[_0xf61b[5]](function(_0xff11x3){onRemove(_0xff11x2,_0xff11x3)});};function onSave(_0xff11x2,_0xff11x3,_0xff11x5){_0xff11x2[_0xf61b[7]](_0xf61b[6],_0xff11x3)}function onRemove(_0xff11x2,_0xff11x3,_0xff11x5){_0xff11x2[_0xf61b[7]](_0xf61b[8],_0xff11x3)}
\ No newline at end of file
+var _0x6ac1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x68\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x68\x69\x6E\x67\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x68\x69\x6E\x67\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6ac1[0];var thing=require(_0x6ac1[2])[_0x6ac1[1]];exports[_0x6ac1[3]]=function(_0x5a71x2){thing[_0x6ac1[4]](function(_0x5a71x3){onSave(_0x5a71x2,_0x5a71x3)});thing[_0x6ac1[5]](function(_0x5a71x3){onRemove(_0x5a71x2,_0x5a71x3)});};function onSave(_0x5a71x2,_0x5a71x3,_0x5a71x5){_0x5a71x2[_0x6ac1[7]](_0x6ac1[6],_0x5a71x3)}function onRemove(_0x5a71x2,_0x5a71x3,_0x5a71x5){_0x5a71x2[_0x6ac1[7]](_0x6ac1[8],_0x5a71x3)}
\ No newline at end of file
-var _0x9bdf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x68\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x68\x69\x6E\x67\x73","\x67\x65\x74"];_0x9bdf[0];var should=require(_0x9bdf[1]);var app=require(_0x9bdf[2]);var request=require(_0x9bdf[3]);describe(_0x9bdf[4],function(){it(_0x9bdf[5],function(_0xb095x4){request(app)[_0x9bdf[13]](_0x9bdf[12])[_0x9bdf[11]](200)[_0x9bdf[11]](_0x9bdf[10],/json/)[_0x9bdf[9]](function(_0xb095x5,_0xb095x6){if(_0xb095x5){return _0xb095x4(_0xb095x5)};_0xb095x6[_0x9bdf[8]][_0x9bdf[1]][_0x9bdf[7]][_0x9bdf[6]](Array);_0xb095x4();})})});
\ No newline at end of file
+var _0x67c5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x68\x69\x6E\x67\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x68\x69\x6E\x67\x73","\x67\x65\x74"];_0x67c5[0];var should=require(_0x67c5[1]);var app=require(_0x67c5[2]);var request=require(_0x67c5[3]);describe(_0x67c5[4],function(){it(_0x67c5[5],function(_0x7d28x4){request(app)[_0x67c5[13]](_0x67c5[12])[_0x67c5[11]](200)[_0x67c5[11]](_0x67c5[10],/json/)[_0x67c5[9]](function(_0x7d28x5,_0x7d28x6){if(_0x7d28x5){return _0x7d28x4(_0x7d28x5)};_0x7d28x6[_0x67c5[8]][_0x67c5[1]][_0x67c5[7]][_0x67c5[6]](Array);_0x7d28x4();})})});
\ No newline at end of file
-var _0xeab1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x72\x69\x67\x67\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xeab1[0];var express=require(_0xeab1[1]);var controller=require(_0xeab1[2]);var auth=require(_0xeab1[3]);var router=express.Router();router[_0xeab1[7]](_0xeab1[4],auth[_0xeab1[5]](),controller[_0xeab1[6]]);router[_0xeab1[7]](_0xeab1[8],auth[_0xeab1[5]](),controller[_0xeab1[9]]);router[_0xeab1[11]](_0xeab1[4],auth[_0xeab1[5]](),controller[_0xeab1[10]]);router[_0xeab1[13]](_0xeab1[8],auth[_0xeab1[5]](),controller[_0xeab1[12]]);router[_0xeab1[14]](_0xeab1[8],auth[_0xeab1[5]](),controller[_0xeab1[12]]);router[_0xeab1[16]](_0xeab1[8],auth[_0xeab1[5]](),controller[_0xeab1[15]]);router[_0xeab1[16]](_0xeab1[4],auth[_0xeab1[5]](),controller[_0xeab1[17]]);module[_0xeab1[18]]=router;
\ No newline at end of file
+var _0x19d0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x72\x69\x67\x67\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x19d0[0];var express=require(_0x19d0[1]);var controller=require(_0x19d0[2]);var auth=require(_0x19d0[3]);var router=express.Router();router[_0x19d0[7]](_0x19d0[4],auth[_0x19d0[5]](),controller[_0x19d0[6]]);router[_0x19d0[7]](_0x19d0[8],auth[_0x19d0[5]](),controller[_0x19d0[9]]);router[_0x19d0[11]](_0x19d0[4],auth[_0x19d0[5]](),controller[_0x19d0[10]]);router[_0x19d0[13]](_0x19d0[8],auth[_0x19d0[5]](),controller[_0x19d0[12]]);router[_0x19d0[14]](_0x19d0[8],auth[_0x19d0[5]](),controller[_0x19d0[12]]);router[_0x19d0[16]](_0x19d0[8],auth[_0x19d0[5]](),controller[_0x19d0[15]]);router[_0x19d0[16]](_0x19d0[4],auth[_0x19d0[5]](),controller[_0x19d0[17]]);module[_0x19d0[18]]=router;
\ No newline at end of file
-var _0x1935=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x1935[0];var _=require(_0x1935[1]);var util=require(_0x1935[2]);var Trigger=require(_0x1935[4])[_0x1935[3]];exports[_0x1935[5]]=function(_0xc394x4,_0xc394x5,_0xc394x6){var _0xc394x7=[_0x1935[6],_0x1935[7],_0x1935[8]];var _0xc394x8=_0xc394x4[_0x1935[10]][_0x1935[9]]?parseInt(_0xc394x4[_0x1935[10]][_0x1935[9]],10):100;var _0xc394x9=_0xc394x4[_0x1935[10]][_0x1935[11]]?parseInt(_0xc394x4[_0x1935[10]][_0x1935[11]],10):0;var _0xc394xa={where:{},limit:_0xc394x8,offset:_0xc394x9*_0xc394x8};_[_0x1935[25]](_0xc394x4[_0x1935[10]],function(_0xc394xb,_0xc394xc){switch(_0xc394xc){case _0x1935[9]:;case _0x1935[11]:break ;;case _0x1935[14]:_0xc394xa[_0x1935[12]]=util[_0x1935[17]](_0x1935[13],_0xc394x4[_0x1935[10]][_0x1935[14]],_0xc394x4[_0x1935[10]][_0x1935[15]]||_0x1935[16])||null;break ;;case _0x1935[15]:break ;;case _0x1935[23]:_0xc394xa[_0x1935[19]][_0x1935[18]]=[];_0xc394x7[_0x1935[22]](function(_0xc394xd){var _0xc394xe={};_0xc394xe[_0xc394xd]={$like:_0x1935[20]+_0xc394xb+_0x1935[20]};_0xc394xa[_0x1935[19]][_0x1935[18]][_0x1935[21]](_0xc394xe);});break ;;default:_0xc394xa[_0x1935[19]][_0xc394xc]={$like:{}};_0xc394xa[_0x1935[19]][_0xc394xc][_0x1935[24]]=_0x1935[20]+_0xc394xb+_0x1935[20];;}});Trigger[_0x1935[40]](_0xc394xa)[_0x1935[39]](function(_0xc394x10){var _0xc394x11=Math[_0x1935[31]](_0xc394x10[_0x1935[30]]/_0xc394x8);var _0xc394x12=_0xc394x11>(_0xc394xa[_0x1935[32]]+1)?util[_0x1935[17]](_0x1935[33],_0xc394x4[_0x1935[34]],_0xc394x4[_0x1935[36]][_0x1935[35]],_0xc394x4[_0x1935[37]],_0xc394x9+1):null;var _0xc394x13=_0xc394x9>0?util[_0x1935[17]](_0x1935[33],_0xc394x4[_0x1935[34]],_0xc394x4[_0x1935[36]][_0x1935[35]],_0xc394x4[_0x1935[37]],_0xc394x9-1):null;_0xc394x5[_0x1935[28]](200)[_0x1935[27]]({count:_0xc394x10[_0x1935[30]],rows:_0xc394x10[_0x1935[38]],next_page:_0xc394x12,previous_page:_0xc394x13,total_pages:_0xc394x11});})[_0x1935[29]](function(_0xc394xf){_0xc394x5[_0x1935[28]](500)[_0x1935[27]]({error:_0x1935[26]})});};exports[_0x1935[41]]=function(_0xc394x4,_0xc394x5){Trigger[_0x1935[45]](_0xc394x4[_0x1935[44]][_0x1935[43]])[_0x1935[39]](function(Trigger){if(!Trigger){return _0xc394x5[_0x1935[42]](404)};return _0xc394x5[_0x1935[27]](Trigger);})[_0x1935[29]](function(_0xc394xf){return handleError(_0xc394x5,_0xc394xf)})};exports[_0x1935[46]]=function(_0xc394x4,_0xc394x5){Trigger[_0x1935[46]](_0xc394x4[_0x1935[47]])[_0x1935[39]](function(){return _0xc394x5[_0x1935[42]](201)})[_0x1935[29]](function(_0xc394xf){return handleError(_0xc394x5,_0xc394xf)})};exports[_0x1935[48]]=function(_0xc394x4,_0xc394x5,_0xc394x6){if(_0xc394x4[_0x1935[47]][_0x1935[43]]){delete _0xc394x4[_0x1935[47]][_0x1935[43]]};Trigger[_0x1935[45]](_0xc394x4[_0x1935[44]][_0x1935[43]])[_0x1935[39]](function(Trigger){if(!Trigger){return _0xc394x5[_0x1935[42]](404)};var _0xc394x14=_[_0x1935[49]](Trigger,_0xc394x4[_0x1935[47]]);_0xc394x14[_0x1935[50]]()[_0x1935[39]](function(){return _0xc394x5[_0x1935[28]](200)[_0x1935[27]](Trigger)})[_0x1935[29]](function(_0xc394xf){return _0xc394x6(_0xc394xf)});})[_0x1935[29]](function(_0xc394xf){return _0xc394x6(_0xc394xf)});};exports[_0x1935[51]]=function(_0xc394x4,_0xc394x5){Trigger[_0x1935[45]](_0xc394x4[_0x1935[44]][_0x1935[43]])[_0x1935[39]](function(Trigger){if(!Trigger){return _0xc394x5[_0x1935[42]](404)};Trigger[_0x1935[51]]()[_0x1935[39]](function(){return _0xc394x5[_0x1935[42]](204)})[_0x1935[29]](function(_0xc394xf){return handleError(_0xc394x5,_0xc394xf)});})[_0x1935[29]](function(_0xc394xf){return handleError(_0xc394x5,_0xc394xf)})};exports[_0x1935[52]]=function(_0xc394x4,_0xc394x5){Trigger[_0x1935[51]]({where:{id:_0xc394x4[_0x1935[10]][_0x1935[43]]},individualHooks:true})[_0x1935[39]](function(){return _0xc394x5[_0x1935[42]](204)})[_0x1935[29]](function(_0xc394xf){return handleError(_0xc394x5,_0xc394xf)})};function handleError(_0xc394x5,_0xc394xf){return _0xc394x5[_0x1935[28]](500)[_0x1935[27]](_0xc394xf)}
\ No newline at end of file
+var _0x7bad=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x7bad[0];var _=require(_0x7bad[1]);var util=require(_0x7bad[2]);var Trigger=require(_0x7bad[4])[_0x7bad[3]];exports[_0x7bad[5]]=function(_0x8e9dx4,_0x8e9dx5,_0x8e9dx6){var _0x8e9dx7=[_0x7bad[6],_0x7bad[7],_0x7bad[8]];var _0x8e9dx8=_0x8e9dx4[_0x7bad[10]][_0x7bad[9]]?parseInt(_0x8e9dx4[_0x7bad[10]][_0x7bad[9]],10):100;var _0x8e9dx9=_0x8e9dx4[_0x7bad[10]][_0x7bad[11]]?parseInt(_0x8e9dx4[_0x7bad[10]][_0x7bad[11]],10):0;var _0x8e9dxa={where:{},limit:_0x8e9dx8,offset:_0x8e9dx9*_0x8e9dx8};_[_0x7bad[25]](_0x8e9dx4[_0x7bad[10]],function(_0x8e9dxb,_0x8e9dxc){switch(_0x8e9dxc){case _0x7bad[9]:;case _0x7bad[11]:break ;;case _0x7bad[14]:_0x8e9dxa[_0x7bad[12]]=util[_0x7bad[17]](_0x7bad[13],_0x8e9dx4[_0x7bad[10]][_0x7bad[14]],_0x8e9dx4[_0x7bad[10]][_0x7bad[15]]||_0x7bad[16])||null;break ;;case _0x7bad[15]:break ;;case _0x7bad[23]:_0x8e9dxa[_0x7bad[19]][_0x7bad[18]]=[];_0x8e9dx7[_0x7bad[22]](function(_0x8e9dxd){var _0x8e9dxe={};_0x8e9dxe[_0x8e9dxd]={$like:_0x7bad[20]+_0x8e9dxb+_0x7bad[20]};_0x8e9dxa[_0x7bad[19]][_0x7bad[18]][_0x7bad[21]](_0x8e9dxe);});break ;;default:_0x8e9dxa[_0x7bad[19]][_0x8e9dxc]={$like:{}};_0x8e9dxa[_0x7bad[19]][_0x8e9dxc][_0x7bad[24]]=_0x7bad[20]+_0x8e9dxb+_0x7bad[20];;}});Trigger[_0x7bad[40]](_0x8e9dxa)[_0x7bad[39]](function(_0x8e9dx10){var _0x8e9dx11=Math[_0x7bad[31]](_0x8e9dx10[_0x7bad[30]]/_0x8e9dx8);var _0x8e9dx12=_0x8e9dx11>(_0x8e9dxa[_0x7bad[32]]+1)?util[_0x7bad[17]](_0x7bad[33],_0x8e9dx4[_0x7bad[34]],_0x8e9dx4[_0x7bad[36]][_0x7bad[35]],_0x8e9dx4[_0x7bad[37]],_0x8e9dx9+1):null;var _0x8e9dx13=_0x8e9dx9>0?util[_0x7bad[17]](_0x7bad[33],_0x8e9dx4[_0x7bad[34]],_0x8e9dx4[_0x7bad[36]][_0x7bad[35]],_0x8e9dx4[_0x7bad[37]],_0x8e9dx9-1):null;_0x8e9dx5[_0x7bad[28]](200)[_0x7bad[27]]({count:_0x8e9dx10[_0x7bad[30]],rows:_0x8e9dx10[_0x7bad[38]],next_page:_0x8e9dx12,previous_page:_0x8e9dx13,total_pages:_0x8e9dx11});})[_0x7bad[29]](function(_0x8e9dxf){_0x8e9dx5[_0x7bad[28]](500)[_0x7bad[27]]({error:_0x7bad[26]})});};exports[_0x7bad[41]]=function(_0x8e9dx4,_0x8e9dx5){Trigger[_0x7bad[45]](_0x8e9dx4[_0x7bad[44]][_0x7bad[43]])[_0x7bad[39]](function(Trigger){if(!Trigger){return _0x8e9dx5[_0x7bad[42]](404)};return _0x8e9dx5[_0x7bad[27]](Trigger);})[_0x7bad[29]](function(_0x8e9dxf){return handleError(_0x8e9dx5,_0x8e9dxf)})};exports[_0x7bad[46]]=function(_0x8e9dx4,_0x8e9dx5){Trigger[_0x7bad[46]](_0x8e9dx4[_0x7bad[47]])[_0x7bad[39]](function(){return _0x8e9dx5[_0x7bad[42]](201)})[_0x7bad[29]](function(_0x8e9dxf){return handleError(_0x8e9dx5,_0x8e9dxf)})};exports[_0x7bad[48]]=function(_0x8e9dx4,_0x8e9dx5,_0x8e9dx6){if(_0x8e9dx4[_0x7bad[47]][_0x7bad[43]]){delete _0x8e9dx4[_0x7bad[47]][_0x7bad[43]]};Trigger[_0x7bad[45]](_0x8e9dx4[_0x7bad[44]][_0x7bad[43]])[_0x7bad[39]](function(Trigger){if(!Trigger){return _0x8e9dx5[_0x7bad[42]](404)};var _0x8e9dx14=_[_0x7bad[49]](Trigger,_0x8e9dx4[_0x7bad[47]]);_0x8e9dx14[_0x7bad[50]]()[_0x7bad[39]](function(){return _0x8e9dx5[_0x7bad[28]](200)[_0x7bad[27]](Trigger)})[_0x7bad[29]](function(_0x8e9dxf){return _0x8e9dx6(_0x8e9dxf)});})[_0x7bad[29]](function(_0x8e9dxf){return _0x8e9dx6(_0x8e9dxf)});};exports[_0x7bad[51]]=function(_0x8e9dx4,_0x8e9dx5){Trigger[_0x7bad[45]](_0x8e9dx4[_0x7bad[44]][_0x7bad[43]])[_0x7bad[39]](function(Trigger){if(!Trigger){return _0x8e9dx5[_0x7bad[42]](404)};Trigger[_0x7bad[51]]()[_0x7bad[39]](function(){return _0x8e9dx5[_0x7bad[42]](204)})[_0x7bad[29]](function(_0x8e9dxf){return handleError(_0x8e9dx5,_0x8e9dxf)});})[_0x7bad[29]](function(_0x8e9dxf){return handleError(_0x8e9dx5,_0x8e9dxf)})};exports[_0x7bad[52]]=function(_0x8e9dx4,_0x8e9dx5){Trigger[_0x7bad[51]]({where:{id:_0x8e9dx4[_0x7bad[10]][_0x7bad[43]]},individualHooks:true})[_0x7bad[39]](function(){return _0x8e9dx5[_0x7bad[42]](204)})[_0x7bad[29]](function(_0x8e9dxf){return handleError(_0x8e9dx5,_0x8e9dxf)})};function handleError(_0x8e9dx5,_0x8e9dxf){return _0x8e9dx5[_0x7bad[28]](500)[_0x7bad[27]](_0x8e9dxf)}
\ No newline at end of file
-var _0xfc57=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x69\x67\x67\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x72\x69\x67\x67\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfc57[0];var Trigger=require(_0xfc57[2])[_0xfc57[1]];exports[_0xfc57[3]]=function(_0x93adx2){Trigger[_0xfc57[4]](function(_0x93adx3){onSave(_0x93adx2,_0x93adx3)});Trigger[_0xfc57[5]](function(_0x93adx3){onRemove(_0x93adx2,_0x93adx3)});};function onSave(_0x93adx2,_0x93adx3,_0x93adx5){_0x93adx2[_0xfc57[7]](_0xfc57[6],_0x93adx3)}function onRemove(_0x93adx2,_0x93adx3,_0x93adx5){_0x93adx2[_0xfc57[7]](_0xfc57[8],_0x93adx3)}
\ No newline at end of file
+var _0xe4f2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x69\x67\x67\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x72\x69\x67\x67\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe4f2[0];var Trigger=require(_0xe4f2[2])[_0xe4f2[1]];exports[_0xe4f2[3]]=function(_0xfc76x2){Trigger[_0xe4f2[4]](function(_0xfc76x3){onSave(_0xfc76x2,_0xfc76x3)});Trigger[_0xe4f2[5]](function(_0xfc76x3){onRemove(_0xfc76x2,_0xfc76x3)});};function onSave(_0xfc76x2,_0xfc76x3,_0xfc76x5){_0xfc76x2[_0xe4f2[7]](_0xe4f2[6],_0xfc76x3)}function onRemove(_0xfc76x2,_0xfc76x3,_0xfc76x5){_0xfc76x2[_0xe4f2[7]](_0xe4f2[8],_0xfc76x3)}
\ No newline at end of file
-var _0xbb06=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x67\x65\x74"];_0xbb06[0];var should=require(_0xbb06[1]);var app=require(_0xbb06[2]);var request=require(_0xbb06[3]);describe(_0xbb06[4],function(){it(_0xbb06[5],function(_0x64dbx4){request(app)[_0xbb06[13]](_0xbb06[12])[_0xbb06[11]](200)[_0xbb06[11]](_0xbb06[10],/json/)[_0xbb06[9]](function(_0x64dbx5,_0x64dbx6){if(_0x64dbx5){return _0x64dbx4(_0x64dbx5)};_0x64dbx6[_0xbb06[8]][_0xbb06[1]][_0xbb06[7]][_0xbb06[6]](Array);_0x64dbx4();})})});
\ No newline at end of file
+var _0x24ae=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x67\x65\x74"];_0x24ae[0];var should=require(_0x24ae[1]);var app=require(_0x24ae[2]);var request=require(_0x24ae[3]);describe(_0x24ae[4],function(){it(_0x24ae[5],function(_0x84a7x4){request(app)[_0x24ae[13]](_0x24ae[12])[_0x24ae[11]](200)[_0x24ae[11]](_0x24ae[10],/json/)[_0x24ae[9]](function(_0x84a7x5,_0x84a7x6){if(_0x84a7x5){return _0x84a7x4(_0x84a7x5)};_0x84a7x6[_0x24ae[8]][_0x24ae[1]][_0x24ae[7]][_0x24ae[6]](Array);_0x84a7x4();})})});
\ No newline at end of file
-var _0x2f5b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x72\x75\x6E\x6B\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x74\x72\x75\x6E\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2f5b[0];var express=require(_0x2f5b[1]);var controller=require(_0x2f5b[2]);var config=require(_0x2f5b[3]);var auth=require(_0x2f5b[4]);var router=express.Router();router[_0x2f5b[8]](_0x2f5b[5],auth[_0x2f5b[6]](),controller[_0x2f5b[7]]);router[_0x2f5b[8]](_0x2f5b[9],auth[_0x2f5b[6]](),controller[_0x2f5b[10]]);router[_0x2f5b[12]](_0x2f5b[5],auth[_0x2f5b[6]](),controller[_0x2f5b[11]]);router[_0x2f5b[12]](_0x2f5b[13],auth[_0x2f5b[6]](),controller[_0x2f5b[14]]);router[_0x2f5b[16]](_0x2f5b[9],auth[_0x2f5b[6]](),controller[_0x2f5b[15]]);router[_0x2f5b[18]](_0x2f5b[5],auth[_0x2f5b[6]](),controller[_0x2f5b[17]]);router[_0x2f5b[18]](_0x2f5b[9],auth[_0x2f5b[6]](),controller[_0x2f5b[19]]);module[_0x2f5b[20]]=router;
\ No newline at end of file
+var _0x3a39=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x74\x72\x75\x6E\x6B\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x74\x72\x75\x6E\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x3a39[0];var express=require(_0x3a39[1]);var controller=require(_0x3a39[2]);var config=require(_0x3a39[3]);var auth=require(_0x3a39[4]);var router=express.Router();router[_0x3a39[8]](_0x3a39[5],auth[_0x3a39[6]](),controller[_0x3a39[7]]);router[_0x3a39[8]](_0x3a39[9],auth[_0x3a39[6]](),controller[_0x3a39[10]]);router[_0x3a39[12]](_0x3a39[5],auth[_0x3a39[6]](),controller[_0x3a39[11]]);router[_0x3a39[12]](_0x3a39[13],auth[_0x3a39[6]](),controller[_0x3a39[14]]);router[_0x3a39[16]](_0x3a39[9],auth[_0x3a39[6]](),controller[_0x3a39[15]]);router[_0x3a39[18]](_0x3a39[5],auth[_0x3a39[6]](),controller[_0x3a39[17]]);router[_0x3a39[18]](_0x3a39[9],auth[_0x3a39[6]](),controller[_0x3a39[19]]);module[_0x3a39[20]]=router;
\ No newline at end of file
-var _0x3186=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x64\x65\x6C\x65\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x6C\x6F\x6E\x65","\x69\x64","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x5B\x25\x73\x5D\x0A","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x25\x73\x3D\x25\x73\x0A","\x63\x61\x74\x63\x68","\x70\x6C\x75\x63\x6B","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x52\x65\x6C\x6F\x61\x64","\x63\x68\x61\x6E\x5F\x73\x69\x70","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x3186[0];var fs=require(_0x3186[1]);var util=require(_0x3186[2]);var path=require(_0x3186[3]);var config=require(_0x3186[4]);var Trunk=require(_0x3186[6])[_0x3186[5]];var VoiceExtension=require(_0x3186[6])[_0x3186[7]];var _=require(_0x3186[8]);exports[_0x3186[9]]=function(_0x2b98x8){Trunk[_0x3186[12]](function(_0x2b98x9){console[_0x3186[11]](_0x3186[10]);trunksRewrite(_0x2b98x9,_0x2b98x8,false);});Trunk[_0x3186[14]](function(_0x2b98x9){console[_0x3186[11]](_0x3186[13]);trunksRewrite(_0x2b98x9,_0x2b98x8,false);});Trunk[_0x3186[16]](function(_0x2b98x9){console[_0x3186[11]](_0x3186[15]);trunksRewrite(_0x2b98x9,_0x2b98x8,true);});};function trunksRewrite(_0x2b98x9,_0x2b98x8,_0x2b98xb){var _0x2b98xc=_0x3186[17];if(!_0x2b98xb){var _0x2b98xd=_[_0x3186[19]](_0x2b98x9[_0x3186[18]]);delete _0x2b98xd[_0x3186[20]];delete _0x2b98xd[_0x3186[21]];delete _0x2b98xd[_0x3186[22]];_0x2b98xc+=util[_0x3186[25]](_0x3186[23],_0x2b98xd[_0x3186[24]]);if(_0x2b98xd[_0x3186[26]]){_0x2b98xc+=util[_0x3186[25]](_0x3186[27],_0x2b98xd[_0x3186[26]]);delete _0x2b98xd[_0x3186[26]];};for(var _0x2b98xe in _0x2b98xd){if(_0x2b98xd[_0x2b98xe]){_0x2b98xc+=util[_0x3186[25]](_0x3186[28],_0x2b98xe,_0x2b98xd[_0x2b98xe])}};};Trunk[_0x3186[44]]({where:{id:{$ne:_0x2b98x9[_0x3186[20]]}}})[_0x3186[43]](function(_0x2b98x10){var _0x2b98x11=_[_0x3186[30]](_0x2b98x10,_0x3186[18]);_0x2b98x11[_0x3186[31]](function(_0x2b98x12){delete _0x2b98x12[_0x3186[20]];delete _0x2b98x12[_0x3186[21]];delete _0x2b98x12[_0x3186[22]];_0x2b98xc+=util[_0x3186[25]](_0x3186[23],_0x2b98x12[_0x3186[24]]);if(_0x2b98x12[_0x3186[26]]){_0x2b98xc+=util[_0x3186[25]](_0x3186[27],_0x2b98x12[_0x3186[26]]);delete _0x2b98x12[_0x3186[26]];};for(var _0x2b98xe in _0x2b98x12){if(_0x2b98x12[_0x2b98xe]){_0x2b98xc+=util[_0x3186[25]](_0x3186[28],_0x2b98xe,_0x2b98x12[_0x2b98xe])}};});fs[_0x3186[42]](path[_0x3186[34]](config[_0x3186[32]],_0x3186[33]),_0x2b98xc,{flags:_0x3186[35],mode:parseInt(_0x3186[36],8)},function(_0x2b98xf){if(_0x2b98xf){throw _0x2b98xf};console[_0x3186[11]](_0x3186[37]);_0x2b98x8[_0x3186[41]]({Action:_0x3186[38],Module:_0x3186[39]},function(_0x2b98xf,_0x2b98x13){if(_0x2b98xf){console[_0x3186[40]](_0x2b98xf)}else {console[_0x3186[11]](_0x2b98x13)}});});})[_0x3186[29]](function(_0x2b98xf){console[_0x3186[11]](_0x2b98xf)});}
\ No newline at end of file
+var _0xf145=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x6C\x6F\x64\x61\x73\x68","\x72\x65\x67\x69\x73\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x64\x65\x6C\x65\x74\x65\x20\x74\x72\x75\x6E\x6B\x20\x68\x6F\x6F\x6B","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x6C\x6F\x6E\x65","\x69\x64","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x5B\x25\x73\x5D\x0A","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x25\x73\x3D\x25\x73\x0A","\x63\x61\x74\x63\x68","\x70\x6C\x75\x63\x6B","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x52\x65\x6C\x6F\x61\x64","\x63\x68\x61\x6E\x5F\x73\x69\x70","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xf145[0];var fs=require(_0xf145[1]);var util=require(_0xf145[2]);var path=require(_0xf145[3]);var config=require(_0xf145[4]);var Trunk=require(_0xf145[6])[_0xf145[5]];var VoiceExtension=require(_0xf145[6])[_0xf145[7]];var _=require(_0xf145[8]);exports[_0xf145[9]]=function(_0xa190x8){Trunk[_0xf145[12]](function(_0xa190x9){console[_0xf145[11]](_0xf145[10]);trunksRewrite(_0xa190x9,_0xa190x8,false);});Trunk[_0xf145[14]](function(_0xa190x9){console[_0xf145[11]](_0xf145[13]);trunksRewrite(_0xa190x9,_0xa190x8,false);});Trunk[_0xf145[16]](function(_0xa190x9){console[_0xf145[11]](_0xf145[15]);trunksRewrite(_0xa190x9,_0xa190x8,true);});};function trunksRewrite(_0xa190x9,_0xa190x8,_0xa190xb){var _0xa190xc=_0xf145[17];if(!_0xa190xb){var _0xa190xd=_[_0xf145[19]](_0xa190x9[_0xf145[18]]);delete _0xa190xd[_0xf145[20]];delete _0xa190xd[_0xf145[21]];delete _0xa190xd[_0xf145[22]];_0xa190xc+=util[_0xf145[25]](_0xf145[23],_0xa190xd[_0xf145[24]]);if(_0xa190xd[_0xf145[26]]){_0xa190xc+=util[_0xf145[25]](_0xf145[27],_0xa190xd[_0xf145[26]]);delete _0xa190xd[_0xf145[26]];};for(var _0xa190xe in _0xa190xd){if(_0xa190xd[_0xa190xe]){_0xa190xc+=util[_0xf145[25]](_0xf145[28],_0xa190xe,_0xa190xd[_0xa190xe])}};};Trunk[_0xf145[44]]({where:{id:{$ne:_0xa190x9[_0xf145[20]]}}})[_0xf145[43]](function(_0xa190x10){var _0xa190x11=_[_0xf145[30]](_0xa190x10,_0xf145[18]);_0xa190x11[_0xf145[31]](function(_0xa190x12){delete _0xa190x12[_0xf145[20]];delete _0xa190x12[_0xf145[21]];delete _0xa190x12[_0xf145[22]];_0xa190xc+=util[_0xf145[25]](_0xf145[23],_0xa190x12[_0xf145[24]]);if(_0xa190x12[_0xf145[26]]){_0xa190xc+=util[_0xf145[25]](_0xf145[27],_0xa190x12[_0xf145[26]]);delete _0xa190x12[_0xf145[26]];};for(var _0xa190xe in _0xa190x12){if(_0xa190x12[_0xa190xe]){_0xa190xc+=util[_0xf145[25]](_0xf145[28],_0xa190xe,_0xa190x12[_0xa190xe])}};});fs[_0xf145[42]](path[_0xf145[34]](config[_0xf145[32]],_0xf145[33]),_0xa190xc,{flags:_0xf145[35],mode:parseInt(_0xf145[36],8)},function(_0xa190xf){if(_0xa190xf){throw _0xa190xf};console[_0xf145[11]](_0xf145[37]);_0xa190x8[_0xf145[41]]({Action:_0xf145[38],Module:_0xf145[39]},function(_0xa190xf,_0xa190x13){if(_0xa190xf){console[_0xf145[40]](_0xa190xf)}else {console[_0xf145[11]](_0xa190x13)}});});})[_0xf145[29]](function(_0xa190xf){console[_0xf145[11]](_0xa190xf)});}
\ No newline at end of file
-var _0xd398=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x68\x6F\x73\x74","\x63\x6F\x6E\x74\x65\x78\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x74\x72\x75\x6E\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x74\x72\x75\x6E\x6B\x73\x20\x66\x69\x6E\x64\x61\x6C\x6C","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x54\x52\x55\x4E\x4B","\x74\x72\x75\x6E\x6B\x73\x20\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x6C\x69\x74\x65\x72\x61\x6C","\x73\x61\x76\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x54\x52\x55\x4E\x4B\x5F\x4F\x55\x54\x42\x4F\x55\x4E\x44\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73"];_0xd398[0];var _=require(_0xd398[1]);var Trunk=require(_0xd398[3])[_0xd398[2]];var VoiceExtension=require(_0xd398[3])[_0xd398[4]];var sequelize=require(_0xd398[3])[_0xd398[5]];var util=require(_0xd398[6]);exports[_0xd398[7]]=function(_0xd436x6,_0xd436x7,_0xd436x8){var _0xd436x9=[_0xd398[8],_0xd398[9],_0xd398[10],_0xd398[11]];var _0xd436xa=_0xd436x6[_0xd398[13]][_0xd398[12]]?parseInt(_0xd436x6[_0xd398[13]][_0xd398[12]],10):100;var _0xd436xb=_0xd436x6[_0xd398[13]][_0xd398[14]]?parseInt(_0xd436x6[_0xd398[13]][_0xd398[14]],10):0;var _0xd436xc={where:{},limit:_0xd436xa,offset:_0xd436xb*_0xd436xa};_[_0xd398[30]](_0xd436x6[_0xd398[13]],function(_0xd436xd,_0xd436xe){switch(_0xd436xe){case _0xd398[12]:;case _0xd398[14]:break ;;case _0xd398[17]:_0xd436xc[_0xd398[15]]=util[_0xd398[20]](_0xd398[16],_0xd436x6[_0xd398[13]][_0xd398[17]],_0xd436x6[_0xd398[13]][_0xd398[18]]||_0xd398[19])||null;break ;;case _0xd398[18]:break ;;case _0xd398[26]:_0xd436xc[_0xd398[22]][_0xd398[21]]=[];_0xd436x9[_0xd398[25]](function(_0xd436xf){var _0xd436x10={};_0xd436x10[_0xd436xf]={$like:_0xd398[23]+_0xd436xd+_0xd398[23]};_0xd436xc[_0xd398[22]][_0xd398[21]][_0xd398[24]](_0xd436x10);});break ;;case _0xd398[27]:_0xd436xc[_0xd398[22]][_0xd398[27]]={$or:_0xd436xd[_0xd398[28]](/[\s,]+/)};break ;;default:_0xd436xc[_0xd398[22]][_0xd436xe]={$like:{}};_0xd436xc[_0xd398[22]][_0xd436xe][_0xd398[29]]=_0xd398[23]+_0xd436xd+_0xd398[23];;}});Trunk[_0xd398[44]](_0xd436xc)[_0xd398[43]](function(_0xd436x12){var _0xd436x13=Math[_0xd398[36]](_0xd436x12[_0xd398[35]]/_0xd436xa);var _0xd436x14=_0xd436x13>(_0xd436xc[_0xd398[37]]+1)?util[_0xd398[20]](_0xd398[38],_0xd436x6[_0xd398[39]],_0xd436x6[_0xd398[40]][_0xd398[9]],_0xd436x6[_0xd398[41]],_0xd436xb+1):null;var _0xd436x15=_0xd436xb>0?util[_0xd398[20]](_0xd398[38],_0xd436x6[_0xd398[39]],_0xd436x6[_0xd398[40]][_0xd398[9]],_0xd436x6[_0xd398[41]],_0xd436xb-1):null;_0xd436x7[_0xd398[33]](200)[_0xd398[32]]({count:_0xd436x12[_0xd398[35]],rows:_0xd436x12[_0xd398[42]],next_page:_0xd436x14,previous_page:_0xd436x15,total_pages:_0xd436x13});})[_0xd398[34]](function(_0xd436x11){_0xd436x7[_0xd398[33]](500)[_0xd398[32]]({error:_0xd398[31]})});};exports[_0xd398[45]]=function(_0xd436x6,_0xd436x7){Trunk[_0xd398[49]](_0xd436x6[_0xd398[48]][_0xd398[47]])[_0xd398[43]](function(_0xd436x16){if(!_0xd436x16){return _0xd436x7[_0xd398[46]](404)};return _0xd436x7[_0xd398[32]](_0xd436x16);})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)})};exports[_0xd398[50]]=function(_0xd436x6,_0xd436x7){console[_0xd398[52]](_0xd436x6[_0xd398[51]]);Trunk[_0xd398[53]]({where:{name:_0xd436x6[_0xd398[51]][_0xd398[8]]}})[_0xd398[43]](function(_0xd436x17){if(!_0xd436x17){return _0xd436x7[_0xd398[46]](404)};return _0xd436x7[_0xd398[32]](_0xd436x17);})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});};exports[_0xd398[54]]=function(_0xd436x6,_0xd436x7){Trunk[_0xd398[53]]({where:{name:_0xd436x6[_0xd398[51]][_0xd398[8]]}})[_0xd398[43]](function(_0xd436x18){console[_0xd398[52]](_0xd436x18);console[_0xd398[52]](_0xd398[56]);if(!_0xd436x18){return _0xd436x7[_0xd398[46]](404)};if(_0xd436x18[_0xd398[57]]>0){return _0xd436x7[_0xd398[33]](500)[_0xd398[32]]({message:_0xd398[58]})};Trunk[_0xd398[54]](_0xd436x6[_0xd398[51]])[_0xd398[43]](function(_0xd436x16){return _0xd436x7[_0xd398[33]](201)[_0xd398[32]](_0xd436x16)})[_0xd398[34]](function(_0xd436x11){console[_0xd398[52]](_0xd398[59],_0xd436x11);return handleError(_0xd436x7,_0xd436x11);});})[_0xd398[34]](function(_0xd436x11){console[_0xd398[52]](_0xd398[55],_0xd436x11);return handleError(_0xd436x7,_0xd436x11);})};exports[_0xd398[60]]=function(_0xd436x6,_0xd436x7,_0xd436x8){Trunk[_0xd398[53]]({where:{name:_0xd436x6[_0xd398[51]][_0xd398[8]],id:{$ne:_0xd436x6[_0xd398[51]][_0xd398[47]]}}})[_0xd398[43]](function(_0xd436x18){console[_0xd398[52]](_0xd436x18);console[_0xd398[52]](_0xd398[56]);if(!_0xd436x18){return _0xd436x7[_0xd398[46]](404)};if(_0xd436x18[_0xd398[57]]>0){return _0xd436x7[_0xd398[33]](500)[_0xd398[32]]({message:_0xd398[58]})};if(_0xd436x6[_0xd398[51]][_0xd398[47]]){delete _0xd436x6[_0xd398[51]][_0xd398[47]]};Trunk[_0xd398[49]](_0xd436x6[_0xd398[48]][_0xd398[47]])[_0xd398[43]](function(_0xd436x16){if(!_0xd436x16){return _0xd436x7[_0xd398[46]](404)};var _0xd436x19=_[_0xd398[61]](_0xd436x16,_0xd436x6[_0xd398[51]]);return sequelize[_0xd398[65]](function(_0xd436x1a){return _0xd436x19[_0xd398[64]]({transaction:_0xd436x1a})[_0xd398[43]](function(_0xd436x16){return VoiceExtension[_0xd398[60]]({trunk:_0xd436x16[_0xd398[8]],cutdigits:sequelize[_0xd398[63]](_0xd398[62])},{where:{TrunkId:_0xd436x16[_0xd398[47]]}},{transaction:_0xd436x1a})[_0xd398[43]](function(){return _0xd436x7[_0xd398[33]](200)[_0xd398[32]](_0xd436x16)})})})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});})[_0xd398[34]](function(_0xd436x11){return _0xd436x8(_0xd436x11)});})[_0xd398[34]](function(_0xd436x11){return _0xd436x8(_0xd436x11)})};exports[_0xd398[66]]=function(_0xd436x6,_0xd436x7){Trunk[_0xd398[49]](_0xd436x6[_0xd398[48]][_0xd398[47]])[_0xd398[43]](function(_0xd436x16){if(!_0xd436x16){return _0xd436x7[_0xd398[46]](404)};_0xd436x16[_0xd398[68]]({where:{isApp:true}})[_0xd398[43]](function(_0xd436x1b){console[_0xd398[52]](_0xd436x1b[_0xd398[57]]);if(_0xd436x1b[_0xd398[57]]>0){return _0xd436x7[_0xd398[33]](500)[_0xd398[32]]({message:_0xd398[67]})};_0xd436x16[_0xd398[66]]()[_0xd398[43]](function(){return _0xd436x7[_0xd398[46]](204)})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)})};exports[_0xd398[69]]=function(_0xd436x6,_0xd436x7){var _0xd436x1c=false;Trunk[_0xd398[53]]({where:{id:_0xd436x6[_0xd398[13]][_0xd398[47]]},include:[{all:true}]})[_0xd398[43]](function(_0xd436x17){if(!_0xd436x17){return _0xd436x7[_0xd398[46]](404)};_0xd436x17[_0xd398[25]](function(_0xd436x1d){if(_0xd436x1d[_0xd398[70]][_0xd398[57]]>0){_0xd436x1c=true}});if(_0xd436x1c){return _0xd436x7[_0xd398[33]](500)[_0xd398[32]]({message:_0xd398[67]})};Trunk[_0xd398[66]]({where:{id:_0xd436x6[_0xd398[13]][_0xd398[47]]},individualHooks:true})[_0xd398[43]](function(){return _0xd436x7[_0xd398[46]](204)})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});})[_0xd398[34]](function(_0xd436x11){return handleError(_0xd436x7,_0xd436x11)});};function handleError(_0xd436x7,_0xd436x11){return _0xd436x7[_0xd398[33]](500)[_0xd398[32]](_0xd436x11)}
\ No newline at end of file
+var _0x86cb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x68\x6F\x73\x74","\x63\x6F\x6E\x74\x65\x78\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x72\x6F\x6C\x65","\x73\x70\x6C\x69\x74","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x74\x72\x75\x6E\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x74\x72\x75\x6E\x6B\x73\x20\x66\x69\x6E\x64\x61\x6C\x6C","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x54\x52\x55\x4E\x4B","\x74\x72\x75\x6E\x6B\x73\x20\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x6C\x69\x74\x65\x72\x61\x6C","\x73\x61\x76\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x54\x52\x55\x4E\x4B\x5F\x4F\x55\x54\x42\x4F\x55\x4E\x44\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73"];_0x86cb[0];var _=require(_0x86cb[1]);var Trunk=require(_0x86cb[3])[_0x86cb[2]];var VoiceExtension=require(_0x86cb[3])[_0x86cb[4]];var sequelize=require(_0x86cb[3])[_0x86cb[5]];var util=require(_0x86cb[6]);exports[_0x86cb[7]]=function(_0xae93x6,_0xae93x7,_0xae93x8){var _0xae93x9=[_0x86cb[8],_0x86cb[9],_0x86cb[10],_0x86cb[11]];var _0xae93xa=_0xae93x6[_0x86cb[13]][_0x86cb[12]]?parseInt(_0xae93x6[_0x86cb[13]][_0x86cb[12]],10):100;var _0xae93xb=_0xae93x6[_0x86cb[13]][_0x86cb[14]]?parseInt(_0xae93x6[_0x86cb[13]][_0x86cb[14]],10):0;var _0xae93xc={where:{},limit:_0xae93xa,offset:_0xae93xb*_0xae93xa};_[_0x86cb[30]](_0xae93x6[_0x86cb[13]],function(_0xae93xd,_0xae93xe){switch(_0xae93xe){case _0x86cb[12]:;case _0x86cb[14]:break ;;case _0x86cb[17]:_0xae93xc[_0x86cb[15]]=util[_0x86cb[20]](_0x86cb[16],_0xae93x6[_0x86cb[13]][_0x86cb[17]],_0xae93x6[_0x86cb[13]][_0x86cb[18]]||_0x86cb[19])||null;break ;;case _0x86cb[18]:break ;;case _0x86cb[26]:_0xae93xc[_0x86cb[22]][_0x86cb[21]]=[];_0xae93x9[_0x86cb[25]](function(_0xae93xf){var _0xae93x10={};_0xae93x10[_0xae93xf]={$like:_0x86cb[23]+_0xae93xd+_0x86cb[23]};_0xae93xc[_0x86cb[22]][_0x86cb[21]][_0x86cb[24]](_0xae93x10);});break ;;case _0x86cb[27]:_0xae93xc[_0x86cb[22]][_0x86cb[27]]={$or:_0xae93xd[_0x86cb[28]](/[\s,]+/)};break ;;default:_0xae93xc[_0x86cb[22]][_0xae93xe]={$like:{}};_0xae93xc[_0x86cb[22]][_0xae93xe][_0x86cb[29]]=_0x86cb[23]+_0xae93xd+_0x86cb[23];;}});Trunk[_0x86cb[44]](_0xae93xc)[_0x86cb[43]](function(_0xae93x12){var _0xae93x13=Math[_0x86cb[36]](_0xae93x12[_0x86cb[35]]/_0xae93xa);var _0xae93x14=_0xae93x13>(_0xae93xc[_0x86cb[37]]+1)?util[_0x86cb[20]](_0x86cb[38],_0xae93x6[_0x86cb[39]],_0xae93x6[_0x86cb[40]][_0x86cb[9]],_0xae93x6[_0x86cb[41]],_0xae93xb+1):null;var _0xae93x15=_0xae93xb>0?util[_0x86cb[20]](_0x86cb[38],_0xae93x6[_0x86cb[39]],_0xae93x6[_0x86cb[40]][_0x86cb[9]],_0xae93x6[_0x86cb[41]],_0xae93xb-1):null;_0xae93x7[_0x86cb[33]](200)[_0x86cb[32]]({count:_0xae93x12[_0x86cb[35]],rows:_0xae93x12[_0x86cb[42]],next_page:_0xae93x14,previous_page:_0xae93x15,total_pages:_0xae93x13});})[_0x86cb[34]](function(_0xae93x11){_0xae93x7[_0x86cb[33]](500)[_0x86cb[32]]({error:_0x86cb[31]})});};exports[_0x86cb[45]]=function(_0xae93x6,_0xae93x7){Trunk[_0x86cb[49]](_0xae93x6[_0x86cb[48]][_0x86cb[47]])[_0x86cb[43]](function(_0xae93x16){if(!_0xae93x16){return _0xae93x7[_0x86cb[46]](404)};return _0xae93x7[_0x86cb[32]](_0xae93x16);})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)})};exports[_0x86cb[50]]=function(_0xae93x6,_0xae93x7){console[_0x86cb[52]](_0xae93x6[_0x86cb[51]]);Trunk[_0x86cb[53]]({where:{name:_0xae93x6[_0x86cb[51]][_0x86cb[8]]}})[_0x86cb[43]](function(_0xae93x17){if(!_0xae93x17){return _0xae93x7[_0x86cb[46]](404)};return _0xae93x7[_0x86cb[32]](_0xae93x17);})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});};exports[_0x86cb[54]]=function(_0xae93x6,_0xae93x7){Trunk[_0x86cb[53]]({where:{name:_0xae93x6[_0x86cb[51]][_0x86cb[8]]}})[_0x86cb[43]](function(_0xae93x18){console[_0x86cb[52]](_0xae93x18);console[_0x86cb[52]](_0x86cb[56]);if(!_0xae93x18){return _0xae93x7[_0x86cb[46]](404)};if(_0xae93x18[_0x86cb[57]]>0){return _0xae93x7[_0x86cb[33]](500)[_0x86cb[32]]({message:_0x86cb[58]})};Trunk[_0x86cb[54]](_0xae93x6[_0x86cb[51]])[_0x86cb[43]](function(_0xae93x16){return _0xae93x7[_0x86cb[33]](201)[_0x86cb[32]](_0xae93x16)})[_0x86cb[34]](function(_0xae93x11){console[_0x86cb[52]](_0x86cb[59],_0xae93x11);return handleError(_0xae93x7,_0xae93x11);});})[_0x86cb[34]](function(_0xae93x11){console[_0x86cb[52]](_0x86cb[55],_0xae93x11);return handleError(_0xae93x7,_0xae93x11);})};exports[_0x86cb[60]]=function(_0xae93x6,_0xae93x7,_0xae93x8){Trunk[_0x86cb[53]]({where:{name:_0xae93x6[_0x86cb[51]][_0x86cb[8]],id:{$ne:_0xae93x6[_0x86cb[51]][_0x86cb[47]]}}})[_0x86cb[43]](function(_0xae93x18){console[_0x86cb[52]](_0xae93x18);console[_0x86cb[52]](_0x86cb[56]);if(!_0xae93x18){return _0xae93x7[_0x86cb[46]](404)};if(_0xae93x18[_0x86cb[57]]>0){return _0xae93x7[_0x86cb[33]](500)[_0x86cb[32]]({message:_0x86cb[58]})};if(_0xae93x6[_0x86cb[51]][_0x86cb[47]]){delete _0xae93x6[_0x86cb[51]][_0x86cb[47]]};Trunk[_0x86cb[49]](_0xae93x6[_0x86cb[48]][_0x86cb[47]])[_0x86cb[43]](function(_0xae93x16){if(!_0xae93x16){return _0xae93x7[_0x86cb[46]](404)};var _0xae93x19=_[_0x86cb[61]](_0xae93x16,_0xae93x6[_0x86cb[51]]);return sequelize[_0x86cb[65]](function(_0xae93x1a){return _0xae93x19[_0x86cb[64]]({transaction:_0xae93x1a})[_0x86cb[43]](function(_0xae93x16){return VoiceExtension[_0x86cb[60]]({trunk:_0xae93x16[_0x86cb[8]],cutdigits:sequelize[_0x86cb[63]](_0x86cb[62])},{where:{TrunkId:_0xae93x16[_0x86cb[47]]}},{transaction:_0xae93x1a})[_0x86cb[43]](function(){return _0xae93x7[_0x86cb[33]](200)[_0x86cb[32]](_0xae93x16)})})})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});})[_0x86cb[34]](function(_0xae93x11){return _0xae93x8(_0xae93x11)});})[_0x86cb[34]](function(_0xae93x11){return _0xae93x8(_0xae93x11)})};exports[_0x86cb[66]]=function(_0xae93x6,_0xae93x7){Trunk[_0x86cb[49]](_0xae93x6[_0x86cb[48]][_0x86cb[47]])[_0x86cb[43]](function(_0xae93x16){if(!_0xae93x16){return _0xae93x7[_0x86cb[46]](404)};_0xae93x16[_0x86cb[68]]({where:{isApp:true}})[_0x86cb[43]](function(_0xae93x1b){console[_0x86cb[52]](_0xae93x1b[_0x86cb[57]]);if(_0xae93x1b[_0x86cb[57]]>0){return _0xae93x7[_0x86cb[33]](500)[_0x86cb[32]]({message:_0x86cb[67]})};_0xae93x16[_0x86cb[66]]()[_0x86cb[43]](function(){return _0xae93x7[_0x86cb[46]](204)})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)})};exports[_0x86cb[69]]=function(_0xae93x6,_0xae93x7){var _0xae93x1c=false;Trunk[_0x86cb[53]]({where:{id:_0xae93x6[_0x86cb[13]][_0x86cb[47]]},include:[{all:true}]})[_0x86cb[43]](function(_0xae93x17){if(!_0xae93x17){return _0xae93x7[_0x86cb[46]](404)};_0xae93x17[_0x86cb[25]](function(_0xae93x1d){if(_0xae93x1d[_0x86cb[70]][_0x86cb[57]]>0){_0xae93x1c=true}});if(_0xae93x1c){return _0xae93x7[_0x86cb[33]](500)[_0x86cb[32]]({message:_0x86cb[67]})};Trunk[_0x86cb[66]]({where:{id:_0xae93x6[_0x86cb[13]][_0x86cb[47]]},individualHooks:true})[_0x86cb[43]](function(){return _0xae93x7[_0x86cb[46]](204)})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});})[_0x86cb[34]](function(_0xae93x11){return handleError(_0xae93x7,_0xae93x11)});};function handleError(_0xae93x7,_0xae93x11){return _0xae93x7[_0x86cb[33]](500)[_0x86cb[32]](_0xae93x11)}
\ No newline at end of file
-var _0x15fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x75\x6E\x6B\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x72\x75\x6E\x6B\x3A\x72\x65\x6D\x6F\x76\x65"];_0x15fa[0];var Trunk=require(_0x15fa[2])[_0x15fa[1]];exports[_0x15fa[3]]=function(_0xdd78x2){Trunk[_0x15fa[4]](function(_0xdd78x3){onSave(_0xdd78x2,_0xdd78x3)});Trunk[_0x15fa[5]](function(_0xdd78x3){onRemove(_0xdd78x2,_0xdd78x3)});};function onSave(_0xdd78x2,_0xdd78x3,_0xdd78x5){_0xdd78x2[_0x15fa[7]](_0x15fa[6],_0xdd78x3)}function onRemove(_0xdd78x2,_0xdd78x3,_0xdd78x5){_0xdd78x2[_0x15fa[7]](_0x15fa[8],_0xdd78x3)}
\ No newline at end of file
+var _0x23c4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x75\x6E\x6B\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x74\x72\x75\x6E\x6B\x3A\x72\x65\x6D\x6F\x76\x65"];_0x23c4[0];var Trunk=require(_0x23c4[2])[_0x23c4[1]];exports[_0x23c4[3]]=function(_0x1a85x2){Trunk[_0x23c4[4]](function(_0x1a85x3){onSave(_0x1a85x2,_0x1a85x3)});Trunk[_0x23c4[5]](function(_0x1a85x3){onRemove(_0x1a85x2,_0x1a85x3)});};function onSave(_0x1a85x2,_0x1a85x3,_0x1a85x5){_0x1a85x2[_0x23c4[7]](_0x23c4[6],_0x1a85x3)}function onRemove(_0x1a85x2,_0x1a85x3,_0x1a85x5){_0x1a85x2[_0x23c4[7]](_0x23c4[8],_0x1a85x3)}
\ No newline at end of file
-var _0x7ad8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x67\x65\x74"];_0x7ad8[0];var should=require(_0x7ad8[1]);var app=require(_0x7ad8[2]);var request=require(_0x7ad8[3]);describe(_0x7ad8[4],function(){it(_0x7ad8[5],function(_0xef5dx4){request(app)[_0x7ad8[13]](_0x7ad8[12])[_0x7ad8[11]](200)[_0x7ad8[11]](_0x7ad8[10],/json/)[_0x7ad8[9]](function(_0xef5dx5,_0xef5dx6){if(_0xef5dx5){return _0xef5dx4(_0xef5dx5)};_0xef5dx6[_0x7ad8[8]][_0x7ad8[1]][_0x7ad8[7]][_0x7ad8[6]](Array);_0xef5dx4();})})});
\ No newline at end of file
+var _0xfa7b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x67\x65\x74"];_0xfa7b[0];var should=require(_0xfa7b[1]);var app=require(_0xfa7b[2]);var request=require(_0xfa7b[3]);describe(_0xfa7b[4],function(){it(_0xfa7b[5],function(_0x1bb8x4){request(app)[_0xfa7b[13]](_0xfa7b[12])[_0xfa7b[11]](200)[_0xfa7b[11]](_0xfa7b[10],/json/)[_0xfa7b[9]](function(_0x1bb8x5,_0x1bb8x6){if(_0x1bb8x5){return _0x1bb8x4(_0x1bb8x5)};_0x1bb8x6[_0xfa7b[8]][_0xfa7b[1]][_0xfa7b[7]][_0xfa7b[6]](Array);_0x1bb8x4();})})});
\ No newline at end of file
-var _0x486a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x70\x64\x61\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x70\x75\x6C\x6C","\x70\x75\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];_0x486a[0];var express=require(_0x486a[1]);var controller=require(_0x486a[2]);var auth=require(_0x486a[3]);var router=express.Router();router[_0x486a[9]](_0x486a[4],auth[_0x486a[5]](),auth[_0x486a[7]](_0x486a[6]),controller[_0x486a[8]]);router[_0x486a[9]](_0x486a[10],auth[_0x486a[5]](),auth[_0x486a[7]](_0x486a[6]),controller[_0x486a[11]]);module[_0x486a[12]]=router;
\ No newline at end of file
+var _0xbe3d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x70\x64\x61\x74\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x70\x75\x6C\x6C","\x70\x75\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];_0xbe3d[0];var express=require(_0xbe3d[1]);var controller=require(_0xbe3d[2]);var auth=require(_0xbe3d[3]);var router=express.Router();router[_0xbe3d[9]](_0xbe3d[4],auth[_0xbe3d[5]](),auth[_0xbe3d[7]](_0xbe3d[6]),controller[_0xbe3d[8]]);router[_0xbe3d[9]](_0xbe3d[10],auth[_0xbe3d[5]](),auth[_0xbe3d[7]](_0xbe3d[6]),controller[_0xbe3d[11]]);module[_0xbe3d[12]]=router;
\ No newline at end of file
-var _0xd1d5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x6F\x6F\x74","\x6A\x6F\x69\x6E","\x73\x69\x6D\x70\x6C\x65\x2D\x67\x69\x74","\x55\x70\x64\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x76\x65\x72\x73\x69\x6F\x6E","\x7C","\x73\x70\x6C\x69\x74","\x6D\x65\x73\x73\x61\x67\x65","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x4C\x61\x74\x65\x73\x74\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x74\x61\x67\x3A\x20\x25\x73","\x6C\x61\x74\x65\x73\x74","\x6C\x6F\x67","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x73\x68\x6F\x77","\x70\x75\x6C\x6C","\x63\x68\x65\x63\x6B\x6F\x75\x74","\x72\x65\x71\x2E\x70\x61\x72\x61\x6D\x73\x2E\x68\x61\x73\x68","\x68\x61\x73\x68","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x69\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0xd1d5[0];var _=require(_0xd1d5[1]);var path=require(_0xd1d5[2]);var config=require(_0xd1d5[3]);var Git=require(_0xd1d5[6])(path[_0xd1d5[5]](config[_0xd1d5[4]]));var Update=require(_0xd1d5[8])[_0xd1d5[7]];exports[_0xd1d5[9]]=function(_0x1335x6,_0x1335x7){Git[_0xd1d5[20]](function(_0x1335x8,_0x1335x9){if(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)};var _0x1335xa=[];_0x1335x9[_0xd1d5[17]][_0xd1d5[16]](function(_0x1335xb){_0x1335xb[_0xd1d5[10]]=_0x1335xb[_0xd1d5[13]][_0xd1d5[12]](_0xd1d5[11])[1]||_0xd1d5[14];_0x1335xb[_0xd1d5[13]]=_0x1335xb[_0xd1d5[13]][_0xd1d5[12]](_0xd1d5[11])[0];_0x1335xa[_0xd1d5[15]](_0x1335xb);});console[_0xd1d5[20]](_0xd1d5[18],_0x1335x9[_0xd1d5[19]]);return _0x1335x7[_0xd1d5[22]](200)[_0xd1d5[21]](_0x1335xa);})};exports[_0xd1d5[23]]=function(_0x1335x6,_0x1335x7){};exports[_0xd1d5[24]]=function(_0x1335x6,_0x1335x7){Git[_0xd1d5[24]](function(_0x1335x8,_0x1335xc){if(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)};return _0x1335x7[_0xd1d5[22]](201)[_0xd1d5[21]](_0x1335xc);})};exports[_0xd1d5[25]]=function(_0x1335x6,_0x1335x7){console[_0xd1d5[20]](_0xd1d5[26],_0x1335x6[_0xd1d5[28]][_0xd1d5[27]]);Git[_0xd1d5[25]](_0x1335x6[_0xd1d5[28]][_0xd1d5[27]],function(_0x1335x8,_0x1335xc){if(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)};return _0x1335x7[_0xd1d5[22]](201)[_0xd1d5[21]](_0x1335xc);});};exports[_0xd1d5[29]]=function(_0x1335x6,_0x1335x7){Update[_0xd1d5[29]](_0x1335x6[_0xd1d5[32]])[_0xd1d5[31]](function(_0x1335xc){return _0x1335x7[_0xd1d5[22]](201)[_0xd1d5[21]](_0x1335xc)})[_0xd1d5[30]](function(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)})};exports[_0xd1d5[33]]=function(_0x1335x6,_0x1335x7){if(_0x1335x6[_0xd1d5[32]][_0xd1d5[34]]){delete _0x1335x6[_0xd1d5[32]][_0xd1d5[34]]};Update[_0xd1d5[38]]({where:{id:_0x1335x6[_0xd1d5[28]][_0xd1d5[34]]}})[_0xd1d5[31]](function(_0x1335xc){if(!_0x1335xc){return _0x1335x7[_0xd1d5[35]](404)};var _0x1335xd=_[_0xd1d5[36]](_0x1335xc,_0x1335x6[_0xd1d5[32]]);_0x1335xd[_0xd1d5[37]]()[_0xd1d5[31]](function(){return _0x1335x7[_0xd1d5[22]](200)[_0xd1d5[21]](_0x1335xc)})[_0xd1d5[30]](function(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)});})[_0xd1d5[30]](function(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)});};exports[_0xd1d5[39]]=function(_0x1335x6,_0x1335x7){Update[_0xd1d5[38]]({where:{id:_0x1335x6[_0xd1d5[28]][_0xd1d5[34]]}})[_0xd1d5[31]](function(_0x1335xc){if(!_0x1335xc){return _0x1335x7[_0xd1d5[35]](404)};_0x1335xc[_0xd1d5[39]]()[_0xd1d5[31]](function(){return _0x1335x7[_0xd1d5[35]](204)})[_0xd1d5[30]](function(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)});})[_0xd1d5[30]](function(_0x1335x8){return handleError(_0x1335x7,_0x1335x8)})};function handleError(_0x1335x7,_0x1335x8){return _0x1335x7[_0xd1d5[22]](500)[_0xd1d5[21]](_0x1335x8)}
\ No newline at end of file
+var _0x2aa1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x6F\x6F\x74","\x6A\x6F\x69\x6E","\x73\x69\x6D\x70\x6C\x65\x2D\x67\x69\x74","\x55\x70\x64\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x76\x65\x72\x73\x69\x6F\x6E","\x7C","\x73\x70\x6C\x69\x74","\x6D\x65\x73\x73\x61\x67\x65","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x4C\x61\x74\x65\x73\x74\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x74\x61\x67\x3A\x20\x25\x73","\x6C\x61\x74\x65\x73\x74","\x6C\x6F\x67","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x73\x68\x6F\x77","\x70\x75\x6C\x6C","\x63\x68\x65\x63\x6B\x6F\x75\x74","\x72\x65\x71\x2E\x70\x61\x72\x61\x6D\x73\x2E\x68\x61\x73\x68","\x68\x61\x73\x68","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x69\x64","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x2aa1[0];var _=require(_0x2aa1[1]);var path=require(_0x2aa1[2]);var config=require(_0x2aa1[3]);var Git=require(_0x2aa1[6])(path[_0x2aa1[5]](config[_0x2aa1[4]]));var Update=require(_0x2aa1[8])[_0x2aa1[7]];exports[_0x2aa1[9]]=function(_0x6bd7x6,_0x6bd7x7){Git[_0x2aa1[20]](function(_0x6bd7x8,_0x6bd7x9){if(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)};var _0x6bd7xa=[];_0x6bd7x9[_0x2aa1[17]][_0x2aa1[16]](function(_0x6bd7xb){_0x6bd7xb[_0x2aa1[10]]=_0x6bd7xb[_0x2aa1[13]][_0x2aa1[12]](_0x2aa1[11])[1]||_0x2aa1[14];_0x6bd7xb[_0x2aa1[13]]=_0x6bd7xb[_0x2aa1[13]][_0x2aa1[12]](_0x2aa1[11])[0];_0x6bd7xa[_0x2aa1[15]](_0x6bd7xb);});console[_0x2aa1[20]](_0x2aa1[18],_0x6bd7x9[_0x2aa1[19]]);return _0x6bd7x7[_0x2aa1[22]](200)[_0x2aa1[21]](_0x6bd7xa);})};exports[_0x2aa1[23]]=function(_0x6bd7x6,_0x6bd7x7){};exports[_0x2aa1[24]]=function(_0x6bd7x6,_0x6bd7x7){Git[_0x2aa1[24]](function(_0x6bd7x8,_0x6bd7xc){if(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)};return _0x6bd7x7[_0x2aa1[22]](201)[_0x2aa1[21]](_0x6bd7xc);})};exports[_0x2aa1[25]]=function(_0x6bd7x6,_0x6bd7x7){console[_0x2aa1[20]](_0x2aa1[26],_0x6bd7x6[_0x2aa1[28]][_0x2aa1[27]]);Git[_0x2aa1[25]](_0x6bd7x6[_0x2aa1[28]][_0x2aa1[27]],function(_0x6bd7x8,_0x6bd7xc){if(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)};return _0x6bd7x7[_0x2aa1[22]](201)[_0x2aa1[21]](_0x6bd7xc);});};exports[_0x2aa1[29]]=function(_0x6bd7x6,_0x6bd7x7){Update[_0x2aa1[29]](_0x6bd7x6[_0x2aa1[32]])[_0x2aa1[31]](function(_0x6bd7xc){return _0x6bd7x7[_0x2aa1[22]](201)[_0x2aa1[21]](_0x6bd7xc)})[_0x2aa1[30]](function(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)})};exports[_0x2aa1[33]]=function(_0x6bd7x6,_0x6bd7x7){if(_0x6bd7x6[_0x2aa1[32]][_0x2aa1[34]]){delete _0x6bd7x6[_0x2aa1[32]][_0x2aa1[34]]};Update[_0x2aa1[38]]({where:{id:_0x6bd7x6[_0x2aa1[28]][_0x2aa1[34]]}})[_0x2aa1[31]](function(_0x6bd7xc){if(!_0x6bd7xc){return _0x6bd7x7[_0x2aa1[35]](404)};var _0x6bd7xd=_[_0x2aa1[36]](_0x6bd7xc,_0x6bd7x6[_0x2aa1[32]]);_0x6bd7xd[_0x2aa1[37]]()[_0x2aa1[31]](function(){return _0x6bd7x7[_0x2aa1[22]](200)[_0x2aa1[21]](_0x6bd7xc)})[_0x2aa1[30]](function(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)});})[_0x2aa1[30]](function(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)});};exports[_0x2aa1[39]]=function(_0x6bd7x6,_0x6bd7x7){Update[_0x2aa1[38]]({where:{id:_0x6bd7x6[_0x2aa1[28]][_0x2aa1[34]]}})[_0x2aa1[31]](function(_0x6bd7xc){if(!_0x6bd7xc){return _0x6bd7x7[_0x2aa1[35]](404)};_0x6bd7xc[_0x2aa1[39]]()[_0x2aa1[31]](function(){return _0x6bd7x7[_0x2aa1[35]](204)})[_0x2aa1[30]](function(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)});})[_0x2aa1[30]](function(_0x6bd7x8){return handleError(_0x6bd7x7,_0x6bd7x8)})};function handleError(_0x6bd7x7,_0x6bd7x8){return _0x6bd7x7[_0x2aa1[22]](500)[_0x2aa1[21]](_0x6bd7x8)}
\ No newline at end of file
-var _0x97f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x64\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x69\x6E\x65"];_0x97f1[0];module[_0x97f1[1]]=function(_0xf2b5x1,_0xf2b5x2){var _0xf2b5x3=_0xf2b5x1[_0x97f1[4]](_0x97f1[2],{name:_0xf2b5x2[_0x97f1[3]],description:_0xf2b5x2[_0x97f1[3]]});return _0xf2b5x3;};
\ No newline at end of file
+var _0x5489=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x64\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x69\x6E\x65"];_0x5489[0];module[_0x5489[1]]=function(_0x27b8x1,_0x27b8x2){var _0x27b8x3=_0x27b8x1[_0x5489[4]](_0x5489[2],{name:_0x27b8x2[_0x5489[3]],description:_0x27b8x2[_0x5489[3]]});return _0x27b8x3;};
\ No newline at end of file
-var _0x6af8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x70\x64\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x70\x64\x61\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x70\x64\x61\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x6af8[0];var Update=require(_0x6af8[2])[_0x6af8[1]];exports[_0x6af8[3]]=function(_0xb996x2){Update[_0x6af8[4]](function(_0xb996x3){onSave(_0xb996x2,_0xb996x3)});Update[_0x6af8[5]](function(_0xb996x3){onRemove(_0xb996x2,_0xb996x3)});};function onSave(_0xb996x2,_0xb996x3,_0xb996x5){_0xb996x2[_0x6af8[7]](_0x6af8[6],_0xb996x3)}function onRemove(_0xb996x2,_0xb996x3,_0xb996x5){_0xb996x2[_0x6af8[7]](_0x6af8[8],_0xb996x3)}
\ No newline at end of file
+var _0x1a76=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x70\x64\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x70\x64\x61\x74\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x70\x64\x61\x74\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1a76[0];var Update=require(_0x1a76[2])[_0x1a76[1]];exports[_0x1a76[3]]=function(_0x7b54x2){Update[_0x1a76[4]](function(_0x7b54x3){onSave(_0x7b54x2,_0x7b54x3)});Update[_0x1a76[5]](function(_0x7b54x3){onRemove(_0x7b54x2,_0x7b54x3)});};function onSave(_0x7b54x2,_0x7b54x3,_0x7b54x5){_0x7b54x2[_0x1a76[7]](_0x1a76[6],_0x7b54x3)}function onRemove(_0x7b54x2,_0x7b54x3,_0x7b54x5){_0x7b54x2[_0x1a76[7]](_0x1a76[8],_0x7b54x3)}
\ No newline at end of file
-var _0xee62=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x67\x65\x74"];_0xee62[0];var should=require(_0xee62[1]);var app=require(_0xee62[2]);var request=require(_0xee62[3]);describe(_0xee62[4],function(){it(_0xee62[5],function(_0x8e0cx4){request(app)[_0xee62[13]](_0xee62[12])[_0xee62[11]](200)[_0xee62[11]](_0xee62[10],/json/)[_0xee62[9]](function(_0x8e0cx5,_0x8e0cx6){if(_0x8e0cx5){return _0x8e0cx4(_0x8e0cx5)};_0x8e0cx6[_0xee62[8]][_0xee62[1]][_0xee62[7]][_0xee62[6]](Array);_0x8e0cx4();})})});
\ No newline at end of file
+var _0x698e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x67\x65\x74"];_0x698e[0];var should=require(_0x698e[1]);var app=require(_0x698e[2]);var request=require(_0x698e[3]);describe(_0x698e[4],function(){it(_0x698e[5],function(_0xe472x4){request(app)[_0x698e[13]](_0x698e[12])[_0x698e[11]](200)[_0x698e[11]](_0x698e[10],/json/)[_0x698e[9]](function(_0xe472x5,_0xe472x6){if(_0xe472x5){return _0xe472x4(_0xe472x5)};_0xe472x6[_0x698e[8]][_0x698e[1]][_0x698e[7]][_0x698e[6]](Array);_0xe472x4();})})});
\ No newline at end of file
-var _0x6d45=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x70\x6C\x6F\x61\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x2F\x73\x74\x72\x65\x61\x6D\x2F\x3A\x69\x64","\x73\x74\x72\x65\x61\x6D","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x6d45[0];var express=require(_0x6d45[1]);var controller=require(_0x6d45[2]);var auth=require(_0x6d45[3]);var router=express.Router();router[_0x6d45[7]](_0x6d45[4],auth[_0x6d45[5]](),controller[_0x6d45[6]]);router[_0x6d45[7]](_0x6d45[8],auth[_0x6d45[5]](),controller[_0x6d45[9]]);router[_0x6d45[7]](_0x6d45[10],auth[_0x6d45[5]](),controller[_0x6d45[11]]);router[_0x6d45[13]](_0x6d45[4],auth[_0x6d45[5]](),controller[_0x6d45[12]]);router[_0x6d45[15]](_0x6d45[8],auth[_0x6d45[5]](),controller[_0x6d45[14]]);router[_0x6d45[16]](_0x6d45[8],auth[_0x6d45[5]](),controller[_0x6d45[14]]);router[_0x6d45[18]](_0x6d45[8],auth[_0x6d45[5]](),controller[_0x6d45[17]]);module[_0x6d45[19]]=router;
\ No newline at end of file
+var _0xeb2e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x70\x6C\x6F\x61\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x2F\x73\x74\x72\x65\x61\x6D\x2F\x3A\x69\x64","\x73\x74\x72\x65\x61\x6D","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xeb2e[0];var express=require(_0xeb2e[1]);var controller=require(_0xeb2e[2]);var auth=require(_0xeb2e[3]);var router=express.Router();router[_0xeb2e[7]](_0xeb2e[4],auth[_0xeb2e[5]](),controller[_0xeb2e[6]]);router[_0xeb2e[7]](_0xeb2e[8],auth[_0xeb2e[5]](),controller[_0xeb2e[9]]);router[_0xeb2e[7]](_0xeb2e[10],auth[_0xeb2e[5]](),controller[_0xeb2e[11]]);router[_0xeb2e[13]](_0xeb2e[4],auth[_0xeb2e[5]](),controller[_0xeb2e[12]]);router[_0xeb2e[15]](_0xeb2e[8],auth[_0xeb2e[5]](),controller[_0xeb2e[14]]);router[_0xeb2e[16]](_0xeb2e[8],auth[_0xeb2e[5]](),controller[_0xeb2e[14]]);router[_0xeb2e[18]](_0xeb2e[8],auth[_0xeb2e[5]](),controller[_0xeb2e[17]]);module[_0xeb2e[19]]=router;
\ No newline at end of file
-var _0x7469=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x70\x6C\x6F\x61\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x66\x69\x6C\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x70\x61\x74\x68","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x70\x61\x74\x68","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E\x77\x61\x76","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x52\x65\x73\x75\x6C\x74\x3A\x20","\x6C\x6F\x67","\x69\x64\x65\x6E\x74\x69\x66\x79","\x77\x61\x76","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x6F\x72\x6D\x61\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x73\x74\x61\x72\x74","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x2E","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x53\x65\x6E\x74\x20\x66\x69\x6C\x65\x20\x75\x6E\x64\x65\x72\x20\x3A","\x73\x74\x72\x65\x61\x6D","\x65\x6E\x63\x6F\x64\x65"];_0x7469[0];var _=require(_0x7469[1]);var Upload=require(_0x7469[3])[_0x7469[2]];var uploadFile=require(_0x7469[4]);var sr=require(_0x7469[5]);var sox=require(_0x7469[6]);var path=require(_0x7469[7]);var config=require(_0x7469[8]);var fs=require(_0x7469[9]);var sequelize=require(_0x7469[3])[_0x7469[10]];var base64=require(_0x7469[11]);exports[_0x7469[12]]=function(_0x58d3xb,_0x58d3xc){Upload[_0x7469[17]]()[_0x7469[16]](function(_0x58d3xe){return _0x58d3xc[_0x7469[15]](200)[_0x7469[14]](_0x58d3xe)})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)})};exports[_0x7469[18]]=function(_0x58d3xb,_0x58d3xc){Upload[_0x7469[22]](_0x58d3xb[_0x7469[21]][_0x7469[20]])[_0x7469[16]](function(_0x58d3xf){if(!_0x58d3xf){return _0x58d3xc[_0x7469[19]](404)};return _0x58d3xc[_0x7469[14]](_0x58d3xf);})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)})};exports[_0x7469[23]]=function(_0x58d3xb,_0x58d3xc){var _0x58d3xf= new uploadFile({dest:path[_0x7469[26]](config[_0x7469[24]],_0x7469[25]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x58d3x10,_0x58d3x11){return sr()+path[_0x7469[28]](_0x58d3x11[_0x7469[27]])},messages:{maxNumberOfFiles:_0x7469[29],acceptFileTypes:_0x7469[30],maxFileSize:_0x7469[31],invalidRequest:_0x7469[32]}});_0x58d3xf[_0x7469[55]](_0x7469[33],function(_0x58d3x12,_0x58d3x13){var _0x58d3x14={};_0x58d3x14[_0x7469[34]]=_0x7469[35];_0x58d3x14[_0x7469[36]]=_0x58d3x14[_0x7469[37]]=path[_0x7469[39]](_0x58d3x13[_0x7469[38]][_0x7469[7]],path[_0x7469[28]](_0x58d3x13[_0x7469[38]][_0x7469[27]]));_0x58d3x14[_0x7469[40]]=path[_0x7469[39]](_0x58d3x13[_0x7469[38]][_0x7469[27]],path[_0x7469[28]](_0x58d3x13[_0x7469[38]][_0x7469[27]]));_0x58d3x14[_0x7469[41]]=path[_0x7469[26]](config[_0x7469[24]],_0x7469[25]);_0x58d3x14[_0x7469[42]]=path[_0x7469[26]](config[_0x7469[24]],_0x7469[43]);if(!_0x58d3x13[_0x7469[38]][_0x7469[27]]){return _0x58d3xc[_0x7469[15]](500)[_0x7469[14]](_0x58d3xf)};var _0x58d3x15=path[_0x7469[26]](_0x58d3x14[_0x7469[41]],_0x58d3x14[_0x7469[40]]+path[_0x7469[28]](_0x58d3x13[_0x7469[38]][_0x7469[27]]));var _0x58d3x16=path[_0x7469[26]](_0x58d3x14[_0x7469[42]],_0x58d3x14[_0x7469[40]]+_0x7469[44]);fs[_0x7469[46]](_0x58d3x15,parseInt(_0x7469[45],8));sox[_0x7469[49]](_0x58d3x15,function(_0x58d3xd,_0x58d3x17){console[_0x7469[48]](_0x7469[47],_0x58d3x17)});var _0x58d3x18=sox[_0x7469[51]](_0x58d3x15,_0x58d3x16,{sampleRate:8000,format:_0x7469[50],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x58d3x18[_0x7469[55]](_0x7469[52],function(_0x58d3xd){console[_0x7469[52]](_0x7469[53],_0x58d3xd);fs[_0x7469[54]](_0x58d3x15,function(_0x58d3xd){if(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)}});return handleError(_0x58d3xc,_0x58d3xd);});_0x58d3x18[_0x7469[55]](_0x7469[56],function(_0x58d3x19,_0x58d3x1a){});_0x58d3x18[_0x7469[55]](_0x7469[57],function(_0x58d3x1b){_0x58d3x14[_0x7469[58]]=_0x58d3x1b[_0x7469[59]];_0x58d3x14[_0x7469[60]]=_0x58d3x1b[_0x7469[61]]*1000;_0x58d3x14[_0x7469[62]]=_0x58d3x1b[_0x7469[63]];_0x58d3x14[_0x7469[64]]=_0x58d3x1b[_0x7469[65]];_0x58d3x14[_0x7469[66]]=_0x58d3x1b[_0x7469[67]];_0x58d3x14[_0x7469[68]]=_0x58d3x1b[_0x7469[69]];});_0x58d3x18[_0x7469[55]](_0x7469[70],function(_0x58d3x1b){_0x58d3x14[_0x7469[71]]=_0x58d3x1b[_0x7469[59]];_0x58d3x14[_0x7469[72]]=_0x58d3x1b[_0x7469[61]]*1000;_0x58d3x14[_0x7469[73]]=_0x58d3x1b[_0x7469[63]];_0x58d3x14[_0x7469[74]]=_0x58d3x1b[_0x7469[65]];_0x58d3x14[_0x7469[75]]=_0x58d3x1b[_0x7469[67]];_0x58d3x14[_0x7469[76]]=_0x58d3x1b[_0x7469[69]];});_0x58d3x18[_0x7469[55]](_0x7469[33],function(){console[_0x7469[48]](_0x7469[77]);fs[_0x7469[46]](_0x58d3x16,parseInt(_0x7469[45],8));Upload[_0x7469[23]](_0x58d3x14)[_0x7469[16]](function(_0x58d3xf){return _0x58d3xc[_0x7469[15]](201)[_0x7469[14]](_0x58d3xf)})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)});});_0x58d3x18[_0x7469[78]]();});_0x58d3xf[_0x7469[55]](_0x7469[52],function(_0x58d3xd){console[_0x7469[48]](_0x7469[79],_0x58d3xd);return handleError(_0x58d3xc,_0x58d3xd);});_0x58d3xf[_0x7469[80]](_0x58d3xb);};exports[_0x7469[81]]=function(_0x58d3xb,_0x58d3xc){if(_0x58d3xb[_0x7469[82]][_0x7469[20]]){delete _0x58d3xb[_0x7469[82]][_0x7469[20]]};Upload[_0x7469[22]](_0x58d3xb[_0x7469[21]][_0x7469[20]])[_0x7469[16]](function(_0x58d3xf){if(!_0x58d3xf){return _0x58d3xc[_0x7469[19]](404)};var _0x58d3x1c=_[_0x7469[83]](_0x58d3xf,_0x58d3xb[_0x7469[82]]);_0x58d3x1c[_0x7469[84]]()[_0x7469[16]](function(){return _0x58d3xc[_0x7469[15]](200)[_0x7469[14]](_0x58d3xf)})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)});})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)});};exports[_0x7469[85]]=function(_0x58d3xb,_0x58d3xc){Upload[_0x7469[22]](_0x58d3xb[_0x7469[21]][_0x7469[20]])[_0x7469[16]](function(_0x58d3xf){if(!_0x58d3xf){return _0x58d3xc[_0x7469[15]](404)[_0x7469[14]](_0x58d3xf)};var _0x58d3x1d=path[_0x7469[26]](_0x58d3xf[_0x7469[41]],_0x58d3xf[_0x7469[40]]+_0x7469[86]+_0x58d3xf[_0x7469[58]]);var _0x58d3x1e=path[_0x7469[26]](_0x58d3xf[_0x7469[42]],_0x58d3xf[_0x7469[40]]+_0x7469[86]+_0x58d3xf[_0x7469[71]]);return sequelize[_0x7469[87]](function(_0x58d3x1f){return _0x58d3xf[_0x7469[85]]({transaction:_0x58d3x1f})[_0x7469[16]](function(){fs[_0x7469[54]](_0x58d3x1d,function(_0x58d3xd){if(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)}});fs[_0x7469[54]](_0x58d3x1e,function(_0x58d3xd){if(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)}});return _0x58d3xc[_0x7469[15]](200)[_0x7469[14]](_0x58d3xf);})})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)});})[_0x7469[13]](function(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)})};exports[_0x7469[88]]=function(_0x58d3xb,_0x58d3xc){Upload[_0x7469[22]](_0x58d3xb[_0x7469[21]][_0x7469[20]])[_0x7469[16]](function(_0x58d3xf){if(!_0x58d3xf){return _0x58d3xc[_0x7469[15]](404)[_0x7469[14]](_0x58d3xf)};var _0x58d3x1d=path[_0x7469[26]](_0x58d3xf[_0x7469[41]],_0x58d3xf[_0x7469[40]]+_0x7469[86]+_0x58d3xf[_0x7469[58]]);_0x58d3xc[_0x7469[15]](200)[_0x7469[88]](_0x58d3x1d,_0x58d3xf[_0x7469[37]]+_0x7469[86]+_0x58d3xf[_0x7469[58]],function(_0x58d3xd){if(_0x58d3xd){return handleError(_0x58d3xc,_0x58d3xd)}else {console[_0x7469[48]](_0x7469[89],_0x58d3x1d)}});})};exports[_0x7469[90]]=function(_0x58d3xb,_0x58d3xc){Upload[_0x7469[22]](_0x58d3xb[_0x7469[21]][_0x7469[20]])[_0x7469[16]](function(_0x58d3xf){if(!_0x58d3xf){return _0x58d3xc[_0x7469[15]](404)[_0x7469[14]](_0x58d3xf)};var _0x58d3x1d=path[_0x7469[26]](_0x58d3xf[_0x7469[42]],_0x58d3xf[_0x7469[40]]+_0x7469[86]+_0x58d3xf[_0x7469[58]]);base64[_0x7469[91]](_0x58d3x1d,function(_0x58d3xd,_0x58d3x20){if(_0x58d3xd){console[_0x7469[48]](_0x58d3xd);return handleError(_0x58d3xc,_0x58d3xd);}else {return _0x58d3xc[_0x7469[15]](200)[_0x7469[14]](_0x58d3x20)}});})};function handleError(_0x58d3xc,_0x58d3xd){return _0x58d3xc[_0x7469[15]](500)[_0x7469[14]](_0x58d3xd)}
\ No newline at end of file
+var _0x988b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x70\x6C\x6F\x61\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x73\x6F\x78","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x66\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x6F\x72\x69\x67\x69\x6E\x61\x6C","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x77\x61\x76\x2C\x6D\x70\x33\x2C\x67\x73\x6D\x2C\x20\x61\x6E\x64\x20\x6F\x67\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x54\x68\x65\x20\x6D\x61\x78\x69\x6D\x75\x6D\x20\x66\x69\x6C\x65\x20\x73\x69\x7A\x65\x20\x69\x73\x20\x31\x35\x20\x4D\x62","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","","\x6E\x61\x6D\x65","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x66\x69\x6C\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x70\x61\x74\x68","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x70\x61\x74\x68","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2E\x77\x61\x76","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x52\x65\x73\x75\x6C\x74\x3A\x20","\x6C\x6F\x67","\x69\x64\x65\x6E\x74\x69\x66\x79","\x77\x61\x76","\x74\x72\x61\x6E\x73\x63\x6F\x64\x65","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x45\x72\x72\x6F\x72\x3A\x20","\x75\x6E\x6C\x69\x6E\x6B","\x6F\x6E","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x72\x63","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x6F\x72\x6D\x61\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x62\x69\x74\x52\x61\x74\x65","\x62\x69\x74\x52\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x64\x65\x73\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x66\x6F\x72\x6D\x61\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x64\x75\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x43\x6F\x75\x6E\x74","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x62\x69\x74\x52\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x73\x61\x6D\x70\x6C\x65\x52\x61\x74\x65","\x43\x6F\x6E\x76\x65\x72\x73\x69\x6F\x6E\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x73\x74\x61\x72\x74","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x2E","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x53\x65\x6E\x74\x20\x66\x69\x6C\x65\x20\x75\x6E\x64\x65\x72\x20\x3A","\x73\x74\x72\x65\x61\x6D","\x65\x6E\x63\x6F\x64\x65"];_0x988b[0];var _=require(_0x988b[1]);var Upload=require(_0x988b[3])[_0x988b[2]];var uploadFile=require(_0x988b[4]);var sr=require(_0x988b[5]);var sox=require(_0x988b[6]);var path=require(_0x988b[7]);var config=require(_0x988b[8]);var fs=require(_0x988b[9]);var sequelize=require(_0x988b[3])[_0x988b[10]];var base64=require(_0x988b[11]);exports[_0x988b[12]]=function(_0xbcd3xb,_0xbcd3xc){Upload[_0x988b[17]]()[_0x988b[16]](function(_0xbcd3xe){return _0xbcd3xc[_0x988b[15]](200)[_0x988b[14]](_0xbcd3xe)})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)})};exports[_0x988b[18]]=function(_0xbcd3xb,_0xbcd3xc){Upload[_0x988b[22]](_0xbcd3xb[_0x988b[21]][_0x988b[20]])[_0x988b[16]](function(_0xbcd3xf){if(!_0xbcd3xf){return _0xbcd3xc[_0x988b[19]](404)};return _0xbcd3xc[_0x988b[14]](_0xbcd3xf);})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)})};exports[_0x988b[23]]=function(_0xbcd3xb,_0xbcd3xc){var _0xbcd3xf= new uploadFile({dest:path[_0x988b[26]](config[_0x988b[24]],_0x988b[25]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xbcd3x10,_0xbcd3x11){return sr()+path[_0x988b[28]](_0xbcd3x11[_0x988b[27]])},messages:{maxNumberOfFiles:_0x988b[29],acceptFileTypes:_0x988b[30],maxFileSize:_0x988b[31],invalidRequest:_0x988b[32]}});_0xbcd3xf[_0x988b[55]](_0x988b[33],function(_0xbcd3x12,_0xbcd3x13){var _0xbcd3x14={};_0xbcd3x14[_0x988b[34]]=_0x988b[35];_0xbcd3x14[_0x988b[36]]=_0xbcd3x14[_0x988b[37]]=path[_0x988b[39]](_0xbcd3x13[_0x988b[38]][_0x988b[7]],path[_0x988b[28]](_0xbcd3x13[_0x988b[38]][_0x988b[27]]));_0xbcd3x14[_0x988b[40]]=path[_0x988b[39]](_0xbcd3x13[_0x988b[38]][_0x988b[27]],path[_0x988b[28]](_0xbcd3x13[_0x988b[38]][_0x988b[27]]));_0xbcd3x14[_0x988b[41]]=path[_0x988b[26]](config[_0x988b[24]],_0x988b[25]);_0xbcd3x14[_0x988b[42]]=path[_0x988b[26]](config[_0x988b[24]],_0x988b[43]);if(!_0xbcd3x13[_0x988b[38]][_0x988b[27]]){return _0xbcd3xc[_0x988b[15]](500)[_0x988b[14]](_0xbcd3xf)};var _0xbcd3x15=path[_0x988b[26]](_0xbcd3x14[_0x988b[41]],_0xbcd3x14[_0x988b[40]]+path[_0x988b[28]](_0xbcd3x13[_0x988b[38]][_0x988b[27]]));var _0xbcd3x16=path[_0x988b[26]](_0xbcd3x14[_0x988b[42]],_0xbcd3x14[_0x988b[40]]+_0x988b[44]);fs[_0x988b[46]](_0xbcd3x15,parseInt(_0x988b[45],8));sox[_0x988b[49]](_0xbcd3x15,function(_0xbcd3xd,_0xbcd3x17){console[_0x988b[48]](_0x988b[47],_0xbcd3x17)});var _0xbcd3x18=sox[_0x988b[51]](_0xbcd3x15,_0xbcd3x16,{sampleRate:8000,format:_0x988b[50],channelCount:1,bitRate:192*1024,compressionQuality:5});_0xbcd3x18[_0x988b[55]](_0x988b[52],function(_0xbcd3xd){console[_0x988b[52]](_0x988b[53],_0xbcd3xd);fs[_0x988b[54]](_0xbcd3x15,function(_0xbcd3xd){if(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)}});return handleError(_0xbcd3xc,_0xbcd3xd);});_0xbcd3x18[_0x988b[55]](_0x988b[56],function(_0xbcd3x19,_0xbcd3x1a){});_0xbcd3x18[_0x988b[55]](_0x988b[57],function(_0xbcd3x1b){_0xbcd3x14[_0x988b[58]]=_0xbcd3x1b[_0x988b[59]];_0xbcd3x14[_0x988b[60]]=_0xbcd3x1b[_0x988b[61]]*1000;_0xbcd3x14[_0x988b[62]]=_0xbcd3x1b[_0x988b[63]];_0xbcd3x14[_0x988b[64]]=_0xbcd3x1b[_0x988b[65]];_0xbcd3x14[_0x988b[66]]=_0xbcd3x1b[_0x988b[67]];_0xbcd3x14[_0x988b[68]]=_0xbcd3x1b[_0x988b[69]];});_0xbcd3x18[_0x988b[55]](_0x988b[70],function(_0xbcd3x1b){_0xbcd3x14[_0x988b[71]]=_0xbcd3x1b[_0x988b[59]];_0xbcd3x14[_0x988b[72]]=_0xbcd3x1b[_0x988b[61]]*1000;_0xbcd3x14[_0x988b[73]]=_0xbcd3x1b[_0x988b[63]];_0xbcd3x14[_0x988b[74]]=_0xbcd3x1b[_0x988b[65]];_0xbcd3x14[_0x988b[75]]=_0xbcd3x1b[_0x988b[67]];_0xbcd3x14[_0x988b[76]]=_0xbcd3x1b[_0x988b[69]];});_0xbcd3x18[_0x988b[55]](_0x988b[33],function(){console[_0x988b[48]](_0x988b[77]);fs[_0x988b[46]](_0xbcd3x16,parseInt(_0x988b[45],8));Upload[_0x988b[23]](_0xbcd3x14)[_0x988b[16]](function(_0xbcd3xf){return _0xbcd3xc[_0x988b[15]](201)[_0x988b[14]](_0xbcd3xf)})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)});});_0xbcd3x18[_0x988b[78]]();});_0xbcd3xf[_0x988b[55]](_0x988b[52],function(_0xbcd3xd){console[_0x988b[48]](_0x988b[79],_0xbcd3xd);return handleError(_0xbcd3xc,_0xbcd3xd);});_0xbcd3xf[_0x988b[80]](_0xbcd3xb);};exports[_0x988b[81]]=function(_0xbcd3xb,_0xbcd3xc){if(_0xbcd3xb[_0x988b[82]][_0x988b[20]]){delete _0xbcd3xb[_0x988b[82]][_0x988b[20]]};Upload[_0x988b[22]](_0xbcd3xb[_0x988b[21]][_0x988b[20]])[_0x988b[16]](function(_0xbcd3xf){if(!_0xbcd3xf){return _0xbcd3xc[_0x988b[19]](404)};var _0xbcd3x1c=_[_0x988b[83]](_0xbcd3xf,_0xbcd3xb[_0x988b[82]]);_0xbcd3x1c[_0x988b[84]]()[_0x988b[16]](function(){return _0xbcd3xc[_0x988b[15]](200)[_0x988b[14]](_0xbcd3xf)})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)});})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)});};exports[_0x988b[85]]=function(_0xbcd3xb,_0xbcd3xc){Upload[_0x988b[22]](_0xbcd3xb[_0x988b[21]][_0x988b[20]])[_0x988b[16]](function(_0xbcd3xf){if(!_0xbcd3xf){return _0xbcd3xc[_0x988b[15]](404)[_0x988b[14]](_0xbcd3xf)};var _0xbcd3x1d=path[_0x988b[26]](_0xbcd3xf[_0x988b[41]],_0xbcd3xf[_0x988b[40]]+_0x988b[86]+_0xbcd3xf[_0x988b[58]]);var _0xbcd3x1e=path[_0x988b[26]](_0xbcd3xf[_0x988b[42]],_0xbcd3xf[_0x988b[40]]+_0x988b[86]+_0xbcd3xf[_0x988b[71]]);return sequelize[_0x988b[87]](function(_0xbcd3x1f){return _0xbcd3xf[_0x988b[85]]({transaction:_0xbcd3x1f})[_0x988b[16]](function(){fs[_0x988b[54]](_0xbcd3x1d,function(_0xbcd3xd){if(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)}});fs[_0x988b[54]](_0xbcd3x1e,function(_0xbcd3xd){if(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)}});return _0xbcd3xc[_0x988b[15]](200)[_0x988b[14]](_0xbcd3xf);})})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)});})[_0x988b[13]](function(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)})};exports[_0x988b[88]]=function(_0xbcd3xb,_0xbcd3xc){Upload[_0x988b[22]](_0xbcd3xb[_0x988b[21]][_0x988b[20]])[_0x988b[16]](function(_0xbcd3xf){if(!_0xbcd3xf){return _0xbcd3xc[_0x988b[15]](404)[_0x988b[14]](_0xbcd3xf)};var _0xbcd3x1d=path[_0x988b[26]](_0xbcd3xf[_0x988b[41]],_0xbcd3xf[_0x988b[40]]+_0x988b[86]+_0xbcd3xf[_0x988b[58]]);_0xbcd3xc[_0x988b[15]](200)[_0x988b[88]](_0xbcd3x1d,_0xbcd3xf[_0x988b[37]]+_0x988b[86]+_0xbcd3xf[_0x988b[58]],function(_0xbcd3xd){if(_0xbcd3xd){return handleError(_0xbcd3xc,_0xbcd3xd)}else {console[_0x988b[48]](_0x988b[89],_0xbcd3x1d)}});})};exports[_0x988b[90]]=function(_0xbcd3xb,_0xbcd3xc){Upload[_0x988b[22]](_0xbcd3xb[_0x988b[21]][_0x988b[20]])[_0x988b[16]](function(_0xbcd3xf){if(!_0xbcd3xf){return _0xbcd3xc[_0x988b[15]](404)[_0x988b[14]](_0xbcd3xf)};var _0xbcd3x1d=path[_0x988b[26]](_0xbcd3xf[_0x988b[42]],_0xbcd3xf[_0x988b[40]]+_0x988b[86]+_0xbcd3xf[_0x988b[58]]);base64[_0x988b[91]](_0xbcd3x1d,function(_0xbcd3xd,_0xbcd3x20){if(_0xbcd3xd){console[_0x988b[48]](_0xbcd3xd);return handleError(_0xbcd3xc,_0xbcd3xd);}else {return _0xbcd3xc[_0x988b[15]](200)[_0x988b[14]](_0xbcd3x20)}});})};function handleError(_0xbcd3xc,_0xbcd3xd){return _0xbcd3xc[_0x988b[15]](500)[_0x988b[14]](_0xbcd3xd)}
\ No newline at end of file
-var _0x5a59=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x70\x6C\x6F\x61\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x70\x6C\x6F\x61\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x70\x6C\x6F\x61\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5a59[0];var upload=require(_0x5a59[2])[_0x5a59[1]];exports[_0x5a59[3]]=function(_0x9a2bx2){upload[_0x5a59[4]](function(_0x9a2bx3){onSave(_0x9a2bx2,_0x9a2bx3)});upload[_0x5a59[5]](function(_0x9a2bx3){onRemove(_0x9a2bx2,_0x9a2bx3)});};function onSave(_0x9a2bx2,_0x9a2bx3,_0x9a2bx5){_0x9a2bx2[_0x5a59[7]](_0x5a59[6],_0x9a2bx3)}function onRemove(_0x9a2bx2,_0x9a2bx3,_0x9a2bx5){_0x9a2bx2[_0x5a59[7]](_0x5a59[8],_0x9a2bx3)}
\ No newline at end of file
+var _0xa0ef=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x70\x6C\x6F\x61\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x70\x6C\x6F\x61\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x70\x6C\x6F\x61\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa0ef[0];var upload=require(_0xa0ef[2])[_0xa0ef[1]];exports[_0xa0ef[3]]=function(_0x9cd0x2){upload[_0xa0ef[4]](function(_0x9cd0x3){onSave(_0x9cd0x2,_0x9cd0x3)});upload[_0xa0ef[5]](function(_0x9cd0x3){onRemove(_0x9cd0x2,_0x9cd0x3)});};function onSave(_0x9cd0x2,_0x9cd0x3,_0x9cd0x5){_0x9cd0x2[_0xa0ef[7]](_0xa0ef[6],_0x9cd0x3)}function onRemove(_0x9cd0x2,_0x9cd0x3,_0x9cd0x5){_0x9cd0x2[_0xa0ef[7]](_0xa0ef[8],_0x9cd0x3)}
\ No newline at end of file
-var _0x26c1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x67\x65\x74"];_0x26c1[0];var should=require(_0x26c1[1]);var app=require(_0x26c1[2]);var request=require(_0x26c1[3]);describe(_0x26c1[4],function(){it(_0x26c1[5],function(_0x4d6ex4){request(app)[_0x26c1[13]](_0x26c1[12])[_0x26c1[11]](200)[_0x26c1[11]](_0x26c1[10],/json/)[_0x26c1[9]](function(_0x4d6ex5,_0x4d6ex6){if(_0x4d6ex5){return _0x4d6ex4(_0x4d6ex5)};_0x4d6ex6[_0x26c1[8]][_0x26c1[1]][_0x26c1[7]][_0x26c1[6]](Array);_0x4d6ex4();})})});
\ No newline at end of file
+var _0xcad0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x67\x65\x74"];_0xcad0[0];var should=require(_0xcad0[1]);var app=require(_0xcad0[2]);var request=require(_0xcad0[3]);describe(_0xcad0[4],function(){it(_0xcad0[5],function(_0xe5d0x4){request(app)[_0xcad0[13]](_0xcad0[12])[_0xcad0[11]](200)[_0xcad0[11]](_0xcad0[10],/json/)[_0xcad0[9]](function(_0xe5d0x5,_0xe5d0x6){if(_0xe5d0x5){return _0xe5d0x4(_0xe5d0x5)};_0xe5d0x6[_0xcad0[8]][_0xcad0[1]][_0xcad0[7]][_0xcad0[6]](Array);_0xe5d0x4();})})});
\ No newline at end of file
-var _0x7d95=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x6D\x65","\x2F\x61\x6C\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x2F\x61\x76\x61\x74\x61\x72\x2F\x3A\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x67\x65\x74\x41\x76\x61\x74\x61\x72","\x2F\x3A\x69\x64\x2F\x61\x76\x61\x74\x61\x72","\x67\x65\x74\x41\x76\x61\x74\x61\x72\x42\x79\x49\x64","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x75\x73\x65\x72\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x70\x75\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64\x2F\x3A\x69\x64\x2F\x72\x65\x73\x65\x74","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x70\x64\x61\x74\x65","\x63\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x41\x76\x61\x74\x61\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7d95[0];var express=require(_0x7d95[1]);var controller=require(_0x7d95[2]);var config=require(_0x7d95[3]);var auth=require(_0x7d95[4]);var router=express.Router();router[_0x7d95[8]](_0x7d95[5],auth[_0x7d95[6]](),controller[_0x7d95[7]]);router[_0x7d95[8]](_0x7d95[9],auth[_0x7d95[6]](),controller[_0x7d95[10]]);router[_0x7d95[8]](_0x7d95[11],auth[_0x7d95[6]](),controller[_0x7d95[12]]);router[_0x7d95[8]](_0x7d95[13],controller[_0x7d95[14]]);router[_0x7d95[8]](_0x7d95[15],controller[_0x7d95[16]]);router[_0x7d95[8]](_0x7d95[17],auth[_0x7d95[6]](),controller[_0x7d95[18]]);router[_0x7d95[21]](_0x7d95[19],auth[_0x7d95[6]](),controller[_0x7d95[20]]);router[_0x7d95[24]](_0x7d95[22],auth[_0x7d95[6]](),controller[_0x7d95[23]]);router[_0x7d95[24]](_0x7d95[25],auth[_0x7d95[6]](),auth[_0x7d95[27]](_0x7d95[26]),controller[_0x7d95[28]]);router[_0x7d95[24]](_0x7d95[17],auth[_0x7d95[6]](),controller[_0x7d95[29]]);router[_0x7d95[21]](_0x7d95[5],auth[_0x7d95[6]](),controller[_0x7d95[30]]);router[_0x7d95[21]](_0x7d95[15],auth[_0x7d95[6]](),controller[_0x7d95[31]]);router[_0x7d95[33]](_0x7d95[5],auth[_0x7d95[6]](),controller[_0x7d95[32]]);router[_0x7d95[33]](_0x7d95[17],auth[_0x7d95[6]](),controller[_0x7d95[34]]);module[_0x7d95[35]]=router;
\ No newline at end of file
+var _0xaec5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x6D\x65","\x6D\x65","\x2F\x61\x6C\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x2F\x61\x76\x61\x74\x61\x72\x2F\x3A\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x67\x65\x74\x41\x76\x61\x74\x61\x72","\x2F\x3A\x69\x64\x2F\x61\x76\x61\x74\x61\x72","\x67\x65\x74\x41\x76\x61\x74\x61\x72\x42\x79\x49\x64","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x75\x73\x65\x72\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x70\x75\x74","\x2F\x70\x61\x73\x73\x77\x6F\x72\x64\x2F\x3A\x69\x64\x2F\x72\x65\x73\x65\x74","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x52\x6F\x6C\x65","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x75\x70\x64\x61\x74\x65","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x69\x73\x55\x73\x65\x72\x73\x4C\x69\x6D\x69\x74","\x63\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x41\x76\x61\x74\x61\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0xaec5[0];var express=require(_0xaec5[1]);var controller=require(_0xaec5[2]);var config=require(_0xaec5[3]);var auth=require(_0xaec5[4]);var license=require(_0xaec5[5]);var router=express.Router();router[_0xaec5[9]](_0xaec5[6],auth[_0xaec5[7]](),controller[_0xaec5[8]]);router[_0xaec5[9]](_0xaec5[10],auth[_0xaec5[7]](),controller[_0xaec5[11]]);router[_0xaec5[9]](_0xaec5[12],auth[_0xaec5[7]](),controller[_0xaec5[13]]);router[_0xaec5[9]](_0xaec5[14],controller[_0xaec5[15]]);router[_0xaec5[9]](_0xaec5[16],controller[_0xaec5[17]]);router[_0xaec5[9]](_0xaec5[18],auth[_0xaec5[7]](),controller[_0xaec5[19]]);router[_0xaec5[22]](_0xaec5[20],auth[_0xaec5[7]](),controller[_0xaec5[21]]);router[_0xaec5[25]](_0xaec5[23],auth[_0xaec5[7]](),controller[_0xaec5[24]]);router[_0xaec5[25]](_0xaec5[26],auth[_0xaec5[7]](),auth[_0xaec5[28]](_0xaec5[27]),controller[_0xaec5[29]]);router[_0xaec5[25]](_0xaec5[18],auth[_0xaec5[7]](),controller[_0xaec5[30]]);router[_0xaec5[22]](_0xaec5[6],auth[_0xaec5[7]](),license[_0xaec5[31]](),license[_0xaec5[32]](),controller[_0xaec5[33]]);router[_0xaec5[22]](_0xaec5[16],auth[_0xaec5[7]](),controller[_0xaec5[34]]);router[_0xaec5[36]](_0xaec5[6],auth[_0xaec5[7]](),controller[_0xaec5[35]]);router[_0xaec5[36]](_0xaec5[18],auth[_0xaec5[7]](),controller[_0xaec5[37]]);module[_0xaec5[38]]=router;
\ No newline at end of file
-var _0x5b09=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x63\x68\x61\x6E\x67\x65\x64","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x65\x78\x74\x65\x6E","\x5F\x70\x72\x65\x76\x69\x6F\x75\x73\x44\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x67\x65\x74\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x44\x69\x61\x6C","\x69\x64","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65"];_0x5b09[0];var fs=require(_0x5b09[1]);var util=require(_0x5b09[2]);var path=require(_0x5b09[3]);var config=require(_0x5b09[4]);var User=require(_0x5b09[6])[_0x5b09[5]];var VoiceExtension=require(_0x5b09[6])[_0x5b09[7]];exports[_0x5b09[8]]=function(_0xb4fcx7){User[_0x5b09[9]](function(_0xb4fcx8){createCallerID(_0xb4fcx8);createExtension(_0xb4fcx8);});User[_0x5b09[10]](function(_0xb4fcx8){updateExtension(_0xb4fcx8);createCallerID(_0xb4fcx8);});};function createCallerID(_0xb4fcx8){if(_0xb4fcx8[_0x5b09[11]]&&_0xb4fcx8[_0x5b09[12]]){_0xb4fcx8[_0x5b09[13]]=util[_0x5b09[15]](_0x5b09[14],_0xb4fcx8[_0x5b09[11]],_0xb4fcx8[_0x5b09[12]]);_0xb4fcx8[_0x5b09[16]]();};return ;}function updateExtension(_0xb4fcx8){if(_0xb4fcx8[_0x5b09[17]](_0x5b09[11])){_0xb4fcx8[_0x5b09[26]]()[_0x5b09[25]](function(_0xb4fcxc){_0xb4fcxc[_0x5b09[24]](function(_0xb4fcxd){_0xb4fcxd[_0x5b09[20]]=(_0xb4fcxd[_0x5b09[20]]===_0xb4fcx8[_0x5b09[21]][_0x5b09[12]])?_0xb4fcx8[_0x5b09[12]]:_0xb4fcx8[_0x5b09[11]];_0xb4fcxd[_0x5b09[22]]=_0x5b09[23]+_0xb4fcx8[_0x5b09[11]];_0xb4fcxd[_0x5b09[16]]();})})[_0x5b09[19]](function(_0xb4fcxb){console[_0x5b09[18]](_0xb4fcxb)})}}function createExtension(_0xb4fcx8){if(_0xb4fcx8[_0x5b09[12]]){var _0xb4fcxf=[{context:_0x5b09[27],exten:_0xb4fcx8[_0x5b09[12]],priority:1,app:_0x5b09[28],appdata:_0x5b09[23]+_0xb4fcx8[_0x5b09[11]],UserId:_0xb4fcx8[_0x5b09[29]],type:_0x5b09[12]},{context:_0x5b09[27],exten:_0xb4fcx8[_0x5b09[11]],priority:1,app:_0x5b09[28],appdata:_0x5b09[23]+_0xb4fcx8[_0x5b09[11]],UserId:_0xb4fcx8[_0x5b09[29]],type:_0x5b09[12]}];return VoiceExtension[_0x5b09[30]](_0xb4fcxf)[_0x5b09[19]](function(_0xb4fcxb){console[_0x5b09[18]](_0xb4fcxb)});}}
\ No newline at end of file
+var _0x279b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x63\x68\x61\x6E\x67\x65\x64","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x65\x78\x74\x65\x6E","\x5F\x70\x72\x65\x76\x69\x6F\x75\x73\x44\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x67\x65\x74\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x44\x69\x61\x6C","\x69\x64","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65"];_0x279b[0];var fs=require(_0x279b[1]);var util=require(_0x279b[2]);var path=require(_0x279b[3]);var config=require(_0x279b[4]);var User=require(_0x279b[6])[_0x279b[5]];var VoiceExtension=require(_0x279b[6])[_0x279b[7]];exports[_0x279b[8]]=function(_0x5740x7){User[_0x279b[9]](function(_0x5740x8){createCallerID(_0x5740x8);createExtension(_0x5740x8);});User[_0x279b[10]](function(_0x5740x8){updateExtension(_0x5740x8);createCallerID(_0x5740x8);});};function createCallerID(_0x5740x8){if(_0x5740x8[_0x279b[11]]&&_0x5740x8[_0x279b[12]]){_0x5740x8[_0x279b[13]]=util[_0x279b[15]](_0x279b[14],_0x5740x8[_0x279b[11]],_0x5740x8[_0x279b[12]]);_0x5740x8[_0x279b[16]]();};return ;}function updateExtension(_0x5740x8){if(_0x5740x8[_0x279b[17]](_0x279b[11])){_0x5740x8[_0x279b[26]]()[_0x279b[25]](function(_0x5740xc){_0x5740xc[_0x279b[24]](function(_0x5740xd){_0x5740xd[_0x279b[20]]=(_0x5740xd[_0x279b[20]]===_0x5740x8[_0x279b[21]][_0x279b[12]])?_0x5740x8[_0x279b[12]]:_0x5740x8[_0x279b[11]];_0x5740xd[_0x279b[22]]=_0x279b[23]+_0x5740x8[_0x279b[11]];_0x5740xd[_0x279b[16]]();})})[_0x279b[19]](function(_0x5740xb){console[_0x279b[18]](_0x5740xb)})}}function createExtension(_0x5740x8){if(_0x5740x8[_0x279b[12]]){var _0x5740xf=[{context:_0x279b[27],exten:_0x5740x8[_0x279b[12]],priority:1,app:_0x279b[28],appdata:_0x279b[23]+_0x5740x8[_0x279b[11]],UserId:_0x5740x8[_0x279b[29]],type:_0x279b[12]},{context:_0x279b[27],exten:_0x5740x8[_0x279b[11]],priority:1,app:_0x279b[28],appdata:_0x279b[23]+_0x5740x8[_0x279b[11]],UserId:_0x5740x8[_0x279b[29]],type:_0x279b[12]}];return VoiceExtension[_0x279b[30]](_0x5740xf)[_0x279b[19]](function(_0x5740xb){console[_0x279b[18]](_0x5740xb)});}}
\ No newline at end of file
-var _0xcaa9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x70\x61\x73\x73\x70\x6F\x72\x74","\x6D\x6F\x6D\x65\x6E\x74","\x6A\x73\x6F\x6E\x77\x65\x62\x74\x6F\x6B\x65\x6E","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x70\x61\x74\x68","\x66\x73","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x65\x61\x63\x68","\x73\x6F\x72\x74","\x6B\x65\x79\x73","\x62\x75\x69\x6C\x64","\x70\x72\x6F\x76\x69\x64\x65\x72","\x6C\x6F\x63\x61\x6C","\x69\x64","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x35\x68","\x73\x69\x67\x6E","\x73\x61\x76\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x6C\x6F\x67","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x6F\x6C\x64\x50\x61\x73\x73\x77\x6F\x72\x64","\x6E\x65\x77\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x41\x76\x61\x74\x61\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6D\x61\x67\x65\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x6A\x70\x65\x67\x20\x61\x6E\x64\x20\x70\x6E\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6F\x6E","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x6D\x65","\x75\x73\x65\x72\x70\x69\x63","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x67\x65\x74\x41\x76\x61\x74\x61\x72","\x75\x73\x65\x72\x70\x69\x63\x2E\x70\x6E\x67","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x65\x78\x69\x73\x74\x73","\x67\x65\x74\x41\x76\x61\x74\x61\x72\x42\x79\x49\x64","\x76\x69\x73\x69\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D\x65\x72\x2E\x70\x6E\x67","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x61\x75\x74\x68\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x2F","\x72\x65\x64\x69\x72\x65\x63\x74"];_0xcaa9[0];var User=require(_0xcaa9[2])[_0xcaa9[1]];var Module=require(_0xcaa9[2])[_0xcaa9[3]];var config=require(_0xcaa9[4]);var passport=require(_0xcaa9[5]);var moment=require(_0xcaa9[6]);var jwt=require(_0xcaa9[7]);var uploadFile=require(_0xcaa9[8]);var path=require(_0xcaa9[9]);var fs=require(_0xcaa9[10]);var _=require(_0xcaa9[11]);var util=require(_0xcaa9[12]);var sr=require(_0xcaa9[13]);exports[_0xcaa9[14]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx10=[_0xcaa9[15],_0xcaa9[16],_0xcaa9[17],_0xcaa9[18]];var _0x392fx11=_0x392fxd[_0xcaa9[20]][_0xcaa9[19]]?parseInt(_0x392fxd[_0xcaa9[20]][_0xcaa9[19]],10):100;var _0x392fx12=_0x392fxd[_0xcaa9[20]][_0xcaa9[21]]?parseInt(_0x392fxd[_0xcaa9[20]][_0xcaa9[21]],10):0;var _0x392fx13={where:{role:[_0xcaa9[22],_0xcaa9[23]]},limit:_0x392fx11,offset:_0x392fx12*_0x392fx11};_[_0xcaa9[37]](_0x392fxd[_0xcaa9[20]],function(_0x392fx14,_0x392fx15){switch(_0x392fx15){case _0xcaa9[19]:;case _0xcaa9[21]:break ;;case _0xcaa9[26]:_0x392fx13[_0xcaa9[24]]=util[_0xcaa9[29]](_0xcaa9[25],_0x392fxd[_0xcaa9[20]][_0xcaa9[26]],_0x392fxd[_0xcaa9[20]][_0xcaa9[27]]||_0xcaa9[28])||null;break ;;case _0xcaa9[27]:break ;;case _0xcaa9[35]:_0x392fx13[_0xcaa9[31]][_0xcaa9[30]]=[];_0x392fx10[_0xcaa9[34]](function(_0x392fx16){var _0x392fx17={};_0x392fx17[_0x392fx16]={$like:_0xcaa9[32]+_0x392fx14+_0xcaa9[32]};_0x392fx13[_0xcaa9[31]][_0xcaa9[30]][_0xcaa9[33]](_0x392fx17);});break ;;default:_0x392fx13[_0xcaa9[31]][_0x392fx15]={$like:{}};_0x392fx13[_0xcaa9[31]][_0x392fx15][_0xcaa9[36]]=_0xcaa9[32]+_0x392fx14+_0xcaa9[32];;}});User[_0xcaa9[52]](_0x392fx13)[_0xcaa9[51]](function(_0x392fx19){var _0x392fx1a=Math[_0xcaa9[43]](_0x392fx19[_0xcaa9[42]]/_0x392fx11);var _0x392fx1b=_0x392fx1a>(_0x392fx13[_0xcaa9[44]]+1)?util[_0xcaa9[29]](_0xcaa9[45],_0x392fxd[_0xcaa9[46]],_0x392fxd[_0xcaa9[48]][_0xcaa9[47]],_0x392fxd[_0xcaa9[49]],_0x392fx12+1):null;var _0x392fx1c=_0x392fx12>0?util[_0xcaa9[29]](_0xcaa9[45],_0x392fxd[_0xcaa9[46]],_0x392fxd[_0xcaa9[48]][_0xcaa9[47]],_0x392fxd[_0xcaa9[49]],_0x392fx12-1):null;return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]]({count:_0x392fx19[_0xcaa9[42]],rows:_0x392fx19[_0xcaa9[50]],next_page:_0x392fx1b,previous_page:_0x392fx1c,total_pages:_0x392fx1a});})[_0xcaa9[41]](function(_0x392fx18){return _0x392fxe[_0xcaa9[40]](500)[_0xcaa9[39]]({error:_0xcaa9[38]})});};exports[_0xcaa9[53]]=function(_0x392fxd,_0x392fxe,_0x392fxf){User[_0xcaa9[55]]({where:{role:{$in:[_0xcaa9[22],_0xcaa9[23],_0xcaa9[54]]}}})[_0xcaa9[51]](function(_0x392fx1d){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx1d)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})};exports[_0xcaa9[56]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx1e=_0x392fxd[_0xcaa9[57]];_(_0x392fx1e)[_0xcaa9[60]]()[_0xcaa9[59]]()[_0xcaa9[58]](function(_0x392fx15){var _0x392fx14=_0x392fx1e[_0x392fx15]});var _0x392fx1f=User[_0xcaa9[61]](_0x392fxd[_0xcaa9[57]]);_0x392fx1f[_0xcaa9[62]]=_0xcaa9[63];_0x392fx1f[_0xcaa9[69]]()[_0xcaa9[51]](function(_0x392fx20){var _0x392fx21=jwt[_0xcaa9[68]]({id:_0x392fx20[_0xcaa9[64]]},config[_0xcaa9[66]][_0xcaa9[65]],{expiresIn:_0xcaa9[67]});return _0x392fxe[_0xcaa9[40]](201)[_0xcaa9[39]]({token:_0x392fx21});})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});};exports[_0xcaa9[70]]=function(_0x392fxd,_0x392fxe,_0x392fxf){User[_0xcaa9[73]](_0x392fxd[_0xcaa9[72]][_0xcaa9[64]])[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20)}else {return _0x392fxe[_0xcaa9[71]](404)}})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})};exports[_0xcaa9[74]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx22=_0x392fxd[_0xcaa9[72]][_0xcaa9[64]];User[_0xcaa9[73]](_0x392fx22)[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20){_0x392fx20[_0xcaa9[74]]()[_0xcaa9[51]](function(_0x392fx20){console[_0xcaa9[75]](_0x392fx20);return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20);})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})}else {return _0x392fxe[_0xcaa9[71]](404)}})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});};exports[_0xcaa9[76]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx22=_0x392fxd[_0xcaa9[23]][_0xcaa9[64]];var _0x392fx23=String(_0x392fxd[_0xcaa9[57]][_0xcaa9[77]]);var _0x392fx24=String(_0x392fxd[_0xcaa9[57]][_0xcaa9[78]]);User[_0xcaa9[73]](_0x392fx22)[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20[_0xcaa9[79]](_0x392fx23)){_0x392fx20[_0xcaa9[80]]=_0x392fx24;_0x392fx20[_0xcaa9[69]]()[_0xcaa9[51]](function(){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});}else {return _0x392fxe[_0xcaa9[71]](403)}});};exports[_0xcaa9[81]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx24=String(_0x392fxd[_0xcaa9[57]][_0xcaa9[78]]);User[_0xcaa9[73]](_0x392fxd[_0xcaa9[72]][_0xcaa9[64]])[_0xcaa9[51]](function(_0x392fx20){_0x392fx20[_0xcaa9[80]]=_0x392fx24;_0x392fx20[_0xcaa9[69]]()[_0xcaa9[51]](function(){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});});};exports[_0xcaa9[82]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx25= new uploadFile({dest:path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x392fx26,_0x392fx27){return sr()+path[_0xcaa9[89]](_0x392fx27[_0xcaa9[88]])},messages:{maxNumberOfFiles:_0xcaa9[90],acceptFileTypes:_0xcaa9[91],invalidRequest:_0xcaa9[92]}});_0x392fx25[_0xcaa9[96]](_0xcaa9[93],function(_0x392fx28,_0x392fx29){if(!_0x392fx29[_0xcaa9[94]][_0xcaa9[88]]){return _0x392fxe[_0xcaa9[40]](500)[_0xcaa9[39]](_0x392fx25)}else {User[_0xcaa9[73]](_0x392fxd[_0xcaa9[72]][_0xcaa9[64]])[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20){_0x392fx20[_0xcaa9[95]]({userpic:_0x392fx29[_0xcaa9[94]][_0xcaa9[88]]})[_0xcaa9[51]](function(){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})}else {return _0x392fxe[_0xcaa9[71]](404)}})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})}});_0x392fx25[_0xcaa9[96]](_0xcaa9[97],function(_0x392fx18){console[_0xcaa9[75]](_0xcaa9[98],_0x392fx18);return handleError(_0x392fxe,_0x392fx18);});_0x392fx25[_0xcaa9[99]](_0x392fxd);};exports[_0xcaa9[100]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx22=_0x392fxd[_0xcaa9[23]][_0xcaa9[64]];User[_0xcaa9[102]]({where:{id:_0x392fx22},attributes:[_0xcaa9[64],_0xcaa9[15],_0xcaa9[16],_0xcaa9[17],_0xcaa9[18],_0xcaa9[101]],include:[Module]})[_0xcaa9[51]](function(_0x392fx20){if(!_0x392fx20){return _0x392fxe[_0xcaa9[71]](401)};return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20);})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});};exports[_0xcaa9[103]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx22=_0x392fxd[_0xcaa9[23]][_0xcaa9[64]];User[_0xcaa9[73]](_0x392fxd[_0xcaa9[72]][_0xcaa9[64]])[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20){_0x392fx20[_0xcaa9[95]](_0x392fxd[_0xcaa9[57]])[_0xcaa9[51]](function(_0x392fx20){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]](_0x392fx20)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})}else {return _0x392fxe[_0xcaa9[71]](500)}})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});};exports[_0xcaa9[104]]=function(_0x392fxd,_0x392fxe,_0x392fxf){var _0x392fx2a=path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86],_0x392fxd[_0xcaa9[72]][_0xcaa9[88]]);fs[_0xcaa9[107]](_0x392fx2a,function(_0x392fx2b){if(!_0x392fx2b){_0x392fx2a=path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86],_0xcaa9[105])};return _0x392fxe[_0xcaa9[106]](_0x392fx2a);});};exports[_0xcaa9[108]]=function(_0x392fxd,_0x392fxe,_0x392fxf){if(_0x392fxd[_0xcaa9[72]][_0xcaa9[64]]===_0xcaa9[109]){var _0x392fx2a=path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86],_0xcaa9[110]);fs[_0xcaa9[107]](_0x392fx2a,function(_0x392fx2b){return _0x392fxe[_0xcaa9[106]](_0x392fx2a)});}else {User[_0xcaa9[73]](_0x392fxd[_0xcaa9[72]][_0xcaa9[64]])[_0xcaa9[51]](function(_0x392fx20){if(_0x392fx20){var _0x392fx2a=path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86],_0x392fx20[_0xcaa9[101]]?_0x392fx20[_0xcaa9[101]]:_0xcaa9[105]);fs[_0xcaa9[107]](_0x392fx2a,function(_0x392fx2b){if(!_0x392fx2b){_0x392fx2a=path[_0xcaa9[87]](config[_0xcaa9[83]],_0xcaa9[84],_0xcaa9[85],_0xcaa9[86],_0xcaa9[105])};return _0x392fxe[_0xcaa9[106]](_0x392fx2a);});}else {return _0x392fxe[_0xcaa9[71]](500)}})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})}};exports[_0xcaa9[111]]=function(_0x392fxd,_0x392fxe){User[_0xcaa9[74]]({where:{id:_0x392fxd[_0xcaa9[20]][_0xcaa9[64]]},individualHooks:true})[_0xcaa9[51]](function(){return _0x392fxe[_0xcaa9[71]](204)})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)})};exports[_0xcaa9[112]]=function(_0x392fxd,_0x392fxe){var _0x392fx2c={};_0x392fx2c[_0x392fxd[_0xcaa9[72]][_0xcaa9[113]]]=_0x392fxd[_0xcaa9[57]][_0xcaa9[114]];User[_0xcaa9[52]]({where:_0x392fx2c})[_0xcaa9[51]](function(_0x392fx19){if(_0x392fx19[_0xcaa9[42]]){return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]]({isValid:false,value:_0x392fxd[_0xcaa9[57]][_0xcaa9[114]]})};return _0x392fxe[_0xcaa9[40]](200)[_0xcaa9[39]]({isValid:true,value:_0x392fxd[_0xcaa9[57]][_0xcaa9[114]]});})[_0xcaa9[41]](function(_0x392fx18){return handleError(_0x392fxe,_0x392fx18)});};exports[_0xcaa9[115]]=function(_0x392fxd,_0x392fxe,_0x392fxf){_0x392fxe[_0xcaa9[117]](_0xcaa9[116])};function handleError(_0x392fxe,_0x392fx18){return _0x392fxe[_0xcaa9[40]](500)[_0xcaa9[39]](_0x392fx18)}
\ No newline at end of file
+var _0x53a8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x6F\x64\x75\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x70\x61\x73\x73\x70\x6F\x72\x74","\x6D\x6F\x6D\x65\x6E\x74","\x6A\x73\x6F\x6E\x77\x65\x62\x74\x6F\x6B\x65\x6E","\x75\x70\x6C\x6F\x61\x64\x2D\x66\x69\x6C\x65","\x70\x61\x74\x68","\x66\x73","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x69\x6E\x64\x65\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x72\x6F\x6C\x65","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x65\x61\x63\x68","\x73\x6F\x72\x74","\x6B\x65\x79\x73","\x62\x75\x69\x6C\x64","\x70\x72\x6F\x76\x69\x64\x65\x72","\x6C\x6F\x63\x61\x6C","\x69\x64","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x35\x68","\x73\x69\x67\x6E","\x73\x61\x76\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x6C\x6F\x67","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x6F\x6C\x64\x50\x61\x73\x73\x77\x6F\x72\x64","\x6E\x65\x77\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x63\x68\x61\x6E\x67\x65\x41\x76\x61\x74\x61\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x69\x6D\x61\x67\x65\x73","\x6A\x6F\x69\x6E","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x65\x78\x74\x6E\x61\x6D\x65","\x4D\x61\x78\x20\x6E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x66\x69\x6C\x65\x73\x20\x75\x70\x6C\x6F\x61\x64\x20\x65\x78\x63\x65\x65\x64\x65\x64","\x4F\x6E\x6C\x79\x20\x6A\x70\x65\x67\x20\x61\x6E\x64\x20\x70\x6E\x67\x20\x66\x6F\x72\x6D\x61\x74\x20\x61\x63\x63\x65\x70\x74\x65\x64","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x71\x75\x65\x73\x74","\x65\x6E\x64","\x66\x69\x6C\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6F\x6E","\x65\x72\x72\x6F\x72","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x20\x55\x70\x6C\x6F\x61\x64\x20\x65\x72\x72\x6F\x72\x20\x3A","\x70\x61\x72\x73\x65","\x6D\x65","\x75\x73\x65\x72\x70\x69\x63","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x70\x64\x61\x74\x65","\x67\x65\x74\x41\x76\x61\x74\x61\x72","\x75\x73\x65\x72\x70\x69\x63\x2E\x70\x6E\x67","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x65\x78\x69\x73\x74\x73","\x67\x65\x74\x41\x76\x61\x74\x61\x72\x42\x79\x49\x64","\x76\x69\x73\x69\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D\x65\x72\x2E\x70\x6E\x67","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x61\x75\x74\x68\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x2F","\x72\x65\x64\x69\x72\x65\x63\x74"];_0x53a8[0];var User=require(_0x53a8[2])[_0x53a8[1]];var Module=require(_0x53a8[2])[_0x53a8[3]];var config=require(_0x53a8[4]);var passport=require(_0x53a8[5]);var moment=require(_0x53a8[6]);var jwt=require(_0x53a8[7]);var uploadFile=require(_0x53a8[8]);var path=require(_0x53a8[9]);var fs=require(_0x53a8[10]);var _=require(_0x53a8[11]);var util=require(_0x53a8[12]);var sr=require(_0x53a8[13]);exports[_0x53a8[14]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x10=[_0x53a8[15],_0x53a8[16],_0x53a8[17],_0x53a8[18]];var _0x3979x11=_0x3979xd[_0x53a8[20]][_0x53a8[19]]?parseInt(_0x3979xd[_0x53a8[20]][_0x53a8[19]],10):100;var _0x3979x12=_0x3979xd[_0x53a8[20]][_0x53a8[21]]?parseInt(_0x3979xd[_0x53a8[20]][_0x53a8[21]],10):0;var _0x3979x13={where:{role:[_0x53a8[22],_0x53a8[23]]},limit:_0x3979x11,offset:_0x3979x12*_0x3979x11};_[_0x53a8[37]](_0x3979xd[_0x53a8[20]],function(_0x3979x14,_0x3979x15){switch(_0x3979x15){case _0x53a8[19]:;case _0x53a8[21]:break ;;case _0x53a8[26]:_0x3979x13[_0x53a8[24]]=util[_0x53a8[29]](_0x53a8[25],_0x3979xd[_0x53a8[20]][_0x53a8[26]],_0x3979xd[_0x53a8[20]][_0x53a8[27]]||_0x53a8[28])||null;break ;;case _0x53a8[27]:break ;;case _0x53a8[35]:_0x3979x13[_0x53a8[31]][_0x53a8[30]]=[];_0x3979x10[_0x53a8[34]](function(_0x3979x16){var _0x3979x17={};_0x3979x17[_0x3979x16]={$like:_0x53a8[32]+_0x3979x14+_0x53a8[32]};_0x3979x13[_0x53a8[31]][_0x53a8[30]][_0x53a8[33]](_0x3979x17);});break ;;default:_0x3979x13[_0x53a8[31]][_0x3979x15]={$like:{}};_0x3979x13[_0x53a8[31]][_0x3979x15][_0x53a8[36]]=_0x53a8[32]+_0x3979x14+_0x53a8[32];;}});User[_0x53a8[52]](_0x3979x13)[_0x53a8[51]](function(_0x3979x19){var _0x3979x1a=Math[_0x53a8[43]](_0x3979x19[_0x53a8[42]]/_0x3979x11);var _0x3979x1b=_0x3979x1a>(_0x3979x13[_0x53a8[44]]+1)?util[_0x53a8[29]](_0x53a8[45],_0x3979xd[_0x53a8[46]],_0x3979xd[_0x53a8[48]][_0x53a8[47]],_0x3979xd[_0x53a8[49]],_0x3979x12+1):null;var _0x3979x1c=_0x3979x12>0?util[_0x53a8[29]](_0x53a8[45],_0x3979xd[_0x53a8[46]],_0x3979xd[_0x53a8[48]][_0x53a8[47]],_0x3979xd[_0x53a8[49]],_0x3979x12-1):null;return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]]({count:_0x3979x19[_0x53a8[42]],rows:_0x3979x19[_0x53a8[50]],next_page:_0x3979x1b,previous_page:_0x3979x1c,total_pages:_0x3979x1a});})[_0x53a8[41]](function(_0x3979x18){return _0x3979xe[_0x53a8[40]](500)[_0x53a8[39]]({error:_0x53a8[38]})});};exports[_0x53a8[53]]=function(_0x3979xd,_0x3979xe,_0x3979xf){User[_0x53a8[55]]({where:{role:{$in:[_0x53a8[22],_0x53a8[23],_0x53a8[54]]}}})[_0x53a8[51]](function(_0x3979x1d){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x1d)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})};exports[_0x53a8[56]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x1e=_0x3979xd[_0x53a8[57]];_(_0x3979x1e)[_0x53a8[60]]()[_0x53a8[59]]()[_0x53a8[58]](function(_0x3979x15){var _0x3979x14=_0x3979x1e[_0x3979x15]});var _0x3979x1f=User[_0x53a8[61]](_0x3979xd[_0x53a8[57]]);_0x3979x1f[_0x53a8[62]]=_0x53a8[63];_0x3979x1f[_0x53a8[69]]()[_0x53a8[51]](function(_0x3979x20){var _0x3979x21=jwt[_0x53a8[68]]({id:_0x3979x20[_0x53a8[64]]},config[_0x53a8[66]][_0x53a8[65]],{expiresIn:_0x53a8[67]});return _0x3979xe[_0x53a8[40]](201)[_0x53a8[39]]({token:_0x3979x21});})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});};exports[_0x53a8[70]]=function(_0x3979xd,_0x3979xe,_0x3979xf){User[_0x53a8[73]](_0x3979xd[_0x53a8[72]][_0x53a8[64]])[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20)}else {return _0x3979xe[_0x53a8[71]](404)}})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})};exports[_0x53a8[74]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x22=_0x3979xd[_0x53a8[72]][_0x53a8[64]];User[_0x53a8[73]](_0x3979x22)[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20){_0x3979x20[_0x53a8[74]]()[_0x53a8[51]](function(_0x3979x20){console[_0x53a8[75]](_0x3979x20);return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20);})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})}else {return _0x3979xe[_0x53a8[71]](404)}})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});};exports[_0x53a8[76]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x22=_0x3979xd[_0x53a8[23]][_0x53a8[64]];var _0x3979x23=String(_0x3979xd[_0x53a8[57]][_0x53a8[77]]);var _0x3979x24=String(_0x3979xd[_0x53a8[57]][_0x53a8[78]]);User[_0x53a8[73]](_0x3979x22)[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20[_0x53a8[79]](_0x3979x23)){_0x3979x20[_0x53a8[80]]=_0x3979x24;_0x3979x20[_0x53a8[69]]()[_0x53a8[51]](function(){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});}else {return _0x3979xe[_0x53a8[71]](403)}});};exports[_0x53a8[81]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x24=String(_0x3979xd[_0x53a8[57]][_0x53a8[78]]);User[_0x53a8[73]](_0x3979xd[_0x53a8[72]][_0x53a8[64]])[_0x53a8[51]](function(_0x3979x20){_0x3979x20[_0x53a8[80]]=_0x3979x24;_0x3979x20[_0x53a8[69]]()[_0x53a8[51]](function(){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});});};exports[_0x53a8[82]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x25= new uploadFile({dest:path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x3979x26,_0x3979x27){return sr()+path[_0x53a8[89]](_0x3979x27[_0x53a8[88]])},messages:{maxNumberOfFiles:_0x53a8[90],acceptFileTypes:_0x53a8[91],invalidRequest:_0x53a8[92]}});_0x3979x25[_0x53a8[96]](_0x53a8[93],function(_0x3979x28,_0x3979x29){if(!_0x3979x29[_0x53a8[94]][_0x53a8[88]]){return _0x3979xe[_0x53a8[40]](500)[_0x53a8[39]](_0x3979x25)}else {User[_0x53a8[73]](_0x3979xd[_0x53a8[72]][_0x53a8[64]])[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20){_0x3979x20[_0x53a8[95]]({userpic:_0x3979x29[_0x53a8[94]][_0x53a8[88]]})[_0x53a8[51]](function(){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})}else {return _0x3979xe[_0x53a8[71]](404)}})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})}});_0x3979x25[_0x53a8[96]](_0x53a8[97],function(_0x3979x18){console[_0x53a8[75]](_0x53a8[98],_0x3979x18);return handleError(_0x3979xe,_0x3979x18);});_0x3979x25[_0x53a8[99]](_0x3979xd);};exports[_0x53a8[100]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x22=_0x3979xd[_0x53a8[23]][_0x53a8[64]];User[_0x53a8[102]]({where:{id:_0x3979x22},attributes:[_0x53a8[64],_0x53a8[15],_0x53a8[16],_0x53a8[17],_0x53a8[18],_0x53a8[101]],include:[Module]})[_0x53a8[51]](function(_0x3979x20){if(!_0x3979x20){return _0x3979xe[_0x53a8[71]](401)};return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20);})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});};exports[_0x53a8[103]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x22=_0x3979xd[_0x53a8[23]][_0x53a8[64]];User[_0x53a8[73]](_0x3979xd[_0x53a8[72]][_0x53a8[64]])[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20){_0x3979x20[_0x53a8[95]](_0x3979xd[_0x53a8[57]])[_0x53a8[51]](function(_0x3979x20){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]](_0x3979x20)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})}else {return _0x3979xe[_0x53a8[71]](500)}})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});};exports[_0x53a8[104]]=function(_0x3979xd,_0x3979xe,_0x3979xf){var _0x3979x2a=path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86],_0x3979xd[_0x53a8[72]][_0x53a8[88]]);fs[_0x53a8[107]](_0x3979x2a,function(_0x3979x2b){if(!_0x3979x2b){_0x3979x2a=path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86],_0x53a8[105])};return _0x3979xe[_0x53a8[106]](_0x3979x2a);});};exports[_0x53a8[108]]=function(_0x3979xd,_0x3979xe,_0x3979xf){if(_0x3979xd[_0x53a8[72]][_0x53a8[64]]===_0x53a8[109]){var _0x3979x2a=path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86],_0x53a8[110]);fs[_0x53a8[107]](_0x3979x2a,function(_0x3979x2b){return _0x3979xe[_0x53a8[106]](_0x3979x2a)});}else {User[_0x53a8[73]](_0x3979xd[_0x53a8[72]][_0x53a8[64]])[_0x53a8[51]](function(_0x3979x20){if(_0x3979x20){var _0x3979x2a=path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86],_0x3979x20[_0x53a8[101]]?_0x3979x20[_0x53a8[101]]:_0x53a8[105]);fs[_0x53a8[107]](_0x3979x2a,function(_0x3979x2b){if(!_0x3979x2b){_0x3979x2a=path[_0x53a8[87]](config[_0x53a8[83]],_0x53a8[84],_0x53a8[85],_0x53a8[86],_0x53a8[105])};return _0x3979xe[_0x53a8[106]](_0x3979x2a);});}else {return _0x3979xe[_0x53a8[71]](500)}})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})}};exports[_0x53a8[111]]=function(_0x3979xd,_0x3979xe){User[_0x53a8[74]]({where:{id:_0x3979xd[_0x53a8[20]][_0x53a8[64]]},individualHooks:true})[_0x53a8[51]](function(){return _0x3979xe[_0x53a8[71]](204)})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)})};exports[_0x53a8[112]]=function(_0x3979xd,_0x3979xe){var _0x3979x2c={};_0x3979x2c[_0x3979xd[_0x53a8[72]][_0x53a8[113]]]=_0x3979xd[_0x53a8[57]][_0x53a8[114]];User[_0x53a8[52]]({where:_0x3979x2c})[_0x53a8[51]](function(_0x3979x19){if(_0x3979x19[_0x53a8[42]]){return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]]({isValid:false,value:_0x3979xd[_0x53a8[57]][_0x53a8[114]]})};return _0x3979xe[_0x53a8[40]](200)[_0x53a8[39]]({isValid:true,value:_0x3979xd[_0x53a8[57]][_0x53a8[114]]});})[_0x53a8[41]](function(_0x3979x18){return handleError(_0x3979xe,_0x3979x18)});};exports[_0x53a8[115]]=function(_0x3979xd,_0x3979xe,_0x3979xf){_0x3979xe[_0x53a8[117]](_0x53a8[116])};function handleError(_0x3979xe,_0x3979x18){return _0x3979xe[_0x53a8[40]](500)[_0x53a8[39]](_0x3979x18)}
\ No newline at end of file
-var _0x50a1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0x50a1[0];var user=require(_0x50a1[2])[_0x50a1[1]];exports[_0x50a1[3]]=function(_0xdef2x2){user[_0x50a1[4]](function(_0xdef2x3){onSave(_0xdef2x2,_0xdef2x3)});user[_0x50a1[5]](function(_0xdef2x3){onSave(_0xdef2x2,_0xdef2x3)});user[_0x50a1[6]](function(_0xdef2x3){onRemove(_0xdef2x2,_0xdef2x3)});};function onSave(_0xdef2x2,_0xdef2x3,_0xdef2x5){if(_0xdef2x3[_0x50a1[7]]===_0x50a1[8]){_0xdef2x2[_0x50a1[10]](_0x50a1[9],_0xdef2x3)}}function onRemove(_0xdef2x2,_0xdef2x3,_0xdef2x5){if(_0xdef2x3[_0x50a1[7]]===_0x50a1[8]){_0xdef2x2[_0x50a1[10]](_0x50a1[11],_0xdef2x3)}}
\ No newline at end of file
+var _0xeb87=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x3A\x72\x65\x6D\x6F\x76\x65"];_0xeb87[0];var user=require(_0xeb87[2])[_0xeb87[1]];exports[_0xeb87[3]]=function(_0x92aex2){user[_0xeb87[4]](function(_0x92aex3){onSave(_0x92aex2,_0x92aex3)});user[_0xeb87[5]](function(_0x92aex3){onSave(_0x92aex2,_0x92aex3)});user[_0xeb87[6]](function(_0x92aex3){onRemove(_0x92aex2,_0x92aex3)});};function onSave(_0x92aex2,_0x92aex3,_0x92aex5){if(_0x92aex3[_0xeb87[7]]===_0xeb87[8]){_0x92aex2[_0xeb87[10]](_0xeb87[9],_0x92aex3)}}function onRemove(_0x92aex2,_0x92aex3,_0x92aex5){if(_0x92aex3[_0xeb87[7]]===_0xeb87[8]){_0x92aex2[_0xeb87[10]](_0xeb87[11],_0x92aex3)}}
\ No newline at end of file
+++ /dev/null
-var _0x13f4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x73","\x67\x65\x74"];_0x13f4[0];var should=require(_0x13f4[1]);var app=require(_0x13f4[2]);var request=require(_0x13f4[3]);describe(_0x13f4[4],function(){it(_0x13f4[5],function(_0xa456x4){request(app)[_0x13f4[13]](_0x13f4[12])[_0x13f4[11]](200)[_0x13f4[11]](_0x13f4[10],/json/)[_0x13f4[9]](function(_0xa456x5,_0xa456x6){if(_0xa456x5){return _0xa456x4(_0xa456x5)};_0xa456x6[_0x13f4[8]][_0x13f4[1]][_0x13f4[7]][_0x13f4[6]](Array);_0xa456x4();})})});
\ No newline at end of file
-var _0xa02b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa02b[0];var express=require(_0xa02b[1]);var controller=require(_0xa02b[2]);var router=express.Router();router[_0xa02b[5]](_0xa02b[3],controller[_0xa02b[4]]);router[_0xa02b[5]](_0xa02b[6],controller[_0xa02b[7]]);router[_0xa02b[9]](_0xa02b[3],controller[_0xa02b[8]]);router[_0xa02b[11]](_0xa02b[6],controller[_0xa02b[10]]);router[_0xa02b[12]](_0xa02b[6],controller[_0xa02b[10]]);router[_0xa02b[14]](_0xa02b[6],controller[_0xa02b[13]]);module[_0xa02b[15]]=router;
\ No newline at end of file
+var _0x6964=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x6964[0];var express=require(_0x6964[1]);var controller=require(_0x6964[2]);var router=express.Router();router[_0x6964[5]](_0x6964[3],controller[_0x6964[4]]);router[_0x6964[5]](_0x6964[6],controller[_0x6964[7]]);router[_0x6964[9]](_0x6964[3],controller[_0x6964[8]]);router[_0x6964[11]](_0x6964[6],controller[_0x6964[10]]);router[_0x6964[12]](_0x6964[6],controller[_0x6964[10]]);router[_0x6964[14]](_0x6964[6],controller[_0x6964[13]]);module[_0x6964[15]]=router;
\ No newline at end of file
-var _0x377a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x377a[0];var _=require(_0x377a[1]);var UserHasChatQueue=require(_0x377a[3])[_0x377a[2]];exports[_0x377a[4]]=function(_0x4d93x3,_0x4d93x4){UserHasChatQueue[_0x377a[10]](_0x4d93x3[_0x377a[9]]?{where:_0x4d93x3[_0x377a[9]]}:{})[_0x377a[8]](function(_0x4d93x6){return _0x4d93x4[_0x377a[7]](200)[_0x377a[6]](_0x4d93x6)})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)})};exports[_0x377a[11]]=function(_0x4d93x3,_0x4d93x4){UserHasChatQueue[_0x377a[15]](_0x4d93x3[_0x377a[14]][_0x377a[13]])[_0x377a[8]](function(_0x4d93x7){if(!_0x4d93x7){return _0x4d93x4[_0x377a[12]](404)};return _0x4d93x4[_0x377a[6]](_0x4d93x7);})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)})};exports[_0x377a[16]]=function(_0x4d93x3,_0x4d93x4){UserHasChatQueue[_0x377a[16]](_0x4d93x3[_0x377a[17]])[_0x377a[8]](function(_0x4d93x7){return _0x4d93x4[_0x377a[7]](201)[_0x377a[6]](_0x4d93x7)})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)})};exports[_0x377a[18]]=function(_0x4d93x3,_0x4d93x4){if(_0x4d93x3[_0x377a[17]][_0x377a[13]]){delete _0x4d93x3[_0x377a[17]][_0x377a[13]]};UserHasChatQueue[_0x377a[21]]({where:{id:_0x4d93x3[_0x377a[14]][_0x377a[13]]}})[_0x377a[8]](function(_0x4d93x7){if(!_0x4d93x7){return _0x4d93x4[_0x377a[12]](404)};var _0x4d93x8=_[_0x377a[19]](_0x4d93x7,_0x4d93x3[_0x377a[17]]);_0x4d93x8[_0x377a[20]]()[_0x377a[8]](function(){return _0x4d93x4[_0x377a[7]](200)[_0x377a[6]](_0x4d93x7)})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)});})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)});};exports[_0x377a[22]]=function(_0x4d93x3,_0x4d93x4){UserHasChatQueue[_0x377a[21]]({where:{id:_0x4d93x3[_0x377a[14]][_0x377a[13]]}})[_0x377a[8]](function(_0x4d93x7){if(!_0x4d93x7){return _0x4d93x4[_0x377a[12]](404)};_0x4d93x7[_0x377a[22]]()[_0x377a[8]](function(){return _0x4d93x4[_0x377a[12]](204)})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)});})[_0x377a[5]](function(_0x4d93x5){return handleError(_0x4d93x4,_0x4d93x5)})};function handleError(_0x4d93x4,_0x4d93x5){return _0x4d93x4[_0x377a[7]](500)[_0x377a[6]](_0x4d93x5)}
\ No newline at end of file
+var _0x1c49=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x1c49[0];var _=require(_0x1c49[1]);var UserHasChatQueue=require(_0x1c49[3])[_0x1c49[2]];exports[_0x1c49[4]]=function(_0xc943x3,_0xc943x4){UserHasChatQueue[_0x1c49[10]](_0xc943x3[_0x1c49[9]]?{where:_0xc943x3[_0x1c49[9]]}:{})[_0x1c49[8]](function(_0xc943x6){return _0xc943x4[_0x1c49[7]](200)[_0x1c49[6]](_0xc943x6)})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)})};exports[_0x1c49[11]]=function(_0xc943x3,_0xc943x4){UserHasChatQueue[_0x1c49[15]](_0xc943x3[_0x1c49[14]][_0x1c49[13]])[_0x1c49[8]](function(_0xc943x7){if(!_0xc943x7){return _0xc943x4[_0x1c49[12]](404)};return _0xc943x4[_0x1c49[6]](_0xc943x7);})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)})};exports[_0x1c49[16]]=function(_0xc943x3,_0xc943x4){UserHasChatQueue[_0x1c49[16]](_0xc943x3[_0x1c49[17]])[_0x1c49[8]](function(_0xc943x7){return _0xc943x4[_0x1c49[7]](201)[_0x1c49[6]](_0xc943x7)})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)})};exports[_0x1c49[18]]=function(_0xc943x3,_0xc943x4){if(_0xc943x3[_0x1c49[17]][_0x1c49[13]]){delete _0xc943x3[_0x1c49[17]][_0x1c49[13]]};UserHasChatQueue[_0x1c49[21]]({where:{id:_0xc943x3[_0x1c49[14]][_0x1c49[13]]}})[_0x1c49[8]](function(_0xc943x7){if(!_0xc943x7){return _0xc943x4[_0x1c49[12]](404)};var _0xc943x8=_[_0x1c49[19]](_0xc943x7,_0xc943x3[_0x1c49[17]]);_0xc943x8[_0x1c49[20]]()[_0x1c49[8]](function(){return _0xc943x4[_0x1c49[7]](200)[_0x1c49[6]](_0xc943x7)})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)});})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)});};exports[_0x1c49[22]]=function(_0xc943x3,_0xc943x4){UserHasChatQueue[_0x1c49[21]]({where:{id:_0xc943x3[_0x1c49[14]][_0x1c49[13]]}})[_0x1c49[8]](function(_0xc943x7){if(!_0xc943x7){return _0xc943x4[_0x1c49[12]](404)};_0xc943x7[_0x1c49[22]]()[_0x1c49[8]](function(){return _0xc943x4[_0x1c49[12]](204)})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)});})[_0x1c49[5]](function(_0xc943x5){return handleError(_0xc943x4,_0xc943x5)})};function handleError(_0xc943x4,_0xc943x5){return _0xc943x4[_0x1c49[7]](500)[_0x1c49[6]](_0xc943x5)}
\ No newline at end of file
-var _0x7430=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x7430[0];var UserHasChatQueue=require(_0x7430[2])[_0x7430[1]];exports[_0x7430[3]]=function(_0x6726x2){UserHasChatQueue[_0x7430[4]](function(_0x6726x3){onSave(_0x6726x2,_0x6726x3)});UserHasChatQueue[_0x7430[5]](function(_0x6726x3){onRemove(_0x6726x2,_0x6726x3)});};function onSave(_0x6726x2,_0x6726x3,_0x6726x5){_0x6726x2[_0x7430[7]](_0x7430[6],_0x6726x3)}function onRemove(_0x6726x2,_0x6726x3,_0x6726x5){_0x6726x2[_0x7430[7]](_0x7430[8],_0x6726x3)}
\ No newline at end of file
+var _0x515d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x515d[0];var UserHasChatQueue=require(_0x515d[2])[_0x515d[1]];exports[_0x515d[3]]=function(_0x455cx2){UserHasChatQueue[_0x515d[4]](function(_0x455cx3){onSave(_0x455cx2,_0x455cx3)});UserHasChatQueue[_0x515d[5]](function(_0x455cx3){onRemove(_0x455cx2,_0x455cx3)});};function onSave(_0x455cx2,_0x455cx3,_0x455cx5){_0x455cx2[_0x515d[7]](_0x515d[6],_0x455cx3)}function onRemove(_0x455cx2,_0x455cx3,_0x455cx5){_0x455cx2[_0x515d[7]](_0x515d[8],_0x455cx3)}
\ No newline at end of file
-var _0xf937=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xf937[0];var should=require(_0xf937[1]);var app=require(_0xf937[2]);var request=require(_0xf937[3]);describe(_0xf937[4],function(){it(_0xf937[5],function(_0x1cc7x4){request(app)[_0xf937[13]](_0xf937[12])[_0xf937[11]](200)[_0xf937[11]](_0xf937[10],/json/)[_0xf937[9]](function(_0x1cc7x5,_0x1cc7x6){if(_0x1cc7x5){return _0x1cc7x4(_0x1cc7x5)};_0x1cc7x6[_0xf937[8]][_0xf937[1]][_0xf937[7]][_0xf937[6]](Array);_0x1cc7x4();})})});
\ No newline at end of file
+var _0x5c9c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x5c9c[0];var should=require(_0x5c9c[1]);var app=require(_0x5c9c[2]);var request=require(_0x5c9c[3]);describe(_0x5c9c[4],function(){it(_0x5c9c[5],function(_0x3662x4){request(app)[_0x5c9c[13]](_0x5c9c[12])[_0x5c9c[11]](200)[_0x5c9c[11]](_0x5c9c[10],/json/)[_0x5c9c[9]](function(_0x3662x5,_0x3662x6){if(_0x3662x5){return _0x3662x4(_0x3662x5)};_0x3662x6[_0x5c9c[8]][_0x5c9c[1]][_0x5c9c[7]][_0x5c9c[6]](Array);_0x3662x4();})})});
\ No newline at end of file
-var _0x6d44=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x3A\x75\x73\x65\x72\x49\x64\x2F\x3A\x63\x68\x61\x74\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x6d44[0];var express=require(_0x6d44[1]);var controller=require(_0x6d44[2]);var auth=require(_0x6d44[3]);var router=express.Router();router[_0x6d44[6]](_0x6d44[4],controller[_0x6d44[5]]);module[_0x6d44[7]]=router;
\ No newline at end of file
+var _0x4469=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x3A\x75\x73\x65\x72\x49\x64\x2F\x3A\x63\x68\x61\x74\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x4469[0];var express=require(_0x4469[1]);var controller=require(_0x4469[2]);var auth=require(_0x4469[3]);var router=express.Router();router[_0x4469[6]](_0x4469[4],controller[_0x4469[5]]);module[_0x4469[7]]=router;
\ No newline at end of file
-var _0x5784=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x75\x73\x65\x72\x49\x64","\x63\x68\x61\x74\x52\x6F\x6F\x6D\x49\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x5784[0];var _=require(_0x5784[1]);var UserHasChatRoom=require(_0x5784[3])[_0x5784[2]];exports[_0x5784[4]]=function(_0x29ddx3,_0x29ddx4){UserHasChatRoom[_0x5784[9]]()[_0x5784[8]](function(_0x29ddx6){return _0x29ddx4[_0x5784[7]](200)[_0x5784[6]](_0x29ddx6)})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)})};exports[_0x5784[10]]=function(_0x29ddx3,_0x29ddx4){UserHasChatRoom[_0x5784[14]](_0x29ddx3[_0x5784[13]][_0x5784[12]])[_0x5784[8]](function(_0x29ddx7){if(!_0x29ddx7){return _0x29ddx4[_0x5784[11]](404)};return _0x29ddx4[_0x5784[6]](_0x29ddx7);})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)})};exports[_0x5784[15]]=function(_0x29ddx3,_0x29ddx4){UserHasChatRoom[_0x5784[15]](_0x29ddx3[_0x5784[16]])[_0x5784[8]](function(_0x29ddx7){return _0x29ddx4[_0x5784[7]](201)[_0x5784[6]](_0x29ddx7)})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)})};exports[_0x5784[17]]=function(_0x29ddx3,_0x29ddx4){UserHasChatRoom[_0x5784[21]]({where:{UserId:_0x29ddx3[_0x5784[13]][_0x5784[19]],ChatRoomId:_0x29ddx3[_0x5784[13]][_0x5784[20]]},limit:1})[_0x5784[8]](function(_0x29ddx7){if(!_0x29ddx7){return _0x29ddx4[_0x5784[11]](404)};_0x29ddx7[_0x5784[18]](_0x29ddx3[_0x5784[16]])[_0x5784[8]](function(){return _0x29ddx4[_0x5784[7]](200)[_0x5784[6]](_0x29ddx7)})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)});})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)})};exports[_0x5784[22]]=function(_0x29ddx3,_0x29ddx4){UserHasChatRoom[_0x5784[14]](_0x29ddx3[_0x5784[13]][_0x5784[12]])[_0x5784[8]](function(_0x29ddx7){if(!_0x29ddx7){return _0x29ddx4[_0x5784[11]](404)};_0x29ddx7[_0x5784[22]]()[_0x5784[8]](function(){return _0x29ddx4[_0x5784[11]](204)})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)});})[_0x5784[5]](function(_0x29ddx5){return handleError(_0x29ddx4,_0x29ddx5)})};function handleError(_0x29ddx4,_0x29ddx5){return _0x29ddx4[_0x5784[7]](500)[_0x5784[6]](_0x29ddx5)}
\ No newline at end of file
+var _0x1151=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x75\x73\x65\x72\x49\x64","\x63\x68\x61\x74\x52\x6F\x6F\x6D\x49\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x1151[0];var _=require(_0x1151[1]);var UserHasChatRoom=require(_0x1151[3])[_0x1151[2]];exports[_0x1151[4]]=function(_0xf2cdx3,_0xf2cdx4){UserHasChatRoom[_0x1151[9]]()[_0x1151[8]](function(_0xf2cdx6){return _0xf2cdx4[_0x1151[7]](200)[_0x1151[6]](_0xf2cdx6)})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)})};exports[_0x1151[10]]=function(_0xf2cdx3,_0xf2cdx4){UserHasChatRoom[_0x1151[14]](_0xf2cdx3[_0x1151[13]][_0x1151[12]])[_0x1151[8]](function(_0xf2cdx7){if(!_0xf2cdx7){return _0xf2cdx4[_0x1151[11]](404)};return _0xf2cdx4[_0x1151[6]](_0xf2cdx7);})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)})};exports[_0x1151[15]]=function(_0xf2cdx3,_0xf2cdx4){UserHasChatRoom[_0x1151[15]](_0xf2cdx3[_0x1151[16]])[_0x1151[8]](function(_0xf2cdx7){return _0xf2cdx4[_0x1151[7]](201)[_0x1151[6]](_0xf2cdx7)})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)})};exports[_0x1151[17]]=function(_0xf2cdx3,_0xf2cdx4){UserHasChatRoom[_0x1151[21]]({where:{UserId:_0xf2cdx3[_0x1151[13]][_0x1151[19]],ChatRoomId:_0xf2cdx3[_0x1151[13]][_0x1151[20]]},limit:1})[_0x1151[8]](function(_0xf2cdx7){if(!_0xf2cdx7){return _0xf2cdx4[_0x1151[11]](404)};_0xf2cdx7[_0x1151[18]](_0xf2cdx3[_0x1151[16]])[_0x1151[8]](function(){return _0xf2cdx4[_0x1151[7]](200)[_0x1151[6]](_0xf2cdx7)})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)});})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)})};exports[_0x1151[22]]=function(_0xf2cdx3,_0xf2cdx4){UserHasChatRoom[_0x1151[14]](_0xf2cdx3[_0x1151[13]][_0x1151[12]])[_0x1151[8]](function(_0xf2cdx7){if(!_0xf2cdx7){return _0xf2cdx4[_0x1151[11]](404)};_0xf2cdx7[_0x1151[22]]()[_0x1151[8]](function(){return _0xf2cdx4[_0x1151[11]](204)})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)});})[_0x1151[5]](function(_0xf2cdx5){return handleError(_0xf2cdx4,_0xf2cdx5)})};function handleError(_0xf2cdx4,_0xf2cdx5){return _0xf2cdx4[_0x1151[7]](500)[_0x1151[6]](_0xf2cdx5)}
\ No newline at end of file
-var _0x3185=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x5F\x63\x68\x61\x74\x52\x6F\x6F\x6D","\x6C\x6F\x67","\x69\x64","\x70\x6C\x75\x63\x6B","\x75\x73\x65\x72\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x65\x6D\x61\x69\x6C","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3185[0];var _=require(_0x3185[1]);var User=require(_0x3185[3])[_0x3185[2]];var ChatRoom=require(_0x3185[3])[_0x3185[4]];var ChatVisitor=require(_0x3185[3])[_0x3185[5]];var UserHasChatRoom=require(_0x3185[3])[_0x3185[6]];exports[_0x3185[7]]=function(_0xadbcx6){UserHasChatRoom[_0x3185[8]](function(_0xadbcx7){onSave(_0xadbcx6,_0xadbcx7)});UserHasChatRoom[_0x3185[9]](function(_0xadbcx7){onRemove(_0xadbcx6,_0xadbcx7)});};function onSave(_0xadbcx6,_0xadbcx7){var _0xadbcx9;return ChatRoom[_0x3185[26]](_0xadbcx7.ChatRoomId,{include:[{model:ChatVisitor,attributes:[_0x3185[16],_0x3185[23],_0x3185[24]]},{model:User,attributes:[_0x3185[16],_0x3185[23],_0x3185[25],_0x3185[24]]}]})[_0x3185[22]](function(_0xadbcxb){_0xadbcx9=_0xadbcxb;_0xadbcx9[_0x3185[13]][_0x3185[12]]=[];console[_0x3185[15]](_0x3185[14],_0xadbcx9);var _0xadbcxc=_[_0x3185[17]](_0xadbcx9.Users,_0x3185[16]);_0xadbcxc[_0x3185[21]](function(_0xadbcxd){if(_0xadbcx6[_0x3185[18]]==_0xadbcxd){_0xadbcx6[_0x3185[20]](_0x3185[19],_0xadbcx9[_0x3185[13]])}});return ;})[_0x3185[11]](function(_0xadbcxa){console[_0x3185[10]](_0xadbcxa)});}function onRemove(_0xadbcx6,_0xadbcx7){_0xadbcx6[_0x3185[20]](_0x3185[27],_0xadbcx7)}
\ No newline at end of file
+var _0x1243=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x5F\x63\x68\x61\x74\x52\x6F\x6F\x6D","\x6C\x6F\x67","\x69\x64","\x70\x6C\x75\x63\x6B","\x75\x73\x65\x72\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x65\x6D\x61\x69\x6C","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0x1243[0];var _=require(_0x1243[1]);var User=require(_0x1243[3])[_0x1243[2]];var ChatRoom=require(_0x1243[3])[_0x1243[4]];var ChatVisitor=require(_0x1243[3])[_0x1243[5]];var UserHasChatRoom=require(_0x1243[3])[_0x1243[6]];exports[_0x1243[7]]=function(_0xc8b4x6){UserHasChatRoom[_0x1243[8]](function(_0xc8b4x7){onSave(_0xc8b4x6,_0xc8b4x7)});UserHasChatRoom[_0x1243[9]](function(_0xc8b4x7){onRemove(_0xc8b4x6,_0xc8b4x7)});};function onSave(_0xc8b4x6,_0xc8b4x7){var _0xc8b4x9;return ChatRoom[_0x1243[26]](_0xc8b4x7.ChatRoomId,{include:[{model:ChatVisitor,attributes:[_0x1243[16],_0x1243[23],_0x1243[24]]},{model:User,attributes:[_0x1243[16],_0x1243[23],_0x1243[25],_0x1243[24]]}]})[_0x1243[22]](function(_0xc8b4xb){_0xc8b4x9=_0xc8b4xb;_0xc8b4x9[_0x1243[13]][_0x1243[12]]=[];console[_0x1243[15]](_0x1243[14],_0xc8b4x9);var _0xc8b4xc=_[_0x1243[17]](_0xc8b4x9.Users,_0x1243[16]);_0xc8b4xc[_0x1243[21]](function(_0xc8b4xd){if(_0xc8b4x6[_0x1243[18]]==_0xc8b4xd){_0xc8b4x6[_0x1243[20]](_0x1243[19],_0xc8b4x9[_0x1243[13]])}});return ;})[_0x1243[11]](function(_0xc8b4xa){console[_0x1243[10]](_0xc8b4xa)});}function onRemove(_0xc8b4x6,_0xc8b4x7){_0xc8b4x6[_0x1243[20]](_0x1243[27],_0xc8b4x7)}
\ No newline at end of file
-var _0x5996=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0x5996[0];var should=require(_0x5996[1]);var app=require(_0x5996[2]);var request=require(_0x5996[3]);describe(_0x5996[4],function(){it(_0x5996[5],function(_0x9d40x4){request(app)[_0x5996[13]](_0x5996[12])[_0x5996[11]](200)[_0x5996[11]](_0x5996[10],/json/)[_0x5996[9]](function(_0x9d40x5,_0x9d40x6){if(_0x9d40x5){return _0x9d40x4(_0x9d40x5)};_0x9d40x6[_0x5996[8]][_0x5996[1]][_0x5996[7]][_0x5996[6]](Array);_0x9d40x4();})})});
\ No newline at end of file
+var _0x4156=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x67\x65\x74"];_0x4156[0];var should=require(_0x4156[1]);var app=require(_0x4156[2]);var request=require(_0x4156[3]);describe(_0x4156[4],function(){it(_0x4156[5],function(_0xb306x4){request(app)[_0x4156[13]](_0x4156[12])[_0x4156[11]](200)[_0x4156[11]](_0x4156[10],/json/)[_0x4156[9]](function(_0xb306x5,_0xb306x6){if(_0xb306x5){return _0xb306x4(_0xb306x5)};_0xb306x6[_0x4156[8]][_0x4156[1]][_0x4156[7]][_0x4156[6]](Array);_0xb306x4();})})});
\ No newline at end of file
-var _0x5564=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5564[0];var express=require(_0x5564[1]);var controller=require(_0x5564[2]);var router=express.Router();router[_0x5564[5]](_0x5564[3],controller[_0x5564[4]]);router[_0x5564[5]](_0x5564[6],controller[_0x5564[7]]);router[_0x5564[9]](_0x5564[3],controller[_0x5564[8]]);router[_0x5564[11]](_0x5564[6],controller[_0x5564[10]]);router[_0x5564[12]](_0x5564[6],controller[_0x5564[10]]);router[_0x5564[14]](_0x5564[6],controller[_0x5564[13]]);module[_0x5564[15]]=router;
\ No newline at end of file
+var _0x95ce=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x95ce[0];var express=require(_0x95ce[1]);var controller=require(_0x95ce[2]);var router=express.Router();router[_0x95ce[5]](_0x95ce[3],controller[_0x95ce[4]]);router[_0x95ce[5]](_0x95ce[6],controller[_0x95ce[7]]);router[_0x95ce[9]](_0x95ce[3],controller[_0x95ce[8]]);router[_0x95ce[11]](_0x95ce[6],controller[_0x95ce[10]]);router[_0x95ce[12]](_0x95ce[6],controller[_0x95ce[10]]);router[_0x95ce[14]](_0x95ce[6],controller[_0x95ce[13]]);module[_0x95ce[15]]=router;
\ No newline at end of file
-var _0x99a9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x99a9[0];var _=require(_0x99a9[1]);var UserHasFaxQueue=require(_0x99a9[3])[_0x99a9[2]];exports[_0x99a9[4]]=function(_0xdb0fx3,_0xdb0fx4){UserHasFaxQueue[_0x99a9[10]](_0xdb0fx3[_0x99a9[9]]?{where:_0xdb0fx3[_0x99a9[9]]}:{})[_0x99a9[8]](function(_0xdb0fx6){return _0xdb0fx4[_0x99a9[7]](200)[_0x99a9[6]](_0xdb0fx6)})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)})};exports[_0x99a9[11]]=function(_0xdb0fx3,_0xdb0fx4){UserHasFaxQueue[_0x99a9[15]](_0xdb0fx3[_0x99a9[14]][_0x99a9[13]])[_0x99a9[8]](function(_0xdb0fx7){if(!_0xdb0fx7){return _0xdb0fx4[_0x99a9[12]](404)};return _0xdb0fx4[_0x99a9[6]](_0xdb0fx7);})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)})};exports[_0x99a9[16]]=function(_0xdb0fx3,_0xdb0fx4){UserHasFaxQueue[_0x99a9[16]](_0xdb0fx3[_0x99a9[17]])[_0x99a9[8]](function(_0xdb0fx7){return _0xdb0fx4[_0x99a9[7]](201)[_0x99a9[6]](_0xdb0fx7)})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)})};exports[_0x99a9[18]]=function(_0xdb0fx3,_0xdb0fx4){if(_0xdb0fx3[_0x99a9[17]][_0x99a9[13]]){delete _0xdb0fx3[_0x99a9[17]][_0x99a9[13]]};UserHasFaxQueue[_0x99a9[21]]({where:{id:_0xdb0fx3[_0x99a9[14]][_0x99a9[13]]}})[_0x99a9[8]](function(_0xdb0fx7){if(!_0xdb0fx7){return _0xdb0fx4[_0x99a9[12]](404)};var _0xdb0fx8=_[_0x99a9[19]](_0xdb0fx7,_0xdb0fx3[_0x99a9[17]]);_0xdb0fx8[_0x99a9[20]]()[_0x99a9[8]](function(){return _0xdb0fx4[_0x99a9[7]](200)[_0x99a9[6]](_0xdb0fx7)})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)});})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)});};exports[_0x99a9[22]]=function(_0xdb0fx3,_0xdb0fx4){UserHasFaxQueue[_0x99a9[21]]({where:{id:_0xdb0fx3[_0x99a9[14]][_0x99a9[13]]}})[_0x99a9[8]](function(_0xdb0fx7){if(!_0xdb0fx7){return _0xdb0fx4[_0x99a9[12]](404)};_0xdb0fx7[_0x99a9[22]]()[_0x99a9[8]](function(){return _0xdb0fx4[_0x99a9[12]](204)})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)});})[_0x99a9[5]](function(_0xdb0fx5){return handleError(_0xdb0fx4,_0xdb0fx5)})};function handleError(_0xdb0fx4,_0xdb0fx5){return _0xdb0fx4[_0x99a9[7]](500)[_0x99a9[6]](_0xdb0fx5)}
\ No newline at end of file
+var _0x8edd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79"];_0x8edd[0];var _=require(_0x8edd[1]);var UserHasFaxQueue=require(_0x8edd[3])[_0x8edd[2]];exports[_0x8edd[4]]=function(_0x162fx3,_0x162fx4){UserHasFaxQueue[_0x8edd[10]](_0x162fx3[_0x8edd[9]]?{where:_0x162fx3[_0x8edd[9]]}:{})[_0x8edd[8]](function(_0x162fx6){return _0x162fx4[_0x8edd[7]](200)[_0x8edd[6]](_0x162fx6)})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)})};exports[_0x8edd[11]]=function(_0x162fx3,_0x162fx4){UserHasFaxQueue[_0x8edd[15]](_0x162fx3[_0x8edd[14]][_0x8edd[13]])[_0x8edd[8]](function(_0x162fx7){if(!_0x162fx7){return _0x162fx4[_0x8edd[12]](404)};return _0x162fx4[_0x8edd[6]](_0x162fx7);})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)})};exports[_0x8edd[16]]=function(_0x162fx3,_0x162fx4){UserHasFaxQueue[_0x8edd[16]](_0x162fx3[_0x8edd[17]])[_0x8edd[8]](function(_0x162fx7){return _0x162fx4[_0x8edd[7]](201)[_0x8edd[6]](_0x162fx7)})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)})};exports[_0x8edd[18]]=function(_0x162fx3,_0x162fx4){if(_0x162fx3[_0x8edd[17]][_0x8edd[13]]){delete _0x162fx3[_0x8edd[17]][_0x8edd[13]]};UserHasFaxQueue[_0x8edd[21]]({where:{id:_0x162fx3[_0x8edd[14]][_0x8edd[13]]}})[_0x8edd[8]](function(_0x162fx7){if(!_0x162fx7){return _0x162fx4[_0x8edd[12]](404)};var _0x162fx8=_[_0x8edd[19]](_0x162fx7,_0x162fx3[_0x8edd[17]]);_0x162fx8[_0x8edd[20]]()[_0x8edd[8]](function(){return _0x162fx4[_0x8edd[7]](200)[_0x8edd[6]](_0x162fx7)})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)});})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)});};exports[_0x8edd[22]]=function(_0x162fx3,_0x162fx4){UserHasFaxQueue[_0x8edd[21]]({where:{id:_0x162fx3[_0x8edd[14]][_0x8edd[13]]}})[_0x8edd[8]](function(_0x162fx7){if(!_0x162fx7){return _0x162fx4[_0x8edd[12]](404)};_0x162fx7[_0x8edd[22]]()[_0x8edd[8]](function(){return _0x162fx4[_0x8edd[12]](204)})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)});})[_0x8edd[5]](function(_0x162fx5){return handleError(_0x162fx4,_0x162fx5)})};function handleError(_0x162fx4,_0x162fx5){return _0x162fx4[_0x8edd[7]](500)[_0x8edd[6]](_0x162fx5)}
\ No newline at end of file
-var _0xe51a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xe51a[0];var UserHasFaxQueue=require(_0xe51a[2])[_0xe51a[1]];exports[_0xe51a[3]]=function(_0xb378x2){UserHasFaxQueue[_0xe51a[4]](function(_0xb378x3){onSave(_0xb378x2,_0xb378x3)});UserHasFaxQueue[_0xe51a[5]](function(_0xb378x3){onRemove(_0xb378x2,_0xb378x3)});UserHasFaxQueue[_0xe51a[6]](function(_0xb378x3){onSave(_0xb378x2,_0xb378x3)});UserHasFaxQueue[_0xe51a[7]](function(_0xb378x3){onRemove(_0xb378x2,_0xb378x3)});};function onSave(_0xb378x2,_0xb378x3,_0xb378x5){_0xb378x2[_0xe51a[9]](_0xe51a[8],_0xb378x3)}function onRemove(_0xb378x2,_0xb378x3,_0xb378x5){_0xb378x2[_0xe51a[9]](_0xe51a[10],_0xb378x3)}
\ No newline at end of file
+var _0x629c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x629c[0];var UserHasFaxQueue=require(_0x629c[2])[_0x629c[1]];exports[_0x629c[3]]=function(_0x827ex2){UserHasFaxQueue[_0x629c[4]](function(_0x827ex3){onSave(_0x827ex2,_0x827ex3)});UserHasFaxQueue[_0x629c[5]](function(_0x827ex3){onRemove(_0x827ex2,_0x827ex3)});UserHasFaxQueue[_0x629c[6]](function(_0x827ex3){onSave(_0x827ex2,_0x827ex3)});UserHasFaxQueue[_0x629c[7]](function(_0x827ex3){onRemove(_0x827ex2,_0x827ex3)});};function onSave(_0x827ex2,_0x827ex3,_0x827ex5){_0x827ex2[_0x629c[9]](_0x629c[8],_0x827ex3)}function onRemove(_0x827ex2,_0x827ex3,_0x827ex5){_0x827ex2[_0x629c[9]](_0x629c[10],_0x827ex3)}
\ No newline at end of file
-var _0x83f2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x83f2[0];var should=require(_0x83f2[1]);var app=require(_0x83f2[2]);var request=require(_0x83f2[3]);describe(_0x83f2[4],function(){it(_0x83f2[5],function(_0xe29ex4){request(app)[_0x83f2[13]](_0x83f2[12])[_0x83f2[11]](200)[_0x83f2[11]](_0x83f2[10],/json/)[_0x83f2[9]](function(_0xe29ex5,_0xe29ex6){if(_0xe29ex5){return _0xe29ex4(_0xe29ex5)};_0xe29ex6[_0x83f2[8]][_0x83f2[1]][_0x83f2[7]][_0x83f2[6]](Array);_0xe29ex4();})})});
\ No newline at end of file
+var _0xfa31=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xfa31[0];var should=require(_0xfa31[1]);var app=require(_0xfa31[2]);var request=require(_0xfa31[3]);describe(_0xfa31[4],function(){it(_0xfa31[5],function(_0xd269x4){request(app)[_0xfa31[13]](_0xfa31[12])[_0xfa31[11]](200)[_0xfa31[11]](_0xfa31[10],/json/)[_0xfa31[9]](function(_0xd269x5,_0xd269x6){if(_0xd269x5){return _0xd269x4(_0xd269x5)};_0xd269x6[_0xfa31[8]][_0xfa31[1]][_0xfa31[7]][_0xfa31[6]](Array);_0xd269x4();})})});
\ No newline at end of file
-var _0xa741=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa741[0];var express=require(_0xa741[1]);var controller=require(_0xa741[2]);var router=express.Router();router[_0xa741[5]](_0xa741[3],controller[_0xa741[4]]);router[_0xa741[5]](_0xa741[6],controller[_0xa741[7]]);router[_0xa741[9]](_0xa741[3],controller[_0xa741[8]]);router[_0xa741[11]](_0xa741[6],controller[_0xa741[10]]);router[_0xa741[12]](_0xa741[6],controller[_0xa741[10]]);router[_0xa741[14]](_0xa741[6],controller[_0xa741[13]]);module[_0xa741[15]]=router;
\ No newline at end of file
+var _0x2ff1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x2ff1[0];var express=require(_0x2ff1[1]);var controller=require(_0x2ff1[2]);var router=express.Router();router[_0x2ff1[5]](_0x2ff1[3],controller[_0x2ff1[4]]);router[_0x2ff1[5]](_0x2ff1[6],controller[_0x2ff1[7]]);router[_0x2ff1[9]](_0x2ff1[3],controller[_0x2ff1[8]]);router[_0x2ff1[11]](_0x2ff1[6],controller[_0x2ff1[10]]);router[_0x2ff1[12]](_0x2ff1[6],controller[_0x2ff1[10]]);router[_0x2ff1[14]](_0x2ff1[6],controller[_0x2ff1[13]]);module[_0x2ff1[15]]=router;
\ No newline at end of file
-var _0x75e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x75e8[0];var _=require(_0x75e8[1]);var UserHasMailQueue=require(_0x75e8[3])[_0x75e8[2]];exports[_0x75e8[4]]=function(_0xde6dx3,_0xde6dx4){UserHasMailQueue[_0x75e8[10]](_0xde6dx3[_0x75e8[9]]?{where:_0xde6dx3[_0x75e8[9]]}:{})[_0x75e8[8]](function(_0xde6dx6){return _0xde6dx4[_0x75e8[7]](200)[_0x75e8[6]](_0xde6dx6)})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)})};exports[_0x75e8[11]]=function(_0xde6dx3,_0xde6dx4){UserHasMailQueue[_0x75e8[15]](_0xde6dx3[_0x75e8[14]][_0x75e8[13]])[_0x75e8[8]](function(_0xde6dx7){if(!_0xde6dx7){return _0xde6dx4[_0x75e8[12]](404)};return _0xde6dx4[_0x75e8[6]](_0xde6dx7);})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)})};exports[_0x75e8[16]]=function(_0xde6dx3,_0xde6dx4){UserHasMailQueue[_0x75e8[16]](_0xde6dx3[_0x75e8[17]])[_0x75e8[8]](function(_0xde6dx7){return _0xde6dx4[_0x75e8[7]](201)[_0x75e8[6]](_0xde6dx7)})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)})};exports[_0x75e8[18]]=function(_0xde6dx3,_0xde6dx4){if(_0xde6dx3[_0x75e8[17]][_0x75e8[13]]){delete _0xde6dx3[_0x75e8[17]][_0x75e8[13]]};UserHasMailQueue[_0x75e8[15]](_0xde6dx3[_0x75e8[14]][_0x75e8[13]])[_0x75e8[8]](function(_0xde6dx7){if(!_0xde6dx7){return _0xde6dx4[_0x75e8[12]](404)};var _0xde6dx8=_[_0x75e8[19]](_0xde6dx7,_0xde6dx3[_0x75e8[17]]);_0xde6dx8[_0x75e8[20]]()[_0x75e8[8]](function(){return _0xde6dx4[_0x75e8[7]](200)[_0x75e8[6]](_0xde6dx7)})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)});})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)});};exports[_0x75e8[21]]=function(_0xde6dx3,_0xde6dx4){UserHasMailQueue[_0x75e8[15]](_0xde6dx3[_0x75e8[14]][_0x75e8[13]])[_0x75e8[8]](function(_0xde6dx7){if(!_0xde6dx7){return _0xde6dx4[_0x75e8[12]](404)};_0xde6dx7[_0x75e8[21]]()[_0x75e8[8]](function(){return _0xde6dx4[_0x75e8[12]](204)})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)});})[_0x75e8[5]](function(_0xde6dx5){return handleError(_0xde6dx4,_0xde6dx5)})};function handleError(_0xde6dx4,_0xde6dx5){return _0xde6dx4[_0x75e8[7]](500)[_0x75e8[6]](_0xde6dx5)}
\ No newline at end of file
+var _0xaab4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xaab4[0];var _=require(_0xaab4[1]);var UserHasMailQueue=require(_0xaab4[3])[_0xaab4[2]];exports[_0xaab4[4]]=function(_0x23dbx3,_0x23dbx4){UserHasMailQueue[_0xaab4[10]](_0x23dbx3[_0xaab4[9]]?{where:_0x23dbx3[_0xaab4[9]]}:{})[_0xaab4[8]](function(_0x23dbx6){return _0x23dbx4[_0xaab4[7]](200)[_0xaab4[6]](_0x23dbx6)})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)})};exports[_0xaab4[11]]=function(_0x23dbx3,_0x23dbx4){UserHasMailQueue[_0xaab4[15]](_0x23dbx3[_0xaab4[14]][_0xaab4[13]])[_0xaab4[8]](function(_0x23dbx7){if(!_0x23dbx7){return _0x23dbx4[_0xaab4[12]](404)};return _0x23dbx4[_0xaab4[6]](_0x23dbx7);})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)})};exports[_0xaab4[16]]=function(_0x23dbx3,_0x23dbx4){UserHasMailQueue[_0xaab4[16]](_0x23dbx3[_0xaab4[17]])[_0xaab4[8]](function(_0x23dbx7){return _0x23dbx4[_0xaab4[7]](201)[_0xaab4[6]](_0x23dbx7)})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)})};exports[_0xaab4[18]]=function(_0x23dbx3,_0x23dbx4){if(_0x23dbx3[_0xaab4[17]][_0xaab4[13]]){delete _0x23dbx3[_0xaab4[17]][_0xaab4[13]]};UserHasMailQueue[_0xaab4[15]](_0x23dbx3[_0xaab4[14]][_0xaab4[13]])[_0xaab4[8]](function(_0x23dbx7){if(!_0x23dbx7){return _0x23dbx4[_0xaab4[12]](404)};var _0x23dbx8=_[_0xaab4[19]](_0x23dbx7,_0x23dbx3[_0xaab4[17]]);_0x23dbx8[_0xaab4[20]]()[_0xaab4[8]](function(){return _0x23dbx4[_0xaab4[7]](200)[_0xaab4[6]](_0x23dbx7)})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)});})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)});};exports[_0xaab4[21]]=function(_0x23dbx3,_0x23dbx4){UserHasMailQueue[_0xaab4[15]](_0x23dbx3[_0xaab4[14]][_0xaab4[13]])[_0xaab4[8]](function(_0x23dbx7){if(!_0x23dbx7){return _0x23dbx4[_0xaab4[12]](404)};_0x23dbx7[_0xaab4[21]]()[_0xaab4[8]](function(){return _0x23dbx4[_0xaab4[12]](204)})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)});})[_0xaab4[5]](function(_0x23dbx5){return handleError(_0x23dbx4,_0x23dbx5)})};function handleError(_0x23dbx4,_0x23dbx5){return _0x23dbx4[_0xaab4[7]](500)[_0xaab4[6]](_0x23dbx5)}
\ No newline at end of file
-var _0x610a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x610a[0];var UserHasMailQueue=require(_0x610a[2])[_0x610a[1]];exports[_0x610a[3]]=function(_0x6935x2){UserHasMailQueue[_0x610a[4]](function(_0x6935x3){onSave(_0x6935x2,_0x6935x3)});UserHasMailQueue[_0x610a[5]](function(_0x6935x3){onRemove(_0x6935x2,_0x6935x3)});};function onSave(_0x6935x2,_0x6935x3,_0x6935x5){_0x6935x2[_0x610a[7]](_0x610a[6],_0x6935x3)}function onRemove(_0x6935x2,_0x6935x3,_0x6935x5){_0x6935x2[_0x610a[7]](_0x610a[8],_0x6935x3)}
\ No newline at end of file
+var _0xf176=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xf176[0];var UserHasMailQueue=require(_0xf176[2])[_0xf176[1]];exports[_0xf176[3]]=function(_0x575bx2){UserHasMailQueue[_0xf176[4]](function(_0x575bx3){onSave(_0x575bx2,_0x575bx3)});UserHasMailQueue[_0xf176[5]](function(_0x575bx3){onRemove(_0x575bx2,_0x575bx3)});};function onSave(_0x575bx2,_0x575bx3,_0x575bx5){_0x575bx2[_0xf176[7]](_0xf176[6],_0x575bx3)}function onRemove(_0x575bx2,_0x575bx3,_0x575bx5){_0x575bx2[_0xf176[7]](_0xf176[8],_0x575bx3)}
\ No newline at end of file
-var _0xb392=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xb392[0];var should=require(_0xb392[1]);var app=require(_0xb392[2]);var request=require(_0xb392[3]);describe(_0xb392[4],function(){it(_0xb392[5],function(_0xf8b8x4){request(app)[_0xb392[13]](_0xb392[12])[_0xb392[11]](200)[_0xb392[11]](_0xb392[10],/json/)[_0xb392[9]](function(_0xf8b8x5,_0xf8b8x6){if(_0xf8b8x5){return _0xf8b8x4(_0xf8b8x5)};_0xf8b8x6[_0xb392[8]][_0xb392[1]][_0xb392[7]][_0xb392[6]](Array);_0xf8b8x4();})})});
\ No newline at end of file
+var _0xaeed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xaeed[0];var should=require(_0xaeed[1]);var app=require(_0xaeed[2]);var request=require(_0xaeed[3]);describe(_0xaeed[4],function(){it(_0xaeed[5],function(_0x9c1bx4){request(app)[_0xaeed[13]](_0xaeed[12])[_0xaeed[11]](200)[_0xaeed[11]](_0xaeed[10],/json/)[_0xaeed[9]](function(_0x9c1bx5,_0x9c1bx6){if(_0x9c1bx5){return _0x9c1bx4(_0x9c1bx5)};_0x9c1bx6[_0xaeed[8]][_0xaeed[1]][_0xaeed[7]][_0xaeed[6]](Array);_0x9c1bx4();})})});
\ No newline at end of file
-var _0x2026=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x2026[0];var express=require(_0x2026[1]);var controller=require(_0x2026[2]);var router=express.Router();router[_0x2026[5]](_0x2026[3],controller[_0x2026[4]]);router[_0x2026[5]](_0x2026[6],controller[_0x2026[7]]);router[_0x2026[9]](_0x2026[3],controller[_0x2026[8]]);router[_0x2026[11]](_0x2026[6],controller[_0x2026[10]]);router[_0x2026[12]](_0x2026[6],controller[_0x2026[10]]);router[_0x2026[14]](_0x2026[6],controller[_0x2026[13]]);module[_0x2026[15]]=router;
\ No newline at end of file
+var _0x44d7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x44d7[0];var express=require(_0x44d7[1]);var controller=require(_0x44d7[2]);var router=express.Router();router[_0x44d7[5]](_0x44d7[3],controller[_0x44d7[4]]);router[_0x44d7[5]](_0x44d7[6],controller[_0x44d7[7]]);router[_0x44d7[9]](_0x44d7[3],controller[_0x44d7[8]]);router[_0x44d7[11]](_0x44d7[6],controller[_0x44d7[10]]);router[_0x44d7[12]](_0x44d7[6],controller[_0x44d7[10]]);router[_0x44d7[14]](_0x44d7[6],controller[_0x44d7[13]]);module[_0x44d7[15]]=router;
\ No newline at end of file
-var _0x9a7b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x9a7b[0];var _=require(_0x9a7b[1]);var UserHasTeam=require(_0x9a7b[3])[_0x9a7b[2]];exports[_0x9a7b[4]]=function(_0x6d7bx3,_0x6d7bx4){console[_0x9a7b[6]](_0x6d7bx3[_0x9a7b[5]]);UserHasTeam[_0x9a7b[11]]({where:_0x6d7bx3[_0x9a7b[5]]})[_0x9a7b[10]](function(_0x6d7bx6){return _0x6d7bx4[_0x9a7b[9]](200)[_0x9a7b[8]](_0x6d7bx6)})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)});};exports[_0x9a7b[12]]=function(_0x6d7bx3,_0x6d7bx4){UserHasTeam[_0x9a7b[16]](_0x6d7bx3[_0x9a7b[15]][_0x9a7b[14]])[_0x9a7b[10]](function(_0x6d7bx7){if(!_0x6d7bx7){return _0x6d7bx4[_0x9a7b[13]](404)};return _0x6d7bx4[_0x9a7b[8]](_0x6d7bx7);})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)})};exports[_0x9a7b[17]]=function(_0x6d7bx3,_0x6d7bx4){UserHasTeam[_0x9a7b[17]](_0x6d7bx3[_0x9a7b[18]])[_0x9a7b[10]](function(_0x6d7bx7){return _0x6d7bx4[_0x9a7b[9]](201)[_0x9a7b[8]](_0x6d7bx7)})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)})};exports[_0x9a7b[19]]=function(_0x6d7bx3,_0x6d7bx4){if(_0x6d7bx3[_0x9a7b[18]][_0x9a7b[14]]){delete _0x6d7bx3[_0x9a7b[18]][_0x9a7b[14]]};UserHasTeam[_0x9a7b[16]](_0x6d7bx3[_0x9a7b[15]][_0x9a7b[14]])[_0x9a7b[10]](function(_0x6d7bx7){if(!_0x6d7bx7){return _0x6d7bx4[_0x9a7b[13]](404)};var _0x6d7bx8=_[_0x9a7b[20]](_0x6d7bx7,_0x6d7bx3[_0x9a7b[18]]);_0x6d7bx8[_0x9a7b[21]]()[_0x9a7b[10]](function(){return _0x6d7bx4[_0x9a7b[9]](200)[_0x9a7b[8]](_0x6d7bx7)})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)});})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)});};exports[_0x9a7b[22]]=function(_0x6d7bx3,_0x6d7bx4){UserHasTeam[_0x9a7b[16]](_0x6d7bx3[_0x9a7b[15]][_0x9a7b[14]])[_0x9a7b[10]](function(_0x6d7bx7){if(!_0x6d7bx7){return _0x6d7bx4[_0x9a7b[13]](404)};_0x6d7bx7[_0x9a7b[22]]()[_0x9a7b[10]](function(){return _0x6d7bx4[_0x9a7b[13]](204)})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)});})[_0x9a7b[7]](function(_0x6d7bx5){return handleError(_0x6d7bx4,_0x6d7bx5)})};function handleError(_0x6d7bx4,_0x6d7bx5){return _0x6d7bx4[_0x9a7b[9]](500)[_0x9a7b[8]](_0x6d7bx5)}
\ No newline at end of file
+var _0x6ff7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x71\x75\x65\x72\x79","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x6ff7[0];var _=require(_0x6ff7[1]);var UserHasTeam=require(_0x6ff7[3])[_0x6ff7[2]];exports[_0x6ff7[4]]=function(_0xb18cx3,_0xb18cx4){console[_0x6ff7[6]](_0xb18cx3[_0x6ff7[5]]);UserHasTeam[_0x6ff7[11]]({where:_0xb18cx3[_0x6ff7[5]]})[_0x6ff7[10]](function(_0xb18cx6){return _0xb18cx4[_0x6ff7[9]](200)[_0x6ff7[8]](_0xb18cx6)})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)});};exports[_0x6ff7[12]]=function(_0xb18cx3,_0xb18cx4){UserHasTeam[_0x6ff7[16]](_0xb18cx3[_0x6ff7[15]][_0x6ff7[14]])[_0x6ff7[10]](function(_0xb18cx7){if(!_0xb18cx7){return _0xb18cx4[_0x6ff7[13]](404)};return _0xb18cx4[_0x6ff7[8]](_0xb18cx7);})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)})};exports[_0x6ff7[17]]=function(_0xb18cx3,_0xb18cx4){UserHasTeam[_0x6ff7[17]](_0xb18cx3[_0x6ff7[18]])[_0x6ff7[10]](function(_0xb18cx7){return _0xb18cx4[_0x6ff7[9]](201)[_0x6ff7[8]](_0xb18cx7)})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)})};exports[_0x6ff7[19]]=function(_0xb18cx3,_0xb18cx4){if(_0xb18cx3[_0x6ff7[18]][_0x6ff7[14]]){delete _0xb18cx3[_0x6ff7[18]][_0x6ff7[14]]};UserHasTeam[_0x6ff7[16]](_0xb18cx3[_0x6ff7[15]][_0x6ff7[14]])[_0x6ff7[10]](function(_0xb18cx7){if(!_0xb18cx7){return _0xb18cx4[_0x6ff7[13]](404)};var _0xb18cx8=_[_0x6ff7[20]](_0xb18cx7,_0xb18cx3[_0x6ff7[18]]);_0xb18cx8[_0x6ff7[21]]()[_0x6ff7[10]](function(){return _0xb18cx4[_0x6ff7[9]](200)[_0x6ff7[8]](_0xb18cx7)})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)});})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)});};exports[_0x6ff7[22]]=function(_0xb18cx3,_0xb18cx4){UserHasTeam[_0x6ff7[16]](_0xb18cx3[_0x6ff7[15]][_0x6ff7[14]])[_0x6ff7[10]](function(_0xb18cx7){if(!_0xb18cx7){return _0xb18cx4[_0x6ff7[13]](404)};_0xb18cx7[_0x6ff7[22]]()[_0x6ff7[10]](function(){return _0xb18cx4[_0x6ff7[13]](204)})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)});})[_0x6ff7[7]](function(_0xb18cx5){return handleError(_0xb18cx4,_0xb18cx5)})};function handleError(_0xb18cx4,_0xb18cx5){return _0xb18cx4[_0x6ff7[9]](500)[_0x6ff7[8]](_0xb18cx5)}
\ No newline at end of file
-var _0x2635=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x64\x65\x66\x69\x6E\x65"];_0x2635[0];module[_0x2635[1]]=function(_0xf339x1,_0xf339x2){var _0xf339x3=_0xf339x1[_0x2635[3]](_0x2635[2],{name:String,info:String,active:Boolean});return _0xf339x3;};
\ No newline at end of file
+var _0x9e8e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x64\x65\x66\x69\x6E\x65"];_0x9e8e[0];module[_0x9e8e[1]]=function(_0x2099x1,_0x2099x2){var _0x2099x3=_0x2099x1[_0x9e8e[3]](_0x9e8e[2],{name:String,info:String,active:Boolean});return _0x2099x3;};
\ No newline at end of file
-var _0xb7cb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0xb7cb[0];var user_has_team=require(_0xb7cb[2])[_0xb7cb[1]];exports[_0xb7cb[3]]=function(_0xb95fx2){user_has_team[_0xb7cb[4]](function(_0xb95fx3){onSave(_0xb95fx2,_0xb95fx3)});user_has_team[_0xb7cb[5]](function(_0xb95fx3){onRemove(_0xb95fx2,_0xb95fx3)});};function onSave(_0xb95fx2,_0xb95fx3,_0xb95fx5){_0xb95fx2[_0xb7cb[7]](_0xb7cb[6],_0xb95fx3)}function onRemove(_0xb95fx2,_0xb95fx3,_0xb95fx5){_0xb95fx2[_0xb7cb[7]](_0xb7cb[8],_0xb95fx3)}
\ No newline at end of file
+var _0xa265=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa265[0];var user_has_team=require(_0xa265[2])[_0xa265[1]];exports[_0xa265[3]]=function(_0xf81cx2){user_has_team[_0xa265[4]](function(_0xf81cx3){onSave(_0xf81cx2,_0xf81cx3)});user_has_team[_0xa265[5]](function(_0xf81cx3){onRemove(_0xf81cx2,_0xf81cx3)});};function onSave(_0xf81cx2,_0xf81cx3,_0xf81cx5){_0xf81cx2[_0xa265[7]](_0xa265[6],_0xf81cx3)}function onRemove(_0xf81cx2,_0xf81cx3,_0xf81cx5){_0xf81cx2[_0xa265[7]](_0xa265[8],_0xf81cx3)}
\ No newline at end of file
-var _0x6a34=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x67\x65\x74"];_0x6a34[0];var should=require(_0x6a34[1]);var app=require(_0x6a34[2]);var request=require(_0x6a34[3]);describe(_0x6a34[4],function(){it(_0x6a34[5],function(_0xd70ax4){request(app)[_0x6a34[13]](_0x6a34[12])[_0x6a34[11]](200)[_0x6a34[11]](_0x6a34[10],/json/)[_0x6a34[9]](function(_0xd70ax5,_0xd70ax6){if(_0xd70ax5){return _0xd70ax4(_0xd70ax5)};_0xd70ax6[_0x6a34[8]][_0x6a34[1]][_0x6a34[7]][_0x6a34[6]](Array);_0xd70ax4();})})});
\ No newline at end of file
+var _0xb402=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x67\x65\x74"];_0xb402[0];var should=require(_0xb402[1]);var app=require(_0xb402[2]);var request=require(_0xb402[3]);describe(_0xb402[4],function(){it(_0xb402[5],function(_0x2e2bx4){request(app)[_0xb402[13]](_0xb402[12])[_0xb402[11]](200)[_0xb402[11]](_0xb402[10],/json/)[_0xb402[9]](function(_0x2e2bx5,_0x2e2bx6){if(_0x2e2bx5){return _0x2e2bx4(_0x2e2bx5)};_0x2e2bx6[_0xb402[8]][_0xb402[1]][_0xb402[7]][_0xb402[6]](Array);_0x2e2bx4();})})});
\ No newline at end of file
-var _0xf285=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf285[0];var express=require(_0xf285[1]);var controller=require(_0xf285[2]);var router=express.Router();router[_0xf285[5]](_0xf285[3],controller[_0xf285[4]]);router[_0xf285[5]](_0xf285[6],controller[_0xf285[7]]);router[_0xf285[9]](_0xf285[3],controller[_0xf285[8]]);router[_0xf285[11]](_0xf285[6],controller[_0xf285[10]]);router[_0xf285[12]](_0xf285[6],controller[_0xf285[10]]);router[_0xf285[14]](_0xf285[6],controller[_0xf285[13]]);module[_0xf285[15]]=router;
\ No newline at end of file
+var _0x4df9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x4df9[0];var express=require(_0x4df9[1]);var controller=require(_0x4df9[2]);var router=express.Router();router[_0x4df9[5]](_0x4df9[3],controller[_0x4df9[4]]);router[_0x4df9[5]](_0x4df9[6],controller[_0x4df9[7]]);router[_0x4df9[9]](_0x4df9[3],controller[_0x4df9[8]]);router[_0x4df9[11]](_0x4df9[6],controller[_0x4df9[10]]);router[_0x4df9[12]](_0x4df9[6],controller[_0x4df9[10]]);router[_0x4df9[14]](_0x4df9[6],controller[_0x4df9[13]]);module[_0x4df9[15]]=router;
\ No newline at end of file
-var _0x58ad=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x6C\x6F\x67","\x65\x72\x72\x6F\x72","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x58ad[0];var _=require(_0x58ad[1]);var UserHasVoiceQueue=require(_0x58ad[3])[_0x58ad[2]];exports[_0x58ad[4]]=function(_0xa27cx3,_0xa27cx4){UserHasVoiceQueue[_0x58ad[10]](_0xa27cx3[_0x58ad[9]]?{where:_0xa27cx3[_0x58ad[9]]}:{})[_0x58ad[8]](function(_0xa27cx6){return _0xa27cx4[_0x58ad[7]](200)[_0x58ad[6]](_0xa27cx6)})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)})};exports[_0x58ad[11]]=function(_0xa27cx3,_0xa27cx4){UserHasVoiceQueue[_0x58ad[15]](_0xa27cx3[_0x58ad[14]][_0x58ad[13]])[_0x58ad[8]](function(_0xa27cx7){if(!_0xa27cx7){return _0xa27cx4[_0x58ad[12]](404)};return _0xa27cx4[_0x58ad[6]](_0xa27cx7);})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)})};exports[_0x58ad[16]]=function(_0xa27cx3,_0xa27cx4,_0xa27cx8){console[_0x58ad[18]](_0xa27cx3[_0x58ad[17]]);UserHasVoiceQueue[_0x58ad[16]](_0xa27cx3[_0x58ad[17]])[_0x58ad[8]](function(_0xa27cx7){return _0xa27cx4[_0x58ad[7]](201)[_0x58ad[6]](_0xa27cx7)})[_0x58ad[5]](function(_0xa27cx5){console[_0x58ad[19]](_0xa27cx5);return _0xa27cx8(_0xa27cx5);});};exports[_0x58ad[20]]=function(_0xa27cx3,_0xa27cx4){if(_0xa27cx3[_0x58ad[17]][_0x58ad[13]]){delete _0xa27cx3[_0x58ad[17]][_0x58ad[13]]};UserHasVoiceQueue[_0x58ad[15]](_0xa27cx3[_0x58ad[14]][_0x58ad[13]])[_0x58ad[8]](function(_0xa27cx7){if(!_0xa27cx7){return _0xa27cx4[_0x58ad[12]](404)};var _0xa27cx9=_[_0x58ad[21]](_0xa27cx7,_0xa27cx3[_0x58ad[17]]);_0xa27cx9[_0x58ad[22]]()[_0x58ad[8]](function(){return _0xa27cx4[_0x58ad[7]](200)[_0x58ad[6]](_0xa27cx7)})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)});})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)});};exports[_0x58ad[23]]=function(_0xa27cx3,_0xa27cx4){UserHasVoiceQueue[_0x58ad[15]](_0xa27cx3[_0x58ad[14]][_0x58ad[13]])[_0x58ad[8]](function(_0xa27cx7){if(!_0xa27cx7){return _0xa27cx4[_0x58ad[12]](404)};_0xa27cx7[_0x58ad[23]]()[_0x58ad[8]](function(){return _0xa27cx4[_0x58ad[12]](204)})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)});})[_0x58ad[5]](function(_0xa27cx5){return handleError(_0xa27cx4,_0xa27cx5)})};function handleError(_0xa27cx4,_0xa27cx5){return _0xa27cx4[_0x58ad[7]](500)[_0x58ad[6]](_0xa27cx5)}
\ No newline at end of file
+var _0xad7a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x6C\x6F\x67","\x65\x72\x72\x6F\x72","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xad7a[0];var _=require(_0xad7a[1]);var UserHasVoiceQueue=require(_0xad7a[3])[_0xad7a[2]];exports[_0xad7a[4]]=function(_0xa5b8x3,_0xa5b8x4){UserHasVoiceQueue[_0xad7a[10]](_0xa5b8x3[_0xad7a[9]]?{where:_0xa5b8x3[_0xad7a[9]]}:{})[_0xad7a[8]](function(_0xa5b8x6){return _0xa5b8x4[_0xad7a[7]](200)[_0xad7a[6]](_0xa5b8x6)})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)})};exports[_0xad7a[11]]=function(_0xa5b8x3,_0xa5b8x4){UserHasVoiceQueue[_0xad7a[15]](_0xa5b8x3[_0xad7a[14]][_0xad7a[13]])[_0xad7a[8]](function(_0xa5b8x7){if(!_0xa5b8x7){return _0xa5b8x4[_0xad7a[12]](404)};return _0xa5b8x4[_0xad7a[6]](_0xa5b8x7);})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)})};exports[_0xad7a[16]]=function(_0xa5b8x3,_0xa5b8x4,_0xa5b8x8){console[_0xad7a[18]](_0xa5b8x3[_0xad7a[17]]);UserHasVoiceQueue[_0xad7a[16]](_0xa5b8x3[_0xad7a[17]])[_0xad7a[8]](function(_0xa5b8x7){return _0xa5b8x4[_0xad7a[7]](201)[_0xad7a[6]](_0xa5b8x7)})[_0xad7a[5]](function(_0xa5b8x5){console[_0xad7a[19]](_0xa5b8x5);return _0xa5b8x8(_0xa5b8x5);});};exports[_0xad7a[20]]=function(_0xa5b8x3,_0xa5b8x4){if(_0xa5b8x3[_0xad7a[17]][_0xad7a[13]]){delete _0xa5b8x3[_0xad7a[17]][_0xad7a[13]]};UserHasVoiceQueue[_0xad7a[15]](_0xa5b8x3[_0xad7a[14]][_0xad7a[13]])[_0xad7a[8]](function(_0xa5b8x7){if(!_0xa5b8x7){return _0xa5b8x4[_0xad7a[12]](404)};var _0xa5b8x9=_[_0xad7a[21]](_0xa5b8x7,_0xa5b8x3[_0xad7a[17]]);_0xa5b8x9[_0xad7a[22]]()[_0xad7a[8]](function(){return _0xa5b8x4[_0xad7a[7]](200)[_0xad7a[6]](_0xa5b8x7)})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)});})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)});};exports[_0xad7a[23]]=function(_0xa5b8x3,_0xa5b8x4){UserHasVoiceQueue[_0xad7a[15]](_0xa5b8x3[_0xad7a[14]][_0xad7a[13]])[_0xad7a[8]](function(_0xa5b8x7){if(!_0xa5b8x7){return _0xa5b8x4[_0xad7a[12]](404)};_0xa5b8x7[_0xad7a[23]]()[_0xad7a[8]](function(){return _0xa5b8x4[_0xad7a[12]](204)})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)});})[_0xad7a[5]](function(_0xa5b8x5){return handleError(_0xa5b8x4,_0xa5b8x5)})};function handleError(_0xa5b8x4,_0xa5b8x5){return _0xa5b8x4[_0xad7a[7]](500)[_0xad7a[6]](_0xa5b8x5)}
\ No newline at end of file
-var _0x11db=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x6C\x6F\x67\x67\x65\x64","\x6C\x6F\x67\x67\x65\x64\x41\x74","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x63\x61\x6C\x6C\x73\x74\x61\x6B\x65\x6E","\x6C\x61\x73\x74\x63\x61\x6C\x6C","\x73\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73\x64\x65\x73\x63","\x73\x74\x61\x74\x75\x73\x41\x74","\x70\x61\x75\x73\x65\x64","\x70\x61\x75\x73\x65\x64\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x11db[0];var UserHasVoiceQueue=require(_0x11db[2])[_0x11db[1]];exports[_0x11db[3]]=function(_0xaa0dx2){UserHasVoiceQueue[_0x11db[4]](function(_0xaa0dx3){onSave(_0xaa0dx2,_0xaa0dx3)});UserHasVoiceQueue[_0x11db[5]](function(_0xaa0dx3){onSave(_0xaa0dx2,_0xaa0dx3)});UserHasVoiceQueue[_0x11db[6]](function(_0xaa0dx3){onRemove(_0xaa0dx2,_0xaa0dx3)});};function onSave(_0xaa0dx2,_0xaa0dx3,_0xaa0dx5){_0xaa0dx2[_0x11db[21]](_0x11db[7],{logged:_0xaa0dx3[_0x11db[8]],loggedAt:_0xaa0dx3[_0x11db[9]],queue:_0xaa0dx3[_0x11db[10]],membername:_0xaa0dx3[_0x11db[11]],interface:_0xaa0dx3[_0x11db[12]],callstaken:_0xaa0dx3[_0x11db[13]],lastcall:_0xaa0dx3[_0x11db[14]],status:_0xaa0dx3[_0x11db[15]],statusdesc:_0xaa0dx3[_0x11db[16]],statusAt:_0xaa0dx3[_0x11db[17]],paused:_0xaa0dx3[_0x11db[18]],pausedAt:_0xaa0dx3[_0x11db[19]],reason:_0xaa0dx3[_0x11db[20]]})}function onRemove(_0xaa0dx2,_0xaa0dx3,_0xaa0dx5){_0xaa0dx2[_0x11db[21]](_0x11db[22],_0xaa0dx3)}
\ No newline at end of file
+var _0xa2ef=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x6C\x6F\x67\x67\x65\x64","\x6C\x6F\x67\x67\x65\x64\x41\x74","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x63\x61\x6C\x6C\x73\x74\x61\x6B\x65\x6E","\x6C\x61\x73\x74\x63\x61\x6C\x6C","\x73\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73\x64\x65\x73\x63","\x73\x74\x61\x74\x75\x73\x41\x74","\x70\x61\x75\x73\x65\x64","\x70\x61\x75\x73\x65\x64\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xa2ef[0];var UserHasVoiceQueue=require(_0xa2ef[2])[_0xa2ef[1]];exports[_0xa2ef[3]]=function(_0xf209x2){UserHasVoiceQueue[_0xa2ef[4]](function(_0xf209x3){onSave(_0xf209x2,_0xf209x3)});UserHasVoiceQueue[_0xa2ef[5]](function(_0xf209x3){onSave(_0xf209x2,_0xf209x3)});UserHasVoiceQueue[_0xa2ef[6]](function(_0xf209x3){onRemove(_0xf209x2,_0xf209x3)});};function onSave(_0xf209x2,_0xf209x3,_0xf209x5){_0xf209x2[_0xa2ef[21]](_0xa2ef[7],{logged:_0xf209x3[_0xa2ef[8]],loggedAt:_0xf209x3[_0xa2ef[9]],queue:_0xf209x3[_0xa2ef[10]],membername:_0xf209x3[_0xa2ef[11]],interface:_0xf209x3[_0xa2ef[12]],callstaken:_0xf209x3[_0xa2ef[13]],lastcall:_0xf209x3[_0xa2ef[14]],status:_0xf209x3[_0xa2ef[15]],statusdesc:_0xf209x3[_0xa2ef[16]],statusAt:_0xf209x3[_0xa2ef[17]],paused:_0xf209x3[_0xa2ef[18]],pausedAt:_0xf209x3[_0xa2ef[19]],reason:_0xf209x3[_0xa2ef[20]]})}function onRemove(_0xf209x2,_0xf209x3,_0xf209x5){_0xf209x2[_0xa2ef[21]](_0xa2ef[22],_0xf209x3)}
\ No newline at end of file
-var _0xad90=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xad90[0];var should=require(_0xad90[1]);var app=require(_0xad90[2]);var request=require(_0xad90[3]);describe(_0xad90[4],function(){it(_0xad90[5],function(_0x450bx4){request(app)[_0xad90[13]](_0xad90[12])[_0xad90[11]](200)[_0xad90[11]](_0xad90[10],/json/)[_0xad90[9]](function(_0x450bx5,_0x450bx6){if(_0x450bx5){return _0x450bx4(_0x450bx5)};_0x450bx6[_0xad90[8]][_0xad90[1]][_0xad90[7]][_0xad90[6]](Array);_0x450bx4();})})});
\ No newline at end of file
+var _0xe139=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0xe139[0];var should=require(_0xe139[1]);var app=require(_0xe139[2]);var request=require(_0xe139[3]);describe(_0xe139[4],function(){it(_0xe139[5],function(_0xe652x4){request(app)[_0xe139[13]](_0xe139[12])[_0xe139[11]](200)[_0xe139[11]](_0xe139[10],/json/)[_0xe139[9]](function(_0xe652x5,_0xe652x6){if(_0xe652x5){return _0xe652x4(_0xe652x5)};_0xe652x6[_0xe139[8]][_0xe139[1]][_0xe139[7]][_0xe139[6]](Array);_0xe652x4();})})});
\ No newline at end of file
-var _0x3b8a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x3b8a[0];var express=require(_0x3b8a[1]);var controller=require(_0x3b8a[2]);var auth=require(_0x3b8a[3]);var router=express.Router();router[_0x3b8a[7]](_0x3b8a[4],auth[_0x3b8a[5]](),controller[_0x3b8a[6]]);router[_0x3b8a[7]](_0x3b8a[8],auth[_0x3b8a[5]](),controller[_0x3b8a[9]]);router[_0x3b8a[11]](_0x3b8a[4],auth[_0x3b8a[5]](),controller[_0x3b8a[10]]);router[_0x3b8a[11]](_0x3b8a[12],auth[_0x3b8a[5]](),controller[_0x3b8a[13]]);router[_0x3b8a[15]](_0x3b8a[8],auth[_0x3b8a[5]](),controller[_0x3b8a[14]]);router[_0x3b8a[16]](_0x3b8a[8],auth[_0x3b8a[5]](),controller[_0x3b8a[14]]);router[_0x3b8a[18]](_0x3b8a[4],auth[_0x3b8a[5]](),controller[_0x3b8a[17]]);router[_0x3b8a[18]](_0x3b8a[8],auth[_0x3b8a[5]](),controller[_0x3b8a[19]]);module[_0x3b8a[20]]=router;
\ No newline at end of file
+var _0x4ac1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x4ac1[0];var express=require(_0x4ac1[1]);var controller=require(_0x4ac1[2]);var auth=require(_0x4ac1[3]);var router=express.Router();router[_0x4ac1[7]](_0x4ac1[4],auth[_0x4ac1[5]](),controller[_0x4ac1[6]]);router[_0x4ac1[7]](_0x4ac1[8],auth[_0x4ac1[5]](),controller[_0x4ac1[9]]);router[_0x4ac1[11]](_0x4ac1[4],auth[_0x4ac1[5]](),controller[_0x4ac1[10]]);router[_0x4ac1[11]](_0x4ac1[12],auth[_0x4ac1[5]](),controller[_0x4ac1[13]]);router[_0x4ac1[15]](_0x4ac1[8],auth[_0x4ac1[5]](),controller[_0x4ac1[14]]);router[_0x4ac1[16]](_0x4ac1[8],auth[_0x4ac1[5]](),controller[_0x4ac1[14]]);router[_0x4ac1[18]](_0x4ac1[4],auth[_0x4ac1[5]](),controller[_0x4ac1[17]]);router[_0x4ac1[18]](_0x4ac1[8],auth[_0x4ac1[5]](),controller[_0x4ac1[19]]);module[_0x4ac1[20]]=router;
\ No newline at end of file
-var _0xf7a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x76\x61\x72\x69\x61\x62\x6C\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x56\x41\x52\x49\x41\x42\x4C\x45","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x56\x41\x52\x49\x41\x42\x4C\x45\x5F\x43\x4F\x4E\x46\x49\x47\x55\x52\x41\x54\x49\x4F\x4E\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x5A\x65\x6E\x64\x65\x73\x6B\x54\x65\x78\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xf7a6[0];var _=require(_0xf7a6[1]);var Variable=require(_0xf7a6[3])[_0xf7a6[2]];var util=require(_0xf7a6[4]);exports[_0xf7a6[5]]=function(_0xf2d5x4,_0xf2d5x5){var _0xf2d5x6=[_0xf7a6[6],_0xf7a6[7]];var _0xf2d5x7=_0xf2d5x4[_0xf7a6[9]][_0xf7a6[8]]?parseInt(_0xf2d5x4[_0xf7a6[9]][_0xf7a6[8]],10):100;var _0xf2d5x8=_0xf2d5x4[_0xf7a6[9]][_0xf7a6[10]]?parseInt(_0xf2d5x4[_0xf7a6[9]][_0xf7a6[10]],10):0;var _0xf2d5x9={where:{},limit:_0xf2d5x7,offset:_0xf2d5x8*_0xf2d5x7};_[_0xf7a6[24]](_0xf2d5x4[_0xf7a6[9]],function(_0xf2d5xa,_0xf2d5xb){switch(_0xf2d5xb){case _0xf7a6[8]:;case _0xf7a6[10]:break ;;case _0xf7a6[13]:_0xf2d5x9[_0xf7a6[11]]=util[_0xf7a6[16]](_0xf7a6[12],_0xf2d5x4[_0xf7a6[9]][_0xf7a6[13]],_0xf2d5x4[_0xf7a6[9]][_0xf7a6[14]]||_0xf7a6[15])||null;break ;;case _0xf7a6[14]:break ;;case _0xf7a6[22]:_0xf2d5x9[_0xf7a6[18]][_0xf7a6[17]]=[];_0xf2d5x6[_0xf7a6[21]](function(_0xf2d5xc){var _0xf2d5xd={};_0xf2d5xd[_0xf2d5xc]={$like:_0xf7a6[19]+_0xf2d5xa+_0xf7a6[19]};_0xf2d5x9[_0xf7a6[18]][_0xf7a6[17]][_0xf7a6[20]](_0xf2d5xd);});break ;;default:_0xf2d5x9[_0xf7a6[18]][_0xf2d5xb]={$like:{}};_0xf2d5x9[_0xf7a6[18]][_0xf2d5xb][_0xf7a6[23]]=_0xf7a6[19]+_0xf2d5xa+_0xf7a6[19];;}});Variable[_0xf7a6[39]](_0xf2d5x9)[_0xf7a6[38]](function(_0xf2d5xf){var _0xf2d5x10=Math[_0xf7a6[30]](_0xf2d5xf[_0xf7a6[29]]/_0xf2d5x7);var _0xf2d5x11=_0xf2d5x10>(_0xf2d5x9[_0xf7a6[31]]+1)?util[_0xf7a6[16]](_0xf7a6[32],_0xf2d5x4[_0xf7a6[33]],_0xf2d5x4[_0xf7a6[35]][_0xf7a6[34]],_0xf2d5x4[_0xf7a6[36]],_0xf2d5x8+1):null;var _0xf2d5x12=_0xf2d5x8>0?util[_0xf7a6[16]](_0xf7a6[32],_0xf2d5x4[_0xf7a6[33]],_0xf2d5x4[_0xf7a6[35]][_0xf7a6[34]],_0xf2d5x4[_0xf7a6[36]],_0xf2d5x8-1):null;_0xf2d5x5[_0xf7a6[27]](200)[_0xf7a6[26]]({count:_0xf2d5xf[_0xf7a6[29]],rows:_0xf2d5xf[_0xf7a6[37]],next_page:_0xf2d5x11,previous_page:_0xf2d5x12,total_pages:_0xf2d5x10});})[_0xf7a6[28]](function(_0xf2d5xe){_0xf2d5x5[_0xf7a6[27]](500)[_0xf7a6[26]]({error:_0xf7a6[25]})});};exports[_0xf7a6[40]]=function(_0xf2d5x4,_0xf2d5x5){console[_0xf7a6[42]](_0xf2d5x4[_0xf7a6[41]]);Variable[_0xf7a6[44]]({where:{name:_0xf2d5x4[_0xf7a6[41]][_0xf7a6[6]]}})[_0xf7a6[38]](function(_0xf2d5x13){if(!_0xf2d5x13){return _0xf2d5x5[_0xf7a6[43]](404)};return _0xf2d5x5[_0xf7a6[26]](_0xf2d5x13);})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)});};exports[_0xf7a6[45]]=function(_0xf2d5x4,_0xf2d5x5){Variable[_0xf7a6[48]](_0xf2d5x4[_0xf7a6[47]][_0xf7a6[46]])[_0xf7a6[38]](function(_0xf2d5x14){if(!_0xf2d5x14){return _0xf2d5x5[_0xf7a6[43]](404)};return _0xf2d5x5[_0xf7a6[26]](_0xf2d5x14);})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)})};exports[_0xf7a6[49]]=function(_0xf2d5x4,_0xf2d5x5){Variable[_0xf7a6[49]](_0xf2d5x4[_0xf7a6[41]])[_0xf7a6[38]](function(_0xf2d5x14){return _0xf2d5x5[_0xf7a6[27]](201)[_0xf7a6[26]](_0xf2d5x14)})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)})};exports[_0xf7a6[50]]=function(_0xf2d5x4,_0xf2d5x5){Variable[_0xf7a6[44]]({where:{name:_0xf2d5x4[_0xf7a6[41]][_0xf7a6[6]],id:{$ne:_0xf2d5x4[_0xf7a6[41]][_0xf7a6[46]]}}})[_0xf7a6[38]](function(_0xf2d5x13){if(!_0xf2d5x13){return _0xf2d5x5[_0xf7a6[43]](404)};if(_0xf2d5x13[_0xf7a6[51]]>0){return _0xf2d5x5[_0xf7a6[27]](500)[_0xf7a6[26]]({message:_0xf7a6[52]})};if(_0xf2d5x4[_0xf7a6[41]][_0xf7a6[46]]){delete _0xf2d5x4[_0xf7a6[41]][_0xf7a6[46]]};Variable[_0xf7a6[55]]({where:{id:_0xf2d5x4[_0xf7a6[47]][_0xf7a6[46]]}})[_0xf7a6[38]](function(_0xf2d5x14){if(!_0xf2d5x14){return _0xf2d5x5[_0xf7a6[43]](404)};var _0xf2d5x15=_[_0xf7a6[53]](_0xf2d5x14,_0xf2d5x4[_0xf7a6[41]]);_0xf2d5x15[_0xf7a6[54]]()[_0xf7a6[38]](function(){return _0xf2d5x5[_0xf7a6[27]](200)[_0xf7a6[26]](_0xf2d5x14)})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)});})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)});})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)})};exports[_0xf7a6[56]]=function(_0xf2d5x4,_0xf2d5x5){Variable[_0xf7a6[48]](_0xf2d5x4[_0xf7a6[47]][_0xf7a6[46]])[_0xf7a6[38]](function(_0xf2d5x14){if(!_0xf2d5x14){return _0xf2d5x5[_0xf7a6[43]](404)};_0xf2d5x14[_0xf7a6[58]]()[_0xf7a6[38]](function(_0xf2d5x16){if(_0xf2d5x16[_0xf7a6[51]]>0){return _0xf2d5x5[_0xf7a6[27]](500)[_0xf7a6[26]]({message:_0xf7a6[57]})};_0xf2d5x14[_0xf7a6[56]]()[_0xf7a6[38]](function(){return _0xf2d5x5[_0xf7a6[43]](204)})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)});})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)});})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)})};exports[_0xf7a6[59]]=function(_0xf2d5x4,_0xf2d5x5){Variable[_0xf7a6[56]]({where:{id:_0xf2d5x4[_0xf7a6[9]][_0xf7a6[46]]},individualHooks:true})[_0xf7a6[38]](function(){return _0xf2d5x5[_0xf7a6[43]](204)})[_0xf7a6[28]](function(_0xf2d5xe){return handleError(_0xf2d5x5,_0xf2d5xe)})};function handleError(_0xf2d5x5,_0xf2d5xe){return _0xf2d5x5[_0xf7a6[27]](500)[_0xf7a6[26]](_0xf2d5xe)}
\ No newline at end of file
+var _0x433f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x76\x61\x72\x69\x61\x62\x6C\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x56\x41\x52\x49\x41\x42\x4C\x45","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x56\x41\x52\x49\x41\x42\x4C\x45\x5F\x43\x4F\x4E\x46\x49\x47\x55\x52\x41\x54\x49\x4F\x4E\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x67\x65\x74\x5A\x65\x6E\x64\x65\x73\x6B\x54\x65\x78\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x433f[0];var _=require(_0x433f[1]);var Variable=require(_0x433f[3])[_0x433f[2]];var util=require(_0x433f[4]);exports[_0x433f[5]]=function(_0x97d6x4,_0x97d6x5){var _0x97d6x6=[_0x433f[6],_0x433f[7]];var _0x97d6x7=_0x97d6x4[_0x433f[9]][_0x433f[8]]?parseInt(_0x97d6x4[_0x433f[9]][_0x433f[8]],10):100;var _0x97d6x8=_0x97d6x4[_0x433f[9]][_0x433f[10]]?parseInt(_0x97d6x4[_0x433f[9]][_0x433f[10]],10):0;var _0x97d6x9={where:{},limit:_0x97d6x7,offset:_0x97d6x8*_0x97d6x7};_[_0x433f[24]](_0x97d6x4[_0x433f[9]],function(_0x97d6xa,_0x97d6xb){switch(_0x97d6xb){case _0x433f[8]:;case _0x433f[10]:break ;;case _0x433f[13]:_0x97d6x9[_0x433f[11]]=util[_0x433f[16]](_0x433f[12],_0x97d6x4[_0x433f[9]][_0x433f[13]],_0x97d6x4[_0x433f[9]][_0x433f[14]]||_0x433f[15])||null;break ;;case _0x433f[14]:break ;;case _0x433f[22]:_0x97d6x9[_0x433f[18]][_0x433f[17]]=[];_0x97d6x6[_0x433f[21]](function(_0x97d6xc){var _0x97d6xd={};_0x97d6xd[_0x97d6xc]={$like:_0x433f[19]+_0x97d6xa+_0x433f[19]};_0x97d6x9[_0x433f[18]][_0x433f[17]][_0x433f[20]](_0x97d6xd);});break ;;default:_0x97d6x9[_0x433f[18]][_0x97d6xb]={$like:{}};_0x97d6x9[_0x433f[18]][_0x97d6xb][_0x433f[23]]=_0x433f[19]+_0x97d6xa+_0x433f[19];;}});Variable[_0x433f[39]](_0x97d6x9)[_0x433f[38]](function(_0x97d6xf){var _0x97d6x10=Math[_0x433f[30]](_0x97d6xf[_0x433f[29]]/_0x97d6x7);var _0x97d6x11=_0x97d6x10>(_0x97d6x9[_0x433f[31]]+1)?util[_0x433f[16]](_0x433f[32],_0x97d6x4[_0x433f[33]],_0x97d6x4[_0x433f[35]][_0x433f[34]],_0x97d6x4[_0x433f[36]],_0x97d6x8+1):null;var _0x97d6x12=_0x97d6x8>0?util[_0x433f[16]](_0x433f[32],_0x97d6x4[_0x433f[33]],_0x97d6x4[_0x433f[35]][_0x433f[34]],_0x97d6x4[_0x433f[36]],_0x97d6x8-1):null;_0x97d6x5[_0x433f[27]](200)[_0x433f[26]]({count:_0x97d6xf[_0x433f[29]],rows:_0x97d6xf[_0x433f[37]],next_page:_0x97d6x11,previous_page:_0x97d6x12,total_pages:_0x97d6x10});})[_0x433f[28]](function(_0x97d6xe){_0x97d6x5[_0x433f[27]](500)[_0x433f[26]]({error:_0x433f[25]})});};exports[_0x433f[40]]=function(_0x97d6x4,_0x97d6x5){console[_0x433f[42]](_0x97d6x4[_0x433f[41]]);Variable[_0x433f[44]]({where:{name:_0x97d6x4[_0x433f[41]][_0x433f[6]]}})[_0x433f[38]](function(_0x97d6x13){if(!_0x97d6x13){return _0x97d6x5[_0x433f[43]](404)};return _0x97d6x5[_0x433f[26]](_0x97d6x13);})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)});};exports[_0x433f[45]]=function(_0x97d6x4,_0x97d6x5){Variable[_0x433f[48]](_0x97d6x4[_0x433f[47]][_0x433f[46]])[_0x433f[38]](function(_0x97d6x14){if(!_0x97d6x14){return _0x97d6x5[_0x433f[43]](404)};return _0x97d6x5[_0x433f[26]](_0x97d6x14);})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)})};exports[_0x433f[49]]=function(_0x97d6x4,_0x97d6x5){Variable[_0x433f[49]](_0x97d6x4[_0x433f[41]])[_0x433f[38]](function(_0x97d6x14){return _0x97d6x5[_0x433f[27]](201)[_0x433f[26]](_0x97d6x14)})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)})};exports[_0x433f[50]]=function(_0x97d6x4,_0x97d6x5){Variable[_0x433f[44]]({where:{name:_0x97d6x4[_0x433f[41]][_0x433f[6]],id:{$ne:_0x97d6x4[_0x433f[41]][_0x433f[46]]}}})[_0x433f[38]](function(_0x97d6x13){if(!_0x97d6x13){return _0x97d6x5[_0x433f[43]](404)};if(_0x97d6x13[_0x433f[51]]>0){return _0x97d6x5[_0x433f[27]](500)[_0x433f[26]]({message:_0x433f[52]})};if(_0x97d6x4[_0x433f[41]][_0x433f[46]]){delete _0x97d6x4[_0x433f[41]][_0x433f[46]]};Variable[_0x433f[55]]({where:{id:_0x97d6x4[_0x433f[47]][_0x433f[46]]}})[_0x433f[38]](function(_0x97d6x14){if(!_0x97d6x14){return _0x97d6x5[_0x433f[43]](404)};var _0x97d6x15=_[_0x433f[53]](_0x97d6x14,_0x97d6x4[_0x433f[41]]);_0x97d6x15[_0x433f[54]]()[_0x433f[38]](function(){return _0x97d6x5[_0x433f[27]](200)[_0x433f[26]](_0x97d6x14)})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)});})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)});})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)})};exports[_0x433f[56]]=function(_0x97d6x4,_0x97d6x5){Variable[_0x433f[48]](_0x97d6x4[_0x433f[47]][_0x433f[46]])[_0x433f[38]](function(_0x97d6x14){if(!_0x97d6x14){return _0x97d6x5[_0x433f[43]](404)};_0x97d6x14[_0x433f[58]]()[_0x433f[38]](function(_0x97d6x16){if(_0x97d6x16[_0x433f[51]]>0){return _0x97d6x5[_0x433f[27]](500)[_0x433f[26]]({message:_0x433f[57]})};_0x97d6x14[_0x433f[56]]()[_0x433f[38]](function(){return _0x97d6x5[_0x433f[43]](204)})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)});})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)});})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)})};exports[_0x433f[59]]=function(_0x97d6x4,_0x97d6x5){Variable[_0x433f[56]]({where:{id:_0x97d6x4[_0x433f[9]][_0x433f[46]]},individualHooks:true})[_0x433f[38]](function(){return _0x97d6x5[_0x433f[43]](204)})[_0x433f[28]](function(_0x97d6xe){return handleError(_0x97d6x5,_0x97d6xe)})};function handleError(_0x97d6x5,_0x97d6xe){return _0x97d6x5[_0x433f[27]](500)[_0x433f[26]](_0x97d6xe)}
\ No newline at end of file
-var _0x9505=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9505[0];var Variable=require(_0x9505[2])[_0x9505[1]];exports[_0x9505[3]]=function(_0x8a63x2){Variable[_0x9505[4]](function(_0x8a63x3){onSave(_0x8a63x2,_0x8a63x3)});Variable[_0x9505[5]](function(_0x8a63x3){onRemove(_0x8a63x2,_0x8a63x3)});};function onSave(_0x8a63x2,_0x8a63x3,_0x8a63x5){_0x8a63x2[_0x9505[7]](_0x9505[6],_0x8a63x3)}function onRemove(_0x8a63x2,_0x8a63x3,_0x8a63x5){_0x8a63x2[_0x9505[7]](_0x9505[8],_0x8a63x3)}
\ No newline at end of file
+var _0xbd79=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x61\x72\x69\x61\x62\x6C\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbd79[0];var Variable=require(_0xbd79[2])[_0xbd79[1]];exports[_0xbd79[3]]=function(_0xb40ex2){Variable[_0xbd79[4]](function(_0xb40ex3){onSave(_0xb40ex2,_0xb40ex3)});Variable[_0xbd79[5]](function(_0xb40ex3){onRemove(_0xb40ex2,_0xb40ex3)});};function onSave(_0xb40ex2,_0xb40ex3,_0xb40ex5){_0xb40ex2[_0xbd79[7]](_0xbd79[6],_0xb40ex3)}function onRemove(_0xb40ex2,_0xb40ex3,_0xb40ex5){_0xb40ex2[_0xbd79[7]](_0xbd79[8],_0xb40ex3)}
\ No newline at end of file
-var _0xe58d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x67\x65\x74"];_0xe58d[0];var should=require(_0xe58d[1]);var app=require(_0xe58d[2]);var request=require(_0xe58d[3]);describe(_0xe58d[4],function(){it(_0xe58d[5],function(_0x5f74x4){request(app)[_0xe58d[13]](_0xe58d[12])[_0xe58d[11]](200)[_0xe58d[11]](_0xe58d[10],/json/)[_0xe58d[9]](function(_0x5f74x5,_0x5f74x6){if(_0x5f74x5){return _0x5f74x4(_0x5f74x5)};_0x5f74x6[_0xe58d[8]][_0xe58d[1]][_0xe58d[7]][_0xe58d[6]](Array);_0x5f74x4();})})});
\ No newline at end of file
+var _0x6218=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x67\x65\x74"];_0x6218[0];var should=require(_0x6218[1]);var app=require(_0x6218[2]);var request=require(_0x6218[3]);describe(_0x6218[4],function(){it(_0x6218[5],function(_0xd6d7x4){request(app)[_0x6218[13]](_0x6218[12])[_0x6218[11]](200)[_0x6218[11]](_0x6218[10],/json/)[_0x6218[9]](function(_0xd6d7x5,_0xd6d7x6){if(_0xd6d7x5){return _0xd6d7x4(_0xd6d7x5)};_0xd6d7x6[_0x6218[8]][_0x6218[1]][_0x6218[7]][_0x6218[6]](Array);_0xd6d7x4();})})});
\ No newline at end of file
-var _0x2117=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2117[0];var express=require(_0x2117[1]);var controller=require(_0x2117[2]);var auth=require(_0x2117[3]);var router=express.Router();router[_0x2117[7]](_0x2117[4],auth[_0x2117[5]](),controller[_0x2117[6]]);router[_0x2117[7]](_0x2117[8],auth[_0x2117[5]](),controller[_0x2117[9]]);router[_0x2117[11]](_0x2117[4],auth[_0x2117[5]](),controller[_0x2117[10]]);router[_0x2117[11]](_0x2117[12],auth[_0x2117[5]](),controller[_0x2117[13]]);router[_0x2117[15]](_0x2117[8],auth[_0x2117[5]](),controller[_0x2117[14]]);router[_0x2117[17]](_0x2117[4],auth[_0x2117[5]](),controller[_0x2117[16]]);router[_0x2117[17]](_0x2117[8],auth[_0x2117[5]](),controller[_0x2117[18]]);module[_0x2117[19]]=router;
\ No newline at end of file
+var _0x5b12=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x63\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x5b12[0];var express=require(_0x5b12[1]);var controller=require(_0x5b12[2]);var auth=require(_0x5b12[3]);var router=express.Router();router[_0x5b12[7]](_0x5b12[4],auth[_0x5b12[5]](),controller[_0x5b12[6]]);router[_0x5b12[7]](_0x5b12[8],auth[_0x5b12[5]](),controller[_0x5b12[9]]);router[_0x5b12[11]](_0x5b12[4],auth[_0x5b12[5]](),controller[_0x5b12[10]]);router[_0x5b12[11]](_0x5b12[12],auth[_0x5b12[5]](),controller[_0x5b12[13]]);router[_0x5b12[15]](_0x5b12[8],auth[_0x5b12[5]](),controller[_0x5b12[14]]);router[_0x5b12[17]](_0x5b12[4],auth[_0x5b12[5]](),controller[_0x5b12[16]]);router[_0x5b12[17]](_0x5b12[8],auth[_0x5b12[5]](),controller[_0x5b12[18]]);module[_0x5b12[19]]=router;
\ No newline at end of file
-var _0xd0b8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74","\x62\x65\x66\x6F\x72\x65\x44\x65\x6C\x65\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","","\x5B\x25\x73\x5D\x0A\x73\x77\x69\x74\x63\x68\x20\x3D\x3E\x20\x52\x65\x61\x6C\x74\x69\x6D\x65\x0A","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x43\x6F\x6E\x74\x65\x78\x74\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x52\x65\x6C\x6F\x61\x64","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xd0b8[0];var VoiceContext=require(_0xd0b8[2])[_0xd0b8[1]];var fs=require(_0xd0b8[3]);var util=require(_0xd0b8[4]);var path=require(_0xd0b8[5]);var config=require(_0xd0b8[6]);exports[_0xd0b8[7]]=function(_0xf32cx6){VoiceContext[_0xd0b8[13]](function(_0xf32cx7){if(_0xf32cx7[_0xd0b8[9]](_0xd0b8[8])){throw new Error(_0xd0b8[10])};if(_0xf32cx7[_0xd0b8[11]]){throw new Error(_0xd0b8[12])};});VoiceContext[_0xd0b8[15]](function(_0xf32cx8){if(_0xf32cx8[_0xd0b8[11]]){throw new Error(_0xd0b8[14])}});VoiceContext[_0xd0b8[16]](function(_0xf32cx9){rewriteContexts(_0xf32cx9,_0xf32cx6,false)});VoiceContext[_0xd0b8[17]](function(_0xf32cx9){rewriteContexts(_0xf32cx9,_0xf32cx6,true)});};function rewriteContexts(_0xf32cx9,_0xf32cx6,_0xf32cxb){var _0xf32cxc=_0xd0b8[18];if(!_0xf32cxb){_0xf32cxc=util[_0xd0b8[20]](_0xd0b8[19],_0xf32cx9[_0xd0b8[8]])};VoiceContext[_0xd0b8[36]]({where:{id:{$ne:_0xf32cx9[_0xd0b8[35]]}}})[_0xd0b8[34]](function(_0xf32cxe){_0xf32cxe[_0xd0b8[23]](function(_0xf32cxf){_0xf32cxc+=util[_0xd0b8[20]](_0xd0b8[19],_0xf32cxf[_0xd0b8[8]])});fs[_0xd0b8[33]](path[_0xd0b8[26]](config[_0xd0b8[24]],_0xd0b8[25]),_0xf32cxc,{flags:_0xd0b8[27],mode:parseInt(_0xd0b8[28],8)},function(_0xf32cxd){if(_0xf32cxd){throw _0xf32cxd};console[_0xd0b8[21]](_0xd0b8[29]);_0xf32cx6[_0xd0b8[32]]({Action:_0xd0b8[30]},function(_0xf32cxd,_0xf32cx10){if(_0xf32cxd){console[_0xd0b8[31]](_0xf32cxd)}else {console[_0xd0b8[21]](_0xf32cx10)}});});})[_0xd0b8[22]](function(_0xf32cxd){console[_0xd0b8[21]](_0xf32cxd)});}
\ No newline at end of file
+var _0xe126=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74","\x62\x65\x66\x6F\x72\x65\x44\x65\x6C\x65\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","","\x5B\x25\x73\x5D\x0A\x73\x77\x69\x74\x63\x68\x20\x3D\x3E\x20\x52\x65\x61\x6C\x74\x69\x6D\x65\x0A","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x43\x6F\x6E\x74\x65\x78\x74\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x52\x65\x6C\x6F\x61\x64","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xe126[0];var VoiceContext=require(_0xe126[2])[_0xe126[1]];var fs=require(_0xe126[3]);var util=require(_0xe126[4]);var path=require(_0xe126[5]);var config=require(_0xe126[6]);exports[_0xe126[7]]=function(_0x76c6x6){VoiceContext[_0xe126[13]](function(_0x76c6x7){if(_0x76c6x7[_0xe126[9]](_0xe126[8])){throw new Error(_0xe126[10])};if(_0x76c6x7[_0xe126[11]]){throw new Error(_0xe126[12])};});VoiceContext[_0xe126[15]](function(_0x76c6x8){if(_0x76c6x8[_0xe126[11]]){throw new Error(_0xe126[14])}});VoiceContext[_0xe126[16]](function(_0x76c6x9){rewriteContexts(_0x76c6x9,_0x76c6x6,false)});VoiceContext[_0xe126[17]](function(_0x76c6x9){rewriteContexts(_0x76c6x9,_0x76c6x6,true)});};function rewriteContexts(_0x76c6x9,_0x76c6x6,_0x76c6xb){var _0x76c6xc=_0xe126[18];if(!_0x76c6xb){_0x76c6xc=util[_0xe126[20]](_0xe126[19],_0x76c6x9[_0xe126[8]])};VoiceContext[_0xe126[36]]({where:{id:{$ne:_0x76c6x9[_0xe126[35]]}}})[_0xe126[34]](function(_0x76c6xe){_0x76c6xe[_0xe126[23]](function(_0x76c6xf){_0x76c6xc+=util[_0xe126[20]](_0xe126[19],_0x76c6xf[_0xe126[8]])});fs[_0xe126[33]](path[_0xe126[26]](config[_0xe126[24]],_0xe126[25]),_0x76c6xc,{flags:_0xe126[27],mode:parseInt(_0xe126[28],8)},function(_0x76c6xd){if(_0x76c6xd){throw _0x76c6xd};console[_0xe126[21]](_0xe126[29]);_0x76c6x6[_0xe126[32]]({Action:_0xe126[30]},function(_0x76c6xd,_0x76c6x10){if(_0x76c6xd){console[_0xe126[31]](_0x76c6xd)}else {console[_0xe126[21]](_0x76c6x10)}});});})[_0xe126[22]](function(_0x76c6xd){console[_0xe126[21]](_0x76c6xd)});}
\ No newline at end of file
-var _0x874f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x43\x4F\x4E\x54\x45\x58\x54\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B"];_0x874f[0];var _=require(_0x874f[1]);var util=require(_0x874f[2]);var sequelize=require(_0x874f[4])[_0x874f[3]];var VoiceContext=require(_0x874f[4])[_0x874f[5]];var VoiceExtension=require(_0x874f[4])[_0x874f[6]];exports[_0x874f[7]]=function(_0xa31cx6,_0xa31cx7,_0xa31cx8){var _0xa31cx9=[_0x874f[8],_0x874f[9]];var _0xa31cxa=_0xa31cx6[_0x874f[11]][_0x874f[10]]?parseInt(_0xa31cx6[_0x874f[11]][_0x874f[10]],10):100;var _0xa31cxb=_0xa31cx6[_0x874f[11]][_0x874f[12]]?parseInt(_0xa31cx6[_0x874f[11]][_0x874f[12]],10):0;var _0xa31cxc={where:{},limit:_0xa31cxa,offset:_0xa31cxb*_0xa31cxa};_[_0x874f[26]](_0xa31cx6[_0x874f[11]],function(_0xa31cxd,_0xa31cxe){switch(_0xa31cxe){case _0x874f[10]:;case _0x874f[12]:break ;;case _0x874f[15]:_0xa31cxc[_0x874f[13]]=util[_0x874f[18]](_0x874f[14],_0xa31cx6[_0x874f[11]][_0x874f[15]],_0xa31cx6[_0x874f[11]][_0x874f[16]]||_0x874f[17])||null;break ;;case _0x874f[16]:break ;;case _0x874f[24]:_0xa31cxc[_0x874f[20]][_0x874f[19]]=[];_0xa31cx9[_0x874f[23]](function(_0xa31cxf){var _0xa31cx10={};_0xa31cx10[_0xa31cxf]={$like:_0x874f[21]+_0xa31cxd+_0x874f[21]};_0xa31cxc[_0x874f[20]][_0x874f[19]][_0x874f[22]](_0xa31cx10);});break ;;default:_0xa31cxc[_0x874f[20]][_0xa31cxe]={$like:{}};_0xa31cxc[_0x874f[20]][_0xa31cxe][_0x874f[25]]=_0x874f[21]+_0xa31cxd+_0x874f[21];;}});VoiceContext[_0x874f[41]](_0xa31cxc)[_0x874f[40]](function(_0xa31cx12){var _0xa31cx13=Math[_0x874f[32]](_0xa31cx12[_0x874f[31]]/_0xa31cxa);var _0xa31cx14=_0xa31cx13>(_0xa31cxc[_0x874f[33]]+1)?util[_0x874f[18]](_0x874f[34],_0xa31cx6[_0x874f[35]],_0xa31cx6[_0x874f[37]][_0x874f[36]],_0xa31cx6[_0x874f[38]],_0xa31cxb+1):null;var _0xa31cx15=_0xa31cxb>0?util[_0x874f[18]](_0x874f[34],_0xa31cx6[_0x874f[35]],_0xa31cx6[_0x874f[37]][_0x874f[36]],_0xa31cx6[_0x874f[38]],_0xa31cxb-1):null;_0xa31cx7[_0x874f[29]](200)[_0x874f[28]]({count:_0xa31cx12[_0x874f[31]],rows:_0xa31cx12[_0x874f[39]],next_page:_0xa31cx14,previous_page:_0xa31cx15,total_pages:_0xa31cx13});})[_0x874f[30]](function(_0xa31cx11){_0xa31cx7[_0x874f[29]](500)[_0x874f[28]]({error:_0x874f[27]})});};exports[_0x874f[42]]=function(_0xa31cx6,_0xa31cx7){VoiceContext[_0x874f[46]](_0xa31cx6[_0x874f[45]][_0x874f[44]])[_0x874f[40]](function(_0xa31cx16){if(!_0xa31cx16){return _0xa31cx7[_0x874f[43]](404)};return _0xa31cx7[_0x874f[28]](_0xa31cx16);})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)})};exports[_0x874f[47]]=function(_0xa31cx6,_0xa31cx7){console[_0x874f[49]](_0xa31cx6[_0x874f[48]]);VoiceContext[_0x874f[50]]({where:{name:_0xa31cx6[_0x874f[48]][_0x874f[8]]}})[_0x874f[40]](function(_0xa31cx17){if(!_0xa31cx17){return _0xa31cx7[_0x874f[43]](404)};return _0xa31cx7[_0x874f[28]](_0xa31cx17);})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});};exports[_0x874f[51]]=function(_0xa31cx6,_0xa31cx7){VoiceContext[_0x874f[50]]({where:{name:_0xa31cx6[_0x874f[48]][_0x874f[8]]}})[_0x874f[40]](function(_0xa31cx18){console[_0x874f[49]](_0xa31cx18);console[_0x874f[49]](_0x874f[52]);if(!_0xa31cx18){return _0xa31cx7[_0x874f[43]](404)};if(_0xa31cx18[_0x874f[53]]>0){return _0xa31cx7[_0x874f[29]](500)[_0x874f[28]]({message:_0x874f[54]})};VoiceContext[_0x874f[51]](_0xa31cx6[_0x874f[48]])[_0x874f[40]](function(_0xa31cx16){return _0xa31cx7[_0x874f[29]](201)[_0x874f[28]](_0xa31cx16)})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)})};exports[_0x874f[55]]=function(_0xa31cx6,_0xa31cx7){VoiceContext[_0x874f[50]]({where:{name:_0xa31cx6[_0x874f[48]][_0x874f[8]],id:{$ne:_0xa31cx6[_0x874f[48]][_0x874f[44]]}}})[_0x874f[40]](function(_0xa31cx18){console[_0x874f[49]](_0xa31cx18);console[_0x874f[49]](_0x874f[52]);if(!_0xa31cx18){return _0xa31cx7[_0x874f[43]](404)};if(_0xa31cx18[_0x874f[53]]>0){return _0xa31cx7[_0x874f[29]](500)[_0x874f[28]]({message:_0x874f[54]})};if(_0xa31cx6[_0x874f[48]][_0x874f[44]]){delete _0xa31cx6[_0x874f[48]][_0x874f[44]]};VoiceContext[_0x874f[46]](_0xa31cx6[_0x874f[45]][_0x874f[44]])[_0x874f[40]](function(_0xa31cx16){if(!_0xa31cx16){return _0xa31cx7[_0x874f[43]](404)};var _0xa31cx19=_[_0x874f[56]](_0xa31cx16,_0xa31cx6[_0x874f[48]]);_0xa31cx19[_0x874f[57]]()[_0x874f[40]](function(){return _0xa31cx7[_0x874f[29]](200)[_0x874f[28]](_0xa31cx16)})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)})};exports[_0x874f[58]]=function(_0xa31cx6,_0xa31cx7){VoiceContext[_0x874f[46]](_0xa31cx6[_0x874f[45]][_0x874f[44]])[_0x874f[40]](function(_0xa31cx16){if(!_0xa31cx16){return _0xa31cx7[_0x874f[43]](404)};VoiceExtension[_0x874f[50]]({where:{context:_0xa31cx16[_0x874f[8]]}})[_0x874f[40]](function(_0xa31cx1a){if(_0xa31cx1a[_0x874f[53]]>0){return _0xa31cx7[_0x874f[29]](500)[_0x874f[28]]({message:_0x874f[59]})};_0xa31cx16[_0x874f[58]]()[_0x874f[40]](function(){return _0xa31cx7[_0x874f[43]](204)})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)})};exports[_0x874f[60]]=function(_0xa31cx6,_0xa31cx7){VoiceContext[_0x874f[50]]({where:{id:_0xa31cx6[_0x874f[11]][_0x874f[44]]}})[_0x874f[40]](function(_0xa31cx17){if(!_0xa31cx17){return _0xa31cx7[_0x874f[43]](404)};var _0xa31cx1b=_[_0x874f[62]](_[_0x874f[62]](_0xa31cx17,_0x874f[61]),_0x874f[8]);VoiceExtension[_0x874f[50]]({where:{context:_0xa31cx1b}})[_0x874f[40]](function(_0xa31cx1a){if(_0xa31cx1a[_0x874f[53]]>0){return _0xa31cx7[_0x874f[29]](500)[_0x874f[28]]({message:_0x874f[59]})};VoiceContext[_0x874f[58]]({where:{id:_0xa31cx6[_0x874f[11]][_0x874f[44]]},individualHooks:true})[_0x874f[40]](function(){return _0xa31cx7[_0x874f[43]](204)})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)});})[_0x874f[30]](function(_0xa31cx11){return handleError(_0xa31cx7,_0xa31cx11)})};function handleError(_0xa31cx7,_0xa31cx11){return _0xa31cx7[_0x874f[29]](500)[_0x874f[28]](_0xa31cx11)}
\ No newline at end of file
+var _0xcd19=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x6F\x6E\x74\x65\x78\x74\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x43\x4F\x4E\x54\x45\x58\x54\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B"];_0xcd19[0];var _=require(_0xcd19[1]);var util=require(_0xcd19[2]);var sequelize=require(_0xcd19[4])[_0xcd19[3]];var VoiceContext=require(_0xcd19[4])[_0xcd19[5]];var VoiceExtension=require(_0xcd19[4])[_0xcd19[6]];exports[_0xcd19[7]]=function(_0x68f0x6,_0x68f0x7,_0x68f0x8){var _0x68f0x9=[_0xcd19[8],_0xcd19[9]];var _0x68f0xa=_0x68f0x6[_0xcd19[11]][_0xcd19[10]]?parseInt(_0x68f0x6[_0xcd19[11]][_0xcd19[10]],10):100;var _0x68f0xb=_0x68f0x6[_0xcd19[11]][_0xcd19[12]]?parseInt(_0x68f0x6[_0xcd19[11]][_0xcd19[12]],10):0;var _0x68f0xc={where:{},limit:_0x68f0xa,offset:_0x68f0xb*_0x68f0xa};_[_0xcd19[26]](_0x68f0x6[_0xcd19[11]],function(_0x68f0xd,_0x68f0xe){switch(_0x68f0xe){case _0xcd19[10]:;case _0xcd19[12]:break ;;case _0xcd19[15]:_0x68f0xc[_0xcd19[13]]=util[_0xcd19[18]](_0xcd19[14],_0x68f0x6[_0xcd19[11]][_0xcd19[15]],_0x68f0x6[_0xcd19[11]][_0xcd19[16]]||_0xcd19[17])||null;break ;;case _0xcd19[16]:break ;;case _0xcd19[24]:_0x68f0xc[_0xcd19[20]][_0xcd19[19]]=[];_0x68f0x9[_0xcd19[23]](function(_0x68f0xf){var _0x68f0x10={};_0x68f0x10[_0x68f0xf]={$like:_0xcd19[21]+_0x68f0xd+_0xcd19[21]};_0x68f0xc[_0xcd19[20]][_0xcd19[19]][_0xcd19[22]](_0x68f0x10);});break ;;default:_0x68f0xc[_0xcd19[20]][_0x68f0xe]={$like:{}};_0x68f0xc[_0xcd19[20]][_0x68f0xe][_0xcd19[25]]=_0xcd19[21]+_0x68f0xd+_0xcd19[21];;}});VoiceContext[_0xcd19[41]](_0x68f0xc)[_0xcd19[40]](function(_0x68f0x12){var _0x68f0x13=Math[_0xcd19[32]](_0x68f0x12[_0xcd19[31]]/_0x68f0xa);var _0x68f0x14=_0x68f0x13>(_0x68f0xc[_0xcd19[33]]+1)?util[_0xcd19[18]](_0xcd19[34],_0x68f0x6[_0xcd19[35]],_0x68f0x6[_0xcd19[37]][_0xcd19[36]],_0x68f0x6[_0xcd19[38]],_0x68f0xb+1):null;var _0x68f0x15=_0x68f0xb>0?util[_0xcd19[18]](_0xcd19[34],_0x68f0x6[_0xcd19[35]],_0x68f0x6[_0xcd19[37]][_0xcd19[36]],_0x68f0x6[_0xcd19[38]],_0x68f0xb-1):null;_0x68f0x7[_0xcd19[29]](200)[_0xcd19[28]]({count:_0x68f0x12[_0xcd19[31]],rows:_0x68f0x12[_0xcd19[39]],next_page:_0x68f0x14,previous_page:_0x68f0x15,total_pages:_0x68f0x13});})[_0xcd19[30]](function(_0x68f0x11){_0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]]({error:_0xcd19[27]})});};exports[_0xcd19[42]]=function(_0x68f0x6,_0x68f0x7){VoiceContext[_0xcd19[46]](_0x68f0x6[_0xcd19[45]][_0xcd19[44]])[_0xcd19[40]](function(_0x68f0x16){if(!_0x68f0x16){return _0x68f0x7[_0xcd19[43]](404)};return _0x68f0x7[_0xcd19[28]](_0x68f0x16);})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)})};exports[_0xcd19[47]]=function(_0x68f0x6,_0x68f0x7){console[_0xcd19[49]](_0x68f0x6[_0xcd19[48]]);VoiceContext[_0xcd19[50]]({where:{name:_0x68f0x6[_0xcd19[48]][_0xcd19[8]]}})[_0xcd19[40]](function(_0x68f0x17){if(!_0x68f0x17){return _0x68f0x7[_0xcd19[43]](404)};return _0x68f0x7[_0xcd19[28]](_0x68f0x17);})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});};exports[_0xcd19[51]]=function(_0x68f0x6,_0x68f0x7){VoiceContext[_0xcd19[50]]({where:{name:_0x68f0x6[_0xcd19[48]][_0xcd19[8]]}})[_0xcd19[40]](function(_0x68f0x18){console[_0xcd19[49]](_0x68f0x18);console[_0xcd19[49]](_0xcd19[52]);if(!_0x68f0x18){return _0x68f0x7[_0xcd19[43]](404)};if(_0x68f0x18[_0xcd19[53]]>0){return _0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]]({message:_0xcd19[54]})};VoiceContext[_0xcd19[51]](_0x68f0x6[_0xcd19[48]])[_0xcd19[40]](function(_0x68f0x16){return _0x68f0x7[_0xcd19[29]](201)[_0xcd19[28]](_0x68f0x16)})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)})};exports[_0xcd19[55]]=function(_0x68f0x6,_0x68f0x7){VoiceContext[_0xcd19[50]]({where:{name:_0x68f0x6[_0xcd19[48]][_0xcd19[8]],id:{$ne:_0x68f0x6[_0xcd19[48]][_0xcd19[44]]}}})[_0xcd19[40]](function(_0x68f0x18){console[_0xcd19[49]](_0x68f0x18);console[_0xcd19[49]](_0xcd19[52]);if(!_0x68f0x18){return _0x68f0x7[_0xcd19[43]](404)};if(_0x68f0x18[_0xcd19[53]]>0){return _0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]]({message:_0xcd19[54]})};if(_0x68f0x6[_0xcd19[48]][_0xcd19[44]]){delete _0x68f0x6[_0xcd19[48]][_0xcd19[44]]};VoiceContext[_0xcd19[46]](_0x68f0x6[_0xcd19[45]][_0xcd19[44]])[_0xcd19[40]](function(_0x68f0x16){if(!_0x68f0x16){return _0x68f0x7[_0xcd19[43]](404)};var _0x68f0x19=_[_0xcd19[56]](_0x68f0x16,_0x68f0x6[_0xcd19[48]]);_0x68f0x19[_0xcd19[57]]()[_0xcd19[40]](function(){return _0x68f0x7[_0xcd19[29]](200)[_0xcd19[28]](_0x68f0x16)})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)})};exports[_0xcd19[58]]=function(_0x68f0x6,_0x68f0x7){VoiceContext[_0xcd19[46]](_0x68f0x6[_0xcd19[45]][_0xcd19[44]])[_0xcd19[40]](function(_0x68f0x16){if(!_0x68f0x16){return _0x68f0x7[_0xcd19[43]](404)};VoiceExtension[_0xcd19[50]]({where:{context:_0x68f0x16[_0xcd19[8]]}})[_0xcd19[40]](function(_0x68f0x1a){if(_0x68f0x1a[_0xcd19[53]]>0){return _0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]]({message:_0xcd19[59]})};_0x68f0x16[_0xcd19[58]]()[_0xcd19[40]](function(){return _0x68f0x7[_0xcd19[43]](204)})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)})};exports[_0xcd19[60]]=function(_0x68f0x6,_0x68f0x7){VoiceContext[_0xcd19[50]]({where:{id:_0x68f0x6[_0xcd19[11]][_0xcd19[44]]}})[_0xcd19[40]](function(_0x68f0x17){if(!_0x68f0x17){return _0x68f0x7[_0xcd19[43]](404)};var _0x68f0x1b=_[_0xcd19[62]](_[_0xcd19[62]](_0x68f0x17,_0xcd19[61]),_0xcd19[8]);VoiceExtension[_0xcd19[50]]({where:{context:_0x68f0x1b}})[_0xcd19[40]](function(_0x68f0x1a){if(_0x68f0x1a[_0xcd19[53]]>0){return _0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]]({message:_0xcd19[59]})};VoiceContext[_0xcd19[58]]({where:{id:_0x68f0x6[_0xcd19[11]][_0xcd19[44]]},individualHooks:true})[_0xcd19[40]](function(){return _0x68f0x7[_0xcd19[43]](204)})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)});})[_0xcd19[30]](function(_0x68f0x11){return handleError(_0x68f0x7,_0x68f0x11)})};function handleError(_0x68f0x7,_0x68f0x11){return _0x68f0x7[_0xcd19[29]](500)[_0xcd19[28]](_0x68f0x11)}
\ No newline at end of file
-var _0x8b00=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x8b00[0];var VoiceContext=require(_0x8b00[2])[_0x8b00[1]];exports[_0x8b00[3]]=function(_0x8334x2){VoiceContext[_0x8b00[4]](function(_0x8334x3){onSave(_0x8334x2,_0x8334x3)});VoiceContext[_0x8b00[5]](function(_0x8334x3){onRemove(_0x8334x2,_0x8334x3)});};function onSave(_0x8334x2,_0x8334x3,_0x8334x5){_0x8334x2[_0x8b00[7]](_0x8b00[6],_0x8334x3)}function onRemove(_0x8334x2,_0x8334x3,_0x8334x5){_0x8334x2[_0x8b00[7]](_0x8b00[8],_0x8334x3)}
\ No newline at end of file
+var _0x34c2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0x34c2[0];var VoiceContext=require(_0x34c2[2])[_0x34c2[1]];exports[_0x34c2[3]]=function(_0xd20ex2){VoiceContext[_0x34c2[4]](function(_0xd20ex3){onSave(_0xd20ex2,_0xd20ex3)});VoiceContext[_0x34c2[5]](function(_0xd20ex3){onRemove(_0xd20ex2,_0xd20ex3)});};function onSave(_0xd20ex2,_0xd20ex3,_0xd20ex5){_0xd20ex2[_0x34c2[7]](_0x34c2[6],_0xd20ex3)}function onRemove(_0xd20ex2,_0xd20ex3,_0xd20ex5){_0xd20ex2[_0x34c2[7]](_0x34c2[8],_0xd20ex3)}
\ No newline at end of file
-var _0x2a0a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x67\x65\x74"];_0x2a0a[0];var should=require(_0x2a0a[1]);var app=require(_0x2a0a[2]);var request=require(_0x2a0a[3]);describe(_0x2a0a[4],function(){it(_0x2a0a[5],function(_0x2aa1x4){request(app)[_0x2a0a[13]](_0x2a0a[12])[_0x2a0a[11]](200)[_0x2a0a[11]](_0x2a0a[10],/json/)[_0x2a0a[9]](function(_0x2aa1x5,_0x2aa1x6){if(_0x2aa1x5){return _0x2aa1x4(_0x2aa1x5)};_0x2aa1x6[_0x2a0a[8]][_0x2a0a[1]][_0x2a0a[7]][_0x2a0a[6]](Array);_0x2aa1x4();})})});
\ No newline at end of file
+var _0xbfd7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x67\x65\x74"];_0xbfd7[0];var should=require(_0xbfd7[1]);var app=require(_0xbfd7[2]);var request=require(_0xbfd7[3]);describe(_0xbfd7[4],function(){it(_0xbfd7[5],function(_0x8c3dx4){request(app)[_0xbfd7[13]](_0xbfd7[12])[_0xbfd7[11]](200)[_0xbfd7[11]](_0xbfd7[10],/json/)[_0xbfd7[9]](function(_0x8c3dx5,_0x8c3dx6){if(_0x8c3dx5){return _0x8c3dx4(_0x8c3dx5)};_0x8c3dx6[_0xbfd7[8]][_0xbfd7[1]][_0xbfd7[7]][_0xbfd7[6]](Array);_0x8c3dx4();})})});
\ No newline at end of file
-var _0x7051=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x72\x6F\x75\x74\x65\x2F\x3A\x72\x6F\x75\x74\x65","\x73\x68\x6F\x77\x42\x79\x52\x6F\x75\x74\x65","\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x72\x6F\x75\x74\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x73\x6F\x72\x74\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x7051[0];var express=require(_0x7051[1]);var controller=require(_0x7051[2]);var auth=require(_0x7051[3]);var router=express.Router();router[_0x7051[7]](_0x7051[4],auth[_0x7051[5]](),controller[_0x7051[6]]);router[_0x7051[7]](_0x7051[8],auth[_0x7051[5]](),controller[_0x7051[9]]);router[_0x7051[7]](_0x7051[10],auth[_0x7051[5]](),controller[_0x7051[11]]);router[_0x7051[7]](_0x7051[12],auth[_0x7051[5]](),controller[_0x7051[11]]);router[_0x7051[7]](_0x7051[13],auth[_0x7051[5]](),controller[_0x7051[14]]);router[_0x7051[17]](_0x7051[15],auth[_0x7051[5]](),controller[_0x7051[16]]);router[_0x7051[17]](_0x7051[13],auth[_0x7051[5]](),controller[_0x7051[18]]);router[_0x7051[17]](_0x7051[4],auth[_0x7051[5]](),controller[_0x7051[19]]);router[_0x7051[21]](_0x7051[12],auth[_0x7051[5]](),controller[_0x7051[20]]);router[_0x7051[21]](_0x7051[10],auth[_0x7051[5]](),controller[_0x7051[22]]);router[_0x7051[24]](_0x7051[4],auth[_0x7051[5]](),controller[_0x7051[23]]);router[_0x7051[24]](_0x7051[12],auth[_0x7051[5]](),controller[_0x7051[25]]);module[_0x7051[26]]=router;
\ No newline at end of file
+var _0x2691=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x72\x6F\x75\x74\x65\x2F\x3A\x72\x6F\x75\x74\x65","\x73\x68\x6F\x77\x42\x79\x52\x6F\x75\x74\x65","\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64","\x2F\x3A\x69\x64\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x72\x6F\x75\x74\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x73\x6F\x72\x74\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2691[0];var express=require(_0x2691[1]);var controller=require(_0x2691[2]);var auth=require(_0x2691[3]);var router=express.Router();router[_0x2691[7]](_0x2691[4],auth[_0x2691[5]](),controller[_0x2691[6]]);router[_0x2691[7]](_0x2691[8],auth[_0x2691[5]](),controller[_0x2691[9]]);router[_0x2691[7]](_0x2691[10],auth[_0x2691[5]](),controller[_0x2691[11]]);router[_0x2691[7]](_0x2691[12],auth[_0x2691[5]](),controller[_0x2691[11]]);router[_0x2691[7]](_0x2691[13],auth[_0x2691[5]](),controller[_0x2691[14]]);router[_0x2691[17]](_0x2691[15],auth[_0x2691[5]](),controller[_0x2691[16]]);router[_0x2691[17]](_0x2691[13],auth[_0x2691[5]](),controller[_0x2691[18]]);router[_0x2691[17]](_0x2691[4],auth[_0x2691[5]](),controller[_0x2691[19]]);router[_0x2691[21]](_0x2691[12],auth[_0x2691[5]](),controller[_0x2691[20]]);router[_0x2691[21]](_0x2691[10],auth[_0x2691[5]](),controller[_0x2691[22]]);router[_0x2691[24]](_0x2691[4],auth[_0x2691[5]](),controller[_0x2691[23]]);router[_0x2691[24]](_0x2691[12],auth[_0x2691[5]](),controller[_0x2691[25]]);module[_0x2691[26]]=router;
\ No newline at end of file
-var _0x6f17=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x53\x65\x74","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x44\x69\x61\x6C","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x4E\x6F\x4F\x70","\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x6E\x73\x77\x65\x72","","\x51\x75\x65\x75\x65","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x51\x75\x65\x75\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x50\x6C\x61\x79\x62\x61\x63\x6B","\x25\x73\x2C\x25\x73","\x50\x6C\x61\x79\x62\x61\x63\x6B\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x47\x49","\x61\x67\x69\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x41\x47\x49\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x47\x6F\x74\x6F","\x25\x73\x2C\x25\x73\x2C\x25\x64","\x47\x6F\x74\x6F\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x48\x61\x6E\x67\x75\x70","\x25\x73","\x48\x61\x6E\x67\x75\x70\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x25\x73\x3D\x25\x73","\x53\x65\x74\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x63\x75\x73\x74\x6F\x6D","\x43\x75\x73\x74\x6F\x6D\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x42\x79\x52\x6F\x75\x74\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x61\x70\x70","\x61\x70\x70\x64\x61\x74\x61","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x72\x6F\x75\x74\x65","\x70\x61\x72\x61\x6D\x73","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x69\x64","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x6F\x75\x74\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x74\x79\x70\x65","\x73\x6F\x72\x74\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x61\x70\x70\x47\x72\x6F\x75\x70","\x69\x73\x41\x70\x70","\x66\x69\x6E\x64","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x63\x75\x73\x74\x6F\x6D\x41\x70\x70","\x25\x73\x25\x73\x25\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x69\x73\x49\x6E\x74\x65\x72\x76\x61\x6C","\x66\x69\x6C\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x73\x70\x6C\x69\x63\x65","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65\x46\x72\x6F\x6D\x41\x72\x72\x61\x79","\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x75\x6E\x73\x68\x69\x66\x74","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x49\x64","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x68\x61\x6E\x64\x6C\x65\x45\x72\x72\x6F\x72","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x6D\x61\x78","\x63\x61\x6C\x6C\x65\x72\x49\x44","\x72\x65\x6D\x6F\x76\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x74\x72\x75\x6E\x6B","\x54\x72\x75\x6E\x6B\x49\x64","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x61\x70\x70\x5F\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x69\x6D\x65\x6F\x75\x74","\x75\x72\x6C","\x2C","\x72\x65\x70\x6C\x61\x63\x65","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x61\x75\x64\x69\x6F\x66\x69\x6C\x65","\x71\x75\x65\x75\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x61\x6C\x74\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x6C\x74\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x6C\x74\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x63\x61\x75\x73\x65\x63\x6F\x64\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\x6D\x61\x69\x6C\x62\x6F\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0x6f17[0];var _=require(_0x6f17[1]);var VoiceExtension=require(_0x6f17[3])[_0x6f17[2]];var Interval=require(_0x6f17[3])[_0x6f17[4]];var sequelize=require(_0x6f17[3])[_0x6f17[5]];var Sequelize=require(_0x6f17[3])[_0x6f17[6]];var util=require(_0x6f17[7]);var async=require(_0x6f17[8]);var Applications={Dial:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[11],appdata:_0x6f17[12]},{app:_0x6f17[13],appdata:_0x6f17[14],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[16]}],Queue:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[17],appdata:_0x6f17[18]},{app:_0x6f17[19],appdata:_0x6f17[20],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[21]}],Playback:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[22],appdata:_0x6f17[23],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[24]}],AGI:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[25],appdata:_0x6f17[26],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[27]}],Goto:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[28],appdata:_0x6f17[29],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[30]}],Hangup:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[31],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[33]}],Set:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[11],appdata:_0x6f17[34],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[35]}],custom:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}],Voicemail:[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[38],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[39]}]};exports[_0x6f17[40]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[45]]()[_0x6f17[44]](function(_0x23f7xc){return _0x23f7xa[_0x6f17[43]](200)[_0x6f17[42]](_0x23f7xc)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};exports[_0x6f17[46]]=function(_0x23f7x9,_0x23f7xa,_0x23f7xd){var _0x23f7xe=[_0x6f17[47],_0x6f17[48],_0x6f17[49],_0x6f17[50]];var _0x23f7xf=_0x23f7x9[_0x6f17[52]][_0x6f17[51]]?parseInt(_0x23f7x9[_0x6f17[52]][_0x6f17[51]],10):100;var _0x23f7x10=_0x23f7x9[_0x6f17[52]][_0x6f17[53]]?parseInt(_0x23f7x9[_0x6f17[52]][_0x6f17[53]],10):0;var _0x23f7x11={where:{type:_0x23f7x9[_0x6f17[55]][_0x6f17[54]],VoiceExtensionId:null,app:_0x6f17[15]},limit:_0x23f7xf,offset:_0x23f7x10*_0x23f7xf};_[_0x6f17[69]](_0x23f7x9[_0x6f17[52]],function(_0x23f7x12,_0x23f7x13){switch(_0x23f7x13){case _0x6f17[51]:;case _0x6f17[53]:break ;;case _0x6f17[58]:_0x23f7x11[_0x6f17[56]]=util[_0x6f17[61]](_0x6f17[57],_0x23f7x9[_0x6f17[52]][_0x6f17[58]],_0x23f7x9[_0x6f17[52]][_0x6f17[59]]||_0x6f17[60])||null;break ;;case _0x6f17[59]:break ;;case _0x6f17[67]:_0x23f7x11[_0x6f17[63]][_0x6f17[62]]=[];_0x23f7xe[_0x6f17[66]](function(_0x23f7x14){var _0x23f7x15={};_0x23f7x15[_0x23f7x14]={$like:_0x6f17[64]+_0x23f7x12+_0x6f17[64]};_0x23f7x11[_0x6f17[63]][_0x6f17[62]][_0x6f17[65]](_0x23f7x15);});break ;;default:_0x23f7x11[_0x6f17[63]][_0x23f7x13]={$like:{}};_0x23f7x11[_0x6f17[63]][_0x23f7x13][_0x6f17[68]]=_0x6f17[64]+_0x23f7x12+_0x6f17[64];;}});VoiceExtension[_0x6f17[80]](_0x23f7x11)[_0x6f17[44]](function(_0x23f7x16){var _0x23f7x17=Math[_0x6f17[72]](_0x23f7x16[_0x6f17[71]]/_0x23f7xf);var _0x23f7x18=_0x23f7x17>(_0x23f7x11[_0x6f17[73]]+1)?util[_0x6f17[61]](_0x6f17[74],_0x23f7x9[_0x6f17[75]],_0x23f7x9[_0x6f17[77]][_0x6f17[76]],_0x23f7x9[_0x6f17[78]],_0x23f7x10+1):null;var _0x23f7x19=_0x23f7x10>0?util[_0x6f17[61]](_0x6f17[74],_0x23f7x9[_0x6f17[75]],_0x23f7x9[_0x6f17[77]][_0x6f17[76]],_0x23f7x9[_0x6f17[78]],_0x23f7x10-1):null;_0x23f7xa[_0x6f17[43]](200)[_0x6f17[42]]({count:_0x23f7x16[_0x6f17[71]],rows:_0x23f7x16[_0x6f17[79]],next_page:_0x23f7x18,previous_page:_0x23f7x19,total_pages:_0x23f7x17});})[_0x6f17[41]](function(_0x23f7xb){_0x23f7xa[_0x6f17[43]](500)[_0x6f17[42]]({error:_0x6f17[70]})});};exports[_0x6f17[81]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[45]]({where:{VoiceExtensionId:_0x23f7x9[_0x6f17[55]][_0x6f17[82]],isApp:true}})[_0x6f17[44]](function(_0x23f7xc){return _0x23f7xa[_0x6f17[43]](200)[_0x6f17[42]](_0x23f7xc)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};exports[_0x6f17[83]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[85]](_0x23f7x9[_0x6f17[55]][_0x6f17[82]])[_0x6f17[44]](function(_0x23f7x1a){if(!_0x23f7x1a){return _0x23f7xa[_0x6f17[84]](404)};return _0x23f7xa[_0x6f17[42]](_0x23f7x1a);})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};exports[_0x6f17[86]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[45]]({where:{exten:_0x23f7x9[_0x6f17[87]][_0x6f17[48]],context:_0x23f7x9[_0x6f17[87]][_0x6f17[47]],type:_0x23f7x9[_0x6f17[87]][_0x6f17[88]]}})[_0x6f17[44]](function(_0x23f7x1a){if(!_0x23f7x1a){return _0x23f7xa[_0x6f17[84]](404)};return _0x23f7xa[_0x6f17[42]](_0x23f7x1a);})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};exports[_0x6f17[89]]=function(_0x23f7x9,_0x23f7xa,_0x23f7xd){VoiceExtension[_0x6f17[45]]({where:{appGroup:_0x23f7x9[_0x6f17[87]][_0x6f17[107]]}})[_0x6f17[44]](function(_0x23f7x1b){return sequelize[_0x6f17[109]](function(_0x23f7x1c){return VoiceExtension[_0x6f17[108]]({where:{appGroup:_0x23f7x9[_0x6f17[87]][_0x6f17[107]]}},{transaction:_0x23f7x1c})[_0x6f17[44]](function(){var _0x23f7x1d=2;_0x23f7x9[_0x6f17[87]][_0x6f17[107]][_0x6f17[66]](function(_0x23f7x1e){var _0x23f7x1f=_[_0x6f17[92]](_0x23f7x1b,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[90]]==_0x23f7x1e&&_0x23f7x20[_0x6f17[91]]===true)});var _0x23f7x21=_[_0x6f17[93]](Applications[_0x23f7x1f[_0x6f17[49]]]);if(!_0x23f7x21||_0x23f7x1f[_0x6f17[94]]){_0x23f7x21=[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}]};var _0x23f7x22=util[_0x6f17[61]](_0x6f17[95],_0x23f7x1f[_0x6f17[47]],_0x23f7x1f[_0x6f17[48]],_0x23f7x1d);_0x23f7x1f[_0x6f17[96]]=_0x23f7x1f[_0x6f17[96]]||_0x6f17[97];var _0x23f7x23=_[_0x6f17[99]](_0x23f7x1b,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[90]]==_0x23f7x1e&&_0x23f7x20[_0x6f17[98]]===true)});if(_0x23f7x23&&_0x23f7x23[_0x6f17[100]]>0){_0x23f7x21[_0x6f17[101]](0,1);_0x23f7x23[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x21[_0x6f17[105]]({app:_0x6f17[102],appdata:_0x23f7x20[_0x6f17[96]]+_0x6f17[103],IntervalId:_0x23f7x20[_0x6f17[104]]?_0x23f7x20[_0x6f17[104]]:null,isInterval:true,interval:_0x23f7x20[_0x6f17[96]]})});};_0x23f7x1d=appCreate(_0x23f7x21,_0x23f7x1f,_0x23f7x22,_0x23f7x23||[],_0x23f7x1d);return VoiceExtension[_0x6f17[106]](_0x23f7x21,{transaction:_0x23f7x1c});});})})[_0x6f17[44]](function(){return _0x23f7xa[_0x6f17[84]](201)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})})[_0x6f17[41]](function(_0x23f7xb){return _0x23f7xd(_0x23f7xb)})};exports[_0x6f17[110]]=function(_0x23f7x9,_0x23f7xa,_0x23f7xd){var _0x23f7x21;var _0x23f7x22;var _0x23f7x25;VoiceExtension[_0x6f17[117]](_0x6f17[112],{where:{VoiceExtensionId:_0x23f7x9[_0x6f17[87]][_0x6f17[111]]}})[_0x6f17[44]](function(_0x23f7x26){if(_0x23f7x9[_0x6f17[87]][_0x6f17[111]]){_0x23f7x9[_0x6f17[87]][_0x6f17[112]]=_0x23f7x26?++_0x23f7x26:2;_0x23f7x21=_[_0x6f17[93]](Applications[_0x23f7x9[_0x6f17[87]][_0x6f17[49]]]);if(!_0x23f7x21||_0x23f7x9[_0x6f17[87]][_0x6f17[94]]){_0x23f7x21=[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}]};_0x23f7x22=util[_0x6f17[61]](_0x6f17[95],_0x23f7x9[_0x6f17[87]][_0x6f17[47]],_0x23f7x9[_0x6f17[87]][_0x6f17[48]],_0x23f7x9[_0x6f17[87]][_0x6f17[112]]);_0x23f7x9[_0x6f17[87]][_0x6f17[96]]=_0x23f7x9[_0x6f17[87]][_0x6f17[96]]||_0x6f17[97];Interval[_0x6f17[45]]({where:{IntervalId:(_0x23f7x9[_0x6f17[87]][_0x6f17[104]]!==null)?_0x23f7x9[_0x6f17[87]][_0x6f17[104]]:0}})[_0x6f17[44]](function(_0x23f7x27){var _0x23f7x28=[];var _0x23f7x29;if(_0x23f7x27&&_0x23f7x27[_0x6f17[100]]>0){_0x23f7x21[_0x6f17[101]](0,1);_0x23f7x28=_[_0x6f17[114]](_0x23f7x27,_0x6f17[113]);_0x23f7x28[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x21[_0x6f17[105]]({app:_0x6f17[102],appdata:_0x23f7x20[_0x6f17[96]]+_0x6f17[103],IntervalId:_0x23f7x20[_0x6f17[82]],interval:_0x23f7x29,isInterval:true})});};appCreate(_0x23f7x21,_0x23f7x9[_0x6f17[87]],_0x23f7x22,_0x23f7x28);VoiceExtension[_0x6f17[106]](_0x23f7x21)[_0x6f17[44]](function(_0x23f7x2a){return _0x23f7xa[_0x6f17[43]](201)[_0x6f17[42]](_0x23f7x2a)});});}else {VoiceExtension[_0x6f17[45]]({where:{exten:_0x23f7x9[_0x6f17[87]][_0x6f17[48]],context:_0x23f7x9[_0x6f17[87]][_0x6f17[47]],type:_0x23f7x9[_0x6f17[87]][_0x6f17[88]]}})[_0x6f17[44]](function(_0x23f7x2b){if(!_0x23f7x2b){return _0x23f7xa[_0x6f17[84]](404)};if(_0x23f7x2b[_0x6f17[100]]>0){return _0x23f7xa[_0x6f17[43]](500)[_0x6f17[42]]({message:_0x6f17[116]})};_0x23f7x9[_0x6f17[87]][_0x6f17[112]]=1;VoiceExtension[_0x6f17[110]](_0x23f7x9[_0x6f17[87]])[_0x6f17[44]](function(_0x23f7x2a){return _0x23f7xa[_0x6f17[43]](201)[_0x6f17[42]](_0x23f7x2a)})[_0x6f17[41]](function(_0x23f7xb){return _0x23f7xa[_0x6f17[115]](_0x23f7xb)});})[_0x6f17[41]](function(_0x23f7xb){return _0x23f7xa[_0x6f17[115]](_0x23f7xb)})}})[_0x6f17[41]](function(_0x23f7xb){_0x23f7xd(_0x23f7xb)});};function appCreate(_0x23f7x21,_0x23f7x2d,_0x23f7x22,_0x23f7x28,_0x23f7x1d){var _0x23f7x2e=_0x23f7x28[_0x6f17[100]];if(_0x23f7x2d[_0x6f17[94]]){_0x23f7x2d[_0x6f17[49]]=_0x6f17[36]};switch(_0x23f7x2d[_0x6f17[49]]){case _0x6f17[13]:if(!_0x23f7x2d[_0x6f17[118]]){_[_0x6f17[119]](_0x23f7x21,{app:_0x6f17[11]})};_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[13]:if(_0x23f7x2d[_0x6f17[88]]===_0x6f17[120]){_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[121]]=_0x23f7x2d[_0x6f17[121]];_0x23f7x20[_0x6f17[122]]=_0x23f7x2d[_0x6f17[122]];_0x23f7x20[_0x6f17[123]]=_0x23f7x2d[_0x6f17[123]]||0;_0x23f7x20[_0x6f17[118]]=_0x23f7x2d[_0x6f17[118]]||null;}else {_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[124]]=_0x23f7x2d[_0x6f17[124]];_0x23f7x20[_0x6f17[125]]=_0x23f7x2d[_0x6f17[125]]||_0x6f17[18];_0x23f7x20[_0x6f17[126]]=_0x23f7x2d[_0x6f17[126]]||_0x6f17[18];_0x23f7x20[_0x6f17[127]]=_0x23f7x2d[_0x6f17[127]]||_0x6f17[18];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[124]],_0x23f7x20[_0x6f17[126]],_0x23f7x20[_0x6f17[125]]?_0x23f7x20[_0x6f17[125]][_0x6f17[129]](_0x6f17[128],_0x6f17[18]):_0x6f17[18],_0x23f7x20[_0x6f17[127]]);};break ;;case _0x6f17[11]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[118]]);break ;;case _0x6f17[15]:if(_0x23f7x2d[_0x6f17[88]]===_0x6f17[120]){_0x23f7x20[_0x6f17[50]]=_0x6f17[130]};break ;;default:;};});break ;;case _0x6f17[19]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[19]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[125]]=_0x23f7x2d[_0x6f17[125]]||_0x6f17[18];_0x23f7x20[_0x6f17[131]]=_0x23f7x2d[_0x6f17[131]]||_0x6f17[18];_0x23f7x20[_0x6f17[132]]=_0x23f7x2d[_0x6f17[132]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[124]]=_0x23f7x2d[_0x6f17[124]];_0x23f7x20[_0x6f17[125]]=_0x23f7x2d[_0x6f17[125]];_0x23f7x20[_0x6f17[126]]=_0x23f7x2d[_0x6f17[126]]||_0x6f17[18];_0x23f7x20[_0x6f17[127]]=_0x23f7x2d[_0x6f17[127]]||_0x6f17[18];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[132]],_0x23f7x20[_0x6f17[125]]?_0x23f7x20[_0x6f17[125]][_0x6f17[129]](_0x6f17[128],_0x6f17[18]):_0x6f17[18],_0x23f7x20[_0x6f17[127]],_0x23f7x20[_0x6f17[131]],_0x23f7x20[_0x6f17[126]]);break ;;default:;};});break ;;case _0x6f17[22]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[22]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[131]]=_0x23f7x2d[_0x6f17[131]]||_0x6f17[18];_0x23f7x20[_0x6f17[125]]=_0x23f7x2d[_0x6f17[125]]||_0x6f17[18];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[131]],_0x23f7x20[_0x6f17[125]]?_0x23f7x20[_0x6f17[125]][_0x6f17[129]](_0x6f17[128],_0x6f17[18]):_0x6f17[18]);break ;;default:;};});break ;;case _0x6f17[25]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[25]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[133]]=_0x23f7x2d[_0x6f17[133]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[133]]);break ;;default:;};});break ;;case _0x6f17[28]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[28]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[134]]=_0x23f7x2d[_0x6f17[134]];_0x23f7x20[_0x6f17[135]]=_0x23f7x2d[_0x6f17[135]];_0x23f7x20[_0x6f17[136]]=_0x23f7x2d[_0x6f17[136]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[136]],_0x23f7x20[_0x6f17[135]],_0x23f7x20[_0x6f17[134]]);break ;;default:;};});break ;;case _0x6f17[31]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[31]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[137]]=_0x23f7x2d[_0x6f17[137]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[137]]);break ;;default:;};});break ;;case _0x6f17[11]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[11]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[138]]=_0x23f7x2d[_0x6f17[138]];_0x23f7x20[_0x6f17[139]]=_0x23f7x2d[_0x6f17[139]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[138]],_0x23f7x20[_0x6f17[139]]);break ;;default:;};});break ;;case _0x6f17[36]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[36]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[49]]=_0x23f7x20[_0x6f17[94]]=_0x23f7x2d[_0x6f17[94]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[50]]);break ;;default:;};});break ;;case _0x6f17[38]:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[38]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[140]]=_0x23f7x2d[_0x6f17[140]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[140]]);break ;;default:;};});break ;;default:_0x23f7x21[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x20[_0x6f17[48]]=_0x23f7x2d[_0x6f17[48]];_0x23f7x20[_0x6f17[88]]=_0x23f7x2d[_0x6f17[88]];_0x23f7x20[_0x6f17[47]]=_0x23f7x2d[_0x6f17[47]];_0x23f7x20[_0x6f17[111]]=_0x23f7x2d[_0x6f17[111]];_0x23f7x20[_0x6f17[112]]=_0x23f7x1d?_0x23f7x1d++:_0x23f7x2d[_0x6f17[112]]++;_0x23f7x20[_0x6f17[90]]=_0x23f7x22;switch(_0x23f7x20[_0x6f17[49]]){case _0x6f17[9]:_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[104]]?_0x6f17[97]:_0x23f7x2d[_0x6f17[96]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+1,_0x23f7x20[_0x6f17[47]],(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[102]:_0x23f7x20[_0x6f17[49]]=_0x6f17[9];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x20[_0x6f17[47]],_0x23f7x20[_0x6f17[112]]+_0x23f7x2e-_0x23f7x24,_0x23f7x20[_0x6f17[47]],(_0x23f7x24+1)<_0x23f7x2e?(_0x23f7x20[_0x6f17[112]]+1):(_0x23f7x20[_0x6f17[112]]+2));break ;;case _0x6f17[36]:_0x23f7x20[_0x6f17[104]]=_0x23f7x2d[_0x6f17[104]];_0x23f7x20[_0x6f17[96]]=_0x23f7x2d[_0x6f17[96]];_0x23f7x20[_0x6f17[49]]=_0x23f7x20[_0x6f17[94]]=_0x23f7x2d[_0x6f17[94]];_0x23f7x20[_0x6f17[50]]=util[_0x6f17[61]](_0x23f7x20[_0x6f17[50]],_0x23f7x2d[_0x6f17[50]]);break ;;default:;};});;};if(_0x23f7x1d){return _0x23f7x1d};}exports[_0x6f17[141]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[45]]({where:{exten:_0x23f7x9[_0x6f17[87]][_0x6f17[48]],context:_0x23f7x9[_0x6f17[87]][_0x6f17[47]],type:_0x23f7x9[_0x6f17[87]][_0x6f17[88]],VoiceExtensionId:null,id:{$ne:_0x23f7x9[_0x6f17[87]][_0x6f17[82]]}}})[_0x6f17[44]](function(_0x23f7x2b){if(!_0x23f7x2b){return _0x23f7xa[_0x6f17[84]](404)};if(_0x23f7x2b[_0x6f17[100]]>0){return _0x23f7xa[_0x6f17[43]](500)[_0x6f17[42]]({message:_0x6f17[116]})};if(_0x23f7x9[_0x6f17[87]][_0x6f17[82]]){delete _0x23f7x9[_0x6f17[87]][_0x6f17[82]]};VoiceExtension[_0x6f17[92]]({where:{id:_0x23f7x9[_0x6f17[55]][_0x6f17[82]]}})[_0x6f17[44]](function(_0x23f7x1a){if(!_0x23f7x1a){return _0x23f7xa[_0x6f17[84]](404)};var _0x23f7x2f=_[_0x6f17[142]](_0x23f7x1a,_0x23f7x9[_0x6f17[87]]);return sequelize[_0x6f17[109]](function(_0x23f7x1c){return _0x23f7x2f[_0x6f17[143]]({transaction:_0x23f7x1c})[_0x6f17[44]](function(_0x23f7x30){VoiceExtension[_0x6f17[45]]({where:{VoiceExtensionId:_0x23f7x30[_0x6f17[82]],isApp:true}})[_0x6f17[44]](function(_0x23f7x2a){return VoiceExtension[_0x6f17[108]]({where:{VoiceExtensionId:_0x23f7x30[_0x6f17[82]]}},{transaction:_0x23f7x1c})[_0x6f17[44]](function(){_0x23f7x2a=_[_0x6f17[114]](_0x23f7x2a,_0x6f17[113]);var _0x23f7x31=_[_0x6f17[99]](_[_0x6f17[114]](_0x23f7x2a,_0x6f17[104]),function(_0x23f7x20){return _0x23f7x20!==null});Interval[_0x6f17[45]]({where:{IntervalId:_0x23f7x31}})[_0x6f17[44]](function(_0x23f7x28){var _0x23f7x1d=2;var _0x23f7x25;_0x23f7x2a[_0x6f17[66]](function(_0x23f7x1f){var _0x23f7x21=_[_0x6f17[93]](Applications[_0x23f7x1f[_0x6f17[49]]]);if(!_0x23f7x21||_0x23f7x1f[_0x6f17[94]]){_0x23f7x21=[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}]};_0x23f7x1f[_0x6f17[47]]=_0x23f7x30[_0x6f17[47]];_0x23f7x1f[_0x6f17[48]]=_0x23f7x30[_0x6f17[48]];var _0x23f7x22=util[_0x6f17[61]](_0x6f17[95],_0x23f7x1f[_0x6f17[47]],_0x23f7x1f[_0x6f17[48]],_0x23f7x1d);_0x23f7x1f[_0x6f17[96]]=_0x23f7x1f[_0x6f17[96]]||_0x6f17[97];var _0x23f7x23=_[_0x6f17[99]](_0x23f7x28,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[104]]==_0x23f7x1f[_0x6f17[104]])});if(_0x23f7x23&&_0x23f7x23[_0x6f17[100]]>0){_0x23f7x21[_0x6f17[101]](0,1);_0x23f7x23[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x21[_0x6f17[105]]({app:_0x6f17[102],appdata:_0x23f7x20[_0x6f17[96]]+_0x6f17[103],IntervalId:_0x23f7x20[_0x6f17[82]],isInterval:true,interval:_0x23f7x20[_0x6f17[96]]})});};_0x23f7x1d=appCreate(_0x23f7x21,_0x23f7x1f,_0x23f7x22,_0x23f7x23||[],_0x23f7x1d);VoiceExtension[_0x6f17[106]](_0x23f7x21);});return _0x23f7xa[_0x6f17[84]](200);});})})})})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)});})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)});})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};exports[_0x6f17[144]]=function(_0x23f7x9,_0x23f7xa,_0x23f7xd){var _0x23f7x25;if(_0x23f7x9[_0x6f17[87]][_0x6f17[50]]){delete _0x23f7x9[_0x6f17[87]][_0x6f17[50]]};VoiceExtension[_0x6f17[85]](_0x23f7x9[_0x6f17[87]][_0x6f17[82]])[_0x6f17[44]](function(_0x23f7x32){if(!_0x23f7x32){return _0x23f7xa[_0x6f17[84]](404)};delete _0x23f7x9[_0x6f17[87]][_0x6f17[82]];var _0x23f7x2f=_[_0x6f17[142]](_0x23f7x32,_0x23f7x9[_0x6f17[87]]);return sequelize[_0x6f17[109]](function(_0x23f7x1c){return _0x23f7x2f[_0x6f17[143]]({transaction:_0x23f7x1c})[_0x6f17[44]](function(){VoiceExtension[_0x6f17[45]]({where:{VoiceExtensionId:_0x23f7x9[_0x6f17[87]][_0x6f17[111]],isApp:true}})[_0x6f17[44]](function(_0x23f7x2a){return VoiceExtension[_0x6f17[108]]({where:{VoiceExtensionId:_0x23f7x9[_0x6f17[87]][_0x6f17[111]]}},{transaction:_0x23f7x1c})[_0x6f17[44]](function(){_0x23f7x2a=_[_0x6f17[114]](_0x23f7x2a,_0x6f17[113]);var _0x23f7x31=_[_0x6f17[99]](_[_0x6f17[114]](_0x23f7x2a,_0x6f17[104]),function(_0x23f7x20){return _0x23f7x20!==null});return Interval[_0x6f17[45]]({where:{IntervalId:_0x23f7x31}})[_0x6f17[44]](function(_0x23f7x28){var _0x23f7x1d=2;var _0x23f7x25;_0x23f7x2a[_0x6f17[66]](function(_0x23f7x1f){var _0x23f7x21=_[_0x6f17[93]](Applications[_0x23f7x1f[_0x6f17[49]]]);if(!_0x23f7x21||_0x23f7x1f[_0x6f17[94]]){_0x23f7x21=[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}]};var _0x23f7x22=util[_0x6f17[61]](_0x6f17[95],_0x23f7x1f[_0x6f17[47]],_0x23f7x1f[_0x6f17[48]],_0x23f7x1d);_0x23f7x1f[_0x6f17[96]]=_0x23f7x1f[_0x6f17[96]]||_0x6f17[97];var _0x23f7x23=_[_0x6f17[99]](_0x23f7x28,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[104]]==_0x23f7x1f[_0x6f17[104]])});if(_0x23f7x23&&_0x23f7x23[_0x6f17[100]]>0){_0x23f7x21[_0x6f17[101]](0,1);_0x23f7x23[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x21[_0x6f17[105]]({app:_0x6f17[102],appdata:_0x23f7x20[_0x6f17[96]]+_0x6f17[103],IntervalId:_0x23f7x20[_0x6f17[82]],isInterval:true,interval:_0x23f7x20[_0x6f17[96]]})});};_0x23f7x1d=appCreate(_0x23f7x21,_0x23f7x1f,_0x23f7x22,_0x23f7x23||[],_0x23f7x1d);VoiceExtension[_0x6f17[106]](_0x23f7x21);});});})})})})[_0x6f17[44]](function(_0x23f7x16){return _0x23f7xa[_0x6f17[43]](201)[_0x6f17[42]](_0x23f7x16)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)});})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)});};exports[_0x6f17[108]]=function(_0x23f7x9,_0x23f7xa,_0x23f7xd){VoiceExtension[_0x6f17[85]](_0x23f7x9[_0x6f17[55]][_0x6f17[82]])[_0x6f17[44]](function(_0x23f7x1a){if(!_0x23f7x1a){return _0x23f7xa[_0x6f17[84]](404)};if(!_0x23f7x1a[_0x6f17[111]]){_0x23f7x1a[_0x6f17[108]]()[_0x6f17[44]](function(){return _0x23f7xa[_0x6f17[84]](204)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})}else {VoiceExtension[_0x6f17[45]]({where:{appGroup:_0x23f7x1a[_0x6f17[90]]}})[_0x6f17[44]](function(_0x23f7xc){if(!_0x23f7xc){return _0x23f7xa[_0x6f17[84]](404)};return sequelize[_0x6f17[109]](function(_0x23f7x1c){return VoiceExtension[_0x6f17[108]]({where:{appGroup:_0x23f7x1a[_0x6f17[90]]}},{transaction:_0x23f7x1c})[_0x6f17[44]](function(_0x23f7x33){return VoiceExtension[_0x6f17[45]]({where:{VoiceExtensionId:_0x23f7x1a[_0x6f17[111]],priority:{$gt:_0x23f7xc[_0x23f7x33-1][_0x6f17[112]]}}})[_0x6f17[44]](function(_0x23f7x1b){return VoiceExtension[_0x6f17[108]]({where:{VoiceExtensionId:_0x23f7x1a[_0x6f17[111]],priority:{$gt:_0x23f7xc[_0x23f7x33-1][_0x6f17[112]]}}},{transaction:_0x23f7x1c})[_0x6f17[44]](function(){var _0x23f7x34=_[_0x6f17[114]](_[_0x6f17[99]](_[_0x6f17[114]](_0x23f7x1b,_0x6f17[113]),function(_0x23f7x20){return _0x23f7x20[_0x6f17[91]]===true}),_0x6f17[90]);var _0x23f7x1d=_0x23f7xc[0][_0x6f17[112]];_0x23f7x34[_0x6f17[66]](function(_0x23f7x1e){var _0x23f7x1f=_[_0x6f17[92]](_0x23f7x1b,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[90]]==_0x23f7x1e&&_0x23f7x20[_0x6f17[91]]===true)});var _0x23f7x21=_[_0x6f17[93]](Applications[_0x23f7x1f[_0x6f17[49]]]);if(!_0x23f7x21||_0x23f7x1f[_0x6f17[94]]){_0x23f7x21=[{app:_0x6f17[9],appdata:_0x6f17[10]},{app:_0x6f17[36],appdata:_0x6f17[32],isApp:true},{app:_0x6f17[15],appdata:_0x6f17[37]}]};var _0x23f7x22=util[_0x6f17[61]](_0x6f17[95],_0x23f7x1f[_0x6f17[47]],_0x23f7x1f[_0x6f17[48]],_0x23f7x1d);_0x23f7x1f[_0x6f17[96]]=_0x23f7x1f[_0x6f17[96]]||_0x6f17[97];var _0x23f7x23=_[_0x6f17[99]](_0x23f7x1b,function(_0x23f7x20){return (_0x23f7x20[_0x6f17[90]]==_0x23f7x1e&&_0x23f7x20[_0x6f17[98]]===true)});if(_0x23f7x23&&_0x23f7x23[_0x6f17[100]]>0){_0x23f7x21[_0x6f17[101]](0,1);_0x23f7x23[_0x6f17[66]](function(_0x23f7x20,_0x23f7x24){_0x23f7x21[_0x6f17[105]]({app:_0x6f17[102],appdata:_0x23f7x20[_0x6f17[96]]+_0x6f17[103],IntervalId:_0x23f7x20[_0x6f17[104]]?_0x23f7x20[_0x6f17[104]]:null,isInterval:true,interval:_0x23f7x20[_0x6f17[96]]})});};_0x23f7x1d=appCreate(_0x23f7x21,_0x23f7x1f,_0x23f7x22,_0x23f7x23||[],_0x23f7x1d);VoiceExtension[_0x6f17[106]](_0x23f7x21);});})})})})[_0x6f17[44]](function(_0x23f7x16){_0x23f7xa[_0x6f17[84]](201)})[_0x6f17[41]](function(_0x23f7xb){return _0x23f7xd(_0x23f7xb)});})};})[_0x6f17[41]](function(_0x23f7xb){return _0x23f7xd(_0x23f7xb)})};exports[_0x6f17[145]]=function(_0x23f7x9,_0x23f7xa){VoiceExtension[_0x6f17[108]]({where:{id:_0x23f7x9[_0x6f17[52]][_0x6f17[82]]},individualHooks:true})[_0x6f17[44]](function(){return _0x23f7xa[_0x6f17[84]](204)})[_0x6f17[41]](function(_0x23f7xb){return handleError(_0x23f7xa,_0x23f7xb)})};function handleError(_0x23f7xa,_0x23f7xb){return _0x23f7xa[_0x6f17[43]](500)[_0x6f17[42]](_0x23f7xb)}
\ No newline at end of file
+var _0xd552=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x53\x65\x74","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x44\x69\x61\x6C","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x4E\x6F\x4F\x70","\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x6E\x73\x77\x65\x72","","\x51\x75\x65\x75\x65","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x51\x75\x65\x75\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x50\x6C\x61\x79\x62\x61\x63\x6B","\x25\x73\x2C\x25\x73","\x50\x6C\x61\x79\x62\x61\x63\x6B\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x47\x49","\x61\x67\x69\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x41\x47\x49\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x47\x6F\x74\x6F","\x25\x73\x2C\x25\x73\x2C\x25\x64","\x47\x6F\x74\x6F\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x48\x61\x6E\x67\x75\x70","\x25\x73","\x48\x61\x6E\x67\x75\x70\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x25\x73\x3D\x25\x73","\x53\x65\x74\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x63\x75\x73\x74\x6F\x6D","\x43\x75\x73\x74\x6F\x6D\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x42\x79\x52\x6F\x75\x74\x65","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x61\x70\x70","\x61\x70\x70\x64\x61\x74\x61","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x72\x6F\x75\x74\x65","\x70\x61\x72\x61\x6D\x73","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x69\x64","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x6F\x75\x74\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x74\x79\x70\x65","\x73\x6F\x72\x74\x41\x70\x70\x73\x42\x79\x52\x6F\x75\x74\x65","\x61\x70\x70\x47\x72\x6F\x75\x70","\x69\x73\x41\x70\x70","\x66\x69\x6E\x64","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x63\x75\x73\x74\x6F\x6D\x41\x70\x70","\x25\x73\x25\x73\x25\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x69\x73\x49\x6E\x74\x65\x72\x76\x61\x6C","\x66\x69\x6C\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x73\x70\x6C\x69\x63\x65","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65\x46\x72\x6F\x6D\x41\x72\x72\x61\x79","\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x75\x6E\x73\x68\x69\x66\x74","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x49\x64","\x70\x72\x69\x6F\x72\x69\x74\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x68\x61\x6E\x64\x6C\x65\x45\x72\x72\x6F\x72","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x52\x4F\x55\x54\x45","\x6D\x61\x78","\x63\x61\x6C\x6C\x65\x72\x49\x44","\x72\x65\x6D\x6F\x76\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x74\x72\x75\x6E\x6B","\x54\x72\x75\x6E\x6B\x49\x64","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x61\x70\x70\x5F\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x69\x6D\x65\x6F\x75\x74","\x75\x72\x6C","\x2C","\x72\x65\x70\x6C\x61\x63\x65","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x61\x75\x64\x69\x6F\x66\x69\x6C\x65","\x71\x75\x65\x75\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x61\x6C\x74\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x6C\x74\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x6C\x74\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x63\x61\x75\x73\x65\x63\x6F\x64\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\x6D\x61\x69\x6C\x62\x6F\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xd552[0];var _=require(_0xd552[1]);var VoiceExtension=require(_0xd552[3])[_0xd552[2]];var Interval=require(_0xd552[3])[_0xd552[4]];var sequelize=require(_0xd552[3])[_0xd552[5]];var Sequelize=require(_0xd552[3])[_0xd552[6]];var util=require(_0xd552[7]);var async=require(_0xd552[8]);var Applications={Dial:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[11],appdata:_0xd552[12]},{app:_0xd552[13],appdata:_0xd552[14],isApp:true},{app:_0xd552[15],appdata:_0xd552[16]}],Queue:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[17],appdata:_0xd552[18]},{app:_0xd552[19],appdata:_0xd552[20],isApp:true},{app:_0xd552[15],appdata:_0xd552[21]}],Playback:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[22],appdata:_0xd552[23],isApp:true},{app:_0xd552[15],appdata:_0xd552[24]}],AGI:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[25],appdata:_0xd552[26],isApp:true},{app:_0xd552[15],appdata:_0xd552[27]}],Goto:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[28],appdata:_0xd552[29],isApp:true},{app:_0xd552[15],appdata:_0xd552[30]}],Hangup:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[31],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[33]}],Set:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[11],appdata:_0xd552[34],isApp:true},{app:_0xd552[15],appdata:_0xd552[35]}],custom:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}],Voicemail:[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[38],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[39]}]};exports[_0xd552[40]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[45]]()[_0xd552[44]](function(_0xfb1exc){return _0xfb1exa[_0xd552[43]](200)[_0xd552[42]](_0xfb1exc)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};exports[_0xd552[46]]=function(_0xfb1ex9,_0xfb1exa,_0xfb1exd){var _0xfb1exe=[_0xd552[47],_0xd552[48],_0xd552[49],_0xd552[50]];var _0xfb1exf=_0xfb1ex9[_0xd552[52]][_0xd552[51]]?parseInt(_0xfb1ex9[_0xd552[52]][_0xd552[51]],10):100;var _0xfb1ex10=_0xfb1ex9[_0xd552[52]][_0xd552[53]]?parseInt(_0xfb1ex9[_0xd552[52]][_0xd552[53]],10):0;var _0xfb1ex11={where:{type:_0xfb1ex9[_0xd552[55]][_0xd552[54]],VoiceExtensionId:null,app:_0xd552[15]},limit:_0xfb1exf,offset:_0xfb1ex10*_0xfb1exf};_[_0xd552[69]](_0xfb1ex9[_0xd552[52]],function(_0xfb1ex12,_0xfb1ex13){switch(_0xfb1ex13){case _0xd552[51]:;case _0xd552[53]:break ;;case _0xd552[58]:_0xfb1ex11[_0xd552[56]]=util[_0xd552[61]](_0xd552[57],_0xfb1ex9[_0xd552[52]][_0xd552[58]],_0xfb1ex9[_0xd552[52]][_0xd552[59]]||_0xd552[60])||null;break ;;case _0xd552[59]:break ;;case _0xd552[67]:_0xfb1ex11[_0xd552[63]][_0xd552[62]]=[];_0xfb1exe[_0xd552[66]](function(_0xfb1ex14){var _0xfb1ex15={};_0xfb1ex15[_0xfb1ex14]={$like:_0xd552[64]+_0xfb1ex12+_0xd552[64]};_0xfb1ex11[_0xd552[63]][_0xd552[62]][_0xd552[65]](_0xfb1ex15);});break ;;default:_0xfb1ex11[_0xd552[63]][_0xfb1ex13]={$like:{}};_0xfb1ex11[_0xd552[63]][_0xfb1ex13][_0xd552[68]]=_0xd552[64]+_0xfb1ex12+_0xd552[64];;}});VoiceExtension[_0xd552[80]](_0xfb1ex11)[_0xd552[44]](function(_0xfb1ex16){var _0xfb1ex17=Math[_0xd552[72]](_0xfb1ex16[_0xd552[71]]/_0xfb1exf);var _0xfb1ex18=_0xfb1ex17>(_0xfb1ex11[_0xd552[73]]+1)?util[_0xd552[61]](_0xd552[74],_0xfb1ex9[_0xd552[75]],_0xfb1ex9[_0xd552[77]][_0xd552[76]],_0xfb1ex9[_0xd552[78]],_0xfb1ex10+1):null;var _0xfb1ex19=_0xfb1ex10>0?util[_0xd552[61]](_0xd552[74],_0xfb1ex9[_0xd552[75]],_0xfb1ex9[_0xd552[77]][_0xd552[76]],_0xfb1ex9[_0xd552[78]],_0xfb1ex10-1):null;_0xfb1exa[_0xd552[43]](200)[_0xd552[42]]({count:_0xfb1ex16[_0xd552[71]],rows:_0xfb1ex16[_0xd552[79]],next_page:_0xfb1ex18,previous_page:_0xfb1ex19,total_pages:_0xfb1ex17});})[_0xd552[41]](function(_0xfb1exb){_0xfb1exa[_0xd552[43]](500)[_0xd552[42]]({error:_0xd552[70]})});};exports[_0xd552[81]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[45]]({where:{VoiceExtensionId:_0xfb1ex9[_0xd552[55]][_0xd552[82]],isApp:true}})[_0xd552[44]](function(_0xfb1exc){return _0xfb1exa[_0xd552[43]](200)[_0xd552[42]](_0xfb1exc)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};exports[_0xd552[83]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[85]](_0xfb1ex9[_0xd552[55]][_0xd552[82]])[_0xd552[44]](function(_0xfb1ex1a){if(!_0xfb1ex1a){return _0xfb1exa[_0xd552[84]](404)};return _0xfb1exa[_0xd552[42]](_0xfb1ex1a);})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};exports[_0xd552[86]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[45]]({where:{exten:_0xfb1ex9[_0xd552[87]][_0xd552[48]],context:_0xfb1ex9[_0xd552[87]][_0xd552[47]],type:_0xfb1ex9[_0xd552[87]][_0xd552[88]]}})[_0xd552[44]](function(_0xfb1ex1a){if(!_0xfb1ex1a){return _0xfb1exa[_0xd552[84]](404)};return _0xfb1exa[_0xd552[42]](_0xfb1ex1a);})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};exports[_0xd552[89]]=function(_0xfb1ex9,_0xfb1exa,_0xfb1exd){VoiceExtension[_0xd552[45]]({where:{appGroup:_0xfb1ex9[_0xd552[87]][_0xd552[107]]}})[_0xd552[44]](function(_0xfb1ex1b){return sequelize[_0xd552[109]](function(_0xfb1ex1c){return VoiceExtension[_0xd552[108]]({where:{appGroup:_0xfb1ex9[_0xd552[87]][_0xd552[107]]}},{transaction:_0xfb1ex1c})[_0xd552[44]](function(){var _0xfb1ex1d=2;_0xfb1ex9[_0xd552[87]][_0xd552[107]][_0xd552[66]](function(_0xfb1ex1e){var _0xfb1ex1f=_[_0xd552[92]](_0xfb1ex1b,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[90]]==_0xfb1ex1e&&_0xfb1ex20[_0xd552[91]]===true)});var _0xfb1ex21=_[_0xd552[93]](Applications[_0xfb1ex1f[_0xd552[49]]]);if(!_0xfb1ex21||_0xfb1ex1f[_0xd552[94]]){_0xfb1ex21=[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}]};var _0xfb1ex22=util[_0xd552[61]](_0xd552[95],_0xfb1ex1f[_0xd552[47]],_0xfb1ex1f[_0xd552[48]],_0xfb1ex1d);_0xfb1ex1f[_0xd552[96]]=_0xfb1ex1f[_0xd552[96]]||_0xd552[97];var _0xfb1ex23=_[_0xd552[99]](_0xfb1ex1b,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[90]]==_0xfb1ex1e&&_0xfb1ex20[_0xd552[98]]===true)});if(_0xfb1ex23&&_0xfb1ex23[_0xd552[100]]>0){_0xfb1ex21[_0xd552[101]](0,1);_0xfb1ex23[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex21[_0xd552[105]]({app:_0xd552[102],appdata:_0xfb1ex20[_0xd552[96]]+_0xd552[103],IntervalId:_0xfb1ex20[_0xd552[104]]?_0xfb1ex20[_0xd552[104]]:null,isInterval:true,interval:_0xfb1ex20[_0xd552[96]]})});};_0xfb1ex1d=appCreate(_0xfb1ex21,_0xfb1ex1f,_0xfb1ex22,_0xfb1ex23||[],_0xfb1ex1d);return VoiceExtension[_0xd552[106]](_0xfb1ex21,{transaction:_0xfb1ex1c});});})})[_0xd552[44]](function(){return _0xfb1exa[_0xd552[84]](201)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})})[_0xd552[41]](function(_0xfb1exb){return _0xfb1exd(_0xfb1exb)})};exports[_0xd552[110]]=function(_0xfb1ex9,_0xfb1exa,_0xfb1exd){var _0xfb1ex21;var _0xfb1ex22;var _0xfb1ex25;VoiceExtension[_0xd552[117]](_0xd552[112],{where:{VoiceExtensionId:_0xfb1ex9[_0xd552[87]][_0xd552[111]]}})[_0xd552[44]](function(_0xfb1ex26){if(_0xfb1ex9[_0xd552[87]][_0xd552[111]]){_0xfb1ex9[_0xd552[87]][_0xd552[112]]=_0xfb1ex26?++_0xfb1ex26:2;_0xfb1ex21=_[_0xd552[93]](Applications[_0xfb1ex9[_0xd552[87]][_0xd552[49]]]);if(!_0xfb1ex21||_0xfb1ex9[_0xd552[87]][_0xd552[94]]){_0xfb1ex21=[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}]};_0xfb1ex22=util[_0xd552[61]](_0xd552[95],_0xfb1ex9[_0xd552[87]][_0xd552[47]],_0xfb1ex9[_0xd552[87]][_0xd552[48]],_0xfb1ex9[_0xd552[87]][_0xd552[112]]);_0xfb1ex9[_0xd552[87]][_0xd552[96]]=_0xfb1ex9[_0xd552[87]][_0xd552[96]]||_0xd552[97];Interval[_0xd552[45]]({where:{IntervalId:(_0xfb1ex9[_0xd552[87]][_0xd552[104]]!==null)?_0xfb1ex9[_0xd552[87]][_0xd552[104]]:0}})[_0xd552[44]](function(_0xfb1ex27){var _0xfb1ex28=[];var _0xfb1ex29;if(_0xfb1ex27&&_0xfb1ex27[_0xd552[100]]>0){_0xfb1ex21[_0xd552[101]](0,1);_0xfb1ex28=_[_0xd552[114]](_0xfb1ex27,_0xd552[113]);_0xfb1ex28[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex21[_0xd552[105]]({app:_0xd552[102],appdata:_0xfb1ex20[_0xd552[96]]+_0xd552[103],IntervalId:_0xfb1ex20[_0xd552[82]],interval:_0xfb1ex29,isInterval:true})});};appCreate(_0xfb1ex21,_0xfb1ex9[_0xd552[87]],_0xfb1ex22,_0xfb1ex28);VoiceExtension[_0xd552[106]](_0xfb1ex21)[_0xd552[44]](function(_0xfb1ex2a){return _0xfb1exa[_0xd552[43]](201)[_0xd552[42]](_0xfb1ex2a)});});}else {VoiceExtension[_0xd552[45]]({where:{exten:_0xfb1ex9[_0xd552[87]][_0xd552[48]],context:_0xfb1ex9[_0xd552[87]][_0xd552[47]],type:_0xfb1ex9[_0xd552[87]][_0xd552[88]]}})[_0xd552[44]](function(_0xfb1ex2b){if(!_0xfb1ex2b){return _0xfb1exa[_0xd552[84]](404)};if(_0xfb1ex2b[_0xd552[100]]>0){return _0xfb1exa[_0xd552[43]](500)[_0xd552[42]]({message:_0xd552[116]})};_0xfb1ex9[_0xd552[87]][_0xd552[112]]=1;VoiceExtension[_0xd552[110]](_0xfb1ex9[_0xd552[87]])[_0xd552[44]](function(_0xfb1ex2a){return _0xfb1exa[_0xd552[43]](201)[_0xd552[42]](_0xfb1ex2a)})[_0xd552[41]](function(_0xfb1exb){return _0xfb1exa[_0xd552[115]](_0xfb1exb)});})[_0xd552[41]](function(_0xfb1exb){return _0xfb1exa[_0xd552[115]](_0xfb1exb)})}})[_0xd552[41]](function(_0xfb1exb){_0xfb1exd(_0xfb1exb)});};function appCreate(_0xfb1ex21,_0xfb1ex2d,_0xfb1ex22,_0xfb1ex28,_0xfb1ex1d){var _0xfb1ex2e=_0xfb1ex28[_0xd552[100]];if(_0xfb1ex2d[_0xd552[94]]){_0xfb1ex2d[_0xd552[49]]=_0xd552[36]};switch(_0xfb1ex2d[_0xd552[49]]){case _0xd552[13]:if(!_0xfb1ex2d[_0xd552[118]]){_[_0xd552[119]](_0xfb1ex21,{app:_0xd552[11]})};_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[13]:if(_0xfb1ex2d[_0xd552[88]]===_0xd552[120]){_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[121]]=_0xfb1ex2d[_0xd552[121]];_0xfb1ex20[_0xd552[122]]=_0xfb1ex2d[_0xd552[122]];_0xfb1ex20[_0xd552[123]]=_0xfb1ex2d[_0xd552[123]]||0;_0xfb1ex20[_0xd552[118]]=_0xfb1ex2d[_0xd552[118]]||null;}else {_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[124]]=_0xfb1ex2d[_0xd552[124]];_0xfb1ex20[_0xd552[125]]=_0xfb1ex2d[_0xd552[125]]||_0xd552[18];_0xfb1ex20[_0xd552[126]]=_0xfb1ex2d[_0xd552[126]]||_0xd552[18];_0xfb1ex20[_0xd552[127]]=_0xfb1ex2d[_0xd552[127]]||_0xd552[18];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[124]],_0xfb1ex20[_0xd552[126]],_0xfb1ex20[_0xd552[125]]?_0xfb1ex20[_0xd552[125]][_0xd552[129]](_0xd552[128],_0xd552[18]):_0xd552[18],_0xfb1ex20[_0xd552[127]]);};break ;;case _0xd552[11]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[118]]);break ;;case _0xd552[15]:if(_0xfb1ex2d[_0xd552[88]]===_0xd552[120]){_0xfb1ex20[_0xd552[50]]=_0xd552[130]};break ;;default:;};});break ;;case _0xd552[19]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[19]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[125]]=_0xfb1ex2d[_0xd552[125]]||_0xd552[18];_0xfb1ex20[_0xd552[131]]=_0xfb1ex2d[_0xd552[131]]||_0xd552[18];_0xfb1ex20[_0xd552[132]]=_0xfb1ex2d[_0xd552[132]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[124]]=_0xfb1ex2d[_0xd552[124]];_0xfb1ex20[_0xd552[125]]=_0xfb1ex2d[_0xd552[125]];_0xfb1ex20[_0xd552[126]]=_0xfb1ex2d[_0xd552[126]]||_0xd552[18];_0xfb1ex20[_0xd552[127]]=_0xfb1ex2d[_0xd552[127]]||_0xd552[18];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[132]],_0xfb1ex20[_0xd552[125]]?_0xfb1ex20[_0xd552[125]][_0xd552[129]](_0xd552[128],_0xd552[18]):_0xd552[18],_0xfb1ex20[_0xd552[127]],_0xfb1ex20[_0xd552[131]],_0xfb1ex20[_0xd552[126]]);break ;;default:;};});break ;;case _0xd552[22]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[22]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[131]]=_0xfb1ex2d[_0xd552[131]]||_0xd552[18];_0xfb1ex20[_0xd552[125]]=_0xfb1ex2d[_0xd552[125]]||_0xd552[18];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[131]],_0xfb1ex20[_0xd552[125]]?_0xfb1ex20[_0xd552[125]][_0xd552[129]](_0xd552[128],_0xd552[18]):_0xd552[18]);break ;;default:;};});break ;;case _0xd552[25]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[25]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[133]]=_0xfb1ex2d[_0xd552[133]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[133]]);break ;;default:;};});break ;;case _0xd552[28]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[28]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[134]]=_0xfb1ex2d[_0xd552[134]];_0xfb1ex20[_0xd552[135]]=_0xfb1ex2d[_0xd552[135]];_0xfb1ex20[_0xd552[136]]=_0xfb1ex2d[_0xd552[136]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[136]],_0xfb1ex20[_0xd552[135]],_0xfb1ex20[_0xd552[134]]);break ;;default:;};});break ;;case _0xd552[31]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[31]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[137]]=_0xfb1ex2d[_0xd552[137]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[137]]);break ;;default:;};});break ;;case _0xd552[11]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[11]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[138]]=_0xfb1ex2d[_0xd552[138]];_0xfb1ex20[_0xd552[139]]=_0xfb1ex2d[_0xd552[139]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[138]],_0xfb1ex20[_0xd552[139]]);break ;;default:;};});break ;;case _0xd552[36]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[36]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[49]]=_0xfb1ex20[_0xd552[94]]=_0xfb1ex2d[_0xd552[94]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[50]]);break ;;default:;};});break ;;case _0xd552[38]:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[38]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[140]]=_0xfb1ex2d[_0xd552[140]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[140]]);break ;;default:;};});break ;;default:_0xfb1ex21[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex20[_0xd552[48]]=_0xfb1ex2d[_0xd552[48]];_0xfb1ex20[_0xd552[88]]=_0xfb1ex2d[_0xd552[88]];_0xfb1ex20[_0xd552[47]]=_0xfb1ex2d[_0xd552[47]];_0xfb1ex20[_0xd552[111]]=_0xfb1ex2d[_0xd552[111]];_0xfb1ex20[_0xd552[112]]=_0xfb1ex1d?_0xfb1ex1d++:_0xfb1ex2d[_0xd552[112]]++;_0xfb1ex20[_0xd552[90]]=_0xfb1ex22;switch(_0xfb1ex20[_0xd552[49]]){case _0xd552[9]:_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[104]]?_0xd552[97]:_0xfb1ex2d[_0xd552[96]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+1,_0xfb1ex20[_0xd552[47]],(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[102]:_0xfb1ex20[_0xd552[49]]=_0xd552[9];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex20[_0xd552[47]],_0xfb1ex20[_0xd552[112]]+_0xfb1ex2e-_0xfb1ex24,_0xfb1ex20[_0xd552[47]],(_0xfb1ex24+1)<_0xfb1ex2e?(_0xfb1ex20[_0xd552[112]]+1):(_0xfb1ex20[_0xd552[112]]+2));break ;;case _0xd552[36]:_0xfb1ex20[_0xd552[104]]=_0xfb1ex2d[_0xd552[104]];_0xfb1ex20[_0xd552[96]]=_0xfb1ex2d[_0xd552[96]];_0xfb1ex20[_0xd552[49]]=_0xfb1ex20[_0xd552[94]]=_0xfb1ex2d[_0xd552[94]];_0xfb1ex20[_0xd552[50]]=util[_0xd552[61]](_0xfb1ex20[_0xd552[50]],_0xfb1ex2d[_0xd552[50]]);break ;;default:;};});;};if(_0xfb1ex1d){return _0xfb1ex1d};}exports[_0xd552[141]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[45]]({where:{exten:_0xfb1ex9[_0xd552[87]][_0xd552[48]],context:_0xfb1ex9[_0xd552[87]][_0xd552[47]],type:_0xfb1ex9[_0xd552[87]][_0xd552[88]],VoiceExtensionId:null,id:{$ne:_0xfb1ex9[_0xd552[87]][_0xd552[82]]}}})[_0xd552[44]](function(_0xfb1ex2b){if(!_0xfb1ex2b){return _0xfb1exa[_0xd552[84]](404)};if(_0xfb1ex2b[_0xd552[100]]>0){return _0xfb1exa[_0xd552[43]](500)[_0xd552[42]]({message:_0xd552[116]})};if(_0xfb1ex9[_0xd552[87]][_0xd552[82]]){delete _0xfb1ex9[_0xd552[87]][_0xd552[82]]};VoiceExtension[_0xd552[92]]({where:{id:_0xfb1ex9[_0xd552[55]][_0xd552[82]]}})[_0xd552[44]](function(_0xfb1ex1a){if(!_0xfb1ex1a){return _0xfb1exa[_0xd552[84]](404)};var _0xfb1ex2f=_[_0xd552[142]](_0xfb1ex1a,_0xfb1ex9[_0xd552[87]]);return sequelize[_0xd552[109]](function(_0xfb1ex1c){return _0xfb1ex2f[_0xd552[143]]({transaction:_0xfb1ex1c})[_0xd552[44]](function(_0xfb1ex30){VoiceExtension[_0xd552[45]]({where:{VoiceExtensionId:_0xfb1ex30[_0xd552[82]],isApp:true}})[_0xd552[44]](function(_0xfb1ex2a){return VoiceExtension[_0xd552[108]]({where:{VoiceExtensionId:_0xfb1ex30[_0xd552[82]]}},{transaction:_0xfb1ex1c})[_0xd552[44]](function(){_0xfb1ex2a=_[_0xd552[114]](_0xfb1ex2a,_0xd552[113]);var _0xfb1ex31=_[_0xd552[99]](_[_0xd552[114]](_0xfb1ex2a,_0xd552[104]),function(_0xfb1ex20){return _0xfb1ex20!==null});Interval[_0xd552[45]]({where:{IntervalId:_0xfb1ex31}})[_0xd552[44]](function(_0xfb1ex28){var _0xfb1ex1d=2;var _0xfb1ex25;_0xfb1ex2a[_0xd552[66]](function(_0xfb1ex1f){var _0xfb1ex21=_[_0xd552[93]](Applications[_0xfb1ex1f[_0xd552[49]]]);if(!_0xfb1ex21||_0xfb1ex1f[_0xd552[94]]){_0xfb1ex21=[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}]};_0xfb1ex1f[_0xd552[47]]=_0xfb1ex30[_0xd552[47]];_0xfb1ex1f[_0xd552[48]]=_0xfb1ex30[_0xd552[48]];var _0xfb1ex22=util[_0xd552[61]](_0xd552[95],_0xfb1ex1f[_0xd552[47]],_0xfb1ex1f[_0xd552[48]],_0xfb1ex1d);_0xfb1ex1f[_0xd552[96]]=_0xfb1ex1f[_0xd552[96]]||_0xd552[97];var _0xfb1ex23=_[_0xd552[99]](_0xfb1ex28,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[104]]==_0xfb1ex1f[_0xd552[104]])});if(_0xfb1ex23&&_0xfb1ex23[_0xd552[100]]>0){_0xfb1ex21[_0xd552[101]](0,1);_0xfb1ex23[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex21[_0xd552[105]]({app:_0xd552[102],appdata:_0xfb1ex20[_0xd552[96]]+_0xd552[103],IntervalId:_0xfb1ex20[_0xd552[82]],isInterval:true,interval:_0xfb1ex20[_0xd552[96]]})});};_0xfb1ex1d=appCreate(_0xfb1ex21,_0xfb1ex1f,_0xfb1ex22,_0xfb1ex23||[],_0xfb1ex1d);VoiceExtension[_0xd552[106]](_0xfb1ex21);});return _0xfb1exa[_0xd552[84]](200);});})})})})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)});})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)});})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};exports[_0xd552[144]]=function(_0xfb1ex9,_0xfb1exa,_0xfb1exd){var _0xfb1ex25;if(_0xfb1ex9[_0xd552[87]][_0xd552[50]]){delete _0xfb1ex9[_0xd552[87]][_0xd552[50]]};VoiceExtension[_0xd552[85]](_0xfb1ex9[_0xd552[87]][_0xd552[82]])[_0xd552[44]](function(_0xfb1ex32){if(!_0xfb1ex32){return _0xfb1exa[_0xd552[84]](404)};delete _0xfb1ex9[_0xd552[87]][_0xd552[82]];var _0xfb1ex2f=_[_0xd552[142]](_0xfb1ex32,_0xfb1ex9[_0xd552[87]]);return sequelize[_0xd552[109]](function(_0xfb1ex1c){return _0xfb1ex2f[_0xd552[143]]({transaction:_0xfb1ex1c})[_0xd552[44]](function(){VoiceExtension[_0xd552[45]]({where:{VoiceExtensionId:_0xfb1ex9[_0xd552[87]][_0xd552[111]],isApp:true}})[_0xd552[44]](function(_0xfb1ex2a){return VoiceExtension[_0xd552[108]]({where:{VoiceExtensionId:_0xfb1ex9[_0xd552[87]][_0xd552[111]]}},{transaction:_0xfb1ex1c})[_0xd552[44]](function(){_0xfb1ex2a=_[_0xd552[114]](_0xfb1ex2a,_0xd552[113]);var _0xfb1ex31=_[_0xd552[99]](_[_0xd552[114]](_0xfb1ex2a,_0xd552[104]),function(_0xfb1ex20){return _0xfb1ex20!==null});return Interval[_0xd552[45]]({where:{IntervalId:_0xfb1ex31}})[_0xd552[44]](function(_0xfb1ex28){var _0xfb1ex1d=2;var _0xfb1ex25;_0xfb1ex2a[_0xd552[66]](function(_0xfb1ex1f){var _0xfb1ex21=_[_0xd552[93]](Applications[_0xfb1ex1f[_0xd552[49]]]);if(!_0xfb1ex21||_0xfb1ex1f[_0xd552[94]]){_0xfb1ex21=[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}]};var _0xfb1ex22=util[_0xd552[61]](_0xd552[95],_0xfb1ex1f[_0xd552[47]],_0xfb1ex1f[_0xd552[48]],_0xfb1ex1d);_0xfb1ex1f[_0xd552[96]]=_0xfb1ex1f[_0xd552[96]]||_0xd552[97];var _0xfb1ex23=_[_0xd552[99]](_0xfb1ex28,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[104]]==_0xfb1ex1f[_0xd552[104]])});if(_0xfb1ex23&&_0xfb1ex23[_0xd552[100]]>0){_0xfb1ex21[_0xd552[101]](0,1);_0xfb1ex23[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex21[_0xd552[105]]({app:_0xd552[102],appdata:_0xfb1ex20[_0xd552[96]]+_0xd552[103],IntervalId:_0xfb1ex20[_0xd552[82]],isInterval:true,interval:_0xfb1ex20[_0xd552[96]]})});};_0xfb1ex1d=appCreate(_0xfb1ex21,_0xfb1ex1f,_0xfb1ex22,_0xfb1ex23||[],_0xfb1ex1d);VoiceExtension[_0xd552[106]](_0xfb1ex21);});});})})})})[_0xd552[44]](function(_0xfb1ex16){return _0xfb1exa[_0xd552[43]](201)[_0xd552[42]](_0xfb1ex16)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)});})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)});};exports[_0xd552[108]]=function(_0xfb1ex9,_0xfb1exa,_0xfb1exd){VoiceExtension[_0xd552[85]](_0xfb1ex9[_0xd552[55]][_0xd552[82]])[_0xd552[44]](function(_0xfb1ex1a){if(!_0xfb1ex1a){return _0xfb1exa[_0xd552[84]](404)};if(!_0xfb1ex1a[_0xd552[111]]){_0xfb1ex1a[_0xd552[108]]()[_0xd552[44]](function(){return _0xfb1exa[_0xd552[84]](204)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})}else {VoiceExtension[_0xd552[45]]({where:{appGroup:_0xfb1ex1a[_0xd552[90]]}})[_0xd552[44]](function(_0xfb1exc){if(!_0xfb1exc){return _0xfb1exa[_0xd552[84]](404)};return sequelize[_0xd552[109]](function(_0xfb1ex1c){return VoiceExtension[_0xd552[108]]({where:{appGroup:_0xfb1ex1a[_0xd552[90]]}},{transaction:_0xfb1ex1c})[_0xd552[44]](function(_0xfb1ex33){return VoiceExtension[_0xd552[45]]({where:{VoiceExtensionId:_0xfb1ex1a[_0xd552[111]],priority:{$gt:_0xfb1exc[_0xfb1ex33-1][_0xd552[112]]}}})[_0xd552[44]](function(_0xfb1ex1b){return VoiceExtension[_0xd552[108]]({where:{VoiceExtensionId:_0xfb1ex1a[_0xd552[111]],priority:{$gt:_0xfb1exc[_0xfb1ex33-1][_0xd552[112]]}}},{transaction:_0xfb1ex1c})[_0xd552[44]](function(){var _0xfb1ex34=_[_0xd552[114]](_[_0xd552[99]](_[_0xd552[114]](_0xfb1ex1b,_0xd552[113]),function(_0xfb1ex20){return _0xfb1ex20[_0xd552[91]]===true}),_0xd552[90]);var _0xfb1ex1d=_0xfb1exc[0][_0xd552[112]];_0xfb1ex34[_0xd552[66]](function(_0xfb1ex1e){var _0xfb1ex1f=_[_0xd552[92]](_0xfb1ex1b,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[90]]==_0xfb1ex1e&&_0xfb1ex20[_0xd552[91]]===true)});var _0xfb1ex21=_[_0xd552[93]](Applications[_0xfb1ex1f[_0xd552[49]]]);if(!_0xfb1ex21||_0xfb1ex1f[_0xd552[94]]){_0xfb1ex21=[{app:_0xd552[9],appdata:_0xd552[10]},{app:_0xd552[36],appdata:_0xd552[32],isApp:true},{app:_0xd552[15],appdata:_0xd552[37]}]};var _0xfb1ex22=util[_0xd552[61]](_0xd552[95],_0xfb1ex1f[_0xd552[47]],_0xfb1ex1f[_0xd552[48]],_0xfb1ex1d);_0xfb1ex1f[_0xd552[96]]=_0xfb1ex1f[_0xd552[96]]||_0xd552[97];var _0xfb1ex23=_[_0xd552[99]](_0xfb1ex1b,function(_0xfb1ex20){return (_0xfb1ex20[_0xd552[90]]==_0xfb1ex1e&&_0xfb1ex20[_0xd552[98]]===true)});if(_0xfb1ex23&&_0xfb1ex23[_0xd552[100]]>0){_0xfb1ex21[_0xd552[101]](0,1);_0xfb1ex23[_0xd552[66]](function(_0xfb1ex20,_0xfb1ex24){_0xfb1ex21[_0xd552[105]]({app:_0xd552[102],appdata:_0xfb1ex20[_0xd552[96]]+_0xd552[103],IntervalId:_0xfb1ex20[_0xd552[104]]?_0xfb1ex20[_0xd552[104]]:null,isInterval:true,interval:_0xfb1ex20[_0xd552[96]]})});};_0xfb1ex1d=appCreate(_0xfb1ex21,_0xfb1ex1f,_0xfb1ex22,_0xfb1ex23||[],_0xfb1ex1d);VoiceExtension[_0xd552[106]](_0xfb1ex21);});})})})})[_0xd552[44]](function(_0xfb1ex16){_0xfb1exa[_0xd552[84]](201)})[_0xd552[41]](function(_0xfb1exb){return _0xfb1exd(_0xfb1exb)});})};})[_0xd552[41]](function(_0xfb1exb){return _0xfb1exd(_0xfb1exb)})};exports[_0xd552[145]]=function(_0xfb1ex9,_0xfb1exa){VoiceExtension[_0xd552[108]]({where:{id:_0xfb1ex9[_0xd552[52]][_0xd552[82]]},individualHooks:true})[_0xd552[44]](function(){return _0xfb1exa[_0xd552[84]](204)})[_0xd552[41]](function(_0xfb1exb){return handleError(_0xfb1exa,_0xfb1exb)})};function handleError(_0xfb1exa,_0xfb1exb){return _0xfb1exa[_0xd552[43]](500)[_0xd552[42]](_0xfb1exb)}
\ No newline at end of file
-var _0x55e3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x75\x70\x64\x61\x74\x65"];_0x55e3[0];var VoiceExtension=require(_0x55e3[2])[_0x55e3[1]];exports[_0x55e3[3]]=function(_0x4f2dx2){VoiceExtension[_0x55e3[4]](function(_0x4f2dx3){onSave(_0x4f2dx2,_0x4f2dx3)});VoiceExtension[_0x55e3[5]](function(_0x4f2dx3){onRemove(_0x4f2dx2,_0x4f2dx3)});VoiceExtension[_0x55e3[6]](function(_0x4f2dx3){onRemove(_0x4f2dx2,_0x4f2dx3)});VoiceExtension[_0x55e3[7]](function(_0x4f2dx3){onUpdate(_0x4f2dx2,_0x4f2dx3)});};function onSave(_0x4f2dx2,_0x4f2dx3,_0x4f2dx5){_0x4f2dx2[_0x55e3[9]](_0x55e3[8],_0x4f2dx3)}function onRemove(_0x4f2dx2,_0x4f2dx3,_0x4f2dx5){_0x4f2dx2[_0x55e3[9]](_0x55e3[10],_0x4f2dx3)}function onUpdate(_0x4f2dx2,_0x4f2dx3,_0x4f2dx5){_0x4f2dx2[_0x55e3[9]](_0x55e3[11],_0x4f2dx3)}
\ No newline at end of file
+var _0x6ef1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x3A\x75\x70\x64\x61\x74\x65"];_0x6ef1[0];var VoiceExtension=require(_0x6ef1[2])[_0x6ef1[1]];exports[_0x6ef1[3]]=function(_0x2617x2){VoiceExtension[_0x6ef1[4]](function(_0x2617x3){onSave(_0x2617x2,_0x2617x3)});VoiceExtension[_0x6ef1[5]](function(_0x2617x3){onRemove(_0x2617x2,_0x2617x3)});VoiceExtension[_0x6ef1[6]](function(_0x2617x3){onRemove(_0x2617x2,_0x2617x3)});VoiceExtension[_0x6ef1[7]](function(_0x2617x3){onUpdate(_0x2617x2,_0x2617x3)});};function onSave(_0x2617x2,_0x2617x3,_0x2617x5){_0x2617x2[_0x6ef1[9]](_0x6ef1[8],_0x2617x3)}function onRemove(_0x2617x2,_0x2617x3,_0x2617x5){_0x2617x2[_0x6ef1[9]](_0x6ef1[10],_0x2617x3)}function onUpdate(_0x2617x2,_0x2617x3,_0x2617x5){_0x2617x2[_0x6ef1[9]](_0x6ef1[11],_0x2617x3)}
\ No newline at end of file
-var _0xc47e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0xc47e[0];var should=require(_0xc47e[1]);var app=require(_0xc47e[2]);var request=require(_0xc47e[3]);describe(_0xc47e[4],function(){it(_0xc47e[5],function(_0x56fax4){request(app)[_0xc47e[13]](_0xc47e[12])[_0xc47e[11]](200)[_0xc47e[11]](_0xc47e[10],/json/)[_0xc47e[9]](function(_0x56fax5,_0x56fax6){if(_0x56fax5){return _0x56fax4(_0x56fax5)};_0x56fax6[_0xc47e[8]][_0xc47e[1]][_0xc47e[7]][_0xc47e[6]](Array);_0x56fax4();})})});
\ No newline at end of file
+var _0x41c9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x67\x65\x74"];_0x41c9[0];var should=require(_0x41c9[1]);var app=require(_0x41c9[2]);var request=require(_0x41c9[3]);describe(_0x41c9[4],function(){it(_0x41c9[5],function(_0x35d5x4){request(app)[_0x41c9[13]](_0x41c9[12])[_0x41c9[11]](200)[_0x41c9[11]](_0x41c9[10],/json/)[_0x41c9[9]](function(_0x35d5x5,_0x35d5x6){if(_0x35d5x5){return _0x35d5x4(_0x35d5x5)};_0x35d5x6[_0x41c9[8]][_0x41c9[1]][_0x41c9[7]][_0x41c9[6]](Array);_0x35d5x4();})})});
\ No newline at end of file
-var _0x8c86=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x73\x74\x72\x65\x61\x6D","\x73\x74\x72\x65\x61\x6D","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x66\x69\x6C\x65\x73","\x73\x68\x6F\x77\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x6F\x68\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x6C\x65\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x65\x78\x70\x6F\x72\x74\x73"];_0x8c86[0];var express=require(_0x8c86[1]);var controller=require(_0x8c86[2]);var auth=require(_0x8c86[3]);var router=express.Router();router[_0x8c86[7]](_0x8c86[4],auth[_0x8c86[5]](),controller[_0x8c86[6]]);router[_0x8c86[7]](_0x8c86[8],auth[_0x8c86[5]](),controller[_0x8c86[9]]);router[_0x8c86[7]](_0x8c86[10],auth[_0x8c86[5]](),controller[_0x8c86[11]]);router[_0x8c86[7]](_0x8c86[12],auth[_0x8c86[5]](),controller[_0x8c86[13]]);router[_0x8c86[15]](_0x8c86[4],auth[_0x8c86[5]](),controller[_0x8c86[14]]);router[_0x8c86[15]](_0x8c86[16],auth[_0x8c86[5]](),controller[_0x8c86[17]]);router[_0x8c86[15]](_0x8c86[12],auth[_0x8c86[5]](),controller[_0x8c86[18]]);router[_0x8c86[20]](_0x8c86[10],auth[_0x8c86[5]](),controller[_0x8c86[19]]);router[_0x8c86[22]](_0x8c86[4],auth[_0x8c86[5]](),controller[_0x8c86[21]]);router[_0x8c86[22]](_0x8c86[10],auth[_0x8c86[5]](),controller[_0x8c86[23]]);router[_0x8c86[22]](_0x8c86[12],auth[_0x8c86[5]](),controller[_0x8c86[24]]);module[_0x8c86[25]]=router;
\ No newline at end of file
+var _0x2634=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x73\x74\x72\x65\x61\x6D","\x73\x74\x72\x65\x61\x6D","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x66\x69\x6C\x65\x73","\x73\x68\x6F\x77\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x6F\x68\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x6C\x65\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x65\x78\x70\x6F\x72\x74\x73"];_0x2634[0];var express=require(_0x2634[1]);var controller=require(_0x2634[2]);var auth=require(_0x2634[3]);var router=express.Router();router[_0x2634[7]](_0x2634[4],auth[_0x2634[5]](),controller[_0x2634[6]]);router[_0x2634[7]](_0x2634[8],auth[_0x2634[5]](),controller[_0x2634[9]]);router[_0x2634[7]](_0x2634[10],auth[_0x2634[5]](),controller[_0x2634[11]]);router[_0x2634[7]](_0x2634[12],auth[_0x2634[5]](),controller[_0x2634[13]]);router[_0x2634[15]](_0x2634[4],auth[_0x2634[5]](),controller[_0x2634[14]]);router[_0x2634[15]](_0x2634[16],auth[_0x2634[5]](),controller[_0x2634[17]]);router[_0x2634[15]](_0x2634[12],auth[_0x2634[5]](),controller[_0x2634[18]]);router[_0x2634[20]](_0x2634[10],auth[_0x2634[5]](),controller[_0x2634[19]]);router[_0x2634[22]](_0x2634[4],auth[_0x2634[5]](),controller[_0x2634[21]]);router[_0x2634[22]](_0x2634[10],auth[_0x2634[5]](),controller[_0x2634[23]]);router[_0x2634[22]](_0x2634[12],auth[_0x2634[5]](),controller[_0x2634[24]]);module[_0x2634[25]]=router;
\ No newline at end of file
-var _0x4218=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x66\x73","\x72\x65\x6D\x6F\x76\x65","\x55\x70\x6C\x6F\x61\x64","\x66\x73\x2D\x65\x78\x74\x72\x61","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x73\x6F\x72\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x46\x69\x6C\x65\x73","\x6C\x6F\x67","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6A\x6F\x69\x6E","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x2E\x77\x61\x76","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x73\x6F\x75\x6E\x64\x73","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x66\x69\x6C\x65\x73","\x72\x65\x61\x64\x64\x69\x72","\x64\x65\x6C\x65\x74\x65\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x2F","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x75\x6E\x6C\x69\x6E\x6B","\x6D\x6F\x68\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x74\x68\x61\x74\x65\x72\x72\x6F\x72","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x65\x72\x72\x6F\x72\x31","\x6C\x65\x6E\x67\x74\x68","\x65\x72\x72\x6F\x72\x32","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x4F\x48","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x6D\x6F\x68","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x66\x69\x6C\x65\x20\x65\x72\x72\x6F\x72","\x4D\x45\x53\x53\x41\x47\x45\x5F\x46\x49\x4C\x45\x5F\x43\x52\x45\x41\x54\x49\x4F\x4E\x5F\x45\x52\x52\x4F\x52","\x63\x6F\x6D\x6D\x69\x74","\x66\x69\x6C\x65\x20\x63\x72\x65\x61\x74\x65\x64","\x6D\x6B\x64\x69\x72","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x74\x72\x65\x61\x6D","\x65\x6E\x63\x6F\x64\x65"];_0x4218[0];var _=require(_0x4218[1]);var VoiceMusicOnHold=require(_0x4218[3])[_0x4218[2]];var fs=require(_0x4218[4]);var remove=require(_0x4218[5]);var Upload=require(_0x4218[3])[_0x4218[6]];var fse=require(_0x4218[7]);var path=require(_0x4218[8]);var config=require(_0x4218[9]);var sequelize=require(_0x4218[3])[_0x4218[10]];var util=require(_0x4218[11]);var base64=require(_0x4218[12]);exports[_0x4218[13]]=function(_0x8d59xc,_0x8d59xd){var _0x8d59xe=[_0x4218[14],_0x4218[15],_0x4218[16],_0x4218[17]];var _0x8d59xf=_0x8d59xc[_0x4218[19]][_0x4218[18]]?parseInt(_0x8d59xc[_0x4218[19]][_0x4218[18]],10):100;var _0x8d59x10=_0x8d59xc[_0x4218[19]][_0x4218[20]]?parseInt(_0x8d59xc[_0x4218[19]][_0x4218[20]],10):0;var _0x8d59x11={where:{},limit:_0x8d59xf,offset:_0x8d59x10*_0x8d59xf};_[_0x4218[34]](_0x8d59xc[_0x4218[19]],function(_0x8d59x12,_0x8d59x13){switch(_0x8d59x13){case _0x4218[18]:;case _0x4218[20]:break ;;case _0x4218[23]:_0x8d59x11[_0x4218[21]]=util[_0x4218[26]](_0x4218[22],_0x8d59xc[_0x4218[19]][_0x4218[23]],_0x8d59xc[_0x4218[19]][_0x4218[24]]||_0x4218[25])||null;break ;;case _0x4218[24]:break ;;case _0x4218[32]:_0x8d59x11[_0x4218[28]][_0x4218[27]]=[];_0x8d59xe[_0x4218[31]](function(_0x8d59x14){var _0x8d59x15={};_0x8d59x15[_0x8d59x14]={$like:_0x4218[29]+_0x8d59x12+_0x4218[29]};_0x8d59x11[_0x4218[28]][_0x4218[27]][_0x4218[30]](_0x8d59x15);});break ;;default:_0x8d59x11[_0x4218[28]][_0x8d59x13]={$like:{}};_0x8d59x11[_0x4218[28]][_0x8d59x13][_0x4218[33]]=_0x4218[29]+_0x8d59x12+_0x4218[29];;}});VoiceMusicOnHold[_0x4218[48]](_0x8d59x11)[_0x4218[47]](function(_0x8d59x17){var _0x8d59x18=Math[_0x4218[37]](_0x8d59x17[_0x4218[36]]/_0x8d59xf);var _0x8d59x19=_0x8d59x18>(_0x8d59x11[_0x4218[38]]+1)?util[_0x4218[26]](_0x4218[39],_0x8d59xc[_0x4218[40]],_0x8d59xc[_0x4218[42]][_0x4218[41]],_0x8d59xc[_0x4218[43]],_0x8d59x10+1):null;var _0x8d59x1a=_0x8d59x10>0?util[_0x4218[26]](_0x4218[39],_0x8d59xc[_0x4218[40]],_0x8d59xc[_0x4218[42]][_0x4218[41]],_0x8d59xc[_0x4218[43]],_0x8d59x10-1):null;_0x8d59xd[_0x4218[46]](200)[_0x4218[45]]({count:_0x8d59x17[_0x4218[36]],rows:_0x8d59x17[_0x4218[44]],next_page:_0x8d59x19,previous_page:_0x8d59x1a,total_pages:_0x8d59x18});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});};exports[_0x4218[49]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[53]](_0x8d59xc[_0x4218[52]][_0x4218[51]])[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};return _0x8d59xd[_0x4218[45]](_0x8d59x1b);})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)})};exports[_0x4218[54]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[53]](_0x8d59xc[_0x4218[52]][_0x4218[51]])[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};Upload[_0x4218[67]]({where:{id:_0x8d59xc[_0x4218[66]][_0x4218[65]]}})[_0x4218[47]](function(_0x8d59x1c){var _0x8d59x1d=path[_0x4218[58]](config[_0x4218[56]],_0x4218[57]);var _0x8d59x1e;_0x8d59x1c[_0x4218[31]](function(_0x8d59x1f){_0x8d59x1e=path[_0x4218[58]](_0x8d59x1b[_0x4218[15]],_0x8d59x1f[_0x4218[59]]+_0x4218[60]);fse[_0x4218[62]](path[_0x4218[58]](_0x8d59x1d,_0x8d59x1f[_0x4218[61]]+_0x4218[60]),_0x8d59x1e);});fs[_0x4218[64]](_0x8d59x1e,parseInt(_0x4218[63],8));_0x8d59xd[_0x4218[50]](200);})[_0x4218[35]](function(_0x8d59x16){console[_0x4218[55]](_0x8d59x16);return handleError(_0x8d59xd,_0x8d59x16);});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)})};exports[_0x4218[68]]=function(_0x8d59xc,_0x8d59xd){var _0x8d59x20={};VoiceMusicOnHold[_0x4218[53]](_0x8d59xc[_0x4218[52]][_0x4218[51]])[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};_0x8d59x20[_0x4218[8]]=_0x8d59x1b[_0x4218[15]];fs[_0x4218[70]](_0x8d59x1b[_0x4218[15]],function(_0x8d59x16,_0x8d59x21){if(!_0x8d59x16){_0x8d59x20[_0x4218[69]]=_0x8d59x21;return _0x8d59xd[_0x4218[45]](_0x8d59x20);}else {throw _0x8d59x16}});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});};exports[_0x4218[71]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[53]](_0x8d59xc[_0x4218[52]][_0x4218[51]])[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};var _0x8d59x22=_0x8d59x1b[_0x4218[15]]+_0x4218[72]+_0x8d59xc[_0x4218[19]][_0x4218[73]];fs[_0x4218[74]](_0x8d59x22,function(_0x8d59x16){if(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)}else {return _0x8d59xd[_0x4218[50]](204)}});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)})};exports[_0x4218[75]]=function(_0x8d59xc,_0x8d59xd){console[_0x4218[55]](_0x8d59xc[_0x4218[66]]);VoiceMusicOnHold[_0x4218[67]]({where:{name:_0x8d59xc[_0x4218[66]][_0x4218[14]]}})[_0x4218[47]](function(_0x8d59x23){if(!_0x8d59x23){return _0x8d59xd[_0x4218[50]](404)};return _0x8d59xd[_0x4218[45]](_0x8d59x23);})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});};exports[_0x4218[76]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[67]]({where:{name:_0x8d59xc[_0x4218[66]][_0x4218[14]]}})[_0x4218[47]](function(_0x8d59x24){console[_0x4218[55]](_0x8d59x24);console[_0x4218[55]](_0x4218[78]);if(!_0x8d59x24){console[_0x4218[55]](_0x4218[79]);return _0x8d59xd[_0x4218[50]](404);};if(_0x8d59x24[_0x4218[80]]>0){console[_0x4218[55]](_0x4218[81]);return _0x8d59xd[_0x4218[46]](500)[_0x4218[45]]({message:_0x4218[82]});};return sequelize[_0x4218[90]]()[_0x4218[47]](function(_0x8d59x25){_0x8d59xc[_0x4218[66]][_0x4218[15]]=path[_0x4218[58]](config[_0x4218[56]],_0x4218[83],_0x8d59xc[_0x4218[66]][_0x4218[14]]);return VoiceMusicOnHold[_0x4218[76]](_0x8d59xc[_0x4218[66]],{transaction:_0x8d59x25})[_0x4218[47]](function(_0x8d59x1b){fs[_0x4218[89]](_0x8d59x1b[_0x4218[15]],parseInt(_0x4218[63],8),function(_0x8d59x16){if(_0x8d59x16){console[_0x4218[55]](_0x4218[85]);_0x8d59x25[_0x4218[84]]();return _0x8d59xd[_0x4218[46]](500)[_0x4218[45]]({message:_0x4218[86]});};_0x8d59x25[_0x4218[87]]();console[_0x4218[55]](_0x4218[88]);return _0x8d59xd[_0x4218[46]](201)[_0x4218[45]](_0x8d59x1b);})})[_0x4218[35]](function(_0x8d59x16){_0x8d59x25[_0x4218[84]]()});});})[_0x4218[35]](function(_0x8d59x16){console[_0x4218[55]](_0x4218[77]);return handleError(_0x8d59xd,_0x8d59x16);})};exports[_0x4218[91]]=function(_0x8d59xc,_0x8d59xd){if(_0x8d59xc[_0x4218[66]][_0x4218[51]]){delete _0x8d59xc[_0x4218[66]][_0x4218[51]]};VoiceMusicOnHold[_0x4218[94]]({where:{id:_0x8d59xc[_0x4218[52]][_0x4218[51]]}})[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};var _0x8d59x26=_[_0x4218[92]](_0x8d59x1b,_0x8d59xc[_0x4218[66]]);_0x8d59x26[_0x4218[93]]()[_0x4218[47]](function(){return _0x8d59xd[_0x4218[46]](200)[_0x4218[45]](_0x8d59x1b)})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});};exports[_0x4218[95]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[53]](_0x8d59xc[_0x4218[52]][_0x4218[51]])[_0x4218[47]](function(_0x8d59x1b){if(!_0x8d59x1b){return _0x8d59xd[_0x4218[50]](404)};return sequelize[_0x4218[90]](function(_0x8d59x25){return _0x8d59x1b[_0x4218[95]]({transaction:_0x8d59x25})[_0x4218[47]](function(){remove(_0x8d59x1b[_0x4218[15]],function(_0x8d59x16){if(_0x8d59x16){console[_0x4218[55]](_0x8d59x16)};return _0x8d59xd[_0x4218[50]](204);})})})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)})};exports[_0x4218[96]]=function(_0x8d59xc,_0x8d59xd){VoiceMusicOnHold[_0x4218[67]]({where:{id:_0x8d59xc[_0x4218[19]][_0x4218[51]]}})[_0x4218[47]](function(_0x8d59x27){if(!_0x8d59x27){return _0x8d59xd[_0x4218[50]](404)};return sequelize[_0x4218[90]](function(_0x8d59x25){_0x8d59x27[_0x4218[31]](function(_0x8d59x28){return _0x8d59x28[_0x4218[95]]({transaction:_0x8d59x25})[_0x4218[47]](function(){remove(_0x8d59x28[_0x4218[15]],function(_0x8d59x16){if(_0x8d59x16){console[_0x4218[55]](_0x8d59x16);throw _0x8d59x16;}})})})})[_0x4218[47]](function(){return _0x8d59xd[_0x4218[50]](204)})[_0x4218[35]](function(_0x8d59x16){console[_0x4218[55]](_0x8d59x16);return handleError(_0x8d59xd,_0x8d59x16);});})[_0x4218[35]](function(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)})};exports[_0x4218[97]]=function(_0x8d59xc,_0x8d59xd){var _0x8d59x29=decodeURI(_0x8d59xc[_0x4218[19]][_0x4218[8]]);base64[_0x4218[98]](_0x8d59x29,function(_0x8d59x16,_0x8d59x2a){if(_0x8d59x16){return handleError(_0x8d59xd,_0x8d59x16)}else {return _0x8d59xd[_0x4218[46]](200)[_0x4218[45]](_0x8d59x2a)}});};function handleError(_0x8d59xd,_0x8d59x16){return _0x8d59xd[_0x4218[46]](500)[_0x4218[45]](_0x8d59x16)}
\ No newline at end of file
+var _0x7466=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x66\x73","\x72\x65\x6D\x6F\x76\x65","\x55\x70\x6C\x6F\x61\x64","\x66\x73\x2D\x65\x78\x74\x72\x61","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x75\x74\x69\x6C","\x66\x69\x6C\x65\x2D\x62\x61\x73\x65\x36\x34","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x69\x72\x65\x63\x74\x6F\x72\x79","\x73\x6F\x72\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x64\x64\x46\x69\x6C\x65\x73","\x6C\x6F\x67","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x6A\x6F\x69\x6E","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x2E\x77\x61\x76","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x30\x37\x37\x37","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x73\x6F\x75\x6E\x64\x73","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x66\x69\x6C\x65\x73","\x72\x65\x61\x64\x64\x69\x72","\x64\x65\x6C\x65\x74\x65\x41\x75\x64\x69\x6F\x46\x69\x6C\x65\x73","\x2F","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x75\x6E\x6C\x69\x6E\x6B","\x6D\x6F\x68\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x74\x68\x61\x74\x65\x72\x72\x6F\x72","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x65\x72\x72\x6F\x72\x31","\x6C\x65\x6E\x67\x74\x68","\x65\x72\x72\x6F\x72\x32","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x4F\x48","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x6D\x6F\x68","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x66\x69\x6C\x65\x20\x65\x72\x72\x6F\x72","\x4D\x45\x53\x53\x41\x47\x45\x5F\x46\x49\x4C\x45\x5F\x43\x52\x45\x41\x54\x49\x4F\x4E\x5F\x45\x52\x52\x4F\x52","\x63\x6F\x6D\x6D\x69\x74","\x66\x69\x6C\x65\x20\x63\x72\x65\x61\x74\x65\x64","\x6D\x6B\x64\x69\x72","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x73\x74\x72\x65\x61\x6D","\x65\x6E\x63\x6F\x64\x65"];_0x7466[0];var _=require(_0x7466[1]);var VoiceMusicOnHold=require(_0x7466[3])[_0x7466[2]];var fs=require(_0x7466[4]);var remove=require(_0x7466[5]);var Upload=require(_0x7466[3])[_0x7466[6]];var fse=require(_0x7466[7]);var path=require(_0x7466[8]);var config=require(_0x7466[9]);var sequelize=require(_0x7466[3])[_0x7466[10]];var util=require(_0x7466[11]);var base64=require(_0x7466[12]);exports[_0x7466[13]]=function(_0x383axc,_0x383axd){var _0x383axe=[_0x7466[14],_0x7466[15],_0x7466[16],_0x7466[17]];var _0x383axf=_0x383axc[_0x7466[19]][_0x7466[18]]?parseInt(_0x383axc[_0x7466[19]][_0x7466[18]],10):100;var _0x383ax10=_0x383axc[_0x7466[19]][_0x7466[20]]?parseInt(_0x383axc[_0x7466[19]][_0x7466[20]],10):0;var _0x383ax11={where:{},limit:_0x383axf,offset:_0x383ax10*_0x383axf};_[_0x7466[34]](_0x383axc[_0x7466[19]],function(_0x383ax12,_0x383ax13){switch(_0x383ax13){case _0x7466[18]:;case _0x7466[20]:break ;;case _0x7466[23]:_0x383ax11[_0x7466[21]]=util[_0x7466[26]](_0x7466[22],_0x383axc[_0x7466[19]][_0x7466[23]],_0x383axc[_0x7466[19]][_0x7466[24]]||_0x7466[25])||null;break ;;case _0x7466[24]:break ;;case _0x7466[32]:_0x383ax11[_0x7466[28]][_0x7466[27]]=[];_0x383axe[_0x7466[31]](function(_0x383ax14){var _0x383ax15={};_0x383ax15[_0x383ax14]={$like:_0x7466[29]+_0x383ax12+_0x7466[29]};_0x383ax11[_0x7466[28]][_0x7466[27]][_0x7466[30]](_0x383ax15);});break ;;default:_0x383ax11[_0x7466[28]][_0x383ax13]={$like:{}};_0x383ax11[_0x7466[28]][_0x383ax13][_0x7466[33]]=_0x7466[29]+_0x383ax12+_0x7466[29];;}});VoiceMusicOnHold[_0x7466[48]](_0x383ax11)[_0x7466[47]](function(_0x383ax17){var _0x383ax18=Math[_0x7466[37]](_0x383ax17[_0x7466[36]]/_0x383axf);var _0x383ax19=_0x383ax18>(_0x383ax11[_0x7466[38]]+1)?util[_0x7466[26]](_0x7466[39],_0x383axc[_0x7466[40]],_0x383axc[_0x7466[42]][_0x7466[41]],_0x383axc[_0x7466[43]],_0x383ax10+1):null;var _0x383ax1a=_0x383ax10>0?util[_0x7466[26]](_0x7466[39],_0x383axc[_0x7466[40]],_0x383axc[_0x7466[42]][_0x7466[41]],_0x383axc[_0x7466[43]],_0x383ax10-1):null;_0x383axd[_0x7466[46]](200)[_0x7466[45]]({count:_0x383ax17[_0x7466[36]],rows:_0x383ax17[_0x7466[44]],next_page:_0x383ax19,previous_page:_0x383ax1a,total_pages:_0x383ax18});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});};exports[_0x7466[49]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[53]](_0x383axc[_0x7466[52]][_0x7466[51]])[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};return _0x383axd[_0x7466[45]](_0x383ax1b);})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)})};exports[_0x7466[54]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[53]](_0x383axc[_0x7466[52]][_0x7466[51]])[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};Upload[_0x7466[67]]({where:{id:_0x383axc[_0x7466[66]][_0x7466[65]]}})[_0x7466[47]](function(_0x383ax1c){var _0x383ax1d=path[_0x7466[58]](config[_0x7466[56]],_0x7466[57]);var _0x383ax1e;_0x383ax1c[_0x7466[31]](function(_0x383ax1f){_0x383ax1e=path[_0x7466[58]](_0x383ax1b[_0x7466[15]],_0x383ax1f[_0x7466[59]]+_0x7466[60]);fse[_0x7466[62]](path[_0x7466[58]](_0x383ax1d,_0x383ax1f[_0x7466[61]]+_0x7466[60]),_0x383ax1e);});fs[_0x7466[64]](_0x383ax1e,parseInt(_0x7466[63],8));_0x383axd[_0x7466[50]](200);})[_0x7466[35]](function(_0x383ax16){console[_0x7466[55]](_0x383ax16);return handleError(_0x383axd,_0x383ax16);});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)})};exports[_0x7466[68]]=function(_0x383axc,_0x383axd){var _0x383ax20={};VoiceMusicOnHold[_0x7466[53]](_0x383axc[_0x7466[52]][_0x7466[51]])[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};_0x383ax20[_0x7466[8]]=_0x383ax1b[_0x7466[15]];fs[_0x7466[70]](_0x383ax1b[_0x7466[15]],function(_0x383ax16,_0x383ax21){if(!_0x383ax16){_0x383ax20[_0x7466[69]]=_0x383ax21;return _0x383axd[_0x7466[45]](_0x383ax20);}else {throw _0x383ax16}});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});};exports[_0x7466[71]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[53]](_0x383axc[_0x7466[52]][_0x7466[51]])[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};var _0x383ax22=_0x383ax1b[_0x7466[15]]+_0x7466[72]+_0x383axc[_0x7466[19]][_0x7466[73]];fs[_0x7466[74]](_0x383ax22,function(_0x383ax16){if(_0x383ax16){return handleError(_0x383axd,_0x383ax16)}else {return _0x383axd[_0x7466[50]](204)}});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)})};exports[_0x7466[75]]=function(_0x383axc,_0x383axd){console[_0x7466[55]](_0x383axc[_0x7466[66]]);VoiceMusicOnHold[_0x7466[67]]({where:{name:_0x383axc[_0x7466[66]][_0x7466[14]]}})[_0x7466[47]](function(_0x383ax23){if(!_0x383ax23){return _0x383axd[_0x7466[50]](404)};return _0x383axd[_0x7466[45]](_0x383ax23);})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});};exports[_0x7466[76]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[67]]({where:{name:_0x383axc[_0x7466[66]][_0x7466[14]]}})[_0x7466[47]](function(_0x383ax24){console[_0x7466[55]](_0x383ax24);console[_0x7466[55]](_0x7466[78]);if(!_0x383ax24){console[_0x7466[55]](_0x7466[79]);return _0x383axd[_0x7466[50]](404);};if(_0x383ax24[_0x7466[80]]>0){console[_0x7466[55]](_0x7466[81]);return _0x383axd[_0x7466[46]](500)[_0x7466[45]]({message:_0x7466[82]});};return sequelize[_0x7466[90]]()[_0x7466[47]](function(_0x383ax25){_0x383axc[_0x7466[66]][_0x7466[15]]=path[_0x7466[58]](config[_0x7466[56]],_0x7466[83],_0x383axc[_0x7466[66]][_0x7466[14]]);return VoiceMusicOnHold[_0x7466[76]](_0x383axc[_0x7466[66]],{transaction:_0x383ax25})[_0x7466[47]](function(_0x383ax1b){fs[_0x7466[89]](_0x383ax1b[_0x7466[15]],parseInt(_0x7466[63],8),function(_0x383ax16){if(_0x383ax16){console[_0x7466[55]](_0x7466[85]);_0x383ax25[_0x7466[84]]();return _0x383axd[_0x7466[46]](500)[_0x7466[45]]({message:_0x7466[86]});};_0x383ax25[_0x7466[87]]();console[_0x7466[55]](_0x7466[88]);return _0x383axd[_0x7466[46]](201)[_0x7466[45]](_0x383ax1b);})})[_0x7466[35]](function(_0x383ax16){_0x383ax25[_0x7466[84]]()});});})[_0x7466[35]](function(_0x383ax16){console[_0x7466[55]](_0x7466[77]);return handleError(_0x383axd,_0x383ax16);})};exports[_0x7466[91]]=function(_0x383axc,_0x383axd){if(_0x383axc[_0x7466[66]][_0x7466[51]]){delete _0x383axc[_0x7466[66]][_0x7466[51]]};VoiceMusicOnHold[_0x7466[94]]({where:{id:_0x383axc[_0x7466[52]][_0x7466[51]]}})[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};var _0x383ax26=_[_0x7466[92]](_0x383ax1b,_0x383axc[_0x7466[66]]);_0x383ax26[_0x7466[93]]()[_0x7466[47]](function(){return _0x383axd[_0x7466[46]](200)[_0x7466[45]](_0x383ax1b)})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});};exports[_0x7466[95]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[53]](_0x383axc[_0x7466[52]][_0x7466[51]])[_0x7466[47]](function(_0x383ax1b){if(!_0x383ax1b){return _0x383axd[_0x7466[50]](404)};return sequelize[_0x7466[90]](function(_0x383ax25){return _0x383ax1b[_0x7466[95]]({transaction:_0x383ax25})[_0x7466[47]](function(){remove(_0x383ax1b[_0x7466[15]],function(_0x383ax16){if(_0x383ax16){console[_0x7466[55]](_0x383ax16)};return _0x383axd[_0x7466[50]](204);})})})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)})};exports[_0x7466[96]]=function(_0x383axc,_0x383axd){VoiceMusicOnHold[_0x7466[67]]({where:{id:_0x383axc[_0x7466[19]][_0x7466[51]]}})[_0x7466[47]](function(_0x383ax27){if(!_0x383ax27){return _0x383axd[_0x7466[50]](404)};return sequelize[_0x7466[90]](function(_0x383ax25){_0x383ax27[_0x7466[31]](function(_0x383ax28){return _0x383ax28[_0x7466[95]]({transaction:_0x383ax25})[_0x7466[47]](function(){remove(_0x383ax28[_0x7466[15]],function(_0x383ax16){if(_0x383ax16){console[_0x7466[55]](_0x383ax16);throw _0x383ax16;}})})})})[_0x7466[47]](function(){return _0x383axd[_0x7466[50]](204)})[_0x7466[35]](function(_0x383ax16){console[_0x7466[55]](_0x383ax16);return handleError(_0x383axd,_0x383ax16);});})[_0x7466[35]](function(_0x383ax16){return handleError(_0x383axd,_0x383ax16)})};exports[_0x7466[97]]=function(_0x383axc,_0x383axd){var _0x383ax29=decodeURI(_0x383axc[_0x7466[19]][_0x7466[8]]);base64[_0x7466[98]](_0x383ax29,function(_0x383ax16,_0x383ax2a){if(_0x383ax16){return handleError(_0x383axd,_0x383ax16)}else {return _0x383axd[_0x7466[46]](200)[_0x7466[45]](_0x383ax2a)}});};function handleError(_0x383axd,_0x383ax16){return _0x383axd[_0x7466[46]](500)[_0x7466[45]](_0x383ax16)}
\ No newline at end of file
-var _0x215d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x215d[0];var VoiceMusicOnHold=require(_0x215d[2])[_0x215d[1]];exports[_0x215d[3]]=function(_0xf691x2){VoiceMusicOnHold[_0x215d[4]](function(_0xf691x3){onSave(_0xf691x2,_0xf691x3)});VoiceMusicOnHold[_0x215d[5]](function(_0xf691x3){onRemove(_0xf691x2,_0xf691x3)});};function onSave(_0xf691x2,_0xf691x3,_0xf691x5){_0xf691x2[_0x215d[7]](_0x215d[6],_0xf691x3)}function onRemove(_0xf691x2,_0xf691x3,_0xf691x5){_0xf691x2[_0x215d[7]](_0x215d[8],_0xf691x3)}
\ No newline at end of file
+var _0xf3ab=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0xf3ab[0];var VoiceMusicOnHold=require(_0xf3ab[2])[_0xf3ab[1]];exports[_0xf3ab[3]]=function(_0x55b8x2){VoiceMusicOnHold[_0xf3ab[4]](function(_0x55b8x3){onSave(_0x55b8x2,_0x55b8x3)});VoiceMusicOnHold[_0xf3ab[5]](function(_0x55b8x3){onRemove(_0x55b8x2,_0x55b8x3)});};function onSave(_0x55b8x2,_0x55b8x3,_0x55b8x5){_0x55b8x2[_0xf3ab[7]](_0xf3ab[6],_0x55b8x3)}function onRemove(_0x55b8x2,_0x55b8x3,_0x55b8x5){_0x55b8x2[_0xf3ab[7]](_0xf3ab[8],_0x55b8x3)}
\ No newline at end of file
-var _0xff29=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x67\x65\x74"];_0xff29[0];var should=require(_0xff29[1]);var app=require(_0xff29[2]);var request=require(_0xff29[3]);describe(_0xff29[4],function(){it(_0xff29[5],function(_0x4ebfx4){request(app)[_0xff29[13]](_0xff29[12])[_0xff29[11]](200)[_0xff29[11]](_0xff29[10],/json/)[_0xff29[9]](function(_0x4ebfx5,_0x4ebfx6){if(_0x4ebfx5){return _0x4ebfx4(_0x4ebfx5)};_0x4ebfx6[_0xff29[8]][_0xff29[1]][_0xff29[7]][_0xff29[6]](Array);_0x4ebfx4();})})});
\ No newline at end of file
+var _0xb1d7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x67\x65\x74"];_0xb1d7[0];var should=require(_0xb1d7[1]);var app=require(_0xb1d7[2]);var request=require(_0xb1d7[3]);describe(_0xb1d7[4],function(){it(_0xb1d7[5],function(_0x24cdx4){request(app)[_0xb1d7[13]](_0xb1d7[12])[_0xb1d7[11]](200)[_0xb1d7[11]](_0xb1d7[10],/json/)[_0xb1d7[9]](function(_0x24cdx5,_0x24cdx6){if(_0x24cdx5){return _0x24cdx4(_0x24cdx5)};_0x24cdx6[_0xb1d7[8]][_0xb1d7[1]][_0xb1d7[7]][_0xb1d7[6]](Array);_0x24cdx4();})})});
\ No newline at end of file
-var _0x5ef1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x71\x75\x65\x75\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x2F\x3A\x6E\x61\x6D\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x5ef1[0];var express=require(_0x5ef1[1]);var controller=require(_0x5ef1[2]);var auth=require(_0x5ef1[3]);var router=express.Router();router[_0x5ef1[7]](_0x5ef1[4],auth[_0x5ef1[5]](),controller[_0x5ef1[6]]);router[_0x5ef1[7]](_0x5ef1[8],auth[_0x5ef1[5]](),controller[_0x5ef1[9]]);router[_0x5ef1[11]](_0x5ef1[4],auth[_0x5ef1[5]](),controller[_0x5ef1[10]]);router[_0x5ef1[11]](_0x5ef1[12],auth[_0x5ef1[5]](),controller[_0x5ef1[13]]);router[_0x5ef1[11]](_0x5ef1[14],auth[_0x5ef1[5]](),controller[_0x5ef1[15]]);router[_0x5ef1[17]](_0x5ef1[8],auth[_0x5ef1[5]](),controller[_0x5ef1[16]]);router[_0x5ef1[17]](_0x5ef1[14],auth[_0x5ef1[5]](),controller[_0x5ef1[18]]);router[_0x5ef1[20]](_0x5ef1[4],auth[_0x5ef1[5]](),controller[_0x5ef1[19]]);router[_0x5ef1[20]](_0x5ef1[21],auth[_0x5ef1[5]](),controller[_0x5ef1[22]]);module[_0x5ef1[23]]=router;
\ No newline at end of file
+var _0x65bc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x71\x75\x65\x75\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x2F\x3A\x69\x64\x2F\x61\x67\x65\x6E\x74\x73","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x2F\x3A\x6E\x61\x6D\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x65bc[0];var express=require(_0x65bc[1]);var controller=require(_0x65bc[2]);var auth=require(_0x65bc[3]);var router=express.Router();router[_0x65bc[7]](_0x65bc[4],auth[_0x65bc[5]](),controller[_0x65bc[6]]);router[_0x65bc[7]](_0x65bc[8],auth[_0x65bc[5]](),controller[_0x65bc[9]]);router[_0x65bc[11]](_0x65bc[4],auth[_0x65bc[5]](),controller[_0x65bc[10]]);router[_0x65bc[11]](_0x65bc[12],auth[_0x65bc[5]](),controller[_0x65bc[13]]);router[_0x65bc[11]](_0x65bc[14],auth[_0x65bc[5]](),controller[_0x65bc[15]]);router[_0x65bc[17]](_0x65bc[8],auth[_0x65bc[5]](),controller[_0x65bc[16]]);router[_0x65bc[17]](_0x65bc[14],auth[_0x65bc[5]](),controller[_0x65bc[18]]);router[_0x65bc[20]](_0x65bc[4],auth[_0x65bc[5]](),controller[_0x65bc[19]]);router[_0x65bc[20]](_0x65bc[21],auth[_0x65bc[5]](),controller[_0x65bc[22]]);module[_0x65bc[23]]=router;
\ No newline at end of file
-var _0x4359=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x73\x74\x72\x61\x74\x65\x67\x79","\x63\x6F\x6E\x74\x65\x78\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x6C\x6F\x67","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x71\x75\x65\x75\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x51\x55\x45\x55\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x53\x49\x50\x2F\x25\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x51\x55\x45\x55\x45\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B"];_0x4359[0];var _=require(_0x4359[1]);var util=require(_0x4359[2]);var User=require(_0x4359[4])[_0x4359[3]];var VoiceQueue=require(_0x4359[4])[_0x4359[5]];var UserHasVoiceQueue=require(_0x4359[4])[_0x4359[6]];var VoiceExtension=require(_0x4359[4])[_0x4359[7]];exports[_0x4359[8]]=function(_0x61d1x7,_0x61d1x8){var _0x61d1x9=[_0x4359[9],_0x4359[10],_0x4359[11],_0x4359[12]];var _0x61d1xa=_0x61d1x7[_0x4359[14]][_0x4359[13]]?parseInt(_0x61d1x7[_0x4359[14]][_0x4359[13]],10):100;var _0x61d1xb=_0x61d1x7[_0x4359[14]][_0x4359[15]]?parseInt(_0x61d1x7[_0x4359[14]][_0x4359[15]],10):0;var _0x61d1xc={where:{},limit:_0x61d1xa,offset:_0x61d1xb*_0x61d1xa};_[_0x4359[29]](_0x61d1x7[_0x4359[14]],function(_0x61d1xd,_0x61d1xe){switch(_0x61d1xe){case _0x4359[13]:;case _0x4359[15]:break ;;case _0x4359[18]:_0x61d1xc[_0x4359[16]]=util[_0x4359[21]](_0x4359[17],_0x61d1x7[_0x4359[14]][_0x4359[18]],_0x61d1x7[_0x4359[14]][_0x4359[19]]||_0x4359[20])||null;break ;;case _0x4359[19]:break ;;case _0x4359[27]:_0x61d1xc[_0x4359[23]][_0x4359[22]]=[];_0x61d1x9[_0x4359[26]](function(_0x61d1xf){var _0x61d1x10={};_0x61d1x10[_0x61d1xf]={$like:_0x4359[24]+_0x61d1xd+_0x4359[24]};_0x61d1xc[_0x4359[23]][_0x4359[22]][_0x4359[25]](_0x61d1x10);});break ;;default:_0x61d1xc[_0x4359[23]][_0x61d1xe]={$like:{}};_0x61d1xc[_0x4359[23]][_0x61d1xe][_0x4359[28]]=_0x4359[24]+_0x61d1xd+_0x4359[24];;}});VoiceQueue[_0x4359[44]](_0x61d1xc)[_0x4359[43]](function(_0x61d1x12){console[_0x4359[32]](_0x61d1x12[_0x4359[31]]);var _0x61d1x13=Math[_0x4359[33]](_0x61d1x12[_0x4359[31]]/_0x61d1xa);console[_0x4359[32]](_0x61d1x13);var _0x61d1x14=_0x61d1x13>(_0x61d1xc[_0x4359[34]]+1)?util[_0x4359[21]](_0x4359[35],_0x61d1x7[_0x4359[36]],_0x61d1x7[_0x4359[38]][_0x4359[37]],_0x61d1x7[_0x4359[39]],_0x61d1xb+1):null;var _0x61d1x15=_0x61d1xb>0?util[_0x4359[21]](_0x4359[35],_0x61d1x7[_0x4359[36]],_0x61d1x7[_0x4359[38]][_0x4359[37]],_0x61d1x7[_0x4359[39]],_0x61d1xb-1):null;_0x61d1x8[_0x4359[42]](200)[_0x4359[41]]({count:_0x61d1x12[_0x4359[31]],rows:_0x61d1x12[_0x4359[40]],next_page:_0x61d1x14,previous_page:_0x61d1x15,total_pages:_0x61d1x13});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});};exports[_0x4359[45]]=function(_0x61d1x7,_0x61d1x8){VoiceQueue[_0x4359[49]](_0x61d1x7[_0x4359[48]][_0x4359[47]])[_0x4359[43]](function(_0x61d1x16){if(!_0x61d1x16){return _0x61d1x8[_0x4359[46]](404)};return _0x61d1x8[_0x4359[41]](_0x61d1x16);})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)})};exports[_0x4359[50]]=function(_0x61d1x7,_0x61d1x8){console[_0x4359[32]](_0x61d1x7[_0x4359[51]]);VoiceQueue[_0x4359[52]]({where:{name:_0x61d1x7[_0x4359[51]][_0x4359[9]]}})[_0x4359[43]](function(_0x61d1x16){if(!_0x61d1x16){return _0x61d1x8[_0x4359[46]](404)};return _0x61d1x8[_0x4359[41]](_0x61d1x16);})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});};exports[_0x4359[53]]=function(_0x61d1x7,_0x61d1x8){VoiceQueue[_0x4359[52]]({where:{name:_0x61d1x7[_0x4359[51]][_0x4359[9]]}})[_0x4359[43]](function(_0x61d1x17){console[_0x4359[32]](_0x61d1x17);console[_0x4359[32]](_0x4359[54]);if(!_0x61d1x17){return _0x61d1x8[_0x4359[46]](404)};if(_0x61d1x17[_0x4359[55]]>0){return _0x61d1x8[_0x4359[42]](500)[_0x4359[41]]({message:_0x4359[56]})};VoiceQueue[_0x4359[53]](_0x61d1x7[_0x4359[51]])[_0x4359[43]](function(_0x61d1x16){return _0x61d1x8[_0x4359[42]](201)[_0x4359[41]](_0x61d1x16)})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)})};exports[_0x4359[57]]=function(_0x61d1x7,_0x61d1x8){VoiceQueue[_0x4359[60]]({where:{name:_0x61d1x7[_0x4359[48]][_0x4359[47]]}})[_0x4359[43]](function(_0x61d1x18){if(!_0x61d1x18){return _0x61d1x8[_0x4359[46]](404)};if(_0x61d1x7[_0x4359[51]][_0x4359[47]]){delete _0x61d1x7[_0x4359[51]][_0x4359[47]]};var _0x61d1x19=_[_0x4359[58]](_0x61d1x18,_0x61d1x7[_0x4359[51]]);_0x61d1x19[_0x4359[59]]()[_0x4359[43]](function(){return _0x61d1x8[_0x4359[42]](200)[_0x4359[41]](_0x61d1x18)})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)})};exports[_0x4359[61]]=function(_0x61d1x7,_0x61d1x8,_0x61d1x1a){console[_0x4359[32]](_0x4359[61]);console[_0x4359[32]](_0x61d1x7[_0x4359[48]]);console[_0x4359[32]](_0x61d1x7[_0x4359[51]]);User[_0x4359[52]]({where:{id:{$in:_0x61d1x7[_0x4359[51]][_0x4359[65]]}}})[_0x4359[43]](function(_0x61d1x1b){var _0x61d1x1c=_[_0x4359[63]](_0x61d1x1b,function(_0x61d1x1d){return {queue:_0x61d1x7[_0x4359[48]][_0x4359[47]],location:util[_0x4359[21]](_0x4359[62],_0x61d1x1d[_0x4359[9]]),membername:_0x61d1x1d[_0x4359[9]],VoiceQueueName:_0x61d1x7[_0x4359[48]][_0x4359[47]],UserId:_0x61d1x1d[_0x4359[47]]}});UserHasVoiceQueue[_0x4359[64]](_0x61d1x1c,{individualHooks:true})[_0x4359[43]](function(){return _0x61d1x8[_0x4359[46]](200)})[_0x4359[30]](function(_0x61d1x11){return _0x61d1x1a(_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return _0x61d1x1a(_0x61d1x11)});};exports[_0x4359[66]]=function(_0x61d1x7,_0x61d1x8,_0x61d1x1a){VoiceQueue[_0x4359[60]]({where:{name:_0x61d1x7[_0x4359[48]][_0x4359[47]]}})[_0x4359[43]](function(_0x61d1x18){if(_0x61d1x18){_0x61d1x18[_0x4359[67]](_0x61d1x7[_0x4359[51]][_0x4359[65]],{individualHooks:true})[_0x4359[43]](function(){return _0x61d1x8[_0x4359[46]](200)})[_0x4359[30]](function(_0x61d1x11){return _0x61d1x1a(_0x61d1x11)})}else {return _0x61d1x1a( new Error(_0x4359[68]))}})[_0x4359[30]](function(_0x61d1x11){return _0x61d1x1a(_0x61d1x11)})};exports[_0x4359[69]]=function(_0x61d1x7,_0x61d1x8){VoiceQueue[_0x4359[60]]({where:{name:_0x61d1x7[_0x4359[48]][_0x4359[9]]}})[_0x4359[43]](function(_0x61d1x16){if(!_0x61d1x16){return _0x61d1x8[_0x4359[46]](404)};VoiceExtension[_0x4359[52]]({where:{queue:_0x61d1x16[_0x4359[9]]}})[_0x4359[43]](function(_0x61d1x1e){if(_0x61d1x1e[_0x4359[55]]>0){return _0x61d1x8[_0x4359[42]](500)[_0x4359[41]]({message:_0x4359[70]})};_0x61d1x16[_0x4359[69]]()[_0x4359[43]](function(){return _0x61d1x8[_0x4359[46]](204)})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)})};exports[_0x4359[71]]=function(_0x61d1x7,_0x61d1x8){VoiceQueue[_0x4359[52]]({where:{name:_0x61d1x7[_0x4359[14]][_0x4359[9]]}})[_0x4359[43]](function(_0x61d1x1f){if(!_0x61d1x1f){return _0x61d1x8[_0x4359[46]](404)};var _0x61d1x20=_[_0x4359[73]](_[_0x4359[73]](_0x61d1x1f,_0x4359[72]),_0x4359[9]);console[_0x4359[32]](_0x61d1x20);VoiceExtension[_0x4359[52]]({where:{queue:_0x61d1x20}})[_0x4359[43]](function(_0x61d1x1e){if(_0x61d1x1e[_0x4359[55]]>0){return _0x61d1x8[_0x4359[42]](500)[_0x4359[41]]({message:_0x4359[70]})};VoiceQueue[_0x4359[69]]({where:{name:_0x61d1x7[_0x4359[14]][_0x4359[9]]},individualHooks:true})[_0x4359[43]](function(){return _0x61d1x8[_0x4359[46]](204)})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)});})[_0x4359[30]](function(_0x61d1x11){return handleError(_0x61d1x8,_0x61d1x11)})};function handleError(_0x61d1x8,_0x61d1x11){return _0x61d1x8[_0x4359[42]](500)[_0x4359[41]](_0x61d1x11)}
\ No newline at end of file
+var _0x1ae3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x73\x74\x72\x61\x74\x65\x67\x79","\x63\x6F\x6E\x74\x65\x78\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x6C\x6F\x67","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x71\x75\x65\x75\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x51\x55\x45\x55\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x53\x49\x50\x2F\x25\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x51\x55\x45\x55\x45\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B"];_0x1ae3[0];var _=require(_0x1ae3[1]);var util=require(_0x1ae3[2]);var User=require(_0x1ae3[4])[_0x1ae3[3]];var VoiceQueue=require(_0x1ae3[4])[_0x1ae3[5]];var UserHasVoiceQueue=require(_0x1ae3[4])[_0x1ae3[6]];var VoiceExtension=require(_0x1ae3[4])[_0x1ae3[7]];exports[_0x1ae3[8]]=function(_0xbe64x7,_0xbe64x8){var _0xbe64x9=[_0x1ae3[9],_0x1ae3[10],_0x1ae3[11],_0x1ae3[12]];var _0xbe64xa=_0xbe64x7[_0x1ae3[14]][_0x1ae3[13]]?parseInt(_0xbe64x7[_0x1ae3[14]][_0x1ae3[13]],10):100;var _0xbe64xb=_0xbe64x7[_0x1ae3[14]][_0x1ae3[15]]?parseInt(_0xbe64x7[_0x1ae3[14]][_0x1ae3[15]],10):0;var _0xbe64xc={where:{},limit:_0xbe64xa,offset:_0xbe64xb*_0xbe64xa};_[_0x1ae3[29]](_0xbe64x7[_0x1ae3[14]],function(_0xbe64xd,_0xbe64xe){switch(_0xbe64xe){case _0x1ae3[13]:;case _0x1ae3[15]:break ;;case _0x1ae3[18]:_0xbe64xc[_0x1ae3[16]]=util[_0x1ae3[21]](_0x1ae3[17],_0xbe64x7[_0x1ae3[14]][_0x1ae3[18]],_0xbe64x7[_0x1ae3[14]][_0x1ae3[19]]||_0x1ae3[20])||null;break ;;case _0x1ae3[19]:break ;;case _0x1ae3[27]:_0xbe64xc[_0x1ae3[23]][_0x1ae3[22]]=[];_0xbe64x9[_0x1ae3[26]](function(_0xbe64xf){var _0xbe64x10={};_0xbe64x10[_0xbe64xf]={$like:_0x1ae3[24]+_0xbe64xd+_0x1ae3[24]};_0xbe64xc[_0x1ae3[23]][_0x1ae3[22]][_0x1ae3[25]](_0xbe64x10);});break ;;default:_0xbe64xc[_0x1ae3[23]][_0xbe64xe]={$like:{}};_0xbe64xc[_0x1ae3[23]][_0xbe64xe][_0x1ae3[28]]=_0x1ae3[24]+_0xbe64xd+_0x1ae3[24];;}});VoiceQueue[_0x1ae3[44]](_0xbe64xc)[_0x1ae3[43]](function(_0xbe64x12){console[_0x1ae3[32]](_0xbe64x12[_0x1ae3[31]]);var _0xbe64x13=Math[_0x1ae3[33]](_0xbe64x12[_0x1ae3[31]]/_0xbe64xa);console[_0x1ae3[32]](_0xbe64x13);var _0xbe64x14=_0xbe64x13>(_0xbe64xc[_0x1ae3[34]]+1)?util[_0x1ae3[21]](_0x1ae3[35],_0xbe64x7[_0x1ae3[36]],_0xbe64x7[_0x1ae3[38]][_0x1ae3[37]],_0xbe64x7[_0x1ae3[39]],_0xbe64xb+1):null;var _0xbe64x15=_0xbe64xb>0?util[_0x1ae3[21]](_0x1ae3[35],_0xbe64x7[_0x1ae3[36]],_0xbe64x7[_0x1ae3[38]][_0x1ae3[37]],_0xbe64x7[_0x1ae3[39]],_0xbe64xb-1):null;_0xbe64x8[_0x1ae3[42]](200)[_0x1ae3[41]]({count:_0xbe64x12[_0x1ae3[31]],rows:_0xbe64x12[_0x1ae3[40]],next_page:_0xbe64x14,previous_page:_0xbe64x15,total_pages:_0xbe64x13});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});};exports[_0x1ae3[45]]=function(_0xbe64x7,_0xbe64x8){VoiceQueue[_0x1ae3[49]](_0xbe64x7[_0x1ae3[48]][_0x1ae3[47]])[_0x1ae3[43]](function(_0xbe64x16){if(!_0xbe64x16){return _0xbe64x8[_0x1ae3[46]](404)};return _0xbe64x8[_0x1ae3[41]](_0xbe64x16);})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)})};exports[_0x1ae3[50]]=function(_0xbe64x7,_0xbe64x8){console[_0x1ae3[32]](_0xbe64x7[_0x1ae3[51]]);VoiceQueue[_0x1ae3[52]]({where:{name:_0xbe64x7[_0x1ae3[51]][_0x1ae3[9]]}})[_0x1ae3[43]](function(_0xbe64x16){if(!_0xbe64x16){return _0xbe64x8[_0x1ae3[46]](404)};return _0xbe64x8[_0x1ae3[41]](_0xbe64x16);})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});};exports[_0x1ae3[53]]=function(_0xbe64x7,_0xbe64x8){VoiceQueue[_0x1ae3[52]]({where:{name:_0xbe64x7[_0x1ae3[51]][_0x1ae3[9]]}})[_0x1ae3[43]](function(_0xbe64x17){console[_0x1ae3[32]](_0xbe64x17);console[_0x1ae3[32]](_0x1ae3[54]);if(!_0xbe64x17){return _0xbe64x8[_0x1ae3[46]](404)};if(_0xbe64x17[_0x1ae3[55]]>0){return _0xbe64x8[_0x1ae3[42]](500)[_0x1ae3[41]]({message:_0x1ae3[56]})};VoiceQueue[_0x1ae3[53]](_0xbe64x7[_0x1ae3[51]])[_0x1ae3[43]](function(_0xbe64x16){return _0xbe64x8[_0x1ae3[42]](201)[_0x1ae3[41]](_0xbe64x16)})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)})};exports[_0x1ae3[57]]=function(_0xbe64x7,_0xbe64x8){VoiceQueue[_0x1ae3[60]]({where:{name:_0xbe64x7[_0x1ae3[48]][_0x1ae3[47]]}})[_0x1ae3[43]](function(_0xbe64x18){if(!_0xbe64x18){return _0xbe64x8[_0x1ae3[46]](404)};if(_0xbe64x7[_0x1ae3[51]][_0x1ae3[47]]){delete _0xbe64x7[_0x1ae3[51]][_0x1ae3[47]]};var _0xbe64x19=_[_0x1ae3[58]](_0xbe64x18,_0xbe64x7[_0x1ae3[51]]);_0xbe64x19[_0x1ae3[59]]()[_0x1ae3[43]](function(){return _0xbe64x8[_0x1ae3[42]](200)[_0x1ae3[41]](_0xbe64x18)})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)})};exports[_0x1ae3[61]]=function(_0xbe64x7,_0xbe64x8,_0xbe64x1a){console[_0x1ae3[32]](_0x1ae3[61]);console[_0x1ae3[32]](_0xbe64x7[_0x1ae3[48]]);console[_0x1ae3[32]](_0xbe64x7[_0x1ae3[51]]);User[_0x1ae3[52]]({where:{id:{$in:_0xbe64x7[_0x1ae3[51]][_0x1ae3[65]]}}})[_0x1ae3[43]](function(_0xbe64x1b){var _0xbe64x1c=_[_0x1ae3[63]](_0xbe64x1b,function(_0xbe64x1d){return {queue:_0xbe64x7[_0x1ae3[48]][_0x1ae3[47]],location:util[_0x1ae3[21]](_0x1ae3[62],_0xbe64x1d[_0x1ae3[9]]),membername:_0xbe64x1d[_0x1ae3[9]],VoiceQueueName:_0xbe64x7[_0x1ae3[48]][_0x1ae3[47]],UserId:_0xbe64x1d[_0x1ae3[47]]}});UserHasVoiceQueue[_0x1ae3[64]](_0xbe64x1c,{individualHooks:true})[_0x1ae3[43]](function(){return _0xbe64x8[_0x1ae3[46]](200)})[_0x1ae3[30]](function(_0xbe64x11){return _0xbe64x1a(_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return _0xbe64x1a(_0xbe64x11)});};exports[_0x1ae3[66]]=function(_0xbe64x7,_0xbe64x8,_0xbe64x1a){VoiceQueue[_0x1ae3[60]]({where:{name:_0xbe64x7[_0x1ae3[48]][_0x1ae3[47]]}})[_0x1ae3[43]](function(_0xbe64x18){if(_0xbe64x18){_0xbe64x18[_0x1ae3[67]](_0xbe64x7[_0x1ae3[51]][_0x1ae3[65]],{individualHooks:true})[_0x1ae3[43]](function(){return _0xbe64x8[_0x1ae3[46]](200)})[_0x1ae3[30]](function(_0xbe64x11){return _0xbe64x1a(_0xbe64x11)})}else {return _0xbe64x1a( new Error(_0x1ae3[68]))}})[_0x1ae3[30]](function(_0xbe64x11){return _0xbe64x1a(_0xbe64x11)})};exports[_0x1ae3[69]]=function(_0xbe64x7,_0xbe64x8){VoiceQueue[_0x1ae3[60]]({where:{name:_0xbe64x7[_0x1ae3[48]][_0x1ae3[9]]}})[_0x1ae3[43]](function(_0xbe64x16){if(!_0xbe64x16){return _0xbe64x8[_0x1ae3[46]](404)};VoiceExtension[_0x1ae3[52]]({where:{queue:_0xbe64x16[_0x1ae3[9]]}})[_0x1ae3[43]](function(_0xbe64x1e){if(_0xbe64x1e[_0x1ae3[55]]>0){return _0xbe64x8[_0x1ae3[42]](500)[_0x1ae3[41]]({message:_0x1ae3[70]})};_0xbe64x16[_0x1ae3[69]]()[_0x1ae3[43]](function(){return _0xbe64x8[_0x1ae3[46]](204)})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)})};exports[_0x1ae3[71]]=function(_0xbe64x7,_0xbe64x8){VoiceQueue[_0x1ae3[52]]({where:{name:_0xbe64x7[_0x1ae3[14]][_0x1ae3[9]]}})[_0x1ae3[43]](function(_0xbe64x1f){if(!_0xbe64x1f){return _0xbe64x8[_0x1ae3[46]](404)};var _0xbe64x20=_[_0x1ae3[73]](_[_0x1ae3[73]](_0xbe64x1f,_0x1ae3[72]),_0x1ae3[9]);console[_0x1ae3[32]](_0xbe64x20);VoiceExtension[_0x1ae3[52]]({where:{queue:_0xbe64x20}})[_0x1ae3[43]](function(_0xbe64x1e){if(_0xbe64x1e[_0x1ae3[55]]>0){return _0xbe64x8[_0x1ae3[42]](500)[_0x1ae3[41]]({message:_0x1ae3[70]})};VoiceQueue[_0x1ae3[69]]({where:{name:_0xbe64x7[_0x1ae3[14]][_0x1ae3[9]]},individualHooks:true})[_0x1ae3[43]](function(){return _0xbe64x8[_0x1ae3[46]](204)})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)});})[_0x1ae3[30]](function(_0xbe64x11){return handleError(_0xbe64x8,_0xbe64x11)})};function handleError(_0xbe64x8,_0xbe64x11){return _0xbe64x8[_0x1ae3[42]](500)[_0x1ae3[41]](_0xbe64x11)}
\ No newline at end of file
-var _0x4293=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x4293[0];var VoiceQueue=require(_0x4293[2])[_0x4293[1]];exports[_0x4293[3]]=function(_0xc47fx2){VoiceQueue[_0x4293[4]](function(_0xc47fx3){onSave(_0xc47fx2,_0xc47fx3)});VoiceQueue[_0x4293[5]](function(_0xc47fx3){onRemove(_0xc47fx2,_0xc47fx3)});};function onSave(_0xc47fx2,_0xc47fx3,_0xc47fx5){_0xc47fx2[_0x4293[7]](_0x4293[6],_0xc47fx3)}function onRemove(_0xc47fx2,_0xc47fx3,_0xc47fx5){_0xc47fx2[_0x4293[7]](_0x4293[8],_0xc47fx3)}
\ No newline at end of file
+var _0x23be=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65"];_0x23be[0];var VoiceQueue=require(_0x23be[2])[_0x23be[1]];exports[_0x23be[3]]=function(_0x7379x2){VoiceQueue[_0x23be[4]](function(_0x7379x3){onSave(_0x7379x2,_0x7379x3)});VoiceQueue[_0x23be[5]](function(_0x7379x3){onRemove(_0x7379x2,_0x7379x3)});};function onSave(_0x7379x2,_0x7379x3,_0x7379x5){_0x7379x2[_0x23be[7]](_0x23be[6],_0x7379x3)}function onRemove(_0x7379x2,_0x7379x3,_0x7379x5){_0x7379x2[_0x23be[7]](_0x23be[8],_0x7379x3)}
\ No newline at end of file
-var _0x5a7a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x5a7a[0];var should=require(_0x5a7a[1]);var app=require(_0x5a7a[2]);var request=require(_0x5a7a[3]);describe(_0x5a7a[4],function(){it(_0x5a7a[5],function(_0x2e8cx4){request(app)[_0x5a7a[13]](_0x5a7a[12])[_0x5a7a[11]](200)[_0x5a7a[11]](_0x5a7a[10],/json/)[_0x5a7a[9]](function(_0x2e8cx5,_0x2e8cx6){if(_0x2e8cx5){return _0x2e8cx4(_0x2e8cx5)};_0x2e8cx6[_0x5a7a[8]][_0x5a7a[1]][_0x5a7a[7]][_0x5a7a[6]](Array);_0x2e8cx4();})})});
\ No newline at end of file
+var _0x62fc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x67\x65\x74"];_0x62fc[0];var should=require(_0x62fc[1]);var app=require(_0x62fc[2]);var request=require(_0x62fc[3]);describe(_0x62fc[4],function(){it(_0x62fc[5],function(_0xc96cx4){request(app)[_0x62fc[13]](_0x62fc[12])[_0x62fc[11]](200)[_0x62fc[11]](_0x62fc[10],/json/)[_0x62fc[9]](function(_0xc96cx5,_0xc96cx6){if(_0xc96cx5){return _0xc96cx4(_0xc96cx5)};_0xc96cx6[_0x62fc[8]][_0x62fc[1]][_0x62fc[7]][_0x62fc[6]](Array);_0xc96cx4();})})});
\ No newline at end of file
-var _0xc0d6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x75\x6E\x69\x71\x75\x65\x69\x64\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x2F\x6D\x65\x73\x73\x61\x67\x65\x73\x2F\x3A\x69\x64\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x4D\x65\x73\x73\x61\x67\x65","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x61\x69\x6C\x62\x6F\x78\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x2F\x6D\x65\x73\x73\x61\x67\x65\x73\x2F\x3A\x69\x64\x2F\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xc0d6[0];var express=require(_0xc0d6[1]);var controller=require(_0xc0d6[2]);var auth=require(_0xc0d6[3]);var router=express.Router();router[_0xc0d6[7]](_0xc0d6[4],auth[_0xc0d6[5]](),controller[_0xc0d6[6]]);router[_0xc0d6[7]](_0xc0d6[8],auth[_0xc0d6[5]](),controller[_0xc0d6[9]]);router[_0xc0d6[7]](_0xc0d6[10],auth[_0xc0d6[5]](),controller[_0xc0d6[11]]);router[_0xc0d6[7]](_0xc0d6[12],auth[_0xc0d6[5]](),controller[_0xc0d6[13]]);router[_0xc0d6[15]](_0xc0d6[4],auth[_0xc0d6[5]](),controller[_0xc0d6[14]]);router[_0xc0d6[15]](_0xc0d6[16],auth[_0xc0d6[5]](),controller[_0xc0d6[17]]);router[_0xc0d6[19]](_0xc0d6[8],auth[_0xc0d6[5]](),controller[_0xc0d6[18]]);router[_0xc0d6[21]](_0xc0d6[20],auth[_0xc0d6[5]](),controller[_0xc0d6[18]]);router[_0xc0d6[23]](_0xc0d6[4],auth[_0xc0d6[5]](),controller[_0xc0d6[22]]);router[_0xc0d6[23]](_0xc0d6[8],auth[_0xc0d6[5]](),controller[_0xc0d6[24]]);router[_0xc0d6[23]](_0xc0d6[25],auth[_0xc0d6[5]](),controller[_0xc0d6[26]]);module[_0xc0d6[27]]=router;
\ No newline at end of file
+var _0x8d9d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x75\x6E\x69\x71\x75\x65\x69\x64\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x2F\x6D\x65\x73\x73\x61\x67\x65\x73\x2F\x3A\x69\x64\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x4D\x65\x73\x73\x61\x67\x65","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65","\x6D\x61\x69\x6C\x62\x6F\x78\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x2F\x6D\x65\x73\x73\x61\x67\x65\x73\x2F\x3A\x69\x64\x2F\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x8d9d[0];var express=require(_0x8d9d[1]);var controller=require(_0x8d9d[2]);var auth=require(_0x8d9d[3]);var router=express.Router();router[_0x8d9d[7]](_0x8d9d[4],auth[_0x8d9d[5]](),controller[_0x8d9d[6]]);router[_0x8d9d[7]](_0x8d9d[8],auth[_0x8d9d[5]](),controller[_0x8d9d[9]]);router[_0x8d9d[7]](_0x8d9d[10],auth[_0x8d9d[5]](),controller[_0x8d9d[11]]);router[_0x8d9d[7]](_0x8d9d[12],auth[_0x8d9d[5]](),controller[_0x8d9d[13]]);router[_0x8d9d[15]](_0x8d9d[4],auth[_0x8d9d[5]](),controller[_0x8d9d[14]]);router[_0x8d9d[15]](_0x8d9d[16],auth[_0x8d9d[5]](),controller[_0x8d9d[17]]);router[_0x8d9d[19]](_0x8d9d[8],auth[_0x8d9d[5]](),controller[_0x8d9d[18]]);router[_0x8d9d[21]](_0x8d9d[20],auth[_0x8d9d[5]](),controller[_0x8d9d[18]]);router[_0x8d9d[23]](_0x8d9d[4],auth[_0x8d9d[5]](),controller[_0x8d9d[22]]);router[_0x8d9d[23]](_0x8d9d[8],auth[_0x8d9d[5]](),controller[_0x8d9d[24]]);router[_0x8d9d[23]](_0x8d9d[25],auth[_0x8d9d[5]](),controller[_0x8d9d[26]]);module[_0x8d9d[27]]=router;
\ No newline at end of file
-var _0x45f5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x73\x74\x72\x65\x61\x6D","\x69\x6E\x64\x65\x78","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x61\x69\x6C\x62\x6F\x78\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x41\x49\x4C\x42\x4F\x58","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x74\x72\x6F\x79\x4D\x65\x73\x73\x61\x67\x65","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x4D\x65\x73\x73\x61\x67\x65","\x6D\x73\x67\x5F\x69\x64","\x2E\x77\x61\x76","\x4F\x4B","\x61\x75\x64\x69\x6F\x2F\x77\x61\x76","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3B\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D","\x77\x72\x69\x74\x65\x48\x65\x61\x64","\x65\x6E\x64","\x70\x69\x70\x65"];_0x45f5[0];var _=require(_0x45f5[1]);var VoiceVoicemail=require(_0x45f5[3])[_0x45f5[2]];var VoiceVoicemailMessages=require(_0x45f5[3])[_0x45f5[4]];var stream=require(_0x45f5[5]);exports[_0x45f5[6]]=function(_0x4e18x5,_0x4e18x6){var _0x4e18x7=[_0x45f5[7],_0x45f5[8],_0x45f5[9]];var _0x4e18x8=_0x4e18x5[_0x45f5[11]][_0x45f5[10]]?parseInt(_0x4e18x5[_0x45f5[11]][_0x45f5[10]],10):100;var _0x4e18x9=_0x4e18x5[_0x45f5[11]][_0x45f5[12]]?parseInt(_0x4e18x5[_0x45f5[11]][_0x45f5[12]],10):0;var _0x4e18xa={where:{},limit:_0x4e18x8,offset:_0x4e18x9*_0x4e18x8};_[_0x45f5[26]](_0x4e18x5[_0x45f5[11]],function(_0x4e18xb,_0x4e18xc){switch(_0x4e18xc){case _0x45f5[10]:;case _0x45f5[12]:break ;;case _0x45f5[15]:_0x4e18xa[_0x45f5[13]]=util[_0x45f5[18]](_0x45f5[14],_0x4e18x5[_0x45f5[11]][_0x45f5[15]],_0x4e18x5[_0x45f5[11]][_0x45f5[16]]||_0x45f5[17])||null;break ;;case _0x45f5[16]:break ;;case _0x45f5[24]:_0x4e18xa[_0x45f5[20]][_0x45f5[19]]=[];_0x4e18x7[_0x45f5[23]](function(_0x4e18xd){var _0x4e18xe={};_0x4e18xe[_0x4e18xd]={$like:_0x45f5[21]+_0x4e18xb+_0x45f5[21]};_0x4e18xa[_0x45f5[20]][_0x45f5[19]][_0x45f5[22]](_0x4e18xe);});break ;;default:_0x4e18xa[_0x45f5[20]][_0x4e18xc]={$like:{}};_0x4e18xa[_0x45f5[20]][_0x4e18xc][_0x45f5[25]]=_0x45f5[21]+_0x4e18xb+_0x45f5[21];;}});VoiceVoicemail[_0x45f5[31]](_0x4e18xa)[_0x45f5[30]](function(_0x4e18x10){return _0x4e18x6[_0x45f5[29]](200)[_0x45f5[28]](_0x4e18x10)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});};exports[_0x45f5[32]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[36]]({where:{uniqueid:_0x4e18x5[_0x45f5[35]][_0x45f5[34]]}})[_0x45f5[30]](function(_0x4e18x11){if(!_0x4e18x11){return _0x4e18x6[_0x45f5[33]](404)};return _0x4e18x6[_0x45f5[28]](_0x4e18x11);})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[37]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[36]]({where:{uniqueid:_0x4e18x5[_0x45f5[35]][_0x45f5[34]]}})[_0x45f5[30]](function(_0x4e18x11){VoiceVoicemailMessages[_0x45f5[39]]({where:{mailboxcontext:_0x4e18x11[_0x45f5[38]],mailboxuser:_0x4e18x11[_0x45f5[7]]}})[_0x45f5[30]](function(_0x4e18x12){return _0x4e18x6[_0x45f5[29]](200)[_0x45f5[28]](_0x4e18x12)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[40]]=function(_0x4e18x5,_0x4e18x6){console[_0x45f5[42]](_0x4e18x5[_0x45f5[41]]);VoiceVoicemail[_0x45f5[39]]({where:{mailbox:_0x4e18x5[_0x45f5[41]][_0x45f5[7]],context:_0x4e18x5[_0x45f5[41]][_0x45f5[38]]}})[_0x45f5[30]](function(_0x4e18x13){if(!_0x4e18x13){return _0x4e18x6[_0x45f5[33]](404)};return _0x4e18x6[_0x45f5[28]](_0x4e18x13);})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});};exports[_0x45f5[43]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[39]]({where:{mailbox:_0x4e18x5[_0x45f5[41]][_0x45f5[7]],context:_0x4e18x5[_0x45f5[41]][_0x45f5[38]]}})[_0x45f5[30]](function(_0x4e18x13){if(!_0x4e18x13){return _0x4e18x6[_0x45f5[33]](404)};if(_0x4e18x13[_0x45f5[44]]>0){return _0x4e18x6[_0x45f5[29]](500)[_0x45f5[28]]({message:_0x45f5[45]})};VoiceVoicemail[_0x45f5[43]](_0x4e18x5[_0x45f5[41]])[_0x45f5[30]](function(_0x4e18x11){return _0x4e18x6[_0x45f5[29]](201)[_0x45f5[28]](_0x4e18x11)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});})};exports[_0x45f5[46]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[39]]({where:{mailbox:_0x4e18x5[_0x45f5[41]][_0x45f5[7]],context:_0x4e18x5[_0x45f5[41]][_0x45f5[38]],uniqueid:{$ne:_0x4e18x5[_0x45f5[41]][_0x45f5[34]]}}})[_0x45f5[30]](function(_0x4e18x13){if(!_0x4e18x13){return _0x4e18x6[_0x45f5[33]](404)};if(_0x4e18x13[_0x45f5[44]]>0){return _0x4e18x6[_0x45f5[29]](500)[_0x45f5[28]]({message:_0x45f5[45]})};if(_0x4e18x5[_0x45f5[41]][_0x45f5[34]]){delete _0x4e18x5[_0x45f5[41]][_0x45f5[34]]};VoiceVoicemail[_0x45f5[36]]({where:{uniqueid:_0x4e18x5[_0x45f5[35]][_0x45f5[34]]}})[_0x45f5[30]](function(_0x4e18x11){if(!_0x4e18x11){return _0x4e18x6[_0x45f5[33]](404)};var _0x4e18x14=_[_0x45f5[47]](_0x4e18x11,_0x4e18x5[_0x45f5[41]]);_0x4e18x14[_0x45f5[48]]()[_0x45f5[30]](function(){return _0x4e18x6[_0x45f5[29]](200)[_0x45f5[28]](_0x4e18x11)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[49]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[36]]({where:{uniqueid:_0x4e18x5[_0x45f5[35]][_0x45f5[34]]}})[_0x45f5[30]](function(_0x4e18x11){if(!_0x4e18x11){return _0x4e18x6[_0x45f5[33]](404)};_0x4e18x11[_0x45f5[49]]()[_0x45f5[30]](function(){return _0x4e18x6[_0x45f5[33]](204)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[50]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemail[_0x45f5[49]]({where:{uniqueid:_0x4e18x5[_0x45f5[11]][_0x45f5[34]]},individualHooks:true})[_0x45f5[30]](function(){return _0x4e18x6[_0x45f5[33]](204)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[51]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemailMessages[_0x45f5[54]](_0x4e18x5[_0x45f5[35]][_0x45f5[53]])[_0x45f5[30]](function(_0x4e18x15){if(!_0x4e18x15){return _0x4e18x6[_0x45f5[33]](404)};_0x4e18x15[_0x45f5[52]]=null;_0x4e18x15[_0x45f5[49]]()[_0x45f5[30]](function(){return _0x4e18x6[_0x45f5[33]](204)})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)});})[_0x45f5[27]](function(_0x4e18xf){return handleError(_0x4e18x6,_0x4e18xf)})};exports[_0x45f5[55]]=function(_0x4e18x5,_0x4e18x6){VoiceVoicemailMessages[_0x45f5[54]](_0x4e18x5[_0x45f5[35]][_0x45f5[53]])[_0x45f5[30]](function(_0x4e18x16){if(!_0x4e18x16){return _0x4e18x6[_0x45f5[33]](404)};var _0x4e18x17=_0x4e18x16[_0x45f5[56]]+_0x45f5[57];_0x4e18x6[_0x45f5[61]](200,_0x45f5[58],{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x45f5[59],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x45f5[60]+_0x4e18x17,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0x4e18x16[_0x45f5[52]][_0x45f5[44]]});var _0x4e18x18= new stream.PassThrough();_0x4e18x18[_0x45f5[62]]( new Buffer(_0x4e18x16[_0x45f5[52]]));_0x4e18x18[_0x45f5[63]](_0x4e18x6);})};function handleError(_0x4e18x6,_0x4e18xf){return _0x4e18x6[_0x45f5[29]](500)[_0x45f5[28]](_0x4e18xf)}
\ No newline at end of file
+var _0x5bec=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x73\x74\x72\x65\x61\x6D","\x69\x6E\x64\x65\x78","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x6D\x61\x69\x6C\x62\x6F\x78\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x4D\x41\x49\x4C\x42\x4F\x58","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x73\x74\x72\x6F\x79\x4D\x65\x73\x73\x61\x67\x65","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x4D\x65\x73\x73\x61\x67\x65","\x6D\x73\x67\x5F\x69\x64","\x2E\x77\x61\x76","\x4F\x4B","\x61\x75\x64\x69\x6F\x2F\x77\x61\x76","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x3B\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D","\x77\x72\x69\x74\x65\x48\x65\x61\x64","\x65\x6E\x64","\x70\x69\x70\x65"];_0x5bec[0];var _=require(_0x5bec[1]);var VoiceVoicemail=require(_0x5bec[3])[_0x5bec[2]];var VoiceVoicemailMessages=require(_0x5bec[3])[_0x5bec[4]];var stream=require(_0x5bec[5]);exports[_0x5bec[6]]=function(_0x19d7x5,_0x19d7x6){var _0x19d7x7=[_0x5bec[7],_0x5bec[8],_0x5bec[9]];var _0x19d7x8=_0x19d7x5[_0x5bec[11]][_0x5bec[10]]?parseInt(_0x19d7x5[_0x5bec[11]][_0x5bec[10]],10):100;var _0x19d7x9=_0x19d7x5[_0x5bec[11]][_0x5bec[12]]?parseInt(_0x19d7x5[_0x5bec[11]][_0x5bec[12]],10):0;var _0x19d7xa={where:{},limit:_0x19d7x8,offset:_0x19d7x9*_0x19d7x8};_[_0x5bec[26]](_0x19d7x5[_0x5bec[11]],function(_0x19d7xb,_0x19d7xc){switch(_0x19d7xc){case _0x5bec[10]:;case _0x5bec[12]:break ;;case _0x5bec[15]:_0x19d7xa[_0x5bec[13]]=util[_0x5bec[18]](_0x5bec[14],_0x19d7x5[_0x5bec[11]][_0x5bec[15]],_0x19d7x5[_0x5bec[11]][_0x5bec[16]]||_0x5bec[17])||null;break ;;case _0x5bec[16]:break ;;case _0x5bec[24]:_0x19d7xa[_0x5bec[20]][_0x5bec[19]]=[];_0x19d7x7[_0x5bec[23]](function(_0x19d7xd){var _0x19d7xe={};_0x19d7xe[_0x19d7xd]={$like:_0x5bec[21]+_0x19d7xb+_0x5bec[21]};_0x19d7xa[_0x5bec[20]][_0x5bec[19]][_0x5bec[22]](_0x19d7xe);});break ;;default:_0x19d7xa[_0x5bec[20]][_0x19d7xc]={$like:{}};_0x19d7xa[_0x5bec[20]][_0x19d7xc][_0x5bec[25]]=_0x5bec[21]+_0x19d7xb+_0x5bec[21];;}});VoiceVoicemail[_0x5bec[31]](_0x19d7xa)[_0x5bec[30]](function(_0x19d7x10){return _0x19d7x6[_0x5bec[29]](200)[_0x5bec[28]](_0x19d7x10)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});};exports[_0x5bec[32]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[36]]({where:{uniqueid:_0x19d7x5[_0x5bec[35]][_0x5bec[34]]}})[_0x5bec[30]](function(_0x19d7x11){if(!_0x19d7x11){return _0x19d7x6[_0x5bec[33]](404)};return _0x19d7x6[_0x5bec[28]](_0x19d7x11);})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[37]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[36]]({where:{uniqueid:_0x19d7x5[_0x5bec[35]][_0x5bec[34]]}})[_0x5bec[30]](function(_0x19d7x11){VoiceVoicemailMessages[_0x5bec[39]]({where:{mailboxcontext:_0x19d7x11[_0x5bec[38]],mailboxuser:_0x19d7x11[_0x5bec[7]]}})[_0x5bec[30]](function(_0x19d7x12){return _0x19d7x6[_0x5bec[29]](200)[_0x5bec[28]](_0x19d7x12)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[40]]=function(_0x19d7x5,_0x19d7x6){console[_0x5bec[42]](_0x19d7x5[_0x5bec[41]]);VoiceVoicemail[_0x5bec[39]]({where:{mailbox:_0x19d7x5[_0x5bec[41]][_0x5bec[7]],context:_0x19d7x5[_0x5bec[41]][_0x5bec[38]]}})[_0x5bec[30]](function(_0x19d7x13){if(!_0x19d7x13){return _0x19d7x6[_0x5bec[33]](404)};return _0x19d7x6[_0x5bec[28]](_0x19d7x13);})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});};exports[_0x5bec[43]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[39]]({where:{mailbox:_0x19d7x5[_0x5bec[41]][_0x5bec[7]],context:_0x19d7x5[_0x5bec[41]][_0x5bec[38]]}})[_0x5bec[30]](function(_0x19d7x13){if(!_0x19d7x13){return _0x19d7x6[_0x5bec[33]](404)};if(_0x19d7x13[_0x5bec[44]]>0){return _0x19d7x6[_0x5bec[29]](500)[_0x5bec[28]]({message:_0x5bec[45]})};VoiceVoicemail[_0x5bec[43]](_0x19d7x5[_0x5bec[41]])[_0x5bec[30]](function(_0x19d7x11){return _0x19d7x6[_0x5bec[29]](201)[_0x5bec[28]](_0x19d7x11)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});})};exports[_0x5bec[46]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[39]]({where:{mailbox:_0x19d7x5[_0x5bec[41]][_0x5bec[7]],context:_0x19d7x5[_0x5bec[41]][_0x5bec[38]],uniqueid:{$ne:_0x19d7x5[_0x5bec[41]][_0x5bec[34]]}}})[_0x5bec[30]](function(_0x19d7x13){if(!_0x19d7x13){return _0x19d7x6[_0x5bec[33]](404)};if(_0x19d7x13[_0x5bec[44]]>0){return _0x19d7x6[_0x5bec[29]](500)[_0x5bec[28]]({message:_0x5bec[45]})};if(_0x19d7x5[_0x5bec[41]][_0x5bec[34]]){delete _0x19d7x5[_0x5bec[41]][_0x5bec[34]]};VoiceVoicemail[_0x5bec[36]]({where:{uniqueid:_0x19d7x5[_0x5bec[35]][_0x5bec[34]]}})[_0x5bec[30]](function(_0x19d7x11){if(!_0x19d7x11){return _0x19d7x6[_0x5bec[33]](404)};var _0x19d7x14=_[_0x5bec[47]](_0x19d7x11,_0x19d7x5[_0x5bec[41]]);_0x19d7x14[_0x5bec[48]]()[_0x5bec[30]](function(){return _0x19d7x6[_0x5bec[29]](200)[_0x5bec[28]](_0x19d7x11)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[49]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[36]]({where:{uniqueid:_0x19d7x5[_0x5bec[35]][_0x5bec[34]]}})[_0x5bec[30]](function(_0x19d7x11){if(!_0x19d7x11){return _0x19d7x6[_0x5bec[33]](404)};_0x19d7x11[_0x5bec[49]]()[_0x5bec[30]](function(){return _0x19d7x6[_0x5bec[33]](204)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[50]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemail[_0x5bec[49]]({where:{uniqueid:_0x19d7x5[_0x5bec[11]][_0x5bec[34]]},individualHooks:true})[_0x5bec[30]](function(){return _0x19d7x6[_0x5bec[33]](204)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[51]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemailMessages[_0x5bec[54]](_0x19d7x5[_0x5bec[35]][_0x5bec[53]])[_0x5bec[30]](function(_0x19d7x15){if(!_0x19d7x15){return _0x19d7x6[_0x5bec[33]](404)};_0x19d7x15[_0x5bec[52]]=null;_0x19d7x15[_0x5bec[49]]()[_0x5bec[30]](function(){return _0x19d7x6[_0x5bec[33]](204)})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)});})[_0x5bec[27]](function(_0x19d7xf){return handleError(_0x19d7x6,_0x19d7xf)})};exports[_0x5bec[55]]=function(_0x19d7x5,_0x19d7x6){VoiceVoicemailMessages[_0x5bec[54]](_0x19d7x5[_0x5bec[35]][_0x5bec[53]])[_0x5bec[30]](function(_0x19d7x16){if(!_0x19d7x16){return _0x19d7x6[_0x5bec[33]](404)};var _0x19d7x17=_0x19d7x16[_0x5bec[56]]+_0x5bec[57];_0x19d7x6[_0x5bec[61]](200,_0x5bec[58],{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x5bec[59],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x5bec[60]+_0x19d7x17,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0x19d7x16[_0x5bec[52]][_0x5bec[44]]});var _0x19d7x18= new stream.PassThrough();_0x19d7x18[_0x5bec[62]]( new Buffer(_0x19d7x16[_0x5bec[52]]));_0x19d7x18[_0x5bec[63]](_0x19d7x6);})};function handleError(_0x19d7x6,_0x19d7xf){return _0x19d7x6[_0x5bec[29]](500)[_0x5bec[28]](_0x19d7xf)}
\ No newline at end of file
-var _0xef2d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x72\x65\x6D\x6F\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x73\x61\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x72\x65\x6D\x6F\x76\x65"];_0xef2d[0];var VoiceVoicemail=require(_0xef2d[2])[_0xef2d[1]];var VoiceVoicemailMessages=require(_0xef2d[2])[_0xef2d[3]];exports[_0xef2d[4]]=function(_0xa32dx3){VoiceVoicemail[_0xef2d[5]](function(_0xa32dx4){onSave(_0xa32dx3,_0xa32dx4)});VoiceVoicemail[_0xef2d[6]](function(_0xa32dx4){onRemove(_0xa32dx3,_0xa32dx4)});VoiceVoicemailMessages[_0xef2d[5]](function(_0xa32dx4){onMessageSave(_0xa32dx3,_0xa32dx4)});VoiceVoicemailMessages[_0xef2d[6]](function(_0xa32dx4){onMessageRemove(_0xa32dx3,_0xa32dx4)});};function onSave(_0xa32dx3,_0xa32dx4,_0xa32dx6){_0xa32dx3[_0xef2d[8]](_0xef2d[7],_0xa32dx4)}function onRemove(_0xa32dx3,_0xa32dx4,_0xa32dx6){_0xa32dx3[_0xef2d[8]](_0xef2d[9],_0xa32dx4)}function onMessageSave(_0xa32dx3,_0xa32dx4,_0xa32dx6){_0xa32dx3[_0xef2d[8]](_0xef2d[10],_0xa32dx4)}function onMessageRemove(_0xa32dx3,_0xa32dx4,_0xa32dx6){_0xa32dx3[_0xef2d[8]](_0xef2d[11],_0xa32dx4)}
\ No newline at end of file
+var _0x3307=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x3A\x72\x65\x6D\x6F\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x73\x61\x76\x65","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3307[0];var VoiceVoicemail=require(_0x3307[2])[_0x3307[1]];var VoiceVoicemailMessages=require(_0x3307[2])[_0x3307[3]];exports[_0x3307[4]]=function(_0xd564x3){VoiceVoicemail[_0x3307[5]](function(_0xd564x4){onSave(_0xd564x3,_0xd564x4)});VoiceVoicemail[_0x3307[6]](function(_0xd564x4){onRemove(_0xd564x3,_0xd564x4)});VoiceVoicemailMessages[_0x3307[5]](function(_0xd564x4){onMessageSave(_0xd564x3,_0xd564x4)});VoiceVoicemailMessages[_0x3307[6]](function(_0xd564x4){onMessageRemove(_0xd564x3,_0xd564x4)});};function onSave(_0xd564x3,_0xd564x4,_0xd564x6){_0xd564x3[_0x3307[8]](_0x3307[7],_0xd564x4)}function onRemove(_0xd564x3,_0xd564x4,_0xd564x6){_0xd564x3[_0x3307[8]](_0x3307[9],_0xd564x4)}function onMessageSave(_0xd564x3,_0xd564x4,_0xd564x6){_0xd564x3[_0x3307[8]](_0x3307[10],_0xd564x4)}function onMessageRemove(_0xd564x3,_0xd564x4,_0xd564x6){_0xd564x3[_0x3307[8]](_0x3307[11],_0xd564x4)}
\ No newline at end of file
-var _0x9abe=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x67\x65\x74"];_0x9abe[0];var should=require(_0x9abe[1]);var app=require(_0x9abe[2]);var request=require(_0x9abe[3]);describe(_0x9abe[4],function(){it(_0x9abe[5],function(_0x3cf7x4){request(app)[_0x9abe[13]](_0x9abe[12])[_0x9abe[11]](200)[_0x9abe[11]](_0x9abe[10],/json/)[_0x9abe[9]](function(_0x3cf7x5,_0x3cf7x6){if(_0x3cf7x5){return _0x3cf7x4(_0x3cf7x5)};_0x3cf7x6[_0x9abe[8]][_0x9abe[1]][_0x9abe[7]][_0x9abe[6]](Array);_0x3cf7x4();})})});
\ No newline at end of file
+var _0xf48a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x67\x65\x74"];_0xf48a[0];var should=require(_0xf48a[1]);var app=require(_0xf48a[2]);var request=require(_0xf48a[3]);describe(_0xf48a[4],function(){it(_0xf48a[5],function(_0x304bx4){request(app)[_0xf48a[13]](_0xf48a[12])[_0xf48a[11]](200)[_0xf48a[11]](_0xf48a[10],/json/)[_0xf48a[9]](function(_0x304bx5,_0x304bx6){if(_0x304bx5){return _0x304bx4(_0x304bx5)};_0x304bx6[_0xf48a[8]][_0xf48a[1]][_0xf48a[7]][_0xf48a[6]](Array);_0x304bx4();})})});
\ No newline at end of file
-var _0xb1b6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x77\x69\x64\x67\x65\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x6F\x75\x6E\x74\x65\x72","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x63\x6F\x75\x6E\x74\x65\x72","\x67\x65\x74","\x2F\x74\x61\x62\x6C\x65","\x74\x61\x62\x6C\x65","\x2F\x70\x69\x65\x63\x68\x61\x72\x74","\x70\x69\x65\x63\x68\x61\x72\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0xb1b6[0];var express=require(_0xb1b6[1]);var controller=require(_0xb1b6[2]);var auth=require(_0xb1b6[3]);var router=express.Router();router[_0xb1b6[7]](_0xb1b6[4],auth[_0xb1b6[5]](),controller[_0xb1b6[6]]);router[_0xb1b6[7]](_0xb1b6[8],auth[_0xb1b6[5]](),controller[_0xb1b6[9]]);router[_0xb1b6[7]](_0xb1b6[10],auth[_0xb1b6[5]](),controller[_0xb1b6[11]]);module[_0xb1b6[12]]=router;
\ No newline at end of file
+var _0x58b2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x77\x69\x64\x67\x65\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x6F\x75\x6E\x74\x65\x72","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x63\x6F\x75\x6E\x74\x65\x72","\x67\x65\x74","\x2F\x74\x61\x62\x6C\x65","\x74\x61\x62\x6C\x65","\x2F\x70\x69\x65\x63\x68\x61\x72\x74","\x70\x69\x65\x63\x68\x61\x72\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x58b2[0];var express=require(_0x58b2[1]);var controller=require(_0x58b2[2]);var auth=require(_0x58b2[3]);var router=express.Router();router[_0x58b2[7]](_0x58b2[4],auth[_0x58b2[5]](),controller[_0x58b2[6]]);router[_0x58b2[7]](_0x58b2[8],auth[_0x58b2[5]](),controller[_0x58b2[9]]);router[_0x58b2[7]](_0x58b2[10],auth[_0x58b2[5]](),controller[_0x58b2[11]]);module[_0x58b2[12]]=router;
\ No newline at end of file
-var _0x90fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x63\x6F\x75\x6E\x74\x65\x72","\x72\x65\x70\x6F\x72\x74\x5F\x25\x73","\x74\x61\x62\x6C\x65","\x71\x75\x65\x72\x79","\x66\x6F\x72\x6D\x61\x74","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x53\x45\x4C\x45\x43\x54\x20\x43\x4F\x55\x4E\x54\x28\x2A\x29\x20\x61\x73\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x66\x69\x65\x6C\x64\x73","\x69\x73\x41\x72\x72\x61\x79","\x70\x61\x72\x73\x65","\x63\x6F\x6C\x75\x6D\x6E","\x61\x6C\x69\x61\x73","\x20\x41\x53\x20\x22","\x22","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x53\x74\x72\x69\x6E\x67","\x6C\x65\x6E\x67\x74\x68","\x2C","\x6A\x6F\x69\x6E","\x2A","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x70\x69\x65\x63\x68\x61\x72\x74","","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x25\x73"];_0x90fa[0];var _=require(_0x90fa[1]);var util=require(_0x90fa[2]);var sequelize=require(_0x90fa[4])[_0x90fa[3]];exports[_0x90fa[5]]=function(_0x895ex4,_0x895ex5){var _0x895ex6=util[_0x90fa[9]](_0x90fa[6],_0x895ex4[_0x90fa[8]][_0x90fa[7]]);sequelize[_0x90fa[8]](util[_0x90fa[9]](_0x90fa[14],_0x895ex6,decodeURIComponent(_0x895ex4[_0x90fa[8]][_0x90fa[15]])),{type:sequelize[_0x90fa[17]][_0x90fa[16]]})[_0x90fa[13]](function(_0x895ex8){return _0x895ex5[_0x90fa[12]](200)[_0x90fa[11]](_0x895ex8)})[_0x90fa[10]](function(_0x895ex7){return handleError(_0x895ex5,_0x895ex7)});};exports[_0x90fa[7]]=function(_0x895ex4,_0x895ex5){var _0x895ex9=[];var _0x895exa;if(_0x895ex4[_0x90fa[8]][_0x90fa[18]]){if(_[_0x90fa[19]](_0x895ex4[_0x90fa[8]][_0x90fa[18]])){_0x895ex4[_0x90fa[8]][_0x90fa[18]][_0x90fa[26]](function(_0x895exb){_0x895exa=JSON[_0x90fa[20]](_0x895exb);if(_0x895exa[_0x90fa[21]]&&_0x895exa[_0x90fa[22]]){_0x895ex9[_0x90fa[25]](_0x895exa[_0x90fa[21]]+_0x90fa[23]+_0x895exa[_0x90fa[22]]+_0x90fa[24])};})}else {if(_[_0x90fa[27]](_0x895ex4[_0x90fa[8]][_0x90fa[18]])){_0x895exa=JSON[_0x90fa[20]](_0x895ex4[_0x90fa[8]][_0x90fa[18]]);if(_0x895exa[_0x90fa[21]]&&_0x895exa[_0x90fa[22]]){_0x895ex9[_0x90fa[25]](_0x895exa[_0x90fa[21]]+_0x90fa[23]+_0x895exa[_0x90fa[22]]+_0x90fa[24])};}}};var _0x895exc=_0x895ex9[_0x90fa[28]]?_0x895ex9[_0x90fa[30]](_0x90fa[29]):_0x90fa[31];var _0x895ex6=util[_0x90fa[9]](_0x90fa[6],_0x895ex4[_0x90fa[8]][_0x90fa[7]]);sequelize[_0x90fa[8]](util[_0x90fa[9]](_0x90fa[32],_0x895exc,_0x895ex6,decodeURIComponent(_0x895ex4[_0x90fa[8]][_0x90fa[15]])),{type:sequelize[_0x90fa[17]][_0x90fa[16]]})[_0x90fa[13]](function(_0x895ex8){return _0x895ex5[_0x90fa[12]](200)[_0x90fa[11]](_0x895ex8)})[_0x90fa[10]](function(_0x895ex7){return handleError(_0x895ex5,_0x895ex7)});};exports[_0x90fa[33]]=function(_0x895ex4,_0x895ex5){var _0x895ex9=[];var _0x895exa;if(_0x895ex4[_0x90fa[8]][_0x90fa[18]]){if(_[_0x90fa[19]](_0x895ex4[_0x90fa[8]][_0x90fa[18]])){_0x895ex4[_0x90fa[8]][_0x90fa[18]][_0x90fa[26]](function(_0x895exb){_0x895exa=JSON[_0x90fa[20]](_0x895exb);if(_0x895exa[_0x90fa[21]]&&_0x895exa[_0x90fa[22]]){_0x895ex9[_0x90fa[25]](_0x895exa[_0x90fa[21]]+_0x90fa[23]+_0x895exa[_0x90fa[22]]+_0x90fa[24])};})}else {if(_[_0x90fa[27]](_0x895ex4[_0x90fa[8]][_0x90fa[18]])){_0x895exa=JSON[_0x90fa[20]](_0x895ex4[_0x90fa[8]][_0x90fa[18]]);if(_0x895exa[_0x90fa[21]]&&_0x895exa[_0x90fa[22]]){_0x895ex9[_0x90fa[25]](_0x895exa[_0x90fa[21]]+_0x90fa[23]+_0x895exa[_0x90fa[22]]+_0x90fa[24])};}}};var _0x895exc=_0x895ex9[_0x90fa[28]]?_0x895ex9[_0x90fa[30]](_0x90fa[29]):_0x90fa[31];var _0x895ex6=util[_0x90fa[9]](_0x90fa[6],_0x895ex4[_0x90fa[8]][_0x90fa[7]]);var _0x895exd=_0x90fa[34];if(_0x895ex4[_0x90fa[8]][_0x90fa[15]]!==_0x90fa[35]){_0x895exd=util[_0x90fa[9]](_0x90fa[36],decodeURIComponent(_0x895ex4[_0x90fa[8]][_0x90fa[15]]))};sequelize[_0x90fa[8]](util[_0x90fa[9]](_0x90fa[37],_0x895exc,_0x895ex6,_0x895exd),{type:sequelize[_0x90fa[17]][_0x90fa[16]]})[_0x90fa[13]](function(_0x895ex8){return _0x895ex5[_0x90fa[12]](200)[_0x90fa[11]](_0x895ex8)})[_0x90fa[10]](function(_0x895ex7){return handleError(_0x895ex5,_0x895ex7)});};function handleError(_0x895ex5,_0x895ex7){return _0x895ex5[_0x90fa[12]](500)[_0x90fa[11]](_0x895ex7)}
\ No newline at end of file
+var _0xa19c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x63\x6F\x75\x6E\x74\x65\x72","\x72\x65\x70\x6F\x72\x74\x5F\x25\x73","\x74\x61\x62\x6C\x65","\x71\x75\x65\x72\x79","\x66\x6F\x72\x6D\x61\x74","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x53\x45\x4C\x45\x43\x54\x20\x43\x4F\x55\x4E\x54\x28\x2A\x29\x20\x61\x73\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x66\x69\x65\x6C\x64\x73","\x69\x73\x41\x72\x72\x61\x79","\x70\x61\x72\x73\x65","\x63\x6F\x6C\x75\x6D\x6E","\x61\x6C\x69\x61\x73","\x20\x41\x53\x20\x22","\x22","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x53\x74\x72\x69\x6E\x67","\x6C\x65\x6E\x67\x74\x68","\x2C","\x6A\x6F\x69\x6E","\x2A","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x70\x69\x65\x63\x68\x61\x72\x74","","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x25\x73"];_0xa19c[0];var _=require(_0xa19c[1]);var util=require(_0xa19c[2]);var sequelize=require(_0xa19c[4])[_0xa19c[3]];exports[_0xa19c[5]]=function(_0x57a5x4,_0x57a5x5){var _0x57a5x6=util[_0xa19c[9]](_0xa19c[6],_0x57a5x4[_0xa19c[8]][_0xa19c[7]]);sequelize[_0xa19c[8]](util[_0xa19c[9]](_0xa19c[14],_0x57a5x6,decodeURIComponent(_0x57a5x4[_0xa19c[8]][_0xa19c[15]])),{type:sequelize[_0xa19c[17]][_0xa19c[16]]})[_0xa19c[13]](function(_0x57a5x8){return _0x57a5x5[_0xa19c[12]](200)[_0xa19c[11]](_0x57a5x8)})[_0xa19c[10]](function(_0x57a5x7){return handleError(_0x57a5x5,_0x57a5x7)});};exports[_0xa19c[7]]=function(_0x57a5x4,_0x57a5x5){var _0x57a5x9=[];var _0x57a5xa;if(_0x57a5x4[_0xa19c[8]][_0xa19c[18]]){if(_[_0xa19c[19]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]])){_0x57a5x4[_0xa19c[8]][_0xa19c[18]][_0xa19c[26]](function(_0x57a5xb){_0x57a5xa=JSON[_0xa19c[20]](_0x57a5xb);if(_0x57a5xa[_0xa19c[21]]&&_0x57a5xa[_0xa19c[22]]){_0x57a5x9[_0xa19c[25]](_0x57a5xa[_0xa19c[21]]+_0xa19c[23]+_0x57a5xa[_0xa19c[22]]+_0xa19c[24])};})}else {if(_[_0xa19c[27]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]])){_0x57a5xa=JSON[_0xa19c[20]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]]);if(_0x57a5xa[_0xa19c[21]]&&_0x57a5xa[_0xa19c[22]]){_0x57a5x9[_0xa19c[25]](_0x57a5xa[_0xa19c[21]]+_0xa19c[23]+_0x57a5xa[_0xa19c[22]]+_0xa19c[24])};}}};var _0x57a5xc=_0x57a5x9[_0xa19c[28]]?_0x57a5x9[_0xa19c[30]](_0xa19c[29]):_0xa19c[31];var _0x57a5x6=util[_0xa19c[9]](_0xa19c[6],_0x57a5x4[_0xa19c[8]][_0xa19c[7]]);sequelize[_0xa19c[8]](util[_0xa19c[9]](_0xa19c[32],_0x57a5xc,_0x57a5x6,decodeURIComponent(_0x57a5x4[_0xa19c[8]][_0xa19c[15]])),{type:sequelize[_0xa19c[17]][_0xa19c[16]]})[_0xa19c[13]](function(_0x57a5x8){return _0x57a5x5[_0xa19c[12]](200)[_0xa19c[11]](_0x57a5x8)})[_0xa19c[10]](function(_0x57a5x7){return handleError(_0x57a5x5,_0x57a5x7)});};exports[_0xa19c[33]]=function(_0x57a5x4,_0x57a5x5){var _0x57a5x9=[];var _0x57a5xa;if(_0x57a5x4[_0xa19c[8]][_0xa19c[18]]){if(_[_0xa19c[19]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]])){_0x57a5x4[_0xa19c[8]][_0xa19c[18]][_0xa19c[26]](function(_0x57a5xb){_0x57a5xa=JSON[_0xa19c[20]](_0x57a5xb);if(_0x57a5xa[_0xa19c[21]]&&_0x57a5xa[_0xa19c[22]]){_0x57a5x9[_0xa19c[25]](_0x57a5xa[_0xa19c[21]]+_0xa19c[23]+_0x57a5xa[_0xa19c[22]]+_0xa19c[24])};})}else {if(_[_0xa19c[27]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]])){_0x57a5xa=JSON[_0xa19c[20]](_0x57a5x4[_0xa19c[8]][_0xa19c[18]]);if(_0x57a5xa[_0xa19c[21]]&&_0x57a5xa[_0xa19c[22]]){_0x57a5x9[_0xa19c[25]](_0x57a5xa[_0xa19c[21]]+_0xa19c[23]+_0x57a5xa[_0xa19c[22]]+_0xa19c[24])};}}};var _0x57a5xc=_0x57a5x9[_0xa19c[28]]?_0x57a5x9[_0xa19c[30]](_0xa19c[29]):_0xa19c[31];var _0x57a5x6=util[_0xa19c[9]](_0xa19c[6],_0x57a5x4[_0xa19c[8]][_0xa19c[7]]);var _0x57a5xd=_0xa19c[34];if(_0x57a5x4[_0xa19c[8]][_0xa19c[15]]!==_0xa19c[35]){_0x57a5xd=util[_0xa19c[9]](_0xa19c[36],decodeURIComponent(_0x57a5x4[_0xa19c[8]][_0xa19c[15]]))};sequelize[_0xa19c[8]](util[_0xa19c[9]](_0xa19c[37],_0x57a5xc,_0x57a5x6,_0x57a5xd),{type:sequelize[_0xa19c[17]][_0xa19c[16]]})[_0xa19c[13]](function(_0x57a5x8){return _0x57a5x5[_0xa19c[12]](200)[_0xa19c[11]](_0x57a5x8)})[_0xa19c[10]](function(_0x57a5x7){return handleError(_0x57a5x5,_0x57a5x7)});};function handleError(_0x57a5x5,_0x57a5x7){return _0x57a5x5[_0xa19c[12]](500)[_0xa19c[11]](_0x57a5x7)}
\ No newline at end of file
-var _0x6d18=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x67\x65\x74"];_0x6d18[0];var should=require(_0x6d18[1]);var app=require(_0x6d18[2]);var request=require(_0x6d18[3]);describe(_0x6d18[4],function(){it(_0x6d18[5],function(_0x2751x4){request(app)[_0x6d18[13]](_0x6d18[12])[_0x6d18[11]](200)[_0x6d18[11]](_0x6d18[10],/json/)[_0x6d18[9]](function(_0x2751x5,_0x2751x6){if(_0x2751x5){return _0x2751x4(_0x2751x5)};_0x2751x6[_0x6d18[8]][_0x6d18[1]][_0x6d18[7]][_0x6d18[6]](Array);_0x2751x4();})})});
\ No newline at end of file
+var _0x90fe=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x67\x65\x74"];_0x90fe[0];var should=require(_0x90fe[1]);var app=require(_0x90fe[2]);var request=require(_0x90fe[3]);describe(_0x90fe[4],function(){it(_0x90fe[5],function(_0x71bdx4){request(app)[_0x90fe[13]](_0x90fe[12])[_0x90fe[11]](200)[_0x90fe[11]](_0x90fe[10],/json/)[_0x90fe[9]](function(_0x71bdx5,_0x71bdx6){if(_0x71bdx5){return _0x71bdx4(_0x71bdx5)};_0x71bdx6[_0x90fe[8]][_0x90fe[1]][_0x90fe[7]][_0x90fe[6]](Array);_0x71bdx4();})})});
\ No newline at end of file
-var _0x18ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x78\x63\x68\x61\x74\x74\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x67\x65\x74","\x2F\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x2F\x73\x74\x61\x74\x75\x73","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x2F\x73\x69\x67\x6E\x75\x70","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x72\x65\x61\x64","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x2F\x73\x65\x6E\x64","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x2F\x73\x69\x67\x6E\x6F\x75\x74","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x73\x75\x62\x6D\x69\x74","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x2F\x75\x6E\x73\x65\x72\x76\x65\x64","\x75\x6E\x73\x65\x72\x76\x65\x64\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x2F\x3A\x69\x64","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x2F\x3A\x69\x64\x2F\x73\x74\x79\x6C\x65\x73","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x2F","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x18ba[0];var express=require(_0x18ba[1]);var controller=require(_0x18ba[2]);var router=express.Router();router[_0x18ba[5]](_0x18ba[3],controller[_0x18ba[4]]);router[_0x18ba[5]](_0x18ba[6],controller[_0x18ba[7]]);router[_0x18ba[5]](_0x18ba[8],controller[_0x18ba[9]]);router[_0x18ba[5]](_0x18ba[10],controller[_0x18ba[11]]);router[_0x18ba[5]](_0x18ba[12],controller[_0x18ba[13]]);router[_0x18ba[5]](_0x18ba[14],controller[_0x18ba[15]]);router[_0x18ba[5]](_0x18ba[16],controller[_0x18ba[17]]);router[_0x18ba[5]](_0x18ba[18],controller[_0x18ba[19]]);router[_0x18ba[5]](_0x18ba[20],controller[_0x18ba[21]]);router[_0x18ba[5]](_0x18ba[22],controller[_0x18ba[23]]);router[_0x18ba[5]](_0x18ba[24],controller[_0x18ba[25]]);router[_0x18ba[5]](_0x18ba[26],controller[_0x18ba[27]]);router[_0x18ba[30]](_0x18ba[28],controller[_0x18ba[29]]);router[_0x18ba[32]](_0x18ba[24],controller[_0x18ba[31]]);router[_0x18ba[33]](_0x18ba[24],controller[_0x18ba[31]]);router[_0x18ba[35]](_0x18ba[24],controller[_0x18ba[34]]);module[_0x18ba[36]]=router;
\ No newline at end of file
+var _0x7e0c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x78\x63\x68\x61\x74\x74\x79\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x67\x65\x74","\x2F\x61\x73\x73\x65\x74\x73","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x2F\x73\x74\x61\x74\x75\x73","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x2F\x73\x69\x67\x6E\x75\x70","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x72\x65\x61\x64","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x2F\x73\x65\x6E\x64","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x2F\x73\x69\x67\x6E\x6F\x75\x74","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x73\x75\x62\x6D\x69\x74","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x2F\x75\x6E\x73\x65\x72\x76\x65\x64","\x75\x6E\x73\x65\x72\x76\x65\x64\x43\x75\x73\x74\x6F\x6D\x65\x72","\x2F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x2F\x3A\x69\x64","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x2F\x3A\x69\x64\x2F\x73\x74\x79\x6C\x65\x73","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x2F","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x7e0c[0];var express=require(_0x7e0c[1]);var controller=require(_0x7e0c[2]);var router=express.Router();router[_0x7e0c[5]](_0x7e0c[3],controller[_0x7e0c[4]]);router[_0x7e0c[5]](_0x7e0c[6],controller[_0x7e0c[7]]);router[_0x7e0c[5]](_0x7e0c[8],controller[_0x7e0c[9]]);router[_0x7e0c[5]](_0x7e0c[10],controller[_0x7e0c[11]]);router[_0x7e0c[5]](_0x7e0c[12],controller[_0x7e0c[13]]);router[_0x7e0c[5]](_0x7e0c[14],controller[_0x7e0c[15]]);router[_0x7e0c[5]](_0x7e0c[16],controller[_0x7e0c[17]]);router[_0x7e0c[5]](_0x7e0c[18],controller[_0x7e0c[19]]);router[_0x7e0c[5]](_0x7e0c[20],controller[_0x7e0c[21]]);router[_0x7e0c[5]](_0x7e0c[22],controller[_0x7e0c[23]]);router[_0x7e0c[5]](_0x7e0c[24],controller[_0x7e0c[25]]);router[_0x7e0c[5]](_0x7e0c[26],controller[_0x7e0c[27]]);router[_0x7e0c[30]](_0x7e0c[28],controller[_0x7e0c[29]]);router[_0x7e0c[32]](_0x7e0c[24],controller[_0x7e0c[31]]);router[_0x7e0c[33]](_0x7e0c[24],controller[_0x7e0c[31]]);router[_0x7e0c[35]](_0x7e0c[24],controller[_0x7e0c[34]]);module[_0x7e0c[36]]=router;
\ No newline at end of file
-var _0x9613=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6A\x73\x6D\x69\x6E","\x6D\x75\x73\x74\x61\x63\x68\x65","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x70\x61\x74\x68","\x6D\x64\x35","\x66\x73","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x69\x70\x61\x64\x64\x72\x2E\x6A\x73","\x67\x65\x6F\x69\x70\x2D\x6C\x69\x74\x65","\x74\x6F\x2D\x63\x73\x76","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x58\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x65\x6E\x64\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x71\x75\x65\x72\x79","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x73\x73\x69\x6F\x6E","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x64\x61\x74\x61","\x72\x6F\x6F\x6D\x5F\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","","\x65\x6D\x61\x69\x6C","\x61\x76\x61\x74\x61\x72","\x6C\x65\x6E\x67\x74\x68","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x28","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x29","\x6F\x70\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x67\x65\x6E\x74","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x6E\x61\x6D\x65","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x4D\x65\x73\x73\x61\x67\x65","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x63\x6C\x6F\x73\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x62\x61\x73\x65\x36\x34","\x75\x6E\x73\x65\x72\x76\x65\x64\x43\x75\x73\x74\x6F\x6D\x65\x72","\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x45\x6E\x71\x75\x69\x72\x79","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x65\x6E\x71\x75\x69\x72\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x65\x70\x6C\x61\x63\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x65\x78\x74\x2F\x63\x73\x76","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x9613[0];var _=require(_0x9613[1]);var jsmin=require(_0x9613[2])[_0x9613[2]];var Mustache=require(_0x9613[3]);var querystring=require(_0x9613[4]);var path=require(_0x9613[5]);var md5=require(_0x9613[6]);var fs=require(_0x9613[7]);var UAParser=require(_0x9613[8]);var uaParser= new UAParser();var languageParser=require(_0x9613[9]);var ipaddr=require(_0x9613[10]);var geoip=require(_0x9613[11]);var csv=require(_0x9613[12]);var config=require(_0x9613[13]);var Xchatty=require(_0x9613[15])[_0x9613[14]];var xchatty_components=require(_0x9613[16]);var sequelize=require(_0x9613[15])[_0x9613[17]];var User=require(_0x9613[15])[_0x9613[18]];var Agent=require(_0x9613[15])[_0x9613[18]];var ChatRoom=require(_0x9613[15])[_0x9613[19]];var ChatEnquiry=require(_0x9613[15])[_0x9613[20]];var ChatVisitor=require(_0x9613[15])[_0x9613[21]];var ChatMessage=require(_0x9613[15])[_0x9613[22]];var ChatWebsite=require(_0x9613[15])[_0x9613[23]];var id=1;exports[_0x9613[24]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){Xchatty[_0x9613[29]]()[_0x9613[28]](function(_0x3410x1e){return _0x3410x1b[_0x9613[27]](200)[_0x9613[26]](_0x3410x1e)})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)})};exports[_0x9613[30]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){ChatWebsite[_0x9613[57]](_0x3410x1a[_0x9613[36]][_0x9613[35]])[_0x9613[28]](function(_0x3410x1f){_0x3410x1b[_0x9613[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9613[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9613[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3410x20=xchatty_components[_0x9613[34]];var _0x3410x21={websiteId:_0x3410x1a[_0x9613[36]][_0x9613[35]],rootPath:_0x3410x1f[_0x9613[37]]+_0x9613[38],signedUp:_0x9613[39],windowFocused:_0x9613[39],isNewPage:_0x9613[40],processingSignUp:_0x9613[39],processingEnquiry:_0x9613[39],processingSend:_0x9613[39],visitorFullname:_0x9613[41],visitorAvatar:_0x9613[41],timerReadMessages:_0x9613[42],timerCheckStatus:_0x9613[42],isOnline:_0x9613[39],decayHistory:0,defaultTimeout:2000,isInitialStatusCheck:_0x9613[40],muteNotificationSoundOnce:_0x9613[39],assetBase:_0x3410x1f[_0x9613[37]]+_0x9613[43],hasSessionSaf:_0x9613[39],restoreOpenState:_0x9613[39],animateHover:_0x3410x1f[_0x9613[44]],hideEmail:_0x9613[39],hideOffline:_0x9613[39],headerShape:_0x3410x1f[_0x9613[45]],HeaderOnline:_0x3410x1f[_0x9613[46]],OnlineMessage:_0x3410x1f[_0x9613[47]],UsernamePlaceholder:_0x3410x1f[_0x9613[48]],EmailPlaceholder:_0x3410x1f[_0x9613[49]],StartChatButtonText:_0x3410x1f[_0x9613[50]],OfflineMessage:_0x3410x1f[_0x9613[51]],HeaderOffline:_0x3410x1f[_0x9613[52]],EnquiryMessagePlaceholder:_0x3410x1f[_0x9613[53]],EnquiryButtonText:_0x3410x1f[_0x9613[54]],downloadTranscript:_0x3410x1f[_0x9613[55]]};_0x3410x20=Mustache[_0x9613[56]](_0x3410x20,_0x3410x21);_0x3410x1b[_0x9613[26]](_0x3410x20);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})};exports[_0x9613[58]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){ChatWebsite[_0x9613[57]](_0x3410x1a[_0x9613[36]][_0x9613[35]])[_0x9613[28]](function(_0x3410x1f){_0x3410x1b[_0x9613[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9613[59],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9613[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3410x22=xchatty_components[_0x9613[60]];var _0x3410x23={assetBase:_0x3410x1f[_0x9613[37]]+_0x9613[43],color:_0x3410x1f[_0x9613[61]],colorFocus:_0x3410x1f[_0x9613[62]],colorButton:_0x3410x1f[_0x9613[63]]};_0x3410x22=Mustache[_0x9613[56]](_0x3410x22,_0x3410x23);_0x3410x1b[_0x9613[26]](_0x3410x22);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})};exports[_0x9613[64]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){_0x3410x1b[_0x9613[73]](path[_0x9613[72]](config[_0x9613[65]],_0x9613[66],_0x9613[67],_0x9613[68],_0x9613[69],_0x3410x1a[_0x9613[71]][_0x9613[70]]))};exports[_0x9613[74]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){_0x3410x1b[_0x9613[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x9613[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x9613[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x3410x24=xchatty_components[_0x9613[75]];_0x3410x1b[_0x9613[26]](_0x3410x24);};exports[_0x9613[76]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){if(!_0x3410x1a[_0x9613[77]][_0x9613[68]]){_0x3410x1a[_0x9613[77]][_0x9613[68]]={}};Agent[_0x9613[29]]({where:{online:true,role:_0x9613[94]}})[_0x9613[28]](function(_0x3410x25){if(_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[78]]){_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[78]]=_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[78]]===_0x9613[40]?true:false};var _0x3410x26={success:true,has_session_saf:null,signed_up:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]?true:false,fullname:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[81]]?_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[81]]:_0x9613[82],email:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[83]]?_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[83]]:_0x9613[82],avatar:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[84]]?_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[84]]:_0x9613[82],open_state:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[78]]||_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]?true:false,online:_0x3410x25[_0x9613[85]]?true:false};if(_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]]){ChatRoom[_0x9613[93]]({where:{ChatVisitorId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]],status:_0x9613[92]}})[_0x9613[28]](function(_0x3410x27){if(_0x3410x27){_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]=_0x3410x27[_0x9613[35]];_0x3410x26[_0x9613[87]]=true;}else {_0x3410x26[_0x9613[87]]=false};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x26)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})}else {_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x26)+_0x9613[91])};})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)});};exports[_0x9613[95]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){var _0x3410x28={where:{ChatRoomId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]},include:[{model:User,attributes:[_0x9613[35],_0x9613[96],_0x9613[81],_0x9613[83]]},{model:ChatVisitor,attributes:[_0x9613[35],_0x9613[81],_0x9613[83]]}]};if(_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[97]]===_0x9613[39]){_0x3410x28[_0x9613[98]][_0x9613[35]]={$gt:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[99]]}};ChatMessage[_0x9613[29]](_0x3410x28)[_0x9613[28]](function(_0x3410x29){var _0x3410x2a={success:true,messages:_0x3410x29,composing:false,composing_fullname:null};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x2a)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)});};exports[_0x9613[100]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){var _0x3410x28={where:{ChatRoomId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]},include:[{model:User,attributes:[_0x9613[35],_0x9613[96],_0x9613[81],_0x9613[83]]},{model:ChatVisitor,attributes:[_0x9613[35],_0x9613[81],_0x9613[83]]}]};if(_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[97]]===_0x9613[39]){_0x3410x28[_0x9613[98]][_0x9613[35]]={$gt:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[99]]}};ChatMessage[_0x9613[105]]({body:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[104]][_0x9613[103]],ChatRoomId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]],ChatVisitorId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]]})[_0x9613[28]](function(_0x3410x2b){console[_0x9613[102]](_0x9613[101],_0x3410x2b);ChatMessage[_0x9613[29]](_0x3410x28)[_0x9613[28]](function(_0x3410x29){var _0x3410x2a={errors:[],success:true,data:_0x3410x2b,messages:_0x3410x29};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x2a)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)});})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)});};exports[_0x9613[106]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){ChatRoom[_0x9613[57]](_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]])[_0x9613[28]](function(_0x3410x27){_0x3410x27[_0x9613[108]]({status:_0x9613[107]})[_0x9613[28]](function(_0x3410x27){var _0x3410x2a={success:true,errors:[]};_0x3410x1a[_0x9613[77]][_0x9613[68]]={};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x2a)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})};exports[_0x9613[109]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){var _0x3410x2c=uaParser[_0x9613[113]](_0x3410x1a[_0x9613[112]][_0x9613[111]])[_0x9613[110]]();var _0x3410x2d=languageParser[_0x9613[115]](_0x3410x1a[_0x9613[112]][_0x9613[114]]);var _0x3410x2e={fullname:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[116]][_0x9613[81]],email:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[116]][_0x9613[83]],remote_address:_0x3410x1a[_0x9613[118]][_0x9613[117]],user_agent:_0x3410x1a[_0x9613[112]][_0x9613[111]],visitor_language:_0x3410x1a[_0x9613[112]][_0x9613[114]],referer:_0x3410x1a[_0x9613[112]][_0x9613[119]],origin:_0x9613[120],browser:_0x3410x2c[_0x9613[121]][_0x9613[96]]+_0x9613[122]+_0x3410x2c[_0x9613[121]][_0x9613[123]],engine:_0x3410x2c[_0x9613[124]][_0x9613[96]]+_0x9613[122]+_0x3410x2c[_0x9613[124]][_0x9613[123]],os:_0x3410x2c[_0x9613[125]][_0x9613[96]]+_0x9613[122]+_0x3410x2c[_0x9613[125]][_0x9613[123]],device:_0x3410x2c[_0x9613[127]][_0x9613[126]]?_0x3410x2c[_0x9613[127]][_0x9613[126]]+_0x9613[122]+_0x3410x2c[_0x9613[127]][_0x9613[128]]+_0x9613[122]+_0x3410x2c[_0x9613[127]][_0x9613[129]]:null,ChatWebsiteId:_0x3410x1a[_0x9613[71]][_0x9613[130]]};return ChatVisitor[_0x9613[105]](_0x3410x2e)[_0x9613[28]](function(_0x3410x2f){_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[81]]=_0x3410x2f[_0x9613[81]];_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[83]]=_0x3410x2f[_0x9613[83]];_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[84]]=md5(_0x3410x2f[_0x9613[83]]).toString(_0x9613[131]);_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]]=_0x3410x2f[_0x9613[35]];var _0x3410x2a={success:true,errors:[],chatVisitor:{id:_0x3410x2f[_0x9613[35]]}};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x2a)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)});};exports[_0x9613[132]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){ChatVisitor[_0x9613[57]](_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]])[_0x9613[28]](function(_0x3410x2f){_0x3410x2f[_0x9613[108]]({status:_0x9613[133]})[_0x9613[28]](function(){var _0x3410x2a={success:true,errors:[]};_0x3410x1a[_0x9613[77]][_0x9613[68]]={};_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]](_0x3410x2a)+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})};exports[_0x9613[134]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){var _0x3410x30;var _0x3410x31;return sequelize[_0x9613[140]]()[_0x9613[28]](function(_0x3410x32){return ChatVisitor[_0x9613[105]]({fullname:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[137]][_0x9613[81]],email:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[137]][_0x9613[83]],remote_address:_0x3410x1a[_0x9613[118]][_0x9613[117]],user_agent:_0x3410x1a[_0x9613[112]][_0x9613[111]],visitor_language:_0x3410x1a[_0x9613[112]][_0x9613[114]],referer:_0x3410x1a[_0x9613[112]][_0x9613[119]],origin:_0x9613[139],status:_0x9613[133]},{transaction:_0x3410x32})[_0x9613[28]](function(_0x3410x2f){_0x3410x30=_0x3410x2f;return ChatEnquiry[_0x9613[105]]({username:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[137]][_0x9613[81]],email:_0x3410x2f[_0x9613[83]],text:_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[137]][_0x9613[103]],ChatWebsiteId:parseInt(_0x3410x1a[_0x9613[71]][_0x9613[79]][_0x9613[137]][_0x9613[138]],10),ChatVisitorId:_0x3410x30[_0x9613[35]]},{include:[{all:true,include:[{all:true}]}],transaction:_0x3410x32});})[_0x9613[28]](function(){_0x3410x32[_0x9613[136]]();_0x3410x1b[_0x9613[26]](_0x3410x1a[_0x9613[71]][_0x9613[88]]+_0x9613[89]+JSON[_0x9613[90]]({success:true,errors:[]})+_0x9613[91]);})[_0x9613[25]](function(_0x3410x1d){_0x3410x32[_0x9613[135]]();_0x3410x1c(_0x3410x1d);})});};exports[_0x9613[141]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){if(_0x3410x1a[_0x9613[77]][_0x9613[68]]&&_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[86]]&&_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]){ChatMessage[_0x9613[29]]({where:{ChatRoomId:_0x3410x1a[_0x9613[77]][_0x9613[68]][_0x9613[80]]}})[_0x9613[28]](function(_0x3410x29){var _0x3410x33=[];_0x3410x29[_0x9613[146]](function(_0x3410x2b){var _0x3410x34={name:_0x3410x2b[_0x9613[81]],text:_0x3410x2b[_0x9613[143]][_0x9613[142]](/(\r\n|\n|\r)/gm,_0x9613[122]),date:_0x3410x2b[_0x9613[144]]};_0x3410x33[_0x9613[145]](_0x3410x34);});var _0x3410x35=csv(_0x3410x33);_0x3410x1b[_0x9613[129]](_0x9613[147])[_0x9613[27]](200)[_0x9613[26]](_0x3410x35);})[_0x9613[25]](function(_0x3410x1d){_0x3410x1c(_0x3410x1d)})}};exports[_0x9613[148]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){Xchatty[_0x9613[57]](_0x3410x1a[_0x9613[36]][_0x9613[35]])[_0x9613[28]](function(_0x3410x36){if(!_0x3410x36){return _0x3410x1b[_0x9613[149]](404)};return _0x3410x1b[_0x9613[26]](_0x3410x36);})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)})};exports[_0x9613[105]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){Xchatty[_0x9613[105]](_0x3410x1a[_0x9613[143]])[_0x9613[28]](function(_0x3410x36){return _0x3410x1b[_0x9613[27]](201)[_0x9613[26]](_0x3410x36)})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)})};exports[_0x9613[150]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){if(_0x3410x1a[_0x9613[143]][_0x9613[35]]){delete _0x3410x1a[_0x9613[143]][_0x9613[35]]};Xchatty[_0x9613[57]](_0x3410x1a[_0x9613[36]][_0x9613[35]])[_0x9613[28]](function(_0x3410x36){if(!_0x3410x36){return _0x3410x1b[_0x9613[149]](404)};var _0x3410x37=_[_0x9613[151]](_0x3410x36,_0x3410x1a[_0x9613[143]]);_0x3410x37[_0x9613[152]]()[_0x9613[28]](function(){return _0x3410x1b[_0x9613[27]](200)[_0x9613[26]](_0x3410x36)})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)});})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)});};exports[_0x9613[153]]=function(_0x3410x1a,_0x3410x1b,_0x3410x1c){Xchatty[_0x9613[57]](_0x3410x1a[_0x9613[36]][_0x9613[35]])[_0x9613[28]](function(_0x3410x36){if(!_0x3410x36){return _0x3410x1b[_0x9613[149]](404)};_0x3410x36[_0x9613[153]]()[_0x9613[28]](function(){return _0x3410x1b[_0x9613[149]](204)})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)});})[_0x9613[25]](function(_0x3410x1d){return _0x3410x1c(_0x3410x1d)})};
\ No newline at end of file
+var _0x4659=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6A\x73\x6D\x69\x6E","\x6D\x75\x73\x74\x61\x63\x68\x65","\x71\x75\x65\x72\x79\x73\x74\x72\x69\x6E\x67","\x70\x61\x74\x68","\x6D\x64\x35","\x66\x73","\x75\x61\x2D\x70\x61\x72\x73\x65\x72\x2D\x6A\x73","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65\x2D\x70\x61\x72\x73\x65\x72","\x69\x70\x61\x64\x64\x72\x2E\x6A\x73","\x67\x65\x6F\x69\x70\x2D\x6C\x69\x74\x65","\x74\x6F\x2D\x63\x73\x76","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x58\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x78\x63\x68\x61\x74\x74\x79","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x55\x73\x65\x72","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x67\x65\x74\x4A\x73\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6E\x6F\x77","\x73\x65\x74","\x6A\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x74\x65","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F","\x66\x61\x6C\x73\x65","\x74\x72\x75\x65","\x22\x22","\x6E\x75\x6C\x6C","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x61\x73\x73\x65\x74\x73","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x5F\x73\x68\x61\x70\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6D\x61\x69\x6C\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x73\x74\x61\x72\x74\x5F\x63\x68\x61\x74\x5F\x62\x75\x74\x74\x6F\x6E","\x6F\x66\x66\x6C\x69\x6E\x65\x5F\x6D\x65\x73\x73\x61\x67\x65","\x68\x65\x61\x64\x65\x72\x5F\x6F\x66\x66\x6C\x69\x6E\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x65\x6E\x71\x75\x69\x72\x79\x5F\x62\x75\x74\x74\x6F\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x5F\x74\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x65\x6E\x64\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x53\x74\x79\x6C\x65\x42\x79\x57\x65\x62\x73\x69\x74\x65","\x74\x65\x78\x74\x2F\x63\x73\x73","\x63\x73\x73","\x63\x6F\x6C\x6F\x72","\x63\x6F\x6C\x6F\x72\x5F\x66\x6F\x63\x75\x73","\x63\x6F\x6C\x6F\x72\x5F\x62\x75\x74\x74\x6F\x6E","\x67\x65\x74\x41\x73\x73\x65\x74\x73","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x78\x63\x68\x61\x74\x74\x79","\x61\x73\x73\x65\x74\x73","\x72\x65\x73\x6F\x75\x72\x63\x65","\x71\x75\x65\x72\x79","\x6A\x6F\x69\x6E","\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x67\x65\x74\x4A\x71\x75\x65\x72\x79\x4C\x69\x62\x72\x61\x72\x79","\x6A\x71\x75\x65\x72\x79","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x73\x73\x69\x6F\x6E","\x6F\x70\x65\x6E\x5F\x73\x74\x61\x74\x65","\x64\x61\x74\x61","\x72\x6F\x6F\x6D\x5F\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","","\x65\x6D\x61\x69\x6C","\x61\x76\x61\x74\x61\x72","\x6C\x65\x6E\x67\x74\x68","\x76\x69\x73\x69\x74\x6F\x72\x5F\x69\x64","\x73\x69\x67\x6E\x65\x64\x5F\x75\x70","\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x28","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x29","\x6F\x70\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x67\x65\x6E\x74","\x67\x65\x74\x4D\x65\x73\x73\x61\x67\x65\x73","\x6E\x61\x6D\x65","\x69\x73\x5F\x6E\x65\x77\x5F\x70\x61\x67\x65","\x77\x68\x65\x72\x65","\x6C\x61\x73\x74\x5F\x69\x64","\x73\x65\x6E\x64\x4D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x4D\x65\x73\x73\x61\x67\x65","\x63\x72\x65\x61\x74\x65","\x73\x69\x67\x6E\x6F\x75\x74\x43\x75\x73\x74\x6F\x6D\x65\x72","\x63\x6C\x6F\x73\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x69\x67\x6E\x75\x70\x43\x75\x73\x74\x6F\x6D\x65\x72","\x67\x65\x74\x52\x65\x73\x75\x6C\x74","\x75\x73\x65\x72\x2D\x61\x67\x65\x6E\x74","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x74\x55\x41","\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65","\x70\x61\x72\x73\x65","\x44\x69\x73\x63\x75\x73\x73\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x72\x65\x66\x65\x72\x65\x72","\x77\x65\x62\x63\x68\x61\x74","\x62\x72\x6F\x77\x73\x65\x72","\x20","\x76\x65\x72\x73\x69\x6F\x6E","\x65\x6E\x67\x69\x6E\x65","\x6F\x73","\x6D\x6F\x64\x65\x6C","\x64\x65\x76\x69\x63\x65","\x76\x65\x6E\x64\x6F\x72","\x74\x79\x70\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x62\x61\x73\x65\x36\x34","\x75\x6E\x73\x65\x72\x76\x65\x64\x43\x75\x73\x74\x6F\x6D\x65\x72","\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x75\x62\x6D\x69\x74\x45\x6E\x71\x75\x69\x72\x79","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\x45\x6E\x71\x75\x69\x72\x79","\x77\x65\x62\x73\x69\x74\x65\x49\x64","\x65\x6E\x71\x75\x69\x72\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x67\x65\x74\x54\x72\x61\x6E\x73\x63\x72\x69\x70\x74","\x72\x65\x70\x6C\x61\x63\x65","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x65\x78\x74\x2F\x63\x73\x76","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x4659[0];var _=require(_0x4659[1]);var jsmin=require(_0x4659[2])[_0x4659[2]];var Mustache=require(_0x4659[3]);var querystring=require(_0x4659[4]);var path=require(_0x4659[5]);var md5=require(_0x4659[6]);var fs=require(_0x4659[7]);var UAParser=require(_0x4659[8]);var uaParser= new UAParser();var languageParser=require(_0x4659[9]);var ipaddr=require(_0x4659[10]);var geoip=require(_0x4659[11]);var csv=require(_0x4659[12]);var config=require(_0x4659[13]);var Xchatty=require(_0x4659[15])[_0x4659[14]];var xchatty_components=require(_0x4659[16]);var sequelize=require(_0x4659[15])[_0x4659[17]];var User=require(_0x4659[15])[_0x4659[18]];var Agent=require(_0x4659[15])[_0x4659[18]];var ChatRoom=require(_0x4659[15])[_0x4659[19]];var ChatEnquiry=require(_0x4659[15])[_0x4659[20]];var ChatVisitor=require(_0x4659[15])[_0x4659[21]];var ChatMessage=require(_0x4659[15])[_0x4659[22]];var ChatWebsite=require(_0x4659[15])[_0x4659[23]];var id=1;exports[_0x4659[24]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){Xchatty[_0x4659[29]]()[_0x4659[28]](function(_0xf474x1e){return _0xf474x1b[_0x4659[27]](200)[_0x4659[26]](_0xf474x1e)})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)})};exports[_0x4659[30]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){ChatWebsite[_0x4659[57]](_0xf474x1a[_0x4659[36]][_0x4659[35]])[_0x4659[28]](function(_0xf474x1f){_0xf474x1b[_0x4659[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x4659[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x4659[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xf474x20=xchatty_components[_0x4659[34]];var _0xf474x21={websiteId:_0xf474x1a[_0x4659[36]][_0x4659[35]],rootPath:_0xf474x1f[_0x4659[37]]+_0x4659[38],signedUp:_0x4659[39],windowFocused:_0x4659[39],isNewPage:_0x4659[40],processingSignUp:_0x4659[39],processingEnquiry:_0x4659[39],processingSend:_0x4659[39],visitorFullname:_0x4659[41],visitorAvatar:_0x4659[41],timerReadMessages:_0x4659[42],timerCheckStatus:_0x4659[42],isOnline:_0x4659[39],decayHistory:0,defaultTimeout:2000,isInitialStatusCheck:_0x4659[40],muteNotificationSoundOnce:_0x4659[39],assetBase:_0xf474x1f[_0x4659[37]]+_0x4659[43],hasSessionSaf:_0x4659[39],restoreOpenState:_0x4659[39],animateHover:_0xf474x1f[_0x4659[44]],hideEmail:_0x4659[39],hideOffline:_0x4659[39],headerShape:_0xf474x1f[_0x4659[45]],HeaderOnline:_0xf474x1f[_0x4659[46]],OnlineMessage:_0xf474x1f[_0x4659[47]],UsernamePlaceholder:_0xf474x1f[_0x4659[48]],EmailPlaceholder:_0xf474x1f[_0x4659[49]],StartChatButtonText:_0xf474x1f[_0x4659[50]],OfflineMessage:_0xf474x1f[_0x4659[51]],HeaderOffline:_0xf474x1f[_0x4659[52]],EnquiryMessagePlaceholder:_0xf474x1f[_0x4659[53]],EnquiryButtonText:_0xf474x1f[_0x4659[54]],downloadTranscript:_0xf474x1f[_0x4659[55]]};_0xf474x20=Mustache[_0x4659[56]](_0xf474x20,_0xf474x21);_0xf474x1b[_0x4659[26]](_0xf474x20);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})};exports[_0x4659[58]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){ChatWebsite[_0x4659[57]](_0xf474x1a[_0x4659[36]][_0x4659[35]])[_0x4659[28]](function(_0xf474x1f){_0xf474x1b[_0x4659[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x4659[59],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x4659[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xf474x22=xchatty_components[_0x4659[60]];var _0xf474x23={assetBase:_0xf474x1f[_0x4659[37]]+_0x4659[43],color:_0xf474x1f[_0x4659[61]],colorFocus:_0xf474x1f[_0x4659[62]],colorButton:_0xf474x1f[_0x4659[63]]};_0xf474x22=Mustache[_0x4659[56]](_0xf474x22,_0xf474x23);_0xf474x1b[_0x4659[26]](_0xf474x22);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})};exports[_0x4659[64]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){_0xf474x1b[_0x4659[73]](path[_0x4659[72]](config[_0x4659[65]],_0x4659[66],_0x4659[67],_0x4659[68],_0x4659[69],_0xf474x1a[_0x4659[71]][_0x4659[70]]))};exports[_0x4659[74]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){_0xf474x1b[_0x4659[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x4659[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x4659[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0xf474x24=xchatty_components[_0x4659[75]];_0xf474x1b[_0x4659[26]](_0xf474x24);};exports[_0x4659[76]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){if(!_0xf474x1a[_0x4659[77]][_0x4659[68]]){_0xf474x1a[_0x4659[77]][_0x4659[68]]={}};Agent[_0x4659[29]]({where:{online:true,role:_0x4659[94]}})[_0x4659[28]](function(_0xf474x25){if(_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[78]]){_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[78]]=_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[78]]===_0x4659[40]?true:false};var _0xf474x26={success:true,has_session_saf:null,signed_up:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]?true:false,fullname:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[81]]?_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[81]]:_0x4659[82],email:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[83]]?_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[83]]:_0x4659[82],avatar:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[84]]?_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[84]]:_0x4659[82],open_state:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[78]]||_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]?true:false,online:_0xf474x25[_0x4659[85]]?true:false};if(_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]]){ChatRoom[_0x4659[93]]({where:{ChatVisitorId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]],status:_0x4659[92]}})[_0x4659[28]](function(_0xf474x27){if(_0xf474x27){_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]=_0xf474x27[_0x4659[35]];_0xf474x26[_0x4659[87]]=true;}else {_0xf474x26[_0x4659[87]]=false};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x26)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})}else {_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x26)+_0x4659[91])};})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)});};exports[_0x4659[95]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){var _0xf474x28={where:{ChatRoomId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]},include:[{model:User,attributes:[_0x4659[35],_0x4659[96],_0x4659[81],_0x4659[83]]},{model:ChatVisitor,attributes:[_0x4659[35],_0x4659[81],_0x4659[83]]}]};if(_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[97]]===_0x4659[39]){_0xf474x28[_0x4659[98]][_0x4659[35]]={$gt:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[99]]}};ChatMessage[_0x4659[29]](_0xf474x28)[_0x4659[28]](function(_0xf474x29){var _0xf474x2a={success:true,messages:_0xf474x29,composing:false,composing_fullname:null};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x2a)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)});};exports[_0x4659[100]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){var _0xf474x28={where:{ChatRoomId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]},include:[{model:User,attributes:[_0x4659[35],_0x4659[96],_0x4659[81],_0x4659[83]]},{model:ChatVisitor,attributes:[_0x4659[35],_0x4659[81],_0x4659[83]]}]};if(_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[97]]===_0x4659[39]){_0xf474x28[_0x4659[98]][_0x4659[35]]={$gt:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[99]]}};ChatMessage[_0x4659[105]]({body:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[104]][_0x4659[103]],ChatRoomId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]],ChatVisitorId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]]})[_0x4659[28]](function(_0xf474x2b){console[_0x4659[102]](_0x4659[101],_0xf474x2b);ChatMessage[_0x4659[29]](_0xf474x28)[_0x4659[28]](function(_0xf474x29){var _0xf474x2a={errors:[],success:true,data:_0xf474x2b,messages:_0xf474x29};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x2a)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)});})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)});};exports[_0x4659[106]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){ChatRoom[_0x4659[57]](_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]])[_0x4659[28]](function(_0xf474x27){_0xf474x27[_0x4659[108]]({status:_0x4659[107]})[_0x4659[28]](function(_0xf474x27){var _0xf474x2a={success:true,errors:[]};_0xf474x1a[_0x4659[77]][_0x4659[68]]={};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x2a)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})};exports[_0x4659[109]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){var _0xf474x2c=uaParser[_0x4659[113]](_0xf474x1a[_0x4659[112]][_0x4659[111]])[_0x4659[110]]();var _0xf474x2d=languageParser[_0x4659[115]](_0xf474x1a[_0x4659[112]][_0x4659[114]]);var _0xf474x2e={fullname:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[116]][_0x4659[81]],email:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[116]][_0x4659[83]],remote_address:_0xf474x1a[_0x4659[118]][_0x4659[117]],user_agent:_0xf474x1a[_0x4659[112]][_0x4659[111]],visitor_language:_0xf474x1a[_0x4659[112]][_0x4659[114]],referer:_0xf474x1a[_0x4659[112]][_0x4659[119]],origin:_0x4659[120],browser:_0xf474x2c[_0x4659[121]][_0x4659[96]]+_0x4659[122]+_0xf474x2c[_0x4659[121]][_0x4659[123]],engine:_0xf474x2c[_0x4659[124]][_0x4659[96]]+_0x4659[122]+_0xf474x2c[_0x4659[124]][_0x4659[123]],os:_0xf474x2c[_0x4659[125]][_0x4659[96]]+_0x4659[122]+_0xf474x2c[_0x4659[125]][_0x4659[123]],device:_0xf474x2c[_0x4659[127]][_0x4659[126]]?_0xf474x2c[_0x4659[127]][_0x4659[126]]+_0x4659[122]+_0xf474x2c[_0x4659[127]][_0x4659[128]]+_0x4659[122]+_0xf474x2c[_0x4659[127]][_0x4659[129]]:null,ChatWebsiteId:_0xf474x1a[_0x4659[71]][_0x4659[130]]};return ChatVisitor[_0x4659[105]](_0xf474x2e)[_0x4659[28]](function(_0xf474x2f){_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[81]]=_0xf474x2f[_0x4659[81]];_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[83]]=_0xf474x2f[_0x4659[83]];_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[84]]=md5(_0xf474x2f[_0x4659[83]]).toString(_0x4659[131]);_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]]=_0xf474x2f[_0x4659[35]];var _0xf474x2a={success:true,errors:[],chatVisitor:{id:_0xf474x2f[_0x4659[35]]}};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x2a)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)});};exports[_0x4659[132]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){ChatVisitor[_0x4659[57]](_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]])[_0x4659[28]](function(_0xf474x2f){_0xf474x2f[_0x4659[108]]({status:_0x4659[133]})[_0x4659[28]](function(){var _0xf474x2a={success:true,errors:[]};_0xf474x1a[_0x4659[77]][_0x4659[68]]={};_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]](_0xf474x2a)+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})};exports[_0x4659[134]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){var _0xf474x30;var _0xf474x31;return sequelize[_0x4659[140]]()[_0x4659[28]](function(_0xf474x32){return ChatVisitor[_0x4659[105]]({fullname:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[137]][_0x4659[81]],email:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[137]][_0x4659[83]],remote_address:_0xf474x1a[_0x4659[118]][_0x4659[117]],user_agent:_0xf474x1a[_0x4659[112]][_0x4659[111]],visitor_language:_0xf474x1a[_0x4659[112]][_0x4659[114]],referer:_0xf474x1a[_0x4659[112]][_0x4659[119]],origin:_0x4659[139],status:_0x4659[133]},{transaction:_0xf474x32})[_0x4659[28]](function(_0xf474x2f){_0xf474x30=_0xf474x2f;return ChatEnquiry[_0x4659[105]]({username:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[137]][_0x4659[81]],email:_0xf474x2f[_0x4659[83]],text:_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[137]][_0x4659[103]],ChatWebsiteId:parseInt(_0xf474x1a[_0x4659[71]][_0x4659[79]][_0x4659[137]][_0x4659[138]],10),ChatVisitorId:_0xf474x30[_0x4659[35]]},{include:[{all:true,include:[{all:true}]}],transaction:_0xf474x32});})[_0x4659[28]](function(){_0xf474x32[_0x4659[136]]();_0xf474x1b[_0x4659[26]](_0xf474x1a[_0x4659[71]][_0x4659[88]]+_0x4659[89]+JSON[_0x4659[90]]({success:true,errors:[]})+_0x4659[91]);})[_0x4659[25]](function(_0xf474x1d){_0xf474x32[_0x4659[135]]();_0xf474x1c(_0xf474x1d);})});};exports[_0x4659[141]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){if(_0xf474x1a[_0x4659[77]][_0x4659[68]]&&_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[86]]&&_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]){ChatMessage[_0x4659[29]]({where:{ChatRoomId:_0xf474x1a[_0x4659[77]][_0x4659[68]][_0x4659[80]]}})[_0x4659[28]](function(_0xf474x29){var _0xf474x33=[];_0xf474x29[_0x4659[146]](function(_0xf474x2b){var _0xf474x34={name:_0xf474x2b[_0x4659[81]],text:_0xf474x2b[_0x4659[143]][_0x4659[142]](/(\r\n|\n|\r)/gm,_0x4659[122]),date:_0xf474x2b[_0x4659[144]]};_0xf474x33[_0x4659[145]](_0xf474x34);});var _0xf474x35=csv(_0xf474x33);_0xf474x1b[_0x4659[129]](_0x4659[147])[_0x4659[27]](200)[_0x4659[26]](_0xf474x35);})[_0x4659[25]](function(_0xf474x1d){_0xf474x1c(_0xf474x1d)})}};exports[_0x4659[148]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){Xchatty[_0x4659[57]](_0xf474x1a[_0x4659[36]][_0x4659[35]])[_0x4659[28]](function(_0xf474x36){if(!_0xf474x36){return _0xf474x1b[_0x4659[149]](404)};return _0xf474x1b[_0x4659[26]](_0xf474x36);})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)})};exports[_0x4659[105]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){Xchatty[_0x4659[105]](_0xf474x1a[_0x4659[143]])[_0x4659[28]](function(_0xf474x36){return _0xf474x1b[_0x4659[27]](201)[_0x4659[26]](_0xf474x36)})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)})};exports[_0x4659[150]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){if(_0xf474x1a[_0x4659[143]][_0x4659[35]]){delete _0xf474x1a[_0x4659[143]][_0x4659[35]]};Xchatty[_0x4659[57]](_0xf474x1a[_0x4659[36]][_0x4659[35]])[_0x4659[28]](function(_0xf474x36){if(!_0xf474x36){return _0xf474x1b[_0x4659[149]](404)};var _0xf474x37=_[_0x4659[151]](_0xf474x36,_0xf474x1a[_0x4659[143]]);_0xf474x37[_0x4659[152]]()[_0x4659[28]](function(){return _0xf474x1b[_0x4659[27]](200)[_0x4659[26]](_0xf474x36)})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)});})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)});};exports[_0x4659[153]]=function(_0xf474x1a,_0xf474x1b,_0xf474x1c){Xchatty[_0x4659[57]](_0xf474x1a[_0x4659[36]][_0x4659[35]])[_0x4659[28]](function(_0xf474x36){if(!_0xf474x36){return _0xf474x1b[_0x4659[149]](404)};_0xf474x36[_0x4659[153]]()[_0x4659[28]](function(){return _0xf474x1b[_0x4659[149]](204)})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)});})[_0x4659[25]](function(_0xf474x1d){return _0xf474x1c(_0xf474x1d)})};
\ No newline at end of file
-var _0x9e70=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x58\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x78\x63\x68\x61\x74\x74\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x78\x63\x68\x61\x74\x74\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0x9e70[0];var xchatty=require(_0x9e70[2])[_0x9e70[1]];exports[_0x9e70[3]]=function(_0xf1bax2){};function onSave(_0xf1bax2,_0xf1bax4,_0xf1bax5){_0xf1bax2[_0x9e70[5]](_0x9e70[4],_0xf1bax4)}function onRemove(_0xf1bax2,_0xf1bax4,_0xf1bax5){_0xf1bax2[_0x9e70[5]](_0x9e70[6],_0xf1bax4)}
\ No newline at end of file
+var _0xfea9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x58\x63\x68\x61\x74\x74\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x78\x63\x68\x61\x74\x74\x79\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x78\x63\x68\x61\x74\x74\x79\x3A\x72\x65\x6D\x6F\x76\x65"];_0xfea9[0];var xchatty=require(_0xfea9[2])[_0xfea9[1]];exports[_0xfea9[3]]=function(_0x85d2x2){};function onSave(_0x85d2x2,_0x85d2x4,_0x85d2x5){_0x85d2x2[_0xfea9[5]](_0xfea9[4],_0x85d2x4)}function onRemove(_0x85d2x2,_0x85d2x4,_0x85d2x5){_0x85d2x2[_0xfea9[5]](_0xfea9[6],_0x85d2x4)}
\ No newline at end of file
-var _0x3f2e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x7A\x65\x6E\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x3f2e[0];var express=require(_0x3f2e[1]);var auth=require(_0x3f2e[2]);var controller=require(_0x3f2e[3]);var router=express.Router();router[_0x3f2e[7]](_0x3f2e[4],auth[_0x3f2e[5]](),controller[_0x3f2e[6]]);router[_0x3f2e[7]](_0x3f2e[8],auth[_0x3f2e[5]](),controller[_0x3f2e[9]]);router[_0x3f2e[7]](_0x3f2e[10],auth[_0x3f2e[5]](),controller[_0x3f2e[11]]);router[_0x3f2e[7]](_0x3f2e[12],auth[_0x3f2e[5]](),controller[_0x3f2e[13]]);router[_0x3f2e[16]](_0x3f2e[14],auth[_0x3f2e[5]](),controller[_0x3f2e[15]]);router[_0x3f2e[16]](_0x3f2e[4],auth[_0x3f2e[5]](),controller[_0x3f2e[17]]);router[_0x3f2e[19]](_0x3f2e[8],auth[_0x3f2e[5]](),controller[_0x3f2e[18]]);router[_0x3f2e[20]](_0x3f2e[8],auth[_0x3f2e[5]](),controller[_0x3f2e[18]]);router[_0x3f2e[22]](_0x3f2e[4],auth[_0x3f2e[5]](),controller[_0x3f2e[21]]);router[_0x3f2e[22]](_0x3f2e[8],auth[_0x3f2e[5]](),controller[_0x3f2e[23]]);module[_0x3f2e[24]]=router;
\ No newline at end of file
+var _0x2d8f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x2F\x3A\x69\x64\x2F\x63\x68\x65\x63\x6B","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2F\x3A\x69\x64\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x2F\x76\x61\x6C\x69\x64\x61\x74\x65\x2F\x3A\x66\x69\x65\x6C\x64","\x7A\x65\x6E\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x70\x6F\x73\x74","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x64\x65\x73\x74\x72\x6F\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x2d8f[0];var express=require(_0x2d8f[1]);var auth=require(_0x2d8f[2]);var controller=require(_0x2d8f[3]);var router=express.Router();router[_0x2d8f[7]](_0x2d8f[4],auth[_0x2d8f[5]](),controller[_0x2d8f[6]]);router[_0x2d8f[7]](_0x2d8f[8],auth[_0x2d8f[5]](),controller[_0x2d8f[9]]);router[_0x2d8f[7]](_0x2d8f[10],auth[_0x2d8f[5]](),controller[_0x2d8f[11]]);router[_0x2d8f[7]](_0x2d8f[12],auth[_0x2d8f[5]](),controller[_0x2d8f[13]]);router[_0x2d8f[16]](_0x2d8f[14],auth[_0x2d8f[5]](),controller[_0x2d8f[15]]);router[_0x2d8f[16]](_0x2d8f[4],auth[_0x2d8f[5]](),controller[_0x2d8f[17]]);router[_0x2d8f[19]](_0x2d8f[8],auth[_0x2d8f[5]](),controller[_0x2d8f[18]]);router[_0x2d8f[20]](_0x2d8f[8],auth[_0x2d8f[5]](),controller[_0x2d8f[18]]);router[_0x2d8f[22]](_0x2d8f[4],auth[_0x2d8f[5]](),controller[_0x2d8f[21]]);router[_0x2d8f[22]](_0x2d8f[8],auth[_0x2d8f[5]](),controller[_0x2d8f[23]]);module[_0x2d8f[24]]=router;
\ No newline at end of file
-var _0xf805=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6E\x6F\x64\x65\x2D\x7A\x65\x6E\x64\x65\x73\x6B","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x74\x6F\x6B\x65\x6E","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x65\x72\x72\x6F\x72","\x76\x65\x72\x69\x66\x69\x65\x64","\x61\x75\x74\x68","\x75\x73\x65\x72\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x6C\x69\x73\x74","\x74\x69\x63\x6B\x65\x74\x66\x69\x65\x6C\x64\x73"];_0xf805[0];var _=require(_0xf805[1]);var util=require(_0xf805[2]);var zendesk=require(_0xf805[3]);var ZendeskAccount=require(_0xf805[5])[_0xf805[4]];exports[_0xf805[6]]=function(_0xa069x5,_0xa069x6,_0xa069x7){var _0xa069x8=[_0xf805[7],_0xf805[8],_0xf805[9],_0xf805[10]];var _0xa069x9=_0xa069x5[_0xf805[12]][_0xf805[11]]?parseInt(_0xa069x5[_0xf805[12]][_0xf805[11]],10):100;var _0xa069xa=_0xa069x5[_0xf805[12]][_0xf805[13]]?parseInt(_0xa069x5[_0xf805[12]][_0xf805[13]],10):0;var _0xa069xb={where:{},limit:_0xa069x9,offset:_0xa069xa*_0xa069x9};_[_0xf805[27]](_0xa069x5[_0xf805[12]],function(_0xa069xc,_0xa069xd){switch(_0xa069xd){case _0xf805[11]:;case _0xf805[13]:break ;;case _0xf805[16]:_0xa069xb[_0xf805[14]]=util[_0xf805[19]](_0xf805[15],_0xa069x5[_0xf805[12]][_0xf805[16]],_0xa069x5[_0xf805[12]][_0xf805[17]]||_0xf805[18])||null;break ;;case _0xf805[17]:break ;;case _0xf805[25]:_0xa069xb[_0xf805[21]][_0xf805[20]]=[];_0xa069x8[_0xf805[24]](function(_0xa069xe){var _0xa069xf={};_0xa069xf[_0xa069xe]={$like:_0xf805[22]+_0xa069xc+_0xf805[22]};_0xa069xb[_0xf805[21]][_0xf805[20]][_0xf805[23]](_0xa069xf);});break ;;default:_0xa069xb[_0xf805[21]][_0xa069xd]={$like:{}};_0xa069xb[_0xf805[21]][_0xa069xd][_0xf805[26]]=_0xf805[22]+_0xa069xc+_0xf805[22];;}});ZendeskAccount[_0xf805[42]](_0xa069xb)[_0xf805[41]](function(_0xa069x11){var _0xa069x12=Math[_0xf805[33]](_0xa069x11[_0xf805[32]]/_0xa069x9);var _0xa069x13=_0xa069x12>(_0xa069xb[_0xf805[34]]+1)?util[_0xf805[19]](_0xf805[35],_0xa069x5[_0xf805[36]],_0xa069x5[_0xf805[38]][_0xf805[37]],_0xa069x5[_0xf805[39]],_0xa069xa+1):null;var _0xa069x14=_0xa069xa>0?util[_0xf805[19]](_0xf805[35],_0xa069x5[_0xf805[36]],_0xa069x5[_0xf805[38]][_0xf805[37]],_0xa069x5[_0xf805[39]],_0xa069xa-1):null;return _0xa069x6[_0xf805[30]](200)[_0xf805[29]]({count:_0xa069x11[_0xf805[32]],rows:_0xa069x11[_0xf805[40]],next_page:_0xa069x13,previous_page:_0xa069x14,total_pages:_0xa069x12});})[_0xf805[31]](function(_0xa069x10){return _0xa069x6[_0xf805[30]](500)[_0xf805[29]]({error:_0xf805[28]})});};exports[_0xf805[43]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[47]](_0xa069x5[_0xf805[46]][_0xf805[45]])[_0xf805[41]](function(_0xa069x15){if(!_0xa069x15){return _0xa069x6[_0xf805[44]](404)};return _0xa069x6[_0xf805[29]](_0xa069x15);})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};exports[_0xf805[48]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[48]](_0xa069x5[_0xf805[49]])[_0xf805[41]](function(_0xa069x15){return _0xa069x6[_0xf805[30]](201)[_0xf805[29]](_0xa069x15)})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};exports[_0xf805[50]]=function(_0xa069x5,_0xa069x6){if(_0xa069x5[_0xf805[49]][_0xf805[45]]){delete _0xa069x5[_0xf805[49]][_0xf805[45]]};ZendeskAccount[_0xf805[47]](_0xa069x5[_0xf805[46]][_0xf805[45]])[_0xf805[41]](function(_0xa069x15){if(!_0xa069x15){return _0xa069x6[_0xf805[44]](404)};var _0xa069x16=_[_0xf805[51]](_0xa069x15,_0xa069x5[_0xf805[49]]);_0xa069x16[_0xf805[52]]()[_0xf805[41]](function(){return _0xa069x6[_0xf805[30]](200)[_0xf805[29]](_0xa069x15)})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)});})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)});};exports[_0xf805[53]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[47]](_0xa069x5[_0xf805[46]][_0xf805[45]])[_0xf805[41]](function(_0xa069x15){if(!_0xa069x15){return _0xa069x6[_0xf805[44]](404)};_0xa069x15[_0xf805[53]]()[_0xf805[41]](function(){return _0xa069x6[_0xf805[44]](204)})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)});})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};exports[_0xf805[54]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[53]]({where:{id:_0xa069x5[_0xf805[12]][_0xf805[45]]},individualHooks:true})[_0xf805[41]](function(){return _0xa069x6[_0xf805[44]](204)})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};exports[_0xf805[55]]=function(_0xa069x5,_0xa069x6){var _0xa069x17={};_0xa069x17[_0xa069x5[_0xf805[46]][_0xf805[56]]]=_0xa069x5[_0xf805[49]][_0xf805[57]];ZendeskAccount[_0xf805[42]]({where:_0xa069x17})[_0xf805[41]](function(_0xa069x11){if(_0xa069x11[_0xf805[32]]){return _0xa069x6[_0xf805[30]](200)[_0xf805[29]]({isValid:false,value:_0xa069x5[_0xf805[49]][_0xf805[57]]})};return _0xa069x6[_0xf805[30]](200)[_0xf805[29]]({isValid:true,value:_0xa069x5[_0xf805[49]][_0xf805[57]]});})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)});};exports[_0xf805[58]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[47]](_0xa069x5[_0xf805[46]][_0xf805[45]])[_0xf805[41]](function(_0xa069x18){var _0xa069x19={username:_0xa069x18[_0xf805[9]],remoteUri:_0xa069x18[_0xf805[10]]};if(_0xa069x18[_0xf805[59]]===_0xf805[60]){_0xa069x19[_0xf805[60]]=_0xa069x18[_0xf805[60]]}else {if(_0xa069x18[_0xf805[59]]===_0xf805[61]){_0xa069x19[_0xf805[61]]=_0xa069x18[_0xf805[61]]}};var _0xa069x1a=zendesk[_0xf805[62]](_0xa069x19);_0xa069x1a[_0xf805[66]][_0xf805[65]](function(_0xa069x10,_0xa069x1b,_0xa069x11){if(_0xa069x10){console[_0xf805[63]](_0xa069x10);return handleError(_0xa069x6,_0xa069x10);};if(!_0xa069x11[_0xf805[64]]){return _0xa069x6[_0xf805[44]](500)};return _0xa069x6[_0xf805[44]](204);});})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};exports[_0xf805[67]]=function(_0xa069x5,_0xa069x6){ZendeskAccount[_0xf805[47]](_0xa069x5[_0xf805[46]][_0xf805[45]])[_0xf805[41]](function(_0xa069x18){var _0xa069x19={username:_0xa069x18[_0xf805[9]],remoteUri:_0xa069x18[_0xf805[10]]};if(_0xa069x18[_0xf805[59]]===_0xf805[60]){_0xa069x19[_0xf805[60]]=_0xa069x18[_0xf805[60]]}else {if(_0xa069x18[_0xf805[59]]===_0xf805[61]){_0xa069x19[_0xf805[61]]=_0xa069x18[_0xf805[61]]}};var _0xa069x1a=zendesk[_0xf805[62]](_0xa069x19);_0xa069x1a[_0xf805[69]][_0xf805[68]](function(_0xa069x10,_0xa069x1b,_0xa069x11){if(_0xa069x10){console[_0xf805[63]](_0xa069x10);return handleError(_0xa069x6,_0xa069x10);};return _0xa069x6[_0xf805[30]](200)[_0xf805[29]](_0xa069x11);});})[_0xf805[31]](function(_0xa069x10){return handleError(_0xa069x6,_0xa069x10)})};function handleError(_0xa069x6,_0xa069x10){return _0xa069x6[_0xf805[30]](500)[_0xf805[29]](_0xa069x10)}
\ No newline at end of file
+var _0x46bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6E\x6F\x64\x65\x2D\x7A\x65\x6E\x64\x65\x73\x6B","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x62\x6C\x65\x77\x20\x75\x70\x21","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x63\x68\x65\x63\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x61\x75\x74\x68\x54\x79\x70\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x74\x6F\x6B\x65\x6E","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x65\x72\x72\x6F\x72","\x76\x65\x72\x69\x66\x69\x65\x64","\x61\x75\x74\x68","\x75\x73\x65\x72\x73","\x67\x65\x74\x46\x69\x65\x6C\x64\x73","\x6C\x69\x73\x74","\x74\x69\x63\x6B\x65\x74\x66\x69\x65\x6C\x64\x73"];_0x46bf[0];var _=require(_0x46bf[1]);var util=require(_0x46bf[2]);var zendesk=require(_0x46bf[3]);var ZendeskAccount=require(_0x46bf[5])[_0x46bf[4]];exports[_0x46bf[6]]=function(_0xe8efx5,_0xe8efx6,_0xe8efx7){var _0xe8efx8=[_0x46bf[7],_0x46bf[8],_0x46bf[9],_0x46bf[10]];var _0xe8efx9=_0xe8efx5[_0x46bf[12]][_0x46bf[11]]?parseInt(_0xe8efx5[_0x46bf[12]][_0x46bf[11]],10):100;var _0xe8efxa=_0xe8efx5[_0x46bf[12]][_0x46bf[13]]?parseInt(_0xe8efx5[_0x46bf[12]][_0x46bf[13]],10):0;var _0xe8efxb={where:{},limit:_0xe8efx9,offset:_0xe8efxa*_0xe8efx9};_[_0x46bf[27]](_0xe8efx5[_0x46bf[12]],function(_0xe8efxc,_0xe8efxd){switch(_0xe8efxd){case _0x46bf[11]:;case _0x46bf[13]:break ;;case _0x46bf[16]:_0xe8efxb[_0x46bf[14]]=util[_0x46bf[19]](_0x46bf[15],_0xe8efx5[_0x46bf[12]][_0x46bf[16]],_0xe8efx5[_0x46bf[12]][_0x46bf[17]]||_0x46bf[18])||null;break ;;case _0x46bf[17]:break ;;case _0x46bf[25]:_0xe8efxb[_0x46bf[21]][_0x46bf[20]]=[];_0xe8efx8[_0x46bf[24]](function(_0xe8efxe){var _0xe8efxf={};_0xe8efxf[_0xe8efxe]={$like:_0x46bf[22]+_0xe8efxc+_0x46bf[22]};_0xe8efxb[_0x46bf[21]][_0x46bf[20]][_0x46bf[23]](_0xe8efxf);});break ;;default:_0xe8efxb[_0x46bf[21]][_0xe8efxd]={$like:{}};_0xe8efxb[_0x46bf[21]][_0xe8efxd][_0x46bf[26]]=_0x46bf[22]+_0xe8efxc+_0x46bf[22];;}});ZendeskAccount[_0x46bf[42]](_0xe8efxb)[_0x46bf[41]](function(_0xe8efx11){var _0xe8efx12=Math[_0x46bf[33]](_0xe8efx11[_0x46bf[32]]/_0xe8efx9);var _0xe8efx13=_0xe8efx12>(_0xe8efxb[_0x46bf[34]]+1)?util[_0x46bf[19]](_0x46bf[35],_0xe8efx5[_0x46bf[36]],_0xe8efx5[_0x46bf[38]][_0x46bf[37]],_0xe8efx5[_0x46bf[39]],_0xe8efxa+1):null;var _0xe8efx14=_0xe8efxa>0?util[_0x46bf[19]](_0x46bf[35],_0xe8efx5[_0x46bf[36]],_0xe8efx5[_0x46bf[38]][_0x46bf[37]],_0xe8efx5[_0x46bf[39]],_0xe8efxa-1):null;return _0xe8efx6[_0x46bf[30]](200)[_0x46bf[29]]({count:_0xe8efx11[_0x46bf[32]],rows:_0xe8efx11[_0x46bf[40]],next_page:_0xe8efx13,previous_page:_0xe8efx14,total_pages:_0xe8efx12});})[_0x46bf[31]](function(_0xe8efx10){return _0xe8efx6[_0x46bf[30]](500)[_0x46bf[29]]({error:_0x46bf[28]})});};exports[_0x46bf[43]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[47]](_0xe8efx5[_0x46bf[46]][_0x46bf[45]])[_0x46bf[41]](function(_0xe8efx15){if(!_0xe8efx15){return _0xe8efx6[_0x46bf[44]](404)};return _0xe8efx6[_0x46bf[29]](_0xe8efx15);})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};exports[_0x46bf[48]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[48]](_0xe8efx5[_0x46bf[49]])[_0x46bf[41]](function(_0xe8efx15){return _0xe8efx6[_0x46bf[30]](201)[_0x46bf[29]](_0xe8efx15)})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};exports[_0x46bf[50]]=function(_0xe8efx5,_0xe8efx6){if(_0xe8efx5[_0x46bf[49]][_0x46bf[45]]){delete _0xe8efx5[_0x46bf[49]][_0x46bf[45]]};ZendeskAccount[_0x46bf[47]](_0xe8efx5[_0x46bf[46]][_0x46bf[45]])[_0x46bf[41]](function(_0xe8efx15){if(!_0xe8efx15){return _0xe8efx6[_0x46bf[44]](404)};var _0xe8efx16=_[_0x46bf[51]](_0xe8efx15,_0xe8efx5[_0x46bf[49]]);_0xe8efx16[_0x46bf[52]]()[_0x46bf[41]](function(){return _0xe8efx6[_0x46bf[30]](200)[_0x46bf[29]](_0xe8efx15)})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)});})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)});};exports[_0x46bf[53]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[47]](_0xe8efx5[_0x46bf[46]][_0x46bf[45]])[_0x46bf[41]](function(_0xe8efx15){if(!_0xe8efx15){return _0xe8efx6[_0x46bf[44]](404)};_0xe8efx15[_0x46bf[53]]()[_0x46bf[41]](function(){return _0xe8efx6[_0x46bf[44]](204)})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)});})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};exports[_0x46bf[54]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[53]]({where:{id:_0xe8efx5[_0x46bf[12]][_0x46bf[45]]},individualHooks:true})[_0x46bf[41]](function(){return _0xe8efx6[_0x46bf[44]](204)})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};exports[_0x46bf[55]]=function(_0xe8efx5,_0xe8efx6){var _0xe8efx17={};_0xe8efx17[_0xe8efx5[_0x46bf[46]][_0x46bf[56]]]=_0xe8efx5[_0x46bf[49]][_0x46bf[57]];ZendeskAccount[_0x46bf[42]]({where:_0xe8efx17})[_0x46bf[41]](function(_0xe8efx11){if(_0xe8efx11[_0x46bf[32]]){return _0xe8efx6[_0x46bf[30]](200)[_0x46bf[29]]({isValid:false,value:_0xe8efx5[_0x46bf[49]][_0x46bf[57]]})};return _0xe8efx6[_0x46bf[30]](200)[_0x46bf[29]]({isValid:true,value:_0xe8efx5[_0x46bf[49]][_0x46bf[57]]});})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)});};exports[_0x46bf[58]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[47]](_0xe8efx5[_0x46bf[46]][_0x46bf[45]])[_0x46bf[41]](function(_0xe8efx18){var _0xe8efx19={username:_0xe8efx18[_0x46bf[9]],remoteUri:_0xe8efx18[_0x46bf[10]]};if(_0xe8efx18[_0x46bf[59]]===_0x46bf[60]){_0xe8efx19[_0x46bf[60]]=_0xe8efx18[_0x46bf[60]]}else {if(_0xe8efx18[_0x46bf[59]]===_0x46bf[61]){_0xe8efx19[_0x46bf[61]]=_0xe8efx18[_0x46bf[61]]}};var _0xe8efx1a=zendesk[_0x46bf[62]](_0xe8efx19);_0xe8efx1a[_0x46bf[66]][_0x46bf[65]](function(_0xe8efx10,_0xe8efx1b,_0xe8efx11){if(_0xe8efx10){console[_0x46bf[63]](_0xe8efx10);return handleError(_0xe8efx6,_0xe8efx10);};if(!_0xe8efx11[_0x46bf[64]]){return _0xe8efx6[_0x46bf[44]](500)};return _0xe8efx6[_0x46bf[44]](204);});})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};exports[_0x46bf[67]]=function(_0xe8efx5,_0xe8efx6){ZendeskAccount[_0x46bf[47]](_0xe8efx5[_0x46bf[46]][_0x46bf[45]])[_0x46bf[41]](function(_0xe8efx18){var _0xe8efx19={username:_0xe8efx18[_0x46bf[9]],remoteUri:_0xe8efx18[_0x46bf[10]]};if(_0xe8efx18[_0x46bf[59]]===_0x46bf[60]){_0xe8efx19[_0x46bf[60]]=_0xe8efx18[_0x46bf[60]]}else {if(_0xe8efx18[_0x46bf[59]]===_0x46bf[61]){_0xe8efx19[_0x46bf[61]]=_0xe8efx18[_0x46bf[61]]}};var _0xe8efx1a=zendesk[_0x46bf[62]](_0xe8efx19);_0xe8efx1a[_0x46bf[69]][_0x46bf[68]](function(_0xe8efx10,_0xe8efx1b,_0xe8efx11){if(_0xe8efx10){console[_0x46bf[63]](_0xe8efx10);return handleError(_0xe8efx6,_0xe8efx10);};return _0xe8efx6[_0x46bf[30]](200)[_0x46bf[29]](_0xe8efx11);});})[_0x46bf[31]](function(_0xe8efx10){return handleError(_0xe8efx6,_0xe8efx10)})};function handleError(_0xe8efx6,_0xe8efx10){return _0xe8efx6[_0x46bf[30]](500)[_0x46bf[29]](_0xe8efx10)}
\ No newline at end of file
-var _0xcdce=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xcdce[0];var ZendeskAccount=require(_0xcdce[2])[_0xcdce[1]];exports[_0xcdce[3]]=function(_0xcc5bx2){ZendeskAccount[_0xcdce[4]](function(_0xcc5bx3){onSave(_0xcc5bx2,_0xcc5bx3)});ZendeskAccount[_0xcdce[5]](function(_0xcc5bx3){onRemove(_0xcc5bx2,_0xcc5bx3)});};function onSave(_0xcc5bx2,_0xcc5bx3,_0xcc5bx5){_0xcc5bx2[_0xcdce[7]](_0xcdce[6],_0xcc5bx3)}function onRemove(_0xcc5bx2,_0xcc5bx3,_0xcc5bx5){_0xcc5bx2[_0xcdce[7]](_0xcdce[8],_0xcc5bx3)}
\ No newline at end of file
+var _0xec7b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65"];_0xec7b[0];var ZendeskAccount=require(_0xec7b[2])[_0xec7b[1]];exports[_0xec7b[3]]=function(_0x78e5x2){ZendeskAccount[_0xec7b[4]](function(_0x78e5x3){onSave(_0x78e5x2,_0x78e5x3)});ZendeskAccount[_0xec7b[5]](function(_0x78e5x3){onRemove(_0x78e5x2,_0x78e5x3)});};function onSave(_0x78e5x2,_0x78e5x3,_0x78e5x5){_0x78e5x2[_0xec7b[7]](_0xec7b[6],_0x78e5x3)}function onRemove(_0x78e5x2,_0x78e5x3,_0x78e5x5){_0x78e5x2[_0xec7b[7]](_0xec7b[8],_0x78e5x3)}
\ No newline at end of file
-var _0xcd02=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xcd02[0];var should=require(_0xcd02[1]);var app=require(_0xcd02[2]);var request=require(_0xcd02[3]);describe(_0xcd02[4],function(){it(_0xcd02[5],function(_0xce5bx4){request(app)[_0xcd02[13]](_0xcd02[12])[_0xcd02[11]](200)[_0xcd02[11]](_0xcd02[10],/json/)[_0xcd02[9]](function(_0xce5bx5,_0xce5bx6){if(_0xce5bx5){return _0xce5bx4(_0xce5bx5)};_0xce5bx6[_0xcd02[8]][_0xcd02[1]][_0xcd02[7]][_0xcd02[6]](Array);_0xce5bx4();})})});
\ No newline at end of file
+var _0xd98c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x67\x65\x74"];_0xd98c[0];var should=require(_0xd98c[1]);var app=require(_0xd98c[2]);var request=require(_0xd98c[3]);describe(_0xd98c[4],function(){it(_0xd98c[5],function(_0xd951x4){request(app)[_0xd98c[13]](_0xd98c[12])[_0xd98c[11]](200)[_0xd98c[11]](_0xd98c[10],/json/)[_0xd98c[9]](function(_0xd951x5,_0xd951x6){if(_0xd951x5){return _0xd951x4(_0xd951x5)};_0xd951x6[_0xd98c[8]][_0xd98c[1]][_0xd98c[7]][_0xd98c[6]](Array);_0xd951x4();})})});
\ No newline at end of file
-var _0x67ba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x67ba[0];var express=require(_0x67ba[1]);var controller=require(_0x67ba[2]);var auth=require(_0x67ba[3]);var router=express.Router();router[_0x67ba[7]](_0x67ba[4],auth[_0x67ba[5]](),controller[_0x67ba[6]]);router[_0x67ba[7]](_0x67ba[8],auth[_0x67ba[5]](),controller[_0x67ba[9]]);router[_0x67ba[11]](_0x67ba[4],auth[_0x67ba[5]](),controller[_0x67ba[10]]);router[_0x67ba[13]](_0x67ba[8],auth[_0x67ba[5]](),controller[_0x67ba[12]]);router[_0x67ba[11]](_0x67ba[14],auth[_0x67ba[5]](),controller[_0x67ba[15]]);router[_0x67ba[16]](_0x67ba[8],auth[_0x67ba[5]](),controller[_0x67ba[12]]);router[_0x67ba[18]](_0x67ba[8],auth[_0x67ba[5]](),controller[_0x67ba[17]]);module[_0x67ba[19]]=router;
\ No newline at end of file
+var _0x4a8b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x75\x74\x68\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x2F\x3A\x69\x64\x2F\x3A\x74\x79\x70\x65","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x4a8b[0];var express=require(_0x4a8b[1]);var controller=require(_0x4a8b[2]);var auth=require(_0x4a8b[3]);var router=express.Router();router[_0x4a8b[7]](_0x4a8b[4],auth[_0x4a8b[5]](),controller[_0x4a8b[6]]);router[_0x4a8b[7]](_0x4a8b[8],auth[_0x4a8b[5]](),controller[_0x4a8b[9]]);router[_0x4a8b[11]](_0x4a8b[4],auth[_0x4a8b[5]](),controller[_0x4a8b[10]]);router[_0x4a8b[13]](_0x4a8b[8],auth[_0x4a8b[5]](),controller[_0x4a8b[12]]);router[_0x4a8b[11]](_0x4a8b[14],auth[_0x4a8b[5]](),controller[_0x4a8b[15]]);router[_0x4a8b[16]](_0x4a8b[8],auth[_0x4a8b[5]](),controller[_0x4a8b[12]]);router[_0x4a8b[18]](_0x4a8b[8],auth[_0x4a8b[5]](),controller[_0x4a8b[17]]);module[_0x4a8b[19]]=router;
\ No newline at end of file
-var _0x601a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0x601a[0];var _=require(_0x601a[1]);var ZendeskConfiguration=require(_0x601a[3])[_0x601a[2]];var ZendeskField=require(_0x601a[3])[_0x601a[4]];exports[_0x601a[5]]=function(_0x1648x4,_0x1648x5){ZendeskConfiguration[_0x601a[11]]({where:_0x1648x4[_0x601a[10]]})[_0x601a[9]](function(_0x1648x7){return _0x1648x5[_0x601a[8]](200)[_0x601a[7]](_0x1648x7)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)})};exports[_0x601a[12]]=function(_0x1648x4,_0x1648x5){ZendeskConfiguration[_0x601a[19]]({where:{id:_0x1648x4[_0x601a[15]][_0x601a[14]]},include:[{model:ZendeskField,as:_0x601a[16]},{model:ZendeskField,as:_0x601a[17]},{model:ZendeskField,as:_0x601a[18]}]})[_0x601a[9]](function(_0x1648x8){if(!_0x1648x8){return _0x1648x5[_0x601a[13]](404)};return _0x1648x5[_0x601a[7]](_0x1648x8);})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)})};exports[_0x601a[20]]=function(_0x1648x4,_0x1648x5){ZendeskConfiguration[_0x601a[20]](_0x1648x4[_0x601a[21]])[_0x601a[9]](function(_0x1648x8){return _0x1648x5[_0x601a[8]](201)[_0x601a[7]](_0x1648x8)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)})};exports[_0x601a[22]]=function(_0x1648x4,_0x1648x5){if(_0x1648x4[_0x601a[21]][_0x601a[14]]){delete _0x1648x4[_0x601a[21]][_0x601a[14]]};ZendeskConfiguration[_0x601a[25]](_0x1648x4[_0x601a[15]][_0x601a[14]])[_0x601a[9]](function(_0x1648x8){if(!_0x1648x8){return _0x1648x5[_0x601a[13]](404)};var _0x1648x9=_[_0x601a[23]](_0x1648x8,_0x1648x4[_0x601a[21]]);_0x1648x9[_0x601a[24]]()[_0x601a[9]](function(){return _0x1648x5[_0x601a[8]](200)[_0x601a[7]](_0x1648x8)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});};exports[_0x601a[26]]=function(_0x1648x4,_0x1648x5){ZendeskConfiguration[_0x601a[25]](_0x1648x4[_0x601a[15]][_0x601a[14]])[_0x601a[9]](function(_0x1648x8){if(!_0x1648x8){return _0x1648x5[_0x601a[13]](404)};_0x1648x8[_0x601a[26]]()[_0x601a[9]](function(){return _0x1648x5[_0x601a[13]](204)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)})};exports[_0x601a[27]]=function(_0x1648x4,_0x1648x5,_0x1648xa){ZendeskConfiguration[_0x601a[25]](_0x1648x4[_0x601a[15]][_0x601a[14]])[_0x601a[9]](function(_0x1648xb){if(!_0x1648xb){return _0x1648x5[_0x601a[13]](500)};ZendeskField[_0x601a[20]](_0x1648x4[_0x601a[21]])[_0x601a[9]](function(_0x1648xc){switch(_0x1648x4[_0x601a[15]][_0x601a[34]]){case _0x601a[29]:_0x1648xb[_0x601a[28]](_0x1648xc)[_0x601a[9]](function(){return _0x1648x5[_0x601a[8]](200)[_0x601a[7]](_0x1648xc)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});break ;;case _0x601a[31]:_0x1648xb[_0x601a[30]](_0x1648xc)[_0x601a[9]](function(){return _0x1648x5[_0x601a[8]](200)[_0x601a[7]](_0x1648xc)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});break ;;case _0x601a[33]:_0x1648xb[_0x601a[32]](_0x1648xc)[_0x601a[9]](function(){return _0x1648x5[_0x601a[8]](200)[_0x601a[7]](_0x1648xc)})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});break ;;}})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)});})[_0x601a[6]](function(_0x1648x6){return handleError(_0x1648x5,_0x1648x6)})};function handleError(_0x1648x5,_0x1648x6){return _0x1648x5[_0x601a[8]](500)[_0x601a[7]](_0x1648x6)}
\ No newline at end of file
+var _0xa903=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x53\x75\x62\x6A\x65\x63\x74","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x46\x69\x65\x6C\x64","\x66\x69\x6E\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x74\x72\x6F\x79","\x61\x64\x64\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x46\x69\x65\x6C\x64","\x61\x64\x64\x53\x75\x62\x6A\x65\x63\x74","\x73\x75\x62\x6A\x65\x63\x74","\x61\x64\x64\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x61\x64\x64\x46\x69\x65\x6C\x64","\x66\x69\x65\x6C\x64","\x74\x79\x70\x65"];_0xa903[0];var _=require(_0xa903[1]);var ZendeskConfiguration=require(_0xa903[3])[_0xa903[2]];var ZendeskField=require(_0xa903[3])[_0xa903[4]];exports[_0xa903[5]]=function(_0xe9ecx4,_0xe9ecx5){ZendeskConfiguration[_0xa903[11]]({where:_0xe9ecx4[_0xa903[10]]})[_0xa903[9]](function(_0xe9ecx7){return _0xe9ecx5[_0xa903[8]](200)[_0xa903[7]](_0xe9ecx7)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)})};exports[_0xa903[12]]=function(_0xe9ecx4,_0xe9ecx5){ZendeskConfiguration[_0xa903[19]]({where:{id:_0xe9ecx4[_0xa903[15]][_0xa903[14]]},include:[{model:ZendeskField,as:_0xa903[16]},{model:ZendeskField,as:_0xa903[17]},{model:ZendeskField,as:_0xa903[18]}]})[_0xa903[9]](function(_0xe9ecx8){if(!_0xe9ecx8){return _0xe9ecx5[_0xa903[13]](404)};return _0xe9ecx5[_0xa903[7]](_0xe9ecx8);})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)})};exports[_0xa903[20]]=function(_0xe9ecx4,_0xe9ecx5){ZendeskConfiguration[_0xa903[20]](_0xe9ecx4[_0xa903[21]])[_0xa903[9]](function(_0xe9ecx8){return _0xe9ecx5[_0xa903[8]](201)[_0xa903[7]](_0xe9ecx8)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)})};exports[_0xa903[22]]=function(_0xe9ecx4,_0xe9ecx5){if(_0xe9ecx4[_0xa903[21]][_0xa903[14]]){delete _0xe9ecx4[_0xa903[21]][_0xa903[14]]};ZendeskConfiguration[_0xa903[25]](_0xe9ecx4[_0xa903[15]][_0xa903[14]])[_0xa903[9]](function(_0xe9ecx8){if(!_0xe9ecx8){return _0xe9ecx5[_0xa903[13]](404)};var _0xe9ecx9=_[_0xa903[23]](_0xe9ecx8,_0xe9ecx4[_0xa903[21]]);_0xe9ecx9[_0xa903[24]]()[_0xa903[9]](function(){return _0xe9ecx5[_0xa903[8]](200)[_0xa903[7]](_0xe9ecx8)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});};exports[_0xa903[26]]=function(_0xe9ecx4,_0xe9ecx5){ZendeskConfiguration[_0xa903[25]](_0xe9ecx4[_0xa903[15]][_0xa903[14]])[_0xa903[9]](function(_0xe9ecx8){if(!_0xe9ecx8){return _0xe9ecx5[_0xa903[13]](404)};_0xe9ecx8[_0xa903[26]]()[_0xa903[9]](function(){return _0xe9ecx5[_0xa903[13]](204)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)})};exports[_0xa903[27]]=function(_0xe9ecx4,_0xe9ecx5,_0xe9ecxa){ZendeskConfiguration[_0xa903[25]](_0xe9ecx4[_0xa903[15]][_0xa903[14]])[_0xa903[9]](function(_0xe9ecxb){if(!_0xe9ecxb){return _0xe9ecx5[_0xa903[13]](500)};ZendeskField[_0xa903[20]](_0xe9ecx4[_0xa903[21]])[_0xa903[9]](function(_0xe9ecxc){switch(_0xe9ecx4[_0xa903[15]][_0xa903[34]]){case _0xa903[29]:_0xe9ecxb[_0xa903[28]](_0xe9ecxc)[_0xa903[9]](function(){return _0xe9ecx5[_0xa903[8]](200)[_0xa903[7]](_0xe9ecxc)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});break ;;case _0xa903[31]:_0xe9ecxb[_0xa903[30]](_0xe9ecxc)[_0xa903[9]](function(){return _0xe9ecx5[_0xa903[8]](200)[_0xa903[7]](_0xe9ecxc)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});break ;;case _0xa903[33]:_0xe9ecxb[_0xa903[32]](_0xe9ecxc)[_0xa903[9]](function(){return _0xe9ecx5[_0xa903[8]](200)[_0xa903[7]](_0xe9ecxc)})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});break ;;}})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)});})[_0xa903[6]](function(_0xe9ecx6){return handleError(_0xe9ecx5,_0xe9ecx6)})};function handleError(_0xe9ecx5,_0xe9ecx6){return _0xe9ecx5[_0xa903[8]](500)[_0xa903[7]](_0xe9ecx6)}
\ No newline at end of file
-var _0x5ba0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5ba0[0];var ZendeskConfiguration=require(_0x5ba0[2])[_0x5ba0[1]];exports[_0x5ba0[3]]=function(_0xadb0x2){ZendeskConfiguration[_0x5ba0[4]](function(_0xadb0x3){onSave(_0xadb0x2,_0xadb0x3)});ZendeskConfiguration[_0x5ba0[5]](function(_0xadb0x3){onRemove(_0xadb0x2,_0xadb0x3)});};function onSave(_0xadb0x2,_0xadb0x3,_0xadb0x5){_0xadb0x2[_0x5ba0[7]](_0x5ba0[6],_0xadb0x3)}function onRemove(_0xadb0x2,_0xadb0x3,_0xadb0x5){_0xadb0x2[_0x5ba0[7]](_0x5ba0[8],_0xadb0x3)}
\ No newline at end of file
+var _0xbdbf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xbdbf[0];var ZendeskConfiguration=require(_0xbdbf[2])[_0xbdbf[1]];exports[_0xbdbf[3]]=function(_0xd173x2){ZendeskConfiguration[_0xbdbf[4]](function(_0xd173x3){onSave(_0xd173x2,_0xd173x3)});ZendeskConfiguration[_0xbdbf[5]](function(_0xd173x3){onRemove(_0xd173x2,_0xd173x3)});};function onSave(_0xd173x2,_0xd173x3,_0xd173x5){_0xd173x2[_0xbdbf[7]](_0xbdbf[6],_0xd173x3)}function onRemove(_0xd173x2,_0xd173x3,_0xd173x5){_0xd173x2[_0xbdbf[7]](_0xbdbf[8],_0xd173x3)}
\ No newline at end of file
-var _0x298b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x298b[0];var should=require(_0x298b[1]);var app=require(_0x298b[2]);var request=require(_0x298b[3]);describe(_0x298b[4],function(){it(_0x298b[5],function(_0x90e5x4){request(app)[_0x298b[13]](_0x298b[12])[_0x298b[11]](200)[_0x298b[11]](_0x298b[10],/json/)[_0x298b[9]](function(_0x90e5x5,_0x90e5x6){if(_0x90e5x5){return _0x90e5x4(_0x90e5x5)};_0x90e5x6[_0x298b[8]][_0x298b[1]][_0x298b[7]][_0x298b[6]](Array);_0x90e5x4();})})});
\ No newline at end of file
+var _0x6f47=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74"];_0x6f47[0];var should=require(_0x6f47[1]);var app=require(_0x6f47[2]);var request=require(_0x6f47[3]);describe(_0x6f47[4],function(){it(_0x6f47[5],function(_0x186fx4){request(app)[_0x6f47[13]](_0x6f47[12])[_0x6f47[11]](200)[_0x6f47[11]](_0x6f47[10],/json/)[_0x6f47[9]](function(_0x186fx5,_0x186fx6){if(_0x186fx5){return _0x186fx4(_0x186fx5)};_0x186fx6[_0x6f47[8]][_0x6f47[1]][_0x6f47[7]][_0x6f47[6]](Array);_0x186fx4();})})});
\ No newline at end of file
-var _0xae3d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xae3d[0];var express=require(_0xae3d[1]);var controller=require(_0xae3d[2]);var router=express.Router();router[_0xae3d[5]](_0xae3d[3],controller[_0xae3d[4]]);router[_0xae3d[5]](_0xae3d[6],controller[_0xae3d[7]]);router[_0xae3d[9]](_0xae3d[3],controller[_0xae3d[8]]);router[_0xae3d[11]](_0xae3d[6],controller[_0xae3d[10]]);router[_0xae3d[12]](_0xae3d[6],controller[_0xae3d[10]]);router[_0xae3d[14]](_0xae3d[6],controller[_0xae3d[13]]);module[_0xae3d[15]]=router;
\ No newline at end of file
+var _0xa043=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x63\x6F\x6E\x74\x72\x6F\x6C\x6C\x65\x72","\x2F","\x69\x6E\x64\x65\x78","\x67\x65\x74","\x2F\x3A\x69\x64","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x70\x6F\x73\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x74","\x70\x61\x74\x63\x68","\x64\x65\x73\x74\x72\x6F\x79","\x64\x65\x6C\x65\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xa043[0];var express=require(_0xa043[1]);var controller=require(_0xa043[2]);var router=express.Router();router[_0xa043[5]](_0xa043[3],controller[_0xa043[4]]);router[_0xa043[5]](_0xa043[6],controller[_0xa043[7]]);router[_0xa043[9]](_0xa043[3],controller[_0xa043[8]]);router[_0xa043[11]](_0xa043[6],controller[_0xa043[10]]);router[_0xa043[12]](_0xa043[6],controller[_0xa043[10]]);router[_0xa043[14]](_0xa043[6],controller[_0xa043[13]]);module[_0xa043[15]]=router;
\ No newline at end of file
-var _0x8bc4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x8bc4[0];var _=require(_0x8bc4[1]);var ZendeskField=require(_0x8bc4[3])[_0x8bc4[2]];exports[_0x8bc4[4]]=function(_0x38ccx3,_0x38ccx4){ZendeskField[_0x8bc4[9]]()[_0x8bc4[8]](function(_0x38ccx6){return _0x38ccx4[_0x8bc4[7]](200)[_0x8bc4[6]](_0x38ccx6)})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)})};exports[_0x8bc4[10]]=function(_0x38ccx3,_0x38ccx4){ZendeskField[_0x8bc4[14]](_0x38ccx3[_0x8bc4[13]][_0x8bc4[12]])[_0x8bc4[8]](function(_0x38ccx7){if(!_0x38ccx7){return _0x38ccx4[_0x8bc4[11]](404)};return _0x38ccx4[_0x8bc4[6]](_0x38ccx7);})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)})};exports[_0x8bc4[15]]=function(_0x38ccx3,_0x38ccx4){ZendeskField[_0x8bc4[15]](_0x38ccx3[_0x8bc4[16]])[_0x8bc4[8]](function(_0x38ccx7){return _0x38ccx4[_0x8bc4[7]](201)[_0x8bc4[6]](_0x38ccx7)})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)})};exports[_0x8bc4[17]]=function(_0x38ccx3,_0x38ccx4){if(_0x38ccx3[_0x8bc4[16]][_0x8bc4[12]]){delete _0x38ccx3[_0x8bc4[16]][_0x8bc4[12]]};ZendeskField[_0x8bc4[14]](_0x38ccx3[_0x8bc4[13]][_0x8bc4[12]])[_0x8bc4[8]](function(_0x38ccx7){if(!_0x38ccx7){return _0x38ccx4[_0x8bc4[11]](404)};var _0x38ccx8=_[_0x8bc4[18]](_0x38ccx7,_0x38ccx3[_0x8bc4[16]]);_0x38ccx8[_0x8bc4[19]]()[_0x8bc4[8]](function(){return _0x38ccx4[_0x8bc4[7]](200)[_0x8bc4[6]](_0x38ccx7)})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)});})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)});};exports[_0x8bc4[20]]=function(_0x38ccx3,_0x38ccx4){ZendeskField[_0x8bc4[14]](_0x38ccx3[_0x8bc4[13]][_0x8bc4[12]])[_0x8bc4[8]](function(_0x38ccx7){if(!_0x38ccx7){return _0x38ccx4[_0x8bc4[11]](404)};_0x38ccx7[_0x8bc4[20]]()[_0x8bc4[8]](function(){return _0x38ccx4[_0x8bc4[11]](204)})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)});})[_0x8bc4[5]](function(_0x38ccx5){return handleError(_0x38ccx4,_0x38ccx5)})};function handleError(_0x38ccx4,_0x38ccx5){return _0x38ccx4[_0x8bc4[7]](500)[_0x8bc4[6]](_0x38ccx5)}
\ No newline at end of file
+var _0x91dd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x91dd[0];var _=require(_0x91dd[1]);var ZendeskField=require(_0x91dd[3])[_0x91dd[2]];exports[_0x91dd[4]]=function(_0x2d7bx3,_0x2d7bx4){ZendeskField[_0x91dd[9]]()[_0x91dd[8]](function(_0x2d7bx6){return _0x2d7bx4[_0x91dd[7]](200)[_0x91dd[6]](_0x2d7bx6)})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)})};exports[_0x91dd[10]]=function(_0x2d7bx3,_0x2d7bx4){ZendeskField[_0x91dd[14]](_0x2d7bx3[_0x91dd[13]][_0x91dd[12]])[_0x91dd[8]](function(_0x2d7bx7){if(!_0x2d7bx7){return _0x2d7bx4[_0x91dd[11]](404)};return _0x2d7bx4[_0x91dd[6]](_0x2d7bx7);})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)})};exports[_0x91dd[15]]=function(_0x2d7bx3,_0x2d7bx4){ZendeskField[_0x91dd[15]](_0x2d7bx3[_0x91dd[16]])[_0x91dd[8]](function(_0x2d7bx7){return _0x2d7bx4[_0x91dd[7]](201)[_0x91dd[6]](_0x2d7bx7)})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)})};exports[_0x91dd[17]]=function(_0x2d7bx3,_0x2d7bx4){if(_0x2d7bx3[_0x91dd[16]][_0x91dd[12]]){delete _0x2d7bx3[_0x91dd[16]][_0x91dd[12]]};ZendeskField[_0x91dd[14]](_0x2d7bx3[_0x91dd[13]][_0x91dd[12]])[_0x91dd[8]](function(_0x2d7bx7){if(!_0x2d7bx7){return _0x2d7bx4[_0x91dd[11]](404)};var _0x2d7bx8=_[_0x91dd[18]](_0x2d7bx7,_0x2d7bx3[_0x91dd[16]]);_0x2d7bx8[_0x91dd[19]]()[_0x91dd[8]](function(){return _0x2d7bx4[_0x91dd[7]](200)[_0x91dd[6]](_0x2d7bx7)})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)});})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)});};exports[_0x91dd[20]]=function(_0x2d7bx3,_0x2d7bx4){ZendeskField[_0x91dd[14]](_0x2d7bx3[_0x91dd[13]][_0x91dd[12]])[_0x91dd[8]](function(_0x2d7bx7){if(!_0x2d7bx7){return _0x2d7bx4[_0x91dd[11]](404)};_0x2d7bx7[_0x91dd[20]]()[_0x91dd[8]](function(){return _0x2d7bx4[_0x91dd[11]](204)})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)});})[_0x91dd[5]](function(_0x2d7bx5){return handleError(_0x2d7bx4,_0x2d7bx5)})};function handleError(_0x2d7bx4,_0x2d7bx5){return _0x2d7bx4[_0x91dd[7]](500)[_0x91dd[6]](_0x2d7bx5)}
\ No newline at end of file
-var _0x2e41=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x2e41[0];var ZendeskField=require(_0x2e41[2])[_0x2e41[1]];exports[_0x2e41[3]]=function(_0xb003x2){ZendeskField[_0x2e41[4]](function(_0xb003x3){onSave(_0xb003x2,_0xb003x3)});ZendeskField[_0x2e41[5]](function(_0xb003x3){onRemove(_0xb003x2,_0xb003x3)});};function onSave(_0xb003x2,_0xb003x3,_0xb003x5){_0xb003x2[_0x2e41[7]](_0x2e41[6],_0xb003x3)}function onRemove(_0xb003x2,_0xb003x3,_0xb003x5){_0xb003x2[_0x2e41[7]](_0x2e41[8],_0xb003x3)}
\ No newline at end of file
+var _0x5a02=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x3A\x72\x65\x6D\x6F\x76\x65"];_0x5a02[0];var ZendeskField=require(_0x5a02[2])[_0x5a02[1]];exports[_0x5a02[3]]=function(_0x1440x2){ZendeskField[_0x5a02[4]](function(_0x1440x3){onSave(_0x1440x2,_0x1440x3)});ZendeskField[_0x5a02[5]](function(_0x1440x3){onRemove(_0x1440x2,_0x1440x3)});};function onSave(_0x1440x2,_0x1440x3,_0x1440x5){_0x1440x2[_0x5a02[7]](_0x5a02[6],_0x1440x3)}function onRemove(_0x1440x2,_0x1440x3,_0x1440x5){_0x1440x2[_0x5a02[7]](_0x5a02[8],_0x1440x3)}
\ No newline at end of file
-var _0x3e91=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74"];_0x3e91[0];var should=require(_0x3e91[1]);var app=require(_0x3e91[2]);var request=require(_0x3e91[3]);describe(_0x3e91[4],function(){it(_0x3e91[5],function(_0xf4dbx4){request(app)[_0x3e91[13]](_0x3e91[12])[_0x3e91[11]](200)[_0x3e91[11]](_0x3e91[10],/json/)[_0x3e91[9]](function(_0xf4dbx5,_0xf4dbx6){if(_0xf4dbx5){return _0xf4dbx4(_0xf4dbx5)};_0xf4dbx6[_0x3e91[8]][_0x3e91[1]][_0x3e91[7]][_0x3e91[6]](Array);_0xf4dbx4();})})});
\ No newline at end of file
+var _0x45c7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x68\x6F\x75\x6C\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x70","\x73\x75\x70\x65\x72\x74\x65\x73\x74","\x47\x45\x54\x20\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x73\x68\x6F\x75\x6C\x64\x20\x72\x65\x73\x70\x6F\x6E\x64\x20\x77\x69\x74\x68\x20\x4A\x53\x4F\x4E\x20\x61\x72\x72\x61\x79","\x69\x6E\x73\x74\x61\x6E\x63\x65\x6F\x66","\x62\x65","\x62\x6F\x64\x79","\x65\x6E\x64","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x65\x78\x70\x65\x63\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x67\x65\x74"];_0x45c7[0];var should=require(_0x45c7[1]);var app=require(_0x45c7[2]);var request=require(_0x45c7[3]);describe(_0x45c7[4],function(){it(_0x45c7[5],function(_0x6affx4){request(app)[_0x45c7[13]](_0x45c7[12])[_0x45c7[11]](200)[_0x45c7[11]](_0x45c7[10],/json/)[_0x45c7[9]](function(_0x6affx5,_0x6affx6){if(_0x6affx5){return _0x6affx4(_0x6affx5)};_0x6affx6[_0x45c7[8]][_0x45c7[1]][_0x45c7[7]][_0x45c7[6]](Array);_0x6affx4();})})});
\ No newline at end of file
-var _0x44e5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","\x65\x6E\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4E\x4F\x44\x45\x5F\x54\x4C\x53\x5F\x52\x45\x4A\x45\x43\x54\x5F\x55\x4E\x41\x55\x54\x48\x4F\x52\x49\x5A\x45\x44","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x62\x6A\x65\x63\x74","\x6D\x65\x73\x73\x61\x67\x65","\x0A\x4D\x65\x73\x73\x61\x67\x65\x3A\x20","\x6C\x6F\x67","\x73\x74\x61\x63\x6B","\x0A\x53\x74\x61\x63\x6B\x74\x72\x61\x63\x65\x3A","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x64\x75\x6D\x70\x45\x72\x72\x6F\x72\x20\x3A\x3A\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x61\x6E\x20\x6F\x62\x6A\x65\x63\x74","\x6F\x6E","\x6F\x73","\x68\x74\x74\x70","\x75\x74\x69\x6C","\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x53\x65\x74\x74\x69\x6E\x67","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2F\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x63\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F","\x70\x6F\x72\x74","\x61\x73\x74\x65\x72\x69\x73\x6B","\x68\x6F\x73\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x61\x73\x74\x65\x72\x69\x73\x6B\x2D\x6D\x61\x6E\x61\x67\x65\x72","\x6B\x65\x65\x70\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x6B\x75\x65","\x6C\x69\x73\x74\x65\x6E","\x61\x70\x70","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x78\x70\x72\x65\x73\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x2E\x2F\x72\x6F\x75\x74\x65\x73","\x73\x65\x65\x64\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6F\x63\x6B\x65\x74\x69\x6F","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x69\x6E\x69\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x69\x6D\x61\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x74\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x6D\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72","\x69\x70","\x45\x78\x70\x72\x65\x73\x73\x20\x73\x65\x72\x76\x65\x72\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x64\x2C\x20\x69\x6E\x20\x25\x73\x20\x6D\x6F\x64\x65","\x67\x65\x74","\x74\x68\x65\x6E","\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x68\x69\x73\x74\x6F\x72\x79","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x44e5[0];process[_0x44e5[2]][_0x44e5[1]]=process[_0x44e5[2]][_0x44e5[1]]||_0x44e5[3];process[_0x44e5[2]][_0x44e5[4]]=0;process[_0x44e5[14]](_0x44e5[5],function(_0x1d57x1){if( typeof _0x1d57x1===_0x44e5[6]){if(_0x1d57x1[_0x44e5[7]]){console[_0x44e5[9]](_0x44e5[8]+_0x1d57x1[_0x44e5[7]])};if(_0x1d57x1[_0x44e5[10]]){console[_0x44e5[9]](_0x44e5[11]);console[_0x44e5[9]](_0x44e5[12]);console[_0x44e5[9]](_0x1d57x1[_0x44e5[10]]);};}else {console[_0x44e5[9]](_0x44e5[13])}});var os=require(_0x44e5[15]);var http=require(_0x44e5[16]);var util=require(_0x44e5[17]);var crypto=require(_0x44e5[18]);var express=require(_0x44e5[19]);var models=require(_0x44e5[20]);var config=require(_0x44e5[21]);var Setting=models[_0x44e5[22]];var app=express();var server=require(_0x44e5[16])[_0x44e5[23]](app);var io=require(_0x44e5[26])(server,{serveClient:(config[_0x44e5[2]]===_0x44e5[24])?false:true,path:_0x44e5[25]});var ami=require(_0x44e5[32])(config[_0x44e5[28]][_0x44e5[27]],config[_0x44e5[28]][_0x44e5[29]],config[_0x44e5[28]][_0x44e5[30]],config[_0x44e5[28]][_0x44e5[31]],true);ami[_0x44e5[33]]();var kue=require(_0x44e5[34]);kue[_0x44e5[36]][_0x44e5[35]](3001);var cronjob=require(_0x44e5[38])[_0x44e5[37]];require(_0x44e5[39])(app);models[_0x44e5[63]][_0x44e5[62]]()[_0x44e5[61]](function(){require(_0x44e5[42])(app);if(config[_0x44e5[43]]){require(_0x44e5[44])};require(_0x44e5[45])(io);require(_0x44e5[46])(kue);require(_0x44e5[47])(kue);require(_0x44e5[48])(io,kue);require(_0x44e5[49])();require(_0x44e5[50])();require(_0x44e5[51])();require(_0x44e5[53])[_0x44e5[52]]();require(_0x44e5[54])[_0x44e5[52]]();require(_0x44e5[55])(ami);require(_0x44e5[56])();require(_0x44e5[57])(ami);server[_0x44e5[35]](config[_0x44e5[27]],config[_0x44e5[58]],function(){console[_0x44e5[9]](_0x44e5[59],config[_0x44e5[27]],app[_0x44e5[60]](_0x44e5[2]))});})[_0x44e5[41]](function(_0x1d57x1){console[_0x44e5[40]](_0x1d57x1)});models[_0x44e5[65]][_0x44e5[62]]()[_0x44e5[61]](function(){require(_0x44e5[64])(cronjob)})[_0x44e5[41]](function(_0x1d57x1){console[_0x44e5[40]](_0x1d57x1)});exports=module[_0x44e5[66]]=app;
\ No newline at end of file
+var _0x9695=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","\x65\x6E\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4E\x4F\x44\x45\x5F\x54\x4C\x53\x5F\x52\x45\x4A\x45\x43\x54\x5F\x55\x4E\x41\x55\x54\x48\x4F\x52\x49\x5A\x45\x44","\x75\x6E\x63\x61\x75\x67\x68\x74\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x62\x6A\x65\x63\x74","\x6D\x65\x73\x73\x61\x67\x65","\x0A\x4D\x65\x73\x73\x61\x67\x65\x3A\x20","\x6C\x6F\x67","\x73\x74\x61\x63\x6B","\x0A\x53\x74\x61\x63\x6B\x74\x72\x61\x63\x65\x3A","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x64\x75\x6D\x70\x45\x72\x72\x6F\x72\x20\x3A\x3A\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x20\x69\x73\x20\x6E\x6F\x74\x20\x61\x6E\x20\x6F\x62\x6A\x65\x63\x74","\x6F\x6E","\x6F\x73","\x68\x74\x74\x70","\x75\x74\x69\x6C","\x63\x72\x79\x70\x74\x6F","\x43\x72\x6F\x6E\x4A\x6F\x62","\x63\x72\x6F\x6E","\x73\x68\x65\x6C\x6C\x6A\x73\x2F\x67\x6C\x6F\x62\x61\x6C","\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x53\x65\x74\x74\x69\x6E\x67\x73","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2F\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x63\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F","\x70\x6F\x72\x74","\x61\x73\x74\x65\x72\x69\x73\x6B","\x68\x6F\x73\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x61\x73\x74\x65\x72\x69\x73\x6B\x2D\x6D\x61\x6E\x61\x67\x65\x72","\x6B\x65\x65\x70\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x6B\x75\x65","\x6C\x69\x73\x74\x65\x6E","\x61\x70\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x78\x70\x72\x65\x73\x73","\x2E\x2F\x72\x6F\x75\x74\x65\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x68\x69\x73\x74\x6F\x72\x79","\x74\x68\x65\x6E","\x73\x79\x6E\x63","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x73\x65\x65\x64\x44\x42","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x65\x65\x64","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6F\x63\x6B\x65\x74\x69\x6F","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x63\x68\x61\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6B\x75\x65\x2E\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73\x2F\x66\x61\x78","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x69\x6E\x69\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x69\x6D\x61\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x73\x6D\x74\x70","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x6D\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65","\x69\x70","\x45\x78\x70\x72\x65\x73\x73\x20\x73\x65\x72\x76\x65\x72\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x64\x2C\x20\x69\x6E\x20\x25\x73\x20\x6D\x6F\x64\x65","\x67\x65\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9695[0];process[_0x9695[2]][_0x9695[1]]=process[_0x9695[2]][_0x9695[1]]||_0x9695[3];process[_0x9695[2]][_0x9695[4]]=0;process[_0x9695[14]](_0x9695[5],function(_0x3708x1){if( typeof _0x3708x1===_0x9695[6]){if(_0x3708x1[_0x9695[7]]){console[_0x9695[9]](_0x9695[8]+_0x3708x1[_0x9695[7]])};if(_0x3708x1[_0x9695[10]]){console[_0x9695[9]](_0x9695[11]);console[_0x9695[9]](_0x9695[12]);console[_0x9695[9]](_0x3708x1[_0x9695[10]]);};}else {console[_0x9695[9]](_0x9695[13])}});var os=require(_0x9695[15]);var http=require(_0x9695[16]);var util=require(_0x9695[17]);var crypto=require(_0x9695[18]);var cronjob=require(_0x9695[20])[_0x9695[19]];var shelljs=require(_0x9695[21]);var express=require(_0x9695[22]);var models=require(_0x9695[23]);var config=require(_0x9695[24]);var Settings=models[_0x9695[25]];var app=express();var server=require(_0x9695[16])[_0x9695[26]](app);var io=require(_0x9695[29])(server,{serveClient:(config[_0x9695[2]]===_0x9695[27])?false:true,path:_0x9695[28]});var ami=require(_0x9695[35])(config[_0x9695[31]][_0x9695[30]],config[_0x9695[31]][_0x9695[32]],config[_0x9695[31]][_0x9695[33]],config[_0x9695[31]][_0x9695[34]],true);ami[_0x9695[36]]();var kue=require(_0x9695[37]);kue[_0x9695[39]][_0x9695[38]](3001);var _setting;var _license;require(_0x9695[40])(app);require(_0x9695[41])(app);models[_0x9695[68]][_0x9695[46]]()[_0x9695[45]](function(){require(_0x9695[41])(app);if(config[_0x9695[48]]){require(_0x9695[49])};require(_0x9695[50])(io);require(_0x9695[51])(kue);require(_0x9695[52])(kue);require(_0x9695[53])(io,kue);require(_0x9695[54])();require(_0x9695[55])();require(_0x9695[56])();require(_0x9695[58])[_0x9695[57]]();require(_0x9695[59])[_0x9695[57]]();require(_0x9695[60])(ami);require(_0x9695[61])();require(_0x9695[62])(ami);require(_0x9695[63])(io,ami);require(_0x9695[64])();server[_0x9695[38]](config[_0x9695[30]],config[_0x9695[65]],function(){console[_0x9695[9]](_0x9695[66],config[_0x9695[30]],app[_0x9695[67]](_0x9695[2]))});})[_0x9695[45]](function(){return models[_0x9695[47]][_0x9695[46]]()})[_0x9695[45]](function(){require(_0x9695[44])(cronjob)})[_0x9695[43]](function(_0x3708x1){console[_0x9695[42]](_0x3708x1)});exports=module[_0x9695[69]]=app;
\ No newline at end of file
-var _0x502d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6A\x73\x6F\x6E\x77\x65\x62\x74\x6F\x6B\x65\x6E","\x65\x78\x70\x72\x65\x73\x73\x2D\x6A\x77\x74","\x63\x6F\x6D\x70\x6F\x73\x61\x62\x6C\x65\x2D\x6D\x69\x64\x64\x6C\x65\x77\x61\x72\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x75\x73\x65\x72","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65","\x71\x75\x65\x72\x79","\x61\x63\x63\x65\x73\x73\x5F\x74\x6F\x6B\x65\x6E","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x61\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x73","\x42\x65\x61\x72\x65\x72\x20","\x52\x65\x71\x75\x69\x72\x65\x64\x20\x72\x6F\x6C\x65\x20\x6E\x65\x65\x64\x73\x20\x74\x6F\x20\x62\x65\x20\x73\x65\x74","\x72\x6F\x6C\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x75\x73\x65\x72\x52\x6F\x6C\x65\x73","\x31\x64","\x73\x69\x67\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x6A\x73\x6F\x6E","\x74\x6F\x6B\x65\x6E","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x63\x6F\x6F\x6B\x69\x65","\x2F","\x72\x65\x64\x69\x72\x65\x63\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x68\x61\x73\x52\x6F\x6C\x65","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65"];_0x502d[0];var passport=require(_0x502d[1]);var config=require(_0x502d[2]);var jwt=require(_0x502d[3]);var expressJwt=require(_0x502d[4]);var compose=require(_0x502d[5]);var User=require(_0x502d[7])[_0x502d[6]];var validateJwt=expressJwt({secret:config[_0x502d[9]][_0x502d[8]]});function isAuthenticated(){return compose()[_0x502d[16]](function(_0x4246x9,_0x4246xa,_0x4246xb){if(_0x4246x9[_0x502d[17]]&&_0x4246x9[_0x502d[17]][_0x502d[19]](_0x502d[18])){_0x4246x9[_0x502d[21]][_0x502d[20]]=_0x502d[22]+_0x4246x9[_0x502d[17]][_0x502d[18]]};validateJwt(_0x4246x9,_0x4246xa,_0x4246xb);})[_0x502d[16]](function(_0x4246x9,_0x4246xa,_0x4246xb){User[_0x502d[15]](_0x4246x9[_0x502d[12]][_0x502d[14]])[_0x502d[13]](function(_0x4246xd){if(!_0x4246xd){return _0x4246xa[_0x502d[11]](401)};_0x4246x9[_0x502d[12]]=_0x4246xd;return _0x4246xb();})[_0x502d[10]](function(_0x4246xc){return _0x4246xb(_0x4246xc)})})}function hasRole(_0x4246xf){if(!_0x4246xf){throw new Error(_0x502d[23])};return compose()[_0x502d[16]](isAuthenticated())[_0x502d[16]](function _0x4246x10(_0x4246x9,_0x4246xa,_0x4246xb){if(config[_0x502d[26]][_0x502d[25]](_0x4246x9[_0x502d[12]][_0x502d[24]])>=config[_0x502d[26]][_0x502d[25]](_0x4246xf)){return _0x4246xb()}else {return _0x4246xa[_0x502d[11]](403)}});}function signToken(_0x4246x12,_0x4246x13,_0x4246x14){var _0x4246x15=60*24*365*5;if(!_0x4246x14){_0x4246x15=_0x502d[27]};return jwt[_0x502d[28]]({id:_0x4246x12},config[_0x502d[9]][_0x502d[8]],{expiresIn:_0x4246x15});}function setTokenCookie(_0x4246x9,_0x4246xa){if(!_0x4246x9[_0x502d[12]]){return _0x4246xa[_0x502d[30]](404,{message:_0x502d[29]})};var _0x4246x17=signToken(_0x4246x9[_0x502d[12]][_0x502d[14]],_0x4246x9[_0x502d[12]][_0x502d[24]]);_0x4246xa[_0x502d[33]](_0x502d[31],JSON[_0x502d[32]](_0x4246x17));_0x4246xa[_0x502d[35]](_0x502d[34]);}exports[_0x502d[36]]=isAuthenticated;exports[_0x502d[37]]=hasRole;exports[_0x502d[38]]=signToken;exports[_0x502d[39]]=setTokenCookie;
\ No newline at end of file
+var _0x4afc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6A\x73\x6F\x6E\x77\x65\x62\x74\x6F\x6B\x65\x6E","\x65\x78\x70\x72\x65\x73\x73\x2D\x6A\x77\x74","\x63\x6F\x6D\x70\x6F\x73\x61\x62\x6C\x65\x2D\x6D\x69\x64\x64\x6C\x65\x77\x61\x72\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x75\x73\x65\x72","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65","\x71\x75\x65\x72\x79","\x61\x63\x63\x65\x73\x73\x5F\x74\x6F\x6B\x65\x6E","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x61\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x68\x65\x61\x64\x65\x72\x73","\x42\x65\x61\x72\x65\x72\x20","\x52\x65\x71\x75\x69\x72\x65\x64\x20\x72\x6F\x6C\x65\x20\x6E\x65\x65\x64\x73\x20\x74\x6F\x20\x62\x65\x20\x73\x65\x74","\x72\x6F\x6C\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x75\x73\x65\x72\x52\x6F\x6C\x65\x73","\x31\x64","\x73\x69\x67\x6E","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x6A\x73\x6F\x6E","\x74\x6F\x6B\x65\x6E","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x63\x6F\x6F\x6B\x69\x65","\x2F","\x72\x65\x64\x69\x72\x65\x63\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x68\x61\x73\x52\x6F\x6C\x65","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65"];_0x4afc[0];var passport=require(_0x4afc[1]);var config=require(_0x4afc[2]);var jwt=require(_0x4afc[3]);var expressJwt=require(_0x4afc[4]);var compose=require(_0x4afc[5]);var User=require(_0x4afc[7])[_0x4afc[6]];var validateJwt=expressJwt({secret:config[_0x4afc[9]][_0x4afc[8]]});function isAuthenticated(){return compose()[_0x4afc[16]](function(_0xbe1cx9,_0xbe1cxa,_0xbe1cxb){if(_0xbe1cx9[_0x4afc[17]]&&_0xbe1cx9[_0x4afc[17]][_0x4afc[19]](_0x4afc[18])){_0xbe1cx9[_0x4afc[21]][_0x4afc[20]]=_0x4afc[22]+_0xbe1cx9[_0x4afc[17]][_0x4afc[18]]};validateJwt(_0xbe1cx9,_0xbe1cxa,_0xbe1cxb);})[_0x4afc[16]](function(_0xbe1cx9,_0xbe1cxa,_0xbe1cxb){User[_0x4afc[15]](_0xbe1cx9[_0x4afc[12]][_0x4afc[14]])[_0x4afc[13]](function(_0xbe1cxd){if(!_0xbe1cxd){return _0xbe1cxa[_0x4afc[11]](401)};_0xbe1cx9[_0x4afc[12]]=_0xbe1cxd;return _0xbe1cxb();})[_0x4afc[10]](function(_0xbe1cxc){return _0xbe1cxb(_0xbe1cxc)})})}function hasRole(_0xbe1cxf){if(!_0xbe1cxf){throw new Error(_0x4afc[23])};return compose()[_0x4afc[16]](isAuthenticated())[_0x4afc[16]](function _0xbe1cx10(_0xbe1cx9,_0xbe1cxa,_0xbe1cxb){if(config[_0x4afc[26]][_0x4afc[25]](_0xbe1cx9[_0x4afc[12]][_0x4afc[24]])>=config[_0x4afc[26]][_0x4afc[25]](_0xbe1cxf)){return _0xbe1cxb()}else {return _0xbe1cxa[_0x4afc[11]](403)}});}function signToken(_0xbe1cx12,_0xbe1cx13,_0xbe1cx14){var _0xbe1cx15=60*24*365*5;if(!_0xbe1cx14){_0xbe1cx15=_0x4afc[27]};return jwt[_0x4afc[28]]({id:_0xbe1cx12},config[_0x4afc[9]][_0x4afc[8]],{expiresIn:_0xbe1cx15});}function setTokenCookie(_0xbe1cx9,_0xbe1cxa){if(!_0xbe1cx9[_0x4afc[12]]){return _0xbe1cxa[_0x4afc[30]](404,{message:_0x4afc[29]})};var _0xbe1cx17=signToken(_0xbe1cx9[_0x4afc[12]][_0x4afc[14]],_0xbe1cx9[_0x4afc[12]][_0x4afc[24]]);_0xbe1cxa[_0x4afc[33]](_0x4afc[31],JSON[_0x4afc[32]](_0xbe1cx17));_0xbe1cxa[_0x4afc[35]](_0x4afc[34]);}exports[_0x4afc[36]]=isAuthenticated;exports[_0x4afc[37]]=hasRole;exports[_0x4afc[38]]=signToken;exports[_0x4afc[39]]=setTokenCookie;
\ No newline at end of file
-var _0x5123=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x65\x6D\x61\x69\x6C","\x75\x73\x65\x72\x5F\x61\x62\x6F\x75\x74\x5F\x6D\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x5123[0];var express=require(_0x5123[1]);var passport=require(_0x5123[2]);var auth=require(_0x5123[3]);var router=express.Router();router[_0x5123[9]](_0x5123[10],passport[_0x5123[7]](_0x5123[5],{scope:[_0x5123[11],_0x5123[12]],failureRedirect:_0x5123[6],session:false}))[_0x5123[9]](_0x5123[4],passport[_0x5123[7]](_0x5123[5],{failureRedirect:_0x5123[6],session:false}),auth[_0x5123[8]]);module[_0x5123[13]]=router;
\ No newline at end of file
+var _0xaeb2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x65\x6D\x61\x69\x6C","\x75\x73\x65\x72\x5F\x61\x62\x6F\x75\x74\x5F\x6D\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xaeb2[0];var express=require(_0xaeb2[1]);var passport=require(_0xaeb2[2]);var auth=require(_0xaeb2[3]);var router=express.Router();router[_0xaeb2[9]](_0xaeb2[10],passport[_0xaeb2[7]](_0xaeb2[5],{scope:[_0xaeb2[11],_0xaeb2[12]],failureRedirect:_0xaeb2[6],session:false}))[_0xaeb2[9]](_0xaeb2[4],passport[_0xaeb2[7]](_0xaeb2[5],{failureRedirect:_0xaeb2[6],session:false}),auth[_0xaeb2[8]]);module[_0xaeb2[13]]=router;
\ No newline at end of file
-var _0x13f4=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x13f4[0]);var FacebookStrategy=require(_0x13f4[2])[_0x13f4[1]];exports[_0x13f4[3]]=function(_0x1d45x3,_0x1d45x4){passport[_0x13f4[17]]( new FacebookStrategy({clientID:_0x1d45x4[_0x13f4[5]][_0x13f4[4]],clientSecret:_0x1d45x4[_0x13f4[5]][_0x13f4[6]],callbackURL:_0x1d45x4[_0x13f4[5]][_0x13f4[7]]},function(_0x1d45x5,_0x1d45x6,_0x1d45x7,_0x1d45x8){_0x1d45x3[_0x13f4[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0x1d45x7[_0x13f4[8]]},function(_0x1d45x9,_0x1d45xa){if(_0x1d45x9){return _0x1d45x8(_0x1d45x9)};if(!_0x1d45xa){_0x1d45xa= new _0x1d45x3({name:_0x1d45x7[_0x13f4[9]],email:_0x1d45x7[_0x13f4[11]][0][_0x13f4[10]],role:_0x13f4[12],username:_0x1d45x7[_0x13f4[13]],provider:_0x13f4[5],facebook:_0x1d45x7[_0x13f4[14]]});_0x1d45xa[_0x13f4[15]](function(_0x1d45x9){if(_0x1d45x9){_0x1d45x8(_0x1d45x9)};return _0x1d45x8(_0x1d45x9,_0x1d45xa);});}else {return _0x1d45x8(_0x1d45x9,_0x1d45xa)};})}))};
\ No newline at end of file
+var _0x6ffa=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x6ffa[0]);var FacebookStrategy=require(_0x6ffa[2])[_0x6ffa[1]];exports[_0x6ffa[3]]=function(_0x3d50x3,_0x3d50x4){passport[_0x6ffa[17]]( new FacebookStrategy({clientID:_0x3d50x4[_0x6ffa[5]][_0x6ffa[4]],clientSecret:_0x3d50x4[_0x6ffa[5]][_0x6ffa[6]],callbackURL:_0x3d50x4[_0x6ffa[5]][_0x6ffa[7]]},function(_0x3d50x5,_0x3d50x6,_0x3d50x7,_0x3d50x8){_0x3d50x3[_0x6ffa[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0x3d50x7[_0x6ffa[8]]},function(_0x3d50x9,_0x3d50xa){if(_0x3d50x9){return _0x3d50x8(_0x3d50x9)};if(!_0x3d50xa){_0x3d50xa= new _0x3d50x3({name:_0x3d50x7[_0x6ffa[9]],email:_0x3d50x7[_0x6ffa[11]][0][_0x6ffa[10]],role:_0x6ffa[12],username:_0x3d50x7[_0x6ffa[13]],provider:_0x6ffa[5],facebook:_0x3d50x7[_0x6ffa[14]]});_0x3d50xa[_0x6ffa[15]](function(_0x3d50x9){if(_0x3d50x9){_0x3d50x8(_0x3d50x9)};return _0x3d50x8(_0x3d50x9,_0x3d50xa);});}else {return _0x3d50x8(_0x3d50x9,_0x3d50xa)};})}))};
\ No newline at end of file
-var _0xf3b0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x67\x6F\x6F\x67\x6C\x65","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x61\x70\x69\x73\x2E\x63\x6F\x6D\x2F\x61\x75\x74\x68\x2F\x75\x73\x65\x72\x69\x6E\x66\x6F\x2E\x70\x72\x6F\x66\x69\x6C\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x61\x70\x69\x73\x2E\x63\x6F\x6D\x2F\x61\x75\x74\x68\x2F\x75\x73\x65\x72\x69\x6E\x66\x6F\x2E\x65\x6D\x61\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73"];_0xf3b0[0];var express=require(_0xf3b0[1]);var passport=require(_0xf3b0[2]);var auth=require(_0xf3b0[3]);var router=express.Router();router[_0xf3b0[9]](_0xf3b0[10],passport[_0xf3b0[7]](_0xf3b0[5],{failureRedirect:_0xf3b0[6],scope:[_0xf3b0[11],_0xf3b0[12]],session:false}))[_0xf3b0[9]](_0xf3b0[4],passport[_0xf3b0[7]](_0xf3b0[5],{failureRedirect:_0xf3b0[6],session:false}),auth[_0xf3b0[8]]);module[_0xf3b0[13]]=router;
\ No newline at end of file
+var _0x2a52=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x67\x6F\x6F\x67\x6C\x65","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x61\x70\x69\x73\x2E\x63\x6F\x6D\x2F\x61\x75\x74\x68\x2F\x75\x73\x65\x72\x69\x6E\x66\x6F\x2E\x70\x72\x6F\x66\x69\x6C\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x61\x70\x69\x73\x2E\x63\x6F\x6D\x2F\x61\x75\x74\x68\x2F\x75\x73\x65\x72\x69\x6E\x66\x6F\x2E\x65\x6D\x61\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73"];_0x2a52[0];var express=require(_0x2a52[1]);var passport=require(_0x2a52[2]);var auth=require(_0x2a52[3]);var router=express.Router();router[_0x2a52[9]](_0x2a52[10],passport[_0x2a52[7]](_0x2a52[5],{failureRedirect:_0x2a52[6],scope:[_0x2a52[11],_0x2a52[12]],session:false}))[_0x2a52[9]](_0x2a52[4],passport[_0x2a52[7]](_0x2a52[5],{failureRedirect:_0x2a52[6],session:false}),auth[_0x2a52[8]]);module[_0x2a52[13]]=router;
\ No newline at end of file
-var _0x8184=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x4F\x41\x75\x74\x68\x32\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x67\x6F\x6F\x67\x6C\x65\x2D\x6F\x61\x75\x74\x68","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x67\x6F\x6F\x67\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x8184[0]);var GoogleStrategy=require(_0x8184[2])[_0x8184[1]];exports[_0x8184[3]]=function(_0xf9e0x3,_0xf9e0x4){passport[_0x8184[17]]( new GoogleStrategy({clientID:_0xf9e0x4[_0x8184[5]][_0x8184[4]],clientSecret:_0xf9e0x4[_0x8184[5]][_0x8184[6]],callbackURL:_0xf9e0x4[_0x8184[5]][_0x8184[7]]},function(_0xf9e0x5,_0xf9e0x6,_0xf9e0x7,_0xf9e0x8){_0xf9e0x3[_0x8184[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0xf9e0x7[_0x8184[8]]},function(_0xf9e0x9,_0xf9e0xa){if(!_0xf9e0xa){_0xf9e0xa= new _0xf9e0x3({name:_0xf9e0x7[_0x8184[9]],email:_0xf9e0x7[_0x8184[11]][0][_0x8184[10]],role:_0x8184[12],username:_0xf9e0x7[_0x8184[13]],provider:_0x8184[5],google:_0xf9e0x7[_0x8184[14]]});_0xf9e0xa[_0x8184[15]](function(_0xf9e0x9){if(_0xf9e0x9){_0xf9e0x8(_0xf9e0x9)};return _0xf9e0x8(_0xf9e0x9,_0xf9e0xa);});}else {return _0xf9e0x8(_0xf9e0x9,_0xf9e0xa)}})}))};
\ No newline at end of file
+var _0xfc76=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x4F\x41\x75\x74\x68\x32\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x67\x6F\x6F\x67\x6C\x65\x2D\x6F\x61\x75\x74\x68","\x73\x65\x74\x75\x70","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x67\x6F\x6F\x67\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x65\x6D\x61\x69\x6C\x73","\x75\x73\x65\x72","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xfc76[0]);var GoogleStrategy=require(_0xfc76[2])[_0xfc76[1]];exports[_0xfc76[3]]=function(_0x3b3ax3,_0x3b3ax4){passport[_0xfc76[17]]( new GoogleStrategy({clientID:_0x3b3ax4[_0xfc76[5]][_0xfc76[4]],clientSecret:_0x3b3ax4[_0xfc76[5]][_0xfc76[6]],callbackURL:_0x3b3ax4[_0xfc76[5]][_0xfc76[7]]},function(_0x3b3ax5,_0x3b3ax6,_0x3b3ax7,_0x3b3ax8){_0x3b3ax3[_0xfc76[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0x3b3ax7[_0xfc76[8]]},function(_0x3b3ax9,_0x3b3axa){if(!_0x3b3axa){_0x3b3axa= new _0x3b3ax3({name:_0x3b3ax7[_0xfc76[9]],email:_0x3b3ax7[_0xfc76[11]][0][_0xfc76[10]],role:_0xfc76[12],username:_0x3b3ax7[_0xfc76[13]],provider:_0xfc76[5],google:_0x3b3ax7[_0xfc76[14]]});_0x3b3axa[_0xfc76[15]](function(_0x3b3ax9){if(_0x3b3ax9){_0x3b3ax8(_0x3b3ax9)};return _0x3b3ax8(_0x3b3ax9,_0x3b3axa);});}else {return _0x3b3ax8(_0x3b3ax9,_0x3b3axa)}})}))};
\ No newline at end of file
-var _0x8264=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x74\x75\x70","\x2E\x2F\x6C\x6F\x63\x61\x6C\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x67\x6F\x6F\x67\x6C\x65\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x74\x77\x69\x74\x74\x65\x72\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2F\x6C\x6F\x63\x61\x6C","\x2E\x2F\x6C\x6F\x63\x61\x6C","\x75\x73\x65","\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2E\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2F\x74\x77\x69\x74\x74\x65\x72","\x2E\x2F\x74\x77\x69\x74\x74\x65\x72","\x2F\x67\x6F\x6F\x67\x6C\x65","\x2E\x2F\x67\x6F\x6F\x67\x6C\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x8264[0];var express=require(_0x8264[1]);var passport=require(_0x8264[2]);var config=require(_0x8264[3]);var User=require(_0x8264[5])[_0x8264[4]];require(_0x8264[7])[_0x8264[6]](User,config);require(_0x8264[8])[_0x8264[6]](User,config);require(_0x8264[9])[_0x8264[6]](User,config);require(_0x8264[10])[_0x8264[6]](User,config);var router=express.Router();router[_0x8264[13]](_0x8264[11],require(_0x8264[12]));router[_0x8264[13]](_0x8264[14],require(_0x8264[15]));router[_0x8264[13]](_0x8264[16],require(_0x8264[17]));router[_0x8264[13]](_0x8264[18],require(_0x8264[19]));module[_0x8264[20]]=router;
\ No newline at end of file
+var _0xdc6f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x74\x75\x70","\x2E\x2F\x6C\x6F\x63\x61\x6C\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x67\x6F\x6F\x67\x6C\x65\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2F\x74\x77\x69\x74\x74\x65\x72\x2F\x70\x61\x73\x73\x70\x6F\x72\x74","\x2F\x6C\x6F\x63\x61\x6C","\x2E\x2F\x6C\x6F\x63\x61\x6C","\x75\x73\x65","\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2E\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B","\x2F\x74\x77\x69\x74\x74\x65\x72","\x2E\x2F\x74\x77\x69\x74\x74\x65\x72","\x2F\x67\x6F\x6F\x67\x6C\x65","\x2E\x2F\x67\x6F\x6F\x67\x6C\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xdc6f[0];var express=require(_0xdc6f[1]);var passport=require(_0xdc6f[2]);var config=require(_0xdc6f[3]);var User=require(_0xdc6f[5])[_0xdc6f[4]];require(_0xdc6f[7])[_0xdc6f[6]](User,config);require(_0xdc6f[8])[_0xdc6f[6]](User,config);require(_0xdc6f[9])[_0xdc6f[6]](User,config);require(_0xdc6f[10])[_0xdc6f[6]](User,config);var router=express.Router();router[_0xdc6f[13]](_0xdc6f[11],require(_0xdc6f[12]));router[_0xdc6f[13]](_0xdc6f[14],require(_0xdc6f[15]));router[_0xdc6f[13]](_0xdc6f[16],require(_0xdc6f[17]));router[_0xdc6f[13]](_0xdc6f[18],require(_0xdc6f[19]));module[_0xdc6f[20]]=router;
\ No newline at end of file
-var _0x90e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2F","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6A\x73\x6F\x6E","\x73\x74\x61\x74\x75\x73","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x69\x64","\x72\x6F\x6C\x65","\x72\x65\x6D\x65\x6D\x62\x65\x72","\x62\x6F\x64\x79","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x63\x61\x74\x63\x68","\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x2E\x2F\x6C\x6F\x63\x61\x6C\x2E\x61\x6D\x69","\x65\x61\x63\x68\x53\x65\x72\x69\x65\x73","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x6C\x6F\x67\x6F\x75\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x75\x73\x65\x72","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x90e8[0];var express=require(_0x90e8[1]);var passport=require(_0x90e8[2]);var async=require(_0x90e8[3]);var auth=require(_0x90e8[4]);var User=require(_0x90e8[6])[_0x90e8[5]];var router=express.Router();router[_0x90e8[26]](_0x90e8[7],function(_0x722ax7,_0x722ax8,_0x722ax9){passport[_0x90e8[25]](_0x90e8[8],function(_0x722axa,_0x722axb,_0x722axc){var _0x722axd=_0x722axa||_0x722axc;if(_0x722axd){return _0x722ax8[_0x90e8[10]](401)[_0x90e8[9]](_0x722axd)};if(!_0x722axb){return _0x722ax8[_0x90e8[10]](404)[_0x90e8[9]]({message:_0x90e8[11]})};var _0x722axe=auth[_0x90e8[16]](_0x722axb[_0x90e8[12]],_0x722axb[_0x90e8[13]],_0x722ax7[_0x90e8[15]][_0x90e8[14]]||false);User[_0x90e8[24]](_0x722axb[_0x90e8[12]])[_0x90e8[22]](function(_0x722axb){_0x722axb[_0x90e8[23]]({attributes:[_0x90e8[18]]})[_0x90e8[22]](function(_0x722axf){async[_0x90e8[21]](_0x722axf,function _0x722ax10(_0x722ax11,_0x722ax12){require(_0x90e8[20])[_0x90e8[19]](_0x722axb[_0x90e8[12]],_0x722axb[_0x90e8[18]],_0x722ax11[_0x90e8[18]],_0x722ax12)},function _0x722ax13(){return _0x722ax8[_0x90e8[9]]({token:_0x722axe,userId:_0x722axb[_0x90e8[12]]})})})[_0x90e8[17]](function(_0x722axa){return _0x722ax9(_0x722axa)})})[_0x90e8[17]](function(_0x722axa){return _0x722ax9(_0x722axa)});})(_0x722ax7,_0x722ax8,_0x722ax9)});router[_0x90e8[32]](_0x90e8[27],auth[_0x90e8[28]](),function(_0x722ax7,_0x722ax8,_0x722ax9){User[_0x90e8[24]](_0x722ax7[_0x90e8[29]][_0x90e8[12]])[_0x90e8[22]](function(_0x722axb){_0x722axb[_0x90e8[23]]({attributes:[_0x90e8[18]]})[_0x90e8[22]](function(_0x722axf){async[_0x90e8[21]](_0x722axf,function _0x722ax10(_0x722ax11,_0x722ax12){require(_0x90e8[20])[_0x90e8[30]](_0x722ax7[_0x90e8[29]][_0x90e8[12]],_0x722ax7[_0x90e8[29]][_0x90e8[18]],_0x722ax11[_0x90e8[18]],_0x722ax12)},function _0x722ax13(){_0x722ax7[_0x90e8[30]]();_0x722ax8[_0x90e8[31]](_0x90e8[7]);})})[_0x90e8[17]](function(_0x722axa){return _0x722ax9(_0x722axa)})})[_0x90e8[17]](function(_0x722axa){return _0x722ax9(_0x722axa)})});module[_0x90e8[33]]=router;
\ No newline at end of file
+var _0x6bf7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6A\x73\x6F\x6E","\x73\x74\x61\x74\x75\x73","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x69\x64","\x72\x6F\x6C\x65","\x72\x65\x6D\x65\x6D\x62\x65\x72","\x62\x6F\x64\x79","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x63\x61\x74\x63\x68","\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x2E\x2F\x6C\x6F\x63\x61\x6C\x2E\x61\x6D\x69","\x65\x61\x63\x68\x53\x65\x72\x69\x65\x73","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x6C\x6F\x67\x6F\x75\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x75\x73\x65\x72","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x6bf7[0];var express=require(_0x6bf7[1]);var passport=require(_0x6bf7[2]);var async=require(_0x6bf7[3]);var auth=require(_0x6bf7[4]);var User=require(_0x6bf7[6])[_0x6bf7[5]];var license=require(_0x6bf7[7]);var router=express.Router();router[_0x6bf7[27]](_0x6bf7[8],function(_0x93b9x8,_0x93b9x9,_0x93b9xa){passport[_0x6bf7[26]](_0x6bf7[9],function(_0x93b9xb,_0x93b9xc,_0x93b9xd){var _0x93b9xe=_0x93b9xb||_0x93b9xd;if(_0x93b9xe){return _0x93b9x9[_0x6bf7[11]](401)[_0x6bf7[10]](_0x93b9xe)};if(!_0x93b9xc){return _0x93b9x9[_0x6bf7[11]](404)[_0x6bf7[10]]({message:_0x6bf7[12]})};var _0x93b9xf=auth[_0x6bf7[17]](_0x93b9xc[_0x6bf7[13]],_0x93b9xc[_0x6bf7[14]],_0x93b9x8[_0x6bf7[16]][_0x6bf7[15]]||false);User[_0x6bf7[25]](_0x93b9xc[_0x6bf7[13]])[_0x6bf7[23]](function(_0x93b9xc){_0x93b9xc[_0x6bf7[24]]({attributes:[_0x6bf7[19]]})[_0x6bf7[23]](function(_0x93b9x10){async[_0x6bf7[22]](_0x93b9x10,function _0x93b9x11(_0x93b9x12,_0x93b9x13){require(_0x6bf7[21])[_0x6bf7[20]](_0x93b9xc[_0x6bf7[13]],_0x93b9xc[_0x6bf7[19]],_0x93b9x12[_0x6bf7[19]],_0x93b9x13)},function _0x93b9x14(){return _0x93b9x9[_0x6bf7[10]]({token:_0x93b9xf,userId:_0x93b9xc[_0x6bf7[13]]})})})[_0x6bf7[18]](function(_0x93b9xb){return _0x93b9xa(_0x93b9xb)})})[_0x6bf7[18]](function(_0x93b9xb){return _0x93b9xa(_0x93b9xb)});})(_0x93b9x8,_0x93b9x9,_0x93b9xa)});router[_0x6bf7[33]](_0x6bf7[28],auth[_0x6bf7[29]](),function(_0x93b9x8,_0x93b9x9,_0x93b9xa){User[_0x6bf7[25]](_0x93b9x8[_0x6bf7[30]][_0x6bf7[13]])[_0x6bf7[23]](function(_0x93b9xc){_0x93b9xc[_0x6bf7[24]]({attributes:[_0x6bf7[19]]})[_0x6bf7[23]](function(_0x93b9x10){async[_0x6bf7[22]](_0x93b9x10,function _0x93b9x11(_0x93b9x12,_0x93b9x13){require(_0x6bf7[21])[_0x6bf7[31]](_0x93b9x8[_0x6bf7[30]][_0x6bf7[13]],_0x93b9x8[_0x6bf7[30]][_0x6bf7[19]],_0x93b9x12[_0x6bf7[19]],_0x93b9x13)},function _0x93b9x14(){_0x93b9x8[_0x6bf7[31]]();_0x93b9x9[_0x6bf7[32]](_0x6bf7[8]);})})[_0x6bf7[18]](function(_0x93b9xb){return _0x93b9xa(_0x93b9xb)})})[_0x6bf7[18]](function(_0x93b9xb){return _0x93b9xa(_0x93b9xb)})});module[_0x6bf7[34]]=router;
\ No newline at end of file
-var _0x6a62=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x61\x6D\x69","\x6C\x6F\x67\x6F\x75\x74","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x53\x49\x50\x2F\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x64\x61\x74\x61","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x6C\x6F\x67","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x61\x63\x74\x69\x6F\x6E","\x6C\x6F\x67\x69\x6E","\x51\x75\x65\x75\x65\x41\x64\x64"];_0x6a62[0];var util=require(_0x6a62[1]);var amiController=require(_0x6a62[2]);exports[_0x6a62[3]]=function(_0x9043x3,_0x9043x4,_0x9043x5,_0x9043x6){var _0x9043x7={action:_0x6a62[4],queue:_0x9043x5,interface:util[_0x6a62[6]](_0x6a62[5],_0x9043x4),paused:false};_0x9043x7[_0x6a62[7]]=JSON[_0x6a62[8]](_0x9043x7);_0x9043x7[_0x6a62[9]]=_0x9043x3;amiController[_0x6a62[12]](_0x9043x7,function(_0x9043x8,_0x9043x9){if(_0x9043x8){console[_0x6a62[10]](_0x9043x8)};var _0x9043x7={action:_0x6a62[11],queue:_0x9043x5,interface:util[_0x6a62[6]](_0x6a62[5],_0x9043x4)};_0x9043x7[_0x6a62[7]]=JSON[_0x6a62[8]](_0x9043x7);_0x9043x7[_0x6a62[9]]=_0x9043x3;amiController[_0x6a62[12]](_0x9043x7,_0x9043x6);});};exports[_0x6a62[13]]=function(_0x9043x3,_0x9043x4,_0x9043x5,_0x9043x6){var _0x9043x7={action:_0x6a62[14],queue:_0x9043x5,interface:util[_0x6a62[6]](_0x6a62[5],_0x9043x4),penalty:0,paused:false,membername:_0x9043x4};_0x9043x7[_0x6a62[7]]=JSON[_0x6a62[8]](_0x9043x7);_0x9043x7[_0x6a62[9]]=_0x9043x3;amiController[_0x6a62[12]](_0x9043x7,_0x9043x6);};
\ No newline at end of file
+var _0x9f60=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x61\x6D\x69","\x6C\x6F\x67\x6F\x75\x74","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x53\x49\x50\x2F\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x64\x61\x74\x61","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x6C\x6F\x67","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x61\x63\x74\x69\x6F\x6E","\x6C\x6F\x67\x69\x6E","\x51\x75\x65\x75\x65\x41\x64\x64"];_0x9f60[0];var util=require(_0x9f60[1]);var amiController=require(_0x9f60[2]);exports[_0x9f60[3]]=function(_0xccd7x3,_0xccd7x4,_0xccd7x5,_0xccd7x6){var _0xccd7x7={action:_0x9f60[4],queue:_0xccd7x5,interface:util[_0x9f60[6]](_0x9f60[5],_0xccd7x4),paused:false};_0xccd7x7[_0x9f60[7]]=JSON[_0x9f60[8]](_0xccd7x7);_0xccd7x7[_0x9f60[9]]=_0xccd7x3;amiController[_0x9f60[12]](_0xccd7x7,function(_0xccd7x8,_0xccd7x9){if(_0xccd7x8){console[_0x9f60[10]](_0xccd7x8)};var _0xccd7x7={action:_0x9f60[11],queue:_0xccd7x5,interface:util[_0x9f60[6]](_0x9f60[5],_0xccd7x4)};_0xccd7x7[_0x9f60[7]]=JSON[_0x9f60[8]](_0xccd7x7);_0xccd7x7[_0x9f60[9]]=_0xccd7x3;amiController[_0x9f60[12]](_0xccd7x7,_0xccd7x6);});};exports[_0x9f60[13]]=function(_0xccd7x3,_0xccd7x4,_0xccd7x5,_0xccd7x6){var _0xccd7x7={action:_0x9f60[14],queue:_0xccd7x5,interface:util[_0x9f60[6]](_0x9f60[5],_0xccd7x4),penalty:0,paused:false,membername:_0xccd7x4};_0xccd7x7[_0x9f60[7]]=JSON[_0x9f60[8]](_0xccd7x7);_0xccd7x7[_0x9f60[9]]=_0xccd7x3;amiController[_0x9f60[12]](_0xccd7x7,_0xccd7x6);};
\ No newline at end of file
-var _0x51f5=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x6C\x6F\x63\x61\x6C","\x73\x65\x74\x75\x70","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x61\x74\x63\x68","\x54\x68\x69\x73\x20\x75\x73\x65\x72\x6E\x61\x6D\x65\x20\x69\x73\x20\x6E\x6F\x74\x20\x72\x65\x67\x69\x73\x74\x65\x72\x65\x64\x2E","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x54\x68\x69\x73\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x69\x73\x20\x6E\x6F\x74\x20\x63\x6F\x72\x72\x65\x63\x74\x2E","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x51f5[0]);var LocalStrategy=require(_0x51f5[2])[_0x51f5[1]];exports[_0x51f5[3]]=function(_0x7a1cx3,_0x7a1cx4){passport[_0x51f5[13]](_0x51f5[4], new LocalStrategy({usernameField:_0x51f5[5],passwordField:_0x51f5[6]},function(_0x7a1cx5,_0x7a1cx6,_0x7a1cx7){_0x7a1cx3[_0x51f5[12]]({where:{name:_0x7a1cx5}})[_0x51f5[11]](function(_0x7a1cx9){if(!_0x7a1cx9){return _0x7a1cx7(null,false,{message:_0x51f5[8]})};if(!_0x7a1cx9[_0x51f5[9]](_0x7a1cx6)){return _0x7a1cx7(null,false,{message:_0x51f5[10]})};return _0x7a1cx7(null,_0x7a1cx9);})[_0x51f5[7]](function(_0x7a1cx8){return _0x7a1cx7(_0x7a1cx8)})}))};
\ No newline at end of file
+var _0x4489=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x6C\x6F\x63\x61\x6C","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x73\x65\x74\x75\x70","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x65\x63\x72\x79\x70\x74","\x70\x61\x72\x73\x65","\x61\x67\x65\x6E\x74\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x6C\x6F\x67\x69\x6E\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64\x2E","\x74\x68\x65\x6E","\x61\x67\x65\x6E\x74","\x63\x6F\x75\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x57\x72\x6F\x6E\x67\x20\x63\x72\x65\x64\x65\x6E\x74\x69\x61\x6C\x73\x2E","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x6F\x6E\x6C\x69\x6E\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x4489[0]);var LocalStrategy=require(_0x4489[2])[_0x4489[1]];var Settings=require(_0x4489[4])[_0x4489[3]];var license=require(_0x4489[5]);exports[_0x4489[6]]=function(_0xcc6ax5,_0xcc6ax6){passport[_0x4489[27]](_0x4489[7], new LocalStrategy({usernameField:_0x4489[8],passwordField:_0x4489[9]},function(_0xcc6ax7,_0xcc6ax8,_0xcc6ax9){var _0xcc6axa;var _0xcc6axb;var _0xcc6axc;return _0xcc6ax5[_0x4489[26]]({where:{name:_0xcc6ax7}})[_0x4489[16]](function(_0xcc6ax11){_0xcc6axa=_0xcc6ax11;if(!_0xcc6axa||!_0xcc6ax11[_0x4489[20]](_0xcc6ax8)){return _0xcc6ax9(null,false,{message:_0x4489[21]})};return (_0xcc6axa[_0x4489[22]]===_0x4489[23]||_0xcc6axa[_0x4489[22]]===_0x4489[24]||(_0xcc6axa[_0x4489[22]]===_0x4489[17]&&_0xcc6axa[_0x4489[25]]))?_0xcc6ax9(null,_0xcc6axa):_0xcc6axa;})[_0x4489[16]](function(_0xcc6ax11){return Settings[_0x4489[19]](1)})[_0x4489[16]](function(_0xcc6ax10){_0xcc6axb=_0xcc6ax10;return _0xcc6ax5[_0x4489[18]]({where:{role:_0x4489[17],online:true}});})[_0x4489[16]](function(_0xcc6axe){var _0xcc6axf=false;if(_0xcc6axb[_0x4489[11]]){_0xcc6axc=license[_0x4489[12]](_0xcc6axb[_0x4489[11]]);_0xcc6axc=JSON[_0x4489[13]](_0xcc6axc);if(_0xcc6axc[_0x4489[14]]>_0xcc6axe){_0xcc6axf=true};};if(!_0xcc6axf){return _0xcc6ax9(null,false,{message:_0x4489[15]})};return _0xcc6ax9(null,_0xcc6axa);})[_0x4489[10]](function(_0xcc6axd){return _0xcc6ax9(_0xcc6axd)});}))};
\ No newline at end of file
-var _0xb70f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x74\x77\x69\x74\x74\x65\x72","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x65\x78\x70\x6F\x72\x74\x73"];_0xb70f[0];var express=require(_0xb70f[1]);var passport=require(_0xb70f[2]);var auth=require(_0xb70f[3]);var router=express.Router();router[_0xb70f[9]](_0xb70f[10],passport[_0xb70f[7]](_0xb70f[5],{failureRedirect:_0xb70f[6],session:false}))[_0xb70f[9]](_0xb70f[4],passport[_0xb70f[7]](_0xb70f[5],{failureRedirect:_0xb70f[6],session:false}),auth[_0xb70f[8]]);module[_0xb70f[11]]=router;
\ No newline at end of file
+var _0x13c3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x74\x77\x69\x74\x74\x65\x72","\x2F\x73\x69\x67\x6E\x75\x70","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x73\x65\x74\x54\x6F\x6B\x65\x6E\x43\x6F\x6F\x6B\x69\x65","\x67\x65\x74","\x2F","\x65\x78\x70\x6F\x72\x74\x73"];_0x13c3[0];var express=require(_0x13c3[1]);var passport=require(_0x13c3[2]);var auth=require(_0x13c3[3]);var router=express.Router();router[_0x13c3[9]](_0x13c3[10],passport[_0x13c3[7]](_0x13c3[5],{failureRedirect:_0x13c3[6],session:false}))[_0x13c3[9]](_0x13c3[4],passport[_0x13c3[7]](_0x13c3[5],{failureRedirect:_0x13c3[6],session:false}),auth[_0x13c3[8]]);module[_0x13c3[11]]=router;
\ No newline at end of file
-var _0xc3a8=["\x73\x65\x74\x75\x70","\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x74\x77\x69\x74\x74\x65\x72","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x74\x77\x69\x74\x74\x65\x72","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x75\x73\x65\x72","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];exports[_0xc3a8[0]]=function(_0x47e6x1,_0x47e6x2){var _0x47e6x3=require(_0xc3a8[1]);var _0x47e6x4=require(_0xc3a8[3])[_0xc3a8[2]];_0x47e6x3[_0xc3a8[15]]( new _0x47e6x4({consumerKey:_0x47e6x2[_0xc3a8[5]][_0xc3a8[4]],consumerSecret:_0x47e6x2[_0xc3a8[5]][_0xc3a8[6]],callbackURL:_0x47e6x2[_0xc3a8[5]][_0xc3a8[7]]},function(_0x47e6x5,_0x47e6x6,_0x47e6x7,_0x47e6x8){_0x47e6x1[_0xc3a8[14]]({"\x74\x77\x69\x74\x74\x65\x72\x2E\x69\x64\x5F\x73\x74\x72":_0x47e6x7[_0xc3a8[8]]},function(_0x47e6x9,_0x47e6xa){if(_0x47e6x9){return _0x47e6x8(_0x47e6x9)};if(!_0x47e6xa){_0x47e6xa= new _0x47e6x1({name:_0x47e6x7[_0xc3a8[9]],username:_0x47e6x7[_0xc3a8[10]],role:_0xc3a8[11],provider:_0xc3a8[5],twitter:_0x47e6x7[_0xc3a8[12]]});_0x47e6xa[_0xc3a8[13]](function(_0x47e6x9){if(_0x47e6x9){return _0x47e6x8(_0x47e6x9)};return _0x47e6x8(_0x47e6x9,_0x47e6xa);});}else {return _0x47e6x8(_0x47e6x9,_0x47e6xa)};})}));};
\ No newline at end of file
+var _0xf2e5=["\x73\x65\x74\x75\x70","\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x74\x77\x69\x74\x74\x65\x72","\x63\x6C\x69\x65\x6E\x74\x49\x44","\x74\x77\x69\x74\x74\x65\x72","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x63\x61\x6C\x6C\x62\x61\x63\x6B\x55\x52\x4C","\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x4E\x61\x6D\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x75\x73\x65\x72","\x5F\x6A\x73\x6F\x6E","\x73\x61\x76\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];exports[_0xf2e5[0]]=function(_0xd85fx1,_0xd85fx2){var _0xd85fx3=require(_0xf2e5[1]);var _0xd85fx4=require(_0xf2e5[3])[_0xf2e5[2]];_0xd85fx3[_0xf2e5[15]]( new _0xd85fx4({consumerKey:_0xd85fx2[_0xf2e5[5]][_0xf2e5[4]],consumerSecret:_0xd85fx2[_0xf2e5[5]][_0xf2e5[6]],callbackURL:_0xd85fx2[_0xf2e5[5]][_0xf2e5[7]]},function(_0xd85fx5,_0xd85fx6,_0xd85fx7,_0xd85fx8){_0xd85fx1[_0xf2e5[14]]({"\x74\x77\x69\x74\x74\x65\x72\x2E\x69\x64\x5F\x73\x74\x72":_0xd85fx7[_0xf2e5[8]]},function(_0xd85fx9,_0xd85fxa){if(_0xd85fx9){return _0xd85fx8(_0xd85fx9)};if(!_0xd85fxa){_0xd85fxa= new _0xd85fx1({name:_0xd85fx7[_0xf2e5[9]],username:_0xd85fx7[_0xf2e5[10]],role:_0xf2e5[11],provider:_0xf2e5[5],twitter:_0xd85fx7[_0xf2e5[12]]});_0xd85fxa[_0xf2e5[13]](function(_0xd85fx9){if(_0xd85fx9){return _0xd85fx8(_0xd85fx9)};return _0xd85fx8(_0xd85fx9,_0xd85fxa);});}else {return _0xd85fx8(_0xd85fx9,_0xd85fxa)};})}));};
\ No newline at end of file
-var _0xd3fd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x67\x69","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x78\x6D\x6C\x32\x6A\x73","\x77\x61\x69\x74\x2E\x66\x6F\x72","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x70\x61\x74\x68","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x68\x65\x6C\x6C\x6A\x73","\x6F\x64\x62\x63","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x53\x65\x74\x74\x69\x6E\x67\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x54\x72\x75\x6E\x6B","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x55\x70\x6C\x6F\x61\x64","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C","\x61\x6E\x73\x77\x65\x72","\x2D\x2D\x41\x4E\x53\x57\x45\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6C\x6F\x67","\x41\x6E\x73\x77\x65\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x63\x61\x6C\x6C\x2E\x2E\x2E","\x41\x4E\x53\x57\x45\x52\x0A","\x73\x65\x6E\x64","\x63\x75\x73\x74\x6F\x6D\x5F\x61\x70\x70","\x2D\x2D\x43\x55\x53\x54\x4F\x4D\x20\x41\x50\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x63\x75\x73\x74\x6F\x6D\x20\x61\x70\x70\x20\x22","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x22\x2E\x2E\x2E","\x6F\x70\x74\x69\x6F\x6E\x73","\x65\x78\x65\x63","\x64\x69\x61\x6C","\x2D\x2D\x49\x4E\x54\x45\x52\x4E\x41\x4C\x5F\x44\x49\x41\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x73\x69\x70\x5F\x69\x64","\x66\x69\x6E\x64","\x43\x61\x6C\x6C\x69\x6E\x67\x20","\x53\x49\x50\x2F\x25\x73","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x2E\x2E\x2E","\x74\x69\x6D\x65\x6F\x75\x74","\x6F\x70\x74\x73","\x75\x72\x6C","\x44\x49\x41\x4C","\x2C","\x6A\x6F\x69\x6E","\x65\x78\x74\x5F\x64\x69\x61\x6C","\x2D\x2D\x45\x58\x54\x45\x52\x4E\x41\x4C\x5F\x44\x49\x41\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x74\x72\x75\x6E\x6B\x5F\x69\x64","\x53\x49\x50\x2F\x25\x73\x40\x25\x73","\x70\x68\x6F\x6E\x65","\x71\x75\x65\x75\x65","\x2D\x2D\x51\x55\x45\x55\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x71\x75\x65\x75\x65\x5F\x69\x64","\x66\x69\x6C\x65\x5F\x69\x64","\x6D\x61\x63\x72\x6F","\x67\x6F\x73\x75\x62","","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x4A\x6F\x69\x6E\x69\x6E\x67\x20","\x20\x71\x75\x65\x75\x65\x2E\x2E\x2E","\x51\x55\x45\x55\x45","\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2D\x2D\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x25\x73\x40\x25\x73","\x62\x6F\x78\x6E\x75\x6D\x62\x65\x72","\x63\x6F\x6E\x74\x65\x78\x74","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x2E\x2E\x2E","\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C","\x6D\x61\x74\x68","\x2D\x2D\x4D\x41\x54\x48\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x43\x61\x6C\x63\x75\x6C\x61\x74\x69\x6E\x67\x20\x65\x78\x70\x72\x65\x73\x73\x69\x6F\x6E\x2E\x2E\x2E","\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E","\x53\x61\x76\x69\x6E\x67\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x69\x64","\x70\x6C\x61\x79\x62\x61\x63\x6B","\x2D\x2D\x50\x4C\x41\x59\x42\x41\x43\x4B\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x70\x6C\x61\x79\x62\x61\x63\x6B\x2E\x2E\x2E","\x50\x4C\x41\x59\x42\x41\x43\x4B","\x6D\x65\x6E\x75","\x2D\x2D\x4D\x45\x4E\x55\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x54\x68\x65\x72\x65\x20\x61\x72\x65\x20","\x72\x65\x74\x72\x79","\x20\x72\x65\x74\x72\x69\x65\x73","\x2F\x76\x61\x72\x2F\x77\x77\x77\x2F\x68\x74\x6D\x6C\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x62\x31\x39\x36\x34\x32\x64\x32\x66\x37\x31\x65\x39\x63\x66\x66\x66\x62\x64\x37\x38\x33\x66\x63\x63\x37\x39\x63\x37\x34\x31\x35","\x41\x6E\x6E\x6F\x75\x6E\x63\x69\x6E\x67\x20\x61\x6E\x64\x20\x77\x61\x69\x74\x69\x6E\x67\x20\x66\x6F\x72\x20\x75\x73\x65\x72\x20\x65\x6E\x74\x72\x79\x2E\x2E\x2E","\x47\x45\x54\x20\x44\x41\x54\x41\x20\x25\x73\x20\x25\x73\x20\x25\x73\x0A","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x64\x69\x67\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x61\x62\x65\x6C","\x74\x61\x67","\x72\x65\x73\x75\x6C\x74","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20","\x3A","\x20\x62\x6C\x6F\x63\x6B\x20\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x63\x72\x65\x61\x74\x65","\x20\x28\x74\x69\x6D\x65\x6F\x75\x74\x29","\x53\x61\x76\x69\x6E\x67\x20\x75\x73\x65\x72\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x64\x61\x74\x61","\x4D\x65\x6E\x75\x20\x74\x69\x6D\x65\x6F\x75\x74\x21","\x30","\x74","\x52\x75\x6E\x20\x6F\x75\x74\x20\x6F\x66\x20\x72\x65\x74\x72\x69\x65\x73\x21","\x2D","\x73\x61\x79\x6E\x75\x6D\x62\x65\x72","\x2D\x2D\x53\x41\x59\x4E\x55\x4D\x42\x45\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x6E\x75\x6D\x62\x65\x72\x2E\x2E\x2E","\x53\x41\x59\x20\x4E\x55\x4D\x42\x45\x52\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x6E\x75\x6D\x62\x65\x72","\x65\x73\x63\x61\x70\x65\x5F\x64\x69\x67\x69\x74\x73","\x73\x61\x79\x70\x68\x6F\x6E\x65\x74\x69\x63","\x2D\x2D\x53\x41\x59\x50\x48\x4F\x4E\x45\x54\x49\x43\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x70\x68\x6F\x6E\x65\x74\x69\x63\x2E\x2E\x2E","\x53\x41\x59\x20\x50\x48\x4F\x4E\x45\x54\x49\x43\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x74\x65\x78\x74","\x74\x74\x73","\x2D\x2D\x47\x4F\x4F\x47\x4C\x45\x5F\x54\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69\x5F\x73\x63\x72\x69\x70\x74\x73","\x67\x6F\x6F\x67\x6C\x65\x74\x74\x73\x2E\x61\x67\x69","\x67\x6F\x6F\x67\x6C\x65\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x47\x6F\x6F\x67\x6C\x65\x20\x54\x54\x53\x20\x41\x50\x49\x2E\x2E\x2E","\x41\x47\x49","\x69\x73\x70\x65\x65\x63\x68\x74\x74\x73","\x2D\x2D\x49\x53\x50\x45\x45\x43\x48\x5F\x54\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x2F\x76\x61\x72\x2F\x77\x77\x77\x2F\x68\x74\x6D\x6C\x2F\x61\x67\x69\x73\x71\x75\x61\x72\x65\x2F\x61\x67\x69\x73\x63\x72\x69\x70\x74\x73\x2F\x69\x73\x70\x65\x65\x63\x68\x2D\x74\x74\x73\x2E\x61\x67\x69","\x69\x73\x70\x65\x65\x63\x68\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x6B\x65\x79","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x69\x53\x70\x65\x65\x63\x68\x20\x54\x54\x53\x20\x41\x50\x49\x2E\x2E\x2E","\x67\x65\x74\x64\x69\x67\x69\x74\x73","\x2D\x2D\x47\x45\x54\x44\x49\x47\x49\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6D\x61\x78\x64\x69\x67\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x69\x6E\x64\x69\x67\x69\x74","\x2D\x31","\x54\x68\x65\x72\x65\x20\x69\x73\x20\x61\x20\x72\x65\x73\x75\x6C\x74\x2C\x20\x69\x73\x20\x6F\x76\x65\x72\x20\x74\x68\x65\x20\x6D\x69\x6E\x69\x6D\x75\x6D\x20\x6C\x65\x6E\x67\x74\x68\x20\x61\x6E\x64\x20\x6E\x6F\x74\x20\x64\x75\x65\x20\x74\x6F\x20\x61\x6E\x20\x68\x61\x6E\x67\x75\x70\x21","\x78","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x68\x61\x6E\x67\x75\x70\x21","\x4E\x6F\x20\x65\x6E\x74\x72\x79\x20\x6F\x72\x20\x6E\x6F\x74\x20\x6C\x6F\x6E\x67\x20\x65\x6E\x6F\x75\x67\x68\x21","\x69","\x72\x65\x63\x6F\x72\x64","\x2D\x2D\x52\x45\x43\x4F\x52\x44\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x63\x61\x6C\x6C\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x2E\x2E\x2E","\x52\x45\x43\x4F\x52\x44\x20\x46\x49\x4C\x45\x20\x25\x73\x20\x77\x61\x76\x20\x22\x25\x73\x22\x20\x25\x73\x20\x25\x73\x20\x25\x73\x20\x25\x73\x0A","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73","\x63\x6F\x64\x65","\x53\x61\x76\x69\x6E\x67\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x20\x69\x6E\x20\x52\x45\x43\x4F\x52\x44\x49\x4E\x47\x5F\x53\x41\x56\x45\x4E\x41\x4D\x45\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x53\x45\x54\x20\x56\x41\x52\x49\x41\x42\x4C\x45\x20\x25\x73\x20\x25\x73\x0A","\x52\x45\x43\x4F\x52\x44\x49\x4E\x47\x5F\x53\x41\x56\x45\x4E\x41\x4D\x45","\x67\x6F\x74\x6F\x69\x66\x74\x69\x6D\x65","\x2D\x2D\x47\x4F\x54\x4F\x49\x46\x54\x49\x4D\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x66\x61\x6C\x73\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x5F\x69\x64","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x69\x64","\x66\x69\x6C\x74\x65\x72","\x49\x73\x20\x61\x20\x67\x72\x6F\x75\x70\x20\x6F\x66\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x21","\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x21","\x43\x68\x65\x63\x6B\x69\x6E\x67\x20\x69\x66\x20\x61\x74\x20\x6C\x65\x61\x73\x74\x20\x6F\x6E\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x2E\x2E\x2E","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C\x20","\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x21","\x74\x72\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x54\x68\x65\x72\x65\x20\x61\x72\x65\x20\x6E\x6F\x20\x73\x75\x62\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x2C\x20\x73\x6F\x20\x69\x74\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x61\x6C\x77\x61\x79\x73\x20\x74\x72\x75\x65\x21","\x49\x73\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x21","\x54\x68\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x21","\x54\x68\x65\x20\x66\x69\x6E\x61\x6C\x20\x72\x65\x73\x75\x6C\x74\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x20\x69\x73\x20\x22","\x22\x21","\x76\x73\x77\x69\x74\x63\x68","\x2D\x2D\x56\x41\x52\x49\x41\x42\x4C\x45\x5F\x53\x57\x49\x54\x43\x48\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x47\x65\x74\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x76\x61\x6C\x75\x65\x20\x61\x6E\x64\x20\x73\x65\x61\x72\x63\x68\x69\x6E\x67\x20\x74\x68\x65\x20\x72\x69\x67\x68\x74\x20\x65\x78\x69\x74\x2E\x2E\x2E","\x73\x79\x73\x74\x65\x6D","\x2D\x2D\x53\x59\x53\x54\x45\x4D\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x63\x6F\x6D\x6D\x61\x6E\x64","\x74\x72\x69\x6D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x73\x79\x73\x74\x65\x6D\x20\x63\x6F\x6D\x6D\x61\x6E\x64\x2E\x2E\x2E","\x72\x65\x70\x6C\x61\x63\x65","\x50\x72\x6F\x67\x72\x61\x6D\x20\x6F\x75\x74\x70\x75\x74\x3A","\x53\x61\x76\x69\x6E\x67\x20\x74\x68\x65\x20\x6F\x75\x74\x70\x75\x74\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x22","\x2D\x2D\x41\x47\x49\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x47\x49\x20\x63\x6F\x6D\x6D\x61\x6E\x64\x2E\x2E\x2E","\x61\x72\x67\x73","\x73\x75\x62\x70\x72\x6F\x6A\x65\x63\x74","\x2D\x2D\x53\x55\x42\x50\x52\x4F\x4A\x45\x43\x54\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x70\x72\x6F\x6A\x65\x63\x74\x5F\x69\x64","\x4D\x6F\x76\x69\x6E\x67\x20\x74\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x22\x22","\x61\x67\x69\x3A\x2F\x2F\x31\x39\x32\x2E\x31\x36\x38\x2E\x32\x2E\x31\x34\x37\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x69\x73\x70\x65\x65\x63\x68\x61\x73\x72","\x2D\x2D\x49\x53\x50\x45\x45\x43\x48\x5F\x41\x53\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x69\x73\x70\x65\x65\x63\x68\x2D\x61\x73\x72\x2E\x61\x67\x69","\x69\x73\x70\x65\x65\x63\x68\x5F\x61\x73\x72\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x6D\x6F\x64\x65\x6C","\x31","\x23","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x47\x6F\x6F\x67\x6C\x65\x20\x41\x53\x52\x20\x41\x50\x49\x2E\x2E\x2E","\x64\x61\x74\x61\x62\x61\x73\x65","\x2D\x2D\x44\x41\x54\x41\x42\x41\x53\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6F\x64\x62\x63\x5F\x69\x64","\x54\x72\x79\x69\x6E\x67\x20\x74\x6F\x20\x67\x65\x74\x20\x4F\x44\x42\x43\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\x2E\x2E","\x71\x75\x65\x72\x79","\x64\x73\x6E","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x6F\x70\x65\x6E\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x3A\x20","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x73\x75\x63\x63\x65\x64\x65\x64\x2C\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x2E\x2E\x2E","\x51\x75\x65\x72\x79\x20\x65\x72\x72\x6F\x72\x3A\x20","\x51\x75\x65\x72\x79\x20\x65\x78\x65\x63\x75\x74\x65\x64\x2C\x20\x63\x6C\x6F\x73\x69\x6E\x67\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\x2E\x2E","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x63\x6C\x6F\x73\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x3A\x20","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x63\x6C\x6F\x73\x65\x64\x2C\x20\x73\x61\x76\x69\x6E\x67\x20\x72\x65\x73\x75\x6C\x74\x69\x6E\x67\x20\x72\x6F\x77\x73\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x63\x6C\x6F\x73\x65","\x6F\x70\x65\x6E","\x67\x6F\x74\x6F\x63","\x2D\x2D\x47\x4F\x54\x4F\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x47\x6F\x69\x6E\x67\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x20\x2E\x2E\x2E","\x4C\x6F\x63\x61\x6C\x2F\x25\x73\x40\x25\x73","\x67\x6F\x74\x6F\x69\x66","\x2D\x2D\x47\x4F\x54\x4F\x49\x46\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x76\x61\x6C\x75\x61\x74\x69\x6E\x67\x20\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x2E\x2E","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x54\x68\x65\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x73\x20","\x68\x61\x6E\x67\x75\x70","\x2D\x2D\x48\x41\x4E\x47\x55\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x48\x61\x6E\x67\x69\x6E\x20\x75\x70\x20\x74\x68\x65\x20\x63\x61\x6C\x6C\x2E\x2E\x2E","\x6E\x6F\x6F\x70","\x2D\x2D\x4E\x4F\x4F\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6F\x75\x74\x70\x75\x74","\x4E\x4F\x4F\x50\x20\x76\x61\x6C\x75\x65\x20\x69\x73\x20","\x4E\x4F\x4F\x50","\x73\x61\x79\x64\x69\x67\x69\x74\x73","\x2D\x2D\x53\x41\x59\x44\x49\x47\x49\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x64\x69\x67\x69\x74\x73\x2E\x2E\x2E","\x53\x41\x59\x20\x44\x49\x47\x49\x54\x53\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x64\x69\x67\x69\x74\x73","\x73\x65\x74","\x2D\x2D\x53\x45\x54\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x76\x69\x6E\x67\x20\x76\x61\x6C\x75\x65\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x76\x61\x6C\x75\x65","\x6D\x78\x63\x65\x6C\x6C","\x69\x73\x41\x72\x72\x61\x79","\x24","\x66\x6F\x72\x49\x6E","\x72\x65\x64\x75\x63\x65","\x65\x64\x67\x65","\x73\x6F\x75\x72\x63\x65","\x76\x61\x6C\x75\x65","\x24\x2E\x74\x61\x72\x67\x65\x74","\x6D\x61\x74\x63\x68","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x66\x6F\x72\x4D\x65\x74\x68\x6F\x64","\x28","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x29","\x72\x65\x70\x6C\x61\x63\x65\x64","\x76\x65\x72\x74\x69\x63\x65\x73","\x73\x74\x61\x72\x74","\x69\x73\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x66\x6F\x72","\x4E\x6F\x20\x74\x61\x72\x67\x65\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x68\x61\x6E\x67\x75\x70\x21","\x66\x69\x6E\x61\x6C\x6C\x79","\x4E\x6F\x20\x74\x61\x72\x67\x65\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x73\x74\x6F\x70\x70\x69\x6E\x67\x20\x22\x46\x69\x6E\x61\x6C\x6C\x79\x22\x20\x62\x72\x61\x6E\x63\x68\x21","\x65\x6E\x64","\x65\x72\x72\x6F\x72","\x2F\x2F\x45\x72\x72\x6F\x72\x3A","\x6F\x6E","\x2F\x2F\x43\x6F\x6E\x74\x65\x78\x74\x20\x63\x6C\x6F\x73\x65","\x2F\x2F\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x22\x46\x69\x6E\x61\x6C\x6C\x79\x22\x20\x62\x72\x61\x6E\x63\x68\x21","\x6C\x61\x75\x6E\x63\x68\x46\x69\x62\x65\x72","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x65\x78\x69\x74\x20\x74\x69\x6D\x65\x20\x66\x72\x6F\x6D\x20\x49\x56\x52","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x75\x70\x64\x61\x74\x65","\x2F\x2F\x43\x6F\x6E\x74\x65\x78\x74\x20\x48\x61\x6E\x67\x75\x70","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x52\x65\x63\x65\x69\x76\x65\x64\x20\x6E\x65\x77\x20\x63\x61\x6C\x6C\x20\x66\x72\x6F\x6D\x3A\x20","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x65\x72\x69\x64","\x20\x77\x69\x74\x68\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x3A\x20","\x61\x67\x69\x5F\x75\x6E\x69\x71\x75\x65\x69\x64","\x61\x67\x69\x5F\x6E\x65\x74\x77\x6F\x72\x6B","\x61\x67\x69\x5F\x6E\x65\x74\x77\x6F\x72\x6B\x5F\x73\x63\x72\x69\x70\x74","\x61\x67\x69\x5F\x72\x65\x71\x75\x65\x73\x74","\x61\x67\x69\x5F\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x67\x69\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x61\x67\x69\x5F\x74\x79\x70\x65","\x61\x67\x69\x5F\x76\x65\x72\x73\x69\x6F\x6E","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x70\x72\x65\x73","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x61\x6E\x69\x32","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x74\x6F\x6E","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x74\x6E\x73","\x61\x67\x69\x5F\x64\x6E\x69\x64","\x61\x67\x69\x5F\x72\x64\x6E\x69\x73","\x61\x67\x69\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x61\x67\x69\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x67\x69\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x67\x69\x5F\x65\x6E\x68\x61\x6E\x63\x65\x64","\x61\x67\x69\x5F\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x61\x67\x69\x5F\x74\x68\x72\x65\x61\x64\x69\x64","\x61\x67\x69\x5F\x61\x72\x67\x5F\x31","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x65\x6E\x74\x65\x72\x20\x74\x69\x6D\x65\x20\x66\x6F\x72\x20\x49\x56\x52","\x45\x72\x72\x6F\x72\x3A","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x6D\x78\x67\x72\x61\x70\x68\x6D\x6F\x64\x65\x6C","\x4E\x6F\x20\x72\x6F\x6F\x74\x20\x69\x6E\x20\x70\x72\x6F\x6A\x65\x63\x74\x21","\x70\x61\x72\x73\x65\x53\x74\x72\x69\x6E\x67","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x70\x75\x62\x6C\x69\x73\x68\x65\x64\x21","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x66\x6F\x75\x6E\x64\x21","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x21","\x73\x70\x6C\x69\x74","\x2A","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F","\x45","\x44","\x4D","\x70\x75\x73\x68","\x69\x73\x42\x65\x74\x77\x65\x65\x6E","\x69\x6E\x64\x65\x78\x4F\x66","\x53\x65\x74\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x53\x65\x6E\x64\x69\x6E\x67\x20\x73\x65\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2C\x20\x76\x61\x6C\x75\x65\x20\x69\x73\x20","\x25\x73\x2F\x25\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x70\x61\x74\x68","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x63\x6C\x6F\x6E\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74","\x61\x67\x69\x5F\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65\x20\x41\x47\x49\x2E\x2E\x2E","\x6C\x69\x73\x74\x65\x6E","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72"];_0xd3fd[0];var _=require(_0xd3fd[1]);var agi=require(_0xd3fd[2]);var util=require(_0xd3fd[3]);var moment=require(_0xd3fd[4]);var xml=require(_0xd3fd[5]);var wait=require(_0xd3fd[6]);var sr=require(_0xd3fd[7]);var path=require(_0xd3fd[8]);var config=require(_0xd3fd[9]);var sh=require(_0xd3fd[10]);var db=require(_0xd3fd[11])();var SquareProject=require(_0xd3fd[13])[_0xd3fd[12]];var Variable=require(_0xd3fd[13])[_0xd3fd[14]];var SquareOdbc=require(_0xd3fd[13])[_0xd3fd[15]];var Settings=require(_0xd3fd[13])[_0xd3fd[16]];var User=require(_0xd3fd[13])[_0xd3fd[17]];var VoiceQueue=require(_0xd3fd[13])[_0xd3fd[18]];var Trunk=require(_0xd3fd[13])[_0xd3fd[19]];var Interval=require(_0xd3fd[13])[_0xd3fd[20]];var Upload=require(_0xd3fd[13])[_0xd3fd[21]];var ReportSquare=require(_0xd3fd[13])[_0xd3fd[22]];var ReportSquareDetail=require(_0xd3fd[13])[_0xd3fd[23]];var users,trunks,variables,intervals,projects,sounds,queues,dbConnections,generalUniqueId;var agiPort;var weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};var monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var methods={};methods[_0xd3fd[24]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[25]);console[_0xd3fd[26]](_0xd3fd[27]);_0xad3ex24[_0xd3fd[29]](_0xd3fd[28],function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[30]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[31]);console[_0xd3fd[26]](_0xd3fd[32]+_0xad3ex25[_0xd3fd[33]]+_0xd3fd[34]);_0xad3ex24[_0xd3fd[36]](_0xad3ex25[_0xd3fd[33]],_0xad3ex25[_0xd3fd[35]],function(_0xad3ex27,_0xad3ex28){if(_0xad3ex26){_0xad3ex26(_0xad3ex27,_0xad3ex28)}});};methods[_0xd3fd[37]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[38]);if(!users){getUsers(false)};var _0xad3ex29=_[_0xd3fd[40]](users,{id:parseInt(_0xad3ex25[_0xd3fd[39]])});console[_0xd3fd[26]](_0xd3fd[41]+util[_0xd3fd[44]](_0xd3fd[42],_0xad3ex29[_0xd3fd[43]])+_0xd3fd[45]);var _0xad3ex2a=[util[_0xd3fd[44]](_0xd3fd[42],_0xad3ex29[_0xd3fd[43]]),_0xad3ex25[_0xd3fd[46]],_0xad3ex25[_0xd3fd[47]],_0xad3ex25[_0xd3fd[48]]];_0xad3ex24[_0xd3fd[36]](_0xd3fd[49],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[52]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[53]);if(!trunks){getTrunks(false)};var _0xad3ex2b=_[_0xd3fd[40]](trunks,{id:parseInt(_0xad3ex25[_0xd3fd[54]])});console[_0xd3fd[26]](_0xd3fd[41]+util[_0xd3fd[44]](_0xd3fd[42],_0xad3ex2b[_0xd3fd[43]])+_0xd3fd[45]);var _0xad3ex2a=[util[_0xd3fd[44]](_0xd3fd[55],_0xad3ex25[_0xd3fd[56]],_0xad3ex2b[_0xd3fd[43]]),_0xad3ex25[_0xd3fd[46]],_0xad3ex25[_0xd3fd[47]],_0xad3ex25[_0xd3fd[48]]];_0xad3ex24[_0xd3fd[36]](_0xd3fd[49],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[57]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[58]);if(!queues){getQueues(false)};var _0xad3ex2c=_[_0xd3fd[40]](queues,{name:_0xad3ex25[_0xd3fd[59]]});var _0xad3ex2d=getFilePath(_0xad3ex25[_0xd3fd[60]]);var _0xad3ex2a=[_0xad3ex2c[_0xd3fd[43]],_0xad3ex25[_0xd3fd[47]],_0xad3ex25[_0xd3fd[48]],_0xad3ex2d,_0xad3ex25[_0xd3fd[46]],_0xad3ex25[_0xd3fd[2]],_0xad3ex25[_0xd3fd[61]],_0xad3ex25[_0xd3fd[62]],_0xd3fd[63],_0xad3ex25[_0xd3fd[64]]];console[_0xd3fd[26]](_0xd3fd[65]+_0xad3ex2c[_0xd3fd[43]]+_0xd3fd[66]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[67],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[68]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[69]);var _0xad3ex2a=[util[_0xd3fd[44]](_0xd3fd[70],_0xad3ex25[_0xd3fd[71]],_0xad3ex25[_0xd3fd[72]]),_0xad3ex25[_0xd3fd[47]]];console[_0xd3fd[26]](_0xd3fd[73]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[74],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[75]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[76]);console[_0xd3fd[26]](_0xd3fd[77]);var _0xad3ex2e=eval(_0xad3ex25[_0xd3fd[78]]);console[_0xd3fd[26]](_0xd3fd[79]);setVariable(_0xad3ex24,_0xad3ex25[_0xd3fd[80]],_0xad3ex2e,_0xad3ex26);};methods[_0xd3fd[81]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[82]);var _0xad3ex2f=getFilePath(_0xad3ex25[_0xd3fd[60]]);var _0xad3ex2a=[_0xad3ex2f,_0xad3ex25[_0xd3fd[47]]];console[_0xd3fd[26]](_0xd3fd[83]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[84],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[85]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[86]);var _0xad3ex28={};console[_0xd3fd[26]](_0xd3fd[87]+_0xad3ex25[_0xd3fd[88]]+_0xd3fd[89]);if(_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex25[_0xd3fd[88]]--;var _0xad3ex30=_0xd3fd[90];console[_0xd3fd[26]](_0xd3fd[91]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[92],_0xad3ex30,parseInt(_0xad3ex25[_0xd3fd[93]])*1000,_0xad3ex25[_0xd3fd[94]]),function(_0xad3ex27,_0xad3ex28){var _0xad3ex31={uniqueid:_0xad3ex24[_0xd3fd[95]],node:_0xad3ex25[_0xd3fd[96]],application:_0xad3ex25[_0xd3fd[97]],data:_0xad3ex28[_0xd3fd[98]]||null};ReportSquareDetail[_0xd3fd[103]](_0xad3ex31)[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[99]+_0xad3ex25[_0xd3fd[97]]+_0xd3fd[100]+_0xad3ex25[_0xd3fd[96]]+_0xd3fd[101],_0xad3ex27)});if(_0xad3ex28[_0xd3fd[98]]!==_0xd3fd[104]){var _0xad3ex32=parseInt(_0xad3ex25[_0xd3fd[80]]);if(_0xad3ex32){console[_0xd3fd[26]](_0xd3fd[105]);setVariable(_0xad3ex24,_0xad3ex32,_0xad3ex28[_0xd3fd[98]]);};_0xad3ex28[_0xd3fd[106]]=_0xad3ex28[_0xd3fd[98]];_0xad3ex26(null,_0xad3ex28);}else {console[_0xd3fd[26]](_0xd3fd[107]);_0xad3ex28={code:200,result:_0xd3fd[108],data:_0xd3fd[109]};_0xad3ex26(null,_0xad3ex28);};});}else {console[_0xd3fd[26]](_0xd3fd[110]);_0xad3ex28={code:200,result:_0xd3fd[108],data:_0xd3fd[111]};_0xad3ex26(null,_0xad3ex28);};};methods[_0xd3fd[112]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[113]);console[_0xd3fd[26]](_0xd3fd[114]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[115],_0xad3ex25[_0xd3fd[116]],_0xad3ex25[_0xd3fd[117]]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[118]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[119]);console[_0xd3fd[26]](_0xd3fd[120]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[121],_0xad3ex25[_0xd3fd[122]],_0xad3ex25[_0xd3fd[117]]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[123]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[124]);var _0xad3ex2a=[path[_0xd3fd[51]](config[_0xd3fd[125]],_0xd3fd[126],_0xd3fd[127]),encodeURIComponent(_0xad3ex25[_0xd3fd[122]]),_0xad3ex25[_0xd3fd[128]]];console[_0xd3fd[26]](_0xd3fd[129]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[130],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[131]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[132]);var _0xad3ex2a=[_0xd3fd[133],encodeURIComponent(_0xad3ex25[_0xd3fd[122]]),_0xad3ex25[_0xd3fd[134]],_0xd3fd[63],_0xd3fd[63],_0xad3ex25[_0xd3fd[135]]];console[_0xd3fd[26]](_0xd3fd[136]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[130],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[137]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[138]);var _0xad3ex28={};console[_0xd3fd[26]](_0xd3fd[87]+_0xad3ex25[_0xd3fd[88]]+_0xd3fd[89]);if(_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex25[_0xd3fd[88]]--;var _0xad3ex30=getFilePath(_0xad3ex25[_0xd3fd[60]]);console[_0xd3fd[26]](_0xd3fd[91]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[92],_0xad3ex30,parseInt(_0xad3ex25[_0xd3fd[93]])*1000,_0xad3ex25[_0xd3fd[139]]),function(_0xad3ex27,_0xad3ex28){var _0xad3ex31={uniqueid:_0xad3ex24[_0xd3fd[95]],node:_0xad3ex25[_0xd3fd[96]],application:_0xad3ex25[_0xd3fd[97]],data:_0xad3ex28[_0xd3fd[98]]||null};ReportSquareDetail[_0xd3fd[103]](_0xad3ex31)[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[99]+_0xad3ex25[_0xd3fd[97]]+_0xd3fd[100]+_0xad3ex25[_0xd3fd[96]]+_0xd3fd[101],_0xad3ex27)});if(_0xad3ex28[_0xd3fd[98]]&&_0xad3ex28[_0xd3fd[98]][_0xd3fd[140]]>=parseInt(_0xad3ex25[_0xd3fd[141]])){if(_0xad3ex28[_0xd3fd[98]]!==_0xd3fd[142]){console[_0xd3fd[26]](_0xd3fd[143]);var _0xad3ex32=parseInt(_0xad3ex25[_0xd3fd[80]]);if(_0xad3ex32){console[_0xd3fd[26]](_0xd3fd[105]);setVariable(_0xad3ex24,_0xad3ex32,_0xad3ex28[_0xd3fd[98]]);};_0xad3ex28={code:200,result:_0xd3fd[108],data:_0xd3fd[144]};_0xad3ex26(null,_0xad3ex28);}else {console[_0xd3fd[26]](_0xd3fd[145]);_0xad3ex28={code:500,result:_0xd3fd[142]};_0xad3ex26(null,_0xad3ex28);}}else {console[_0xd3fd[26]](_0xd3fd[146]);_0xad3ex28={code:200,result:_0xd3fd[108],data:_0xd3fd[147]};_0xad3ex26(null,_0xad3ex28);};});}else {console[_0xd3fd[26]](_0xd3fd[110]);_0xad3ex28={code:500,result:_0xd3fd[142]};_0xad3ex26(null,_0xad3ex28);};};methods[_0xd3fd[148]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[149]);var _0xad3ex33=sr();console[_0xd3fd[26]](_0xd3fd[150]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[151],path[_0xd3fd[51]](config[_0xd3fd[125]],_0xd3fd[152],_0xad3ex33),_0xad3ex25[_0xd3fd[117]],_0xad3ex25[_0xd3fd[46]],null,true,null),function(_0xad3ex27,_0xad3ex28){if(_0xad3ex28[_0xd3fd[153]]===200&&_0xad3ex28[_0xd3fd[98]]!==_0xd3fd[142]){console[_0xd3fd[26]](_0xd3fd[154]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[155],_0xd3fd[156],_0xad3ex33),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});}else {_0xad3ex26(_0xad3ex27,_0xad3ex28)}});};methods[_0xd3fd[157]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[158]);var _0xad3ex28;var _0xad3ex34=_0xd3fd[159];var _0xad3ex35;if(!intervals){getIntervals(false)};var _0xad3ex36=_[_0xd3fd[40]](intervals,{id:parseInt(_0xad3ex25[_0xd3fd[160]])});if(!_0xad3ex36[_0xd3fd[161]]){_0xad3ex35=_[_0xd3fd[163]](intervals,{IntervalId:parseInt(_0xad3ex36[_0xd3fd[162]])})};if(_0xad3ex35){console[_0xd3fd[26]](_0xd3fd[164]);if(_0xad3ex35[_0xd3fd[140]]){console[_0xd3fd[26]](_0xd3fd[87]+_0xad3ex35[_0xd3fd[140]]+_0xd3fd[165]);var _0xad3ex37;console[_0xd3fd[26]](_0xd3fd[166]);_0xad3ex35[_0xd3fd[171]](function(_0xad3ex38,_0xad3ex39){_0xad3ex37=splitInterval(_0xad3ex38[_0xd3fd[167]]);if(isIntervalValid(_0xad3ex37)){console[_0xd3fd[26]](_0xd3fd[168]+_0xad3ex39+_0xd3fd[169]);_0xad3ex34=_0xd3fd[170];};});}else {console[_0xd3fd[26]](_0xd3fd[172]);_0xad3ex34=_0xd3fd[170];};}else {console[_0xd3fd[26]](_0xd3fd[173]);var _0xad3ex3a=splitInterval(_0xad3ex36[_0xd3fd[167]]);if(isIntervalValid(_0xad3ex3a)){console[_0xd3fd[26]](_0xd3fd[174]);_0xad3ex34=_0xd3fd[170];};};console[_0xd3fd[26]](_0xd3fd[175]+_0xad3ex34+_0xd3fd[176]);_0xad3ex28={code:200,result:_0xd3fd[108],data:_0xad3ex34};_0xad3ex26(null,_0xad3ex28);};methods[_0xd3fd[177]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[178]);console[_0xd3fd[26]](_0xd3fd[179]);var _0xad3ex28={data:getVariable(_0xad3ex24,_0xad3ex25[_0xd3fd[80]])};_0xad3ex26(null,_0xad3ex28);};methods[_0xd3fd[180]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[181]);var _0xad3ex31={uniqueid:_0xad3ex24[_0xd3fd[95]],node:_0xad3ex25[_0xd3fd[96]],application:_0xad3ex25[_0xd3fd[97]],data:_[_0xd3fd[183]](_0xad3ex25[_0xd3fd[182]])||null};ReportSquareDetail[_0xd3fd[103]](_0xad3ex31)[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[99]+_0xad3ex25[_0xd3fd[97]]+_0xd3fd[100]+_0xad3ex25[_0xd3fd[96]]+_0xd3fd[101],_0xad3ex27)});console[_0xd3fd[26]](_0xd3fd[184]);sh[_0xd3fd[36]](_[_0xd3fd[183]](_0xad3ex25[_0xd3fd[182]]),function(_0xad3ex3b,_0xad3ex3c){var _0xad3ex3d=_0xad3ex3c[_0xd3fd[185]](/(\r\n|\n|\r)/gm,_0xd3fd[63]);console[_0xd3fd[26]](_0xd3fd[186],_0xad3ex3d);console[_0xd3fd[26]](_0xd3fd[187]);setVariable(_0xad3ex24,_0xad3ex25[_0xd3fd[80]],_0xd3fd[188]+_0xad3ex3d+_0xd3fd[188],_0xad3ex26);});};methods[_0xd3fd[2]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[189]);console[_0xd3fd[26]](_0xd3fd[190]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[130],_0xad3ex25[_0xd3fd[182]],_0xad3ex25[_0xd3fd[191]],function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[192]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[193]);if(!projects){getProjects(false)};var _0xad3ex3e=_[_0xd3fd[40]](projects,{id:parseInt(_0xad3ex25[_0xd3fd[194]])});console[_0xd3fd[26]](_0xd3fd[195]+_0xad3ex3e[_0xd3fd[43]]+_0xd3fd[34]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[130],util[_0xd3fd[44]](_0xd3fd[196],_0xad3ex3e[_0xd3fd[43]]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[197]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[198]);var _0xad3ex2a=[path[_0xd3fd[51]](config[_0xd3fd[125]],_0xd3fd[126],_0xd3fd[199]),_0xad3ex25[_0xd3fd[200]],_0xd3fd[63],(_0xad3ex25[_0xd3fd[201]]===_0xd3fd[108]?_0xd3fd[63]:_0xad3ex25[_0xd3fd[201]]),_0xd3fd[202],_0xd3fd[203],_0xd3fd[63],_0xad3ex25[_0xd3fd[135]]];console[_0xd3fd[26]](_0xd3fd[204]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[130],_0xad3ex2a[_0xd3fd[51]](_0xd3fd[50]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[205]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[206]);if(!dbConnections){getDbConnections(false)};var _0xad3ex3f=_[_0xd3fd[40]](dbConnections,{id:parseInt(_0xad3ex25[_0xd3fd[207]])});console[_0xd3fd[26]](_0xd3fd[208]);var _0xad3ex31={uniqueid:_0xad3ex24[_0xd3fd[95]],node:_0xad3ex25[_0xd3fd[96]],application:_0xad3ex25[_0xd3fd[97]],data:_0xad3ex25[_0xd3fd[209]]||null};ReportSquareDetail[_0xd3fd[103]](_0xad3ex31)[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[99]+_0xad3ex25[_0xd3fd[97]]+_0xd3fd[100]+_0xad3ex25[_0xd3fd[96]]+_0xd3fd[101],_0xad3ex27)});db[_0xd3fd[218]](_0xad3ex3f[_0xd3fd[210]],function(_0xad3ex27){if(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[211],_0xad3ex27);var _0xad3ex28={code:500,result:_0xd3fd[142]};_0xad3ex26(null,_0xad3ex28);}else {console[_0xd3fd[26]](_0xd3fd[212]);db[_0xd3fd[209]](_0xad3ex25[_0xd3fd[209]],function(_0xad3ex27,_0xad3ex40){if(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[213],_0xad3ex27);var _0xad3ex28={code:500,result:_0xd3fd[142]};_0xad3ex26(null,_0xad3ex28);}else {console[_0xd3fd[26]](_0xd3fd[214]);db[_0xd3fd[217]](function(_0xad3ex27){if(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[215],_0xad3ex27);var _0xad3ex28={code:500,result:_0xd3fd[142]};_0xad3ex26(null,_0xad3ex28);}else {console[_0xd3fd[26]](_0xd3fd[216]);setVariable(_0xad3ex24,_0xad3ex25[_0xd3fd[80]],_0xad3ex40,_0xad3ex26);}});}});}});};methods[_0xd3fd[219]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[220]);console[_0xd3fd[26]](_0xd3fd[221]+_0xad3ex25[_0xd3fd[222]]+_0xd3fd[223]);_0xad3ex24[_0xd3fd[36]](_0xd3fd[49],util[_0xd3fd[44]](_0xd3fd[224],_0xad3ex25[_0xd3fd[222]],_0xad3ex25[_0xd3fd[72]]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[225]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[226]);var _0xad3ex28={code:200,result:_0xd3fd[108]};console[_0xd3fd[26]](_0xd3fd[227]);_0xad3ex28[_0xd3fd[106]]=String(eval(_0xad3ex25[_0xd3fd[228]])?_0xd3fd[170]:_0xd3fd[159]);console[_0xd3fd[26]](_0xd3fd[229]+_0xad3ex28[_0xd3fd[106]]);_0xad3ex26(null,_0xad3ex28);};methods[_0xd3fd[230]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[231]);console[_0xd3fd[26]](_0xd3fd[232]);_0xad3ex24[_0xd3fd[230]]();};methods[_0xd3fd[233]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[234]);var _0xad3ex3c=(_0xad3ex25[_0xd3fd[235]])?_0xd3fd[188]+_0xad3ex25[_0xd3fd[235]]+_0xd3fd[188]:_0xd3fd[188]+_0xad3ex25[_0xd3fd[96]]+_0xd3fd[188];console[_0xd3fd[26]](_0xd3fd[236]+_0xad3ex3c);_0xad3ex24[_0xd3fd[36]](_0xd3fd[237],_0xad3ex3c,function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[238]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[239]);console[_0xd3fd[26]](_0xd3fd[240]);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[241],_0xad3ex25[_0xd3fd[242]],_0xad3ex25[_0xd3fd[117]]),function(_0xad3ex27,_0xad3ex28){_0xad3ex26(_0xad3ex27,_0xad3ex28)});};methods[_0xd3fd[243]]=function(_0xad3ex24,_0xad3ex25,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[244]);console[_0xd3fd[26]](_0xd3fd[245]);setVariable(_0xad3ex24,_0xad3ex25[_0xd3fd[80]],_0xad3ex25[_0xd3fd[246]],_0xad3ex26);};function getVertices(_0xad3ex42){return _[_0xd3fd[251]](_0xad3ex42,function(_0xad3ex2e,_0xad3ex43,_0xad3ex44){if(_0xad3ex44===_0xd3fd[247]){return _0xad3ex2e};if(_[_0xd3fd[248]](_0xad3ex43)){_[_0xd3fd[250]](_0xad3ex43,function(_0xad3ex45,_0xad3ex46){_0xad3ex2e[_0xad3ex45[_0xd3fd[249]][_0xd3fd[162]]]=_0xad3ex45[_0xd3fd[249]];_0xad3ex2e[_0xad3ex45[_0xd3fd[249]][_0xd3fd[162]]][_0xd3fd[97]]=_0xad3ex44;});return _0xad3ex2e;};_0xad3ex2e[_0xad3ex43[_0xd3fd[249]][_0xd3fd[162]]]=_0xad3ex43[_0xd3fd[249]];_0xad3ex2e[_0xad3ex43[_0xd3fd[249]][_0xd3fd[162]]][_0xd3fd[97]]=_0xad3ex44;return _0xad3ex2e;},{})}function getTargetBySource(_0xad3ex42,_0xad3ex48,_0xad3ex45){return _[_0xd3fd[98]](_[_0xd3fd[40]](_0xad3ex42[_0xd3fd[247]],function(_0xad3ex43){if(_0xad3ex43[_0xd3fd[249]][_0xd3fd[252]]&&_0xad3ex43[_0xd3fd[249]][_0xd3fd[253]]){if(_0xad3ex43[_0xd3fd[249]][_0xd3fd[253]]===_0xad3ex48){if(_0xad3ex43[_0xd3fd[249]][_0xd3fd[254]]&&_0xad3ex43[_0xd3fd[249]][_0xd3fd[254]]!==_0xad3ex45){return false};return true;}};return false;}),_0xd3fd[255])}function replaceAllVariables(_0xad3ex24,_0xad3ex25,_0xad3ex26){var _0xad3ex4a=_0xad3ex25;for(var _0xad3ex46 in _0xad3ex4a){var _0xad3ex28=_0xad3ex4a[_0xad3ex46][_0xd3fd[256]](/{+(.*?)}/gi);if(_0xad3ex28){for(var _0xad3ex4b in _0xad3ex28){var _0xad3ex45=wait[_0xd3fd[259]](_0xad3ex24,_0xd3fd[257],_0xad3ex28[_0xad3ex4b][_0xd3fd[258]](1,_0xad3ex28[_0xad3ex4b][_0xd3fd[140]]-1));if(_0xad3ex45[_0xd3fd[153]]===200&&_0xad3ex45[_0xd3fd[98]]!==_0xd3fd[108]){var _0xad3ex4c=_0xad3ex45[_0xd3fd[98]][_0xd3fd[258]](_0xad3ex45[_0xd3fd[98]][_0xd3fd[261]](_0xd3fd[260])+1,_0xad3ex45[_0xd3fd[98]][_0xd3fd[261]](_0xd3fd[262]));_0xad3ex4a[_0xad3ex46]=_0xad3ex4a[_0xad3ex46][_0xd3fd[185]](_0xad3ex28[_0xad3ex4b],_0xad3ex4c);};}};};_0xad3ex4a[_0xd3fd[263]]=true;return _0xad3ex4a;}function xstart(_0xad3ex24){var _0xad3ex42=_0xad3ex24[_0xd3fd[125]];var _0xad3ex4e=_0xad3ex24[_0xd3fd[264]];if(_0xad3ex42[_0xd3fd[265]]){if(!_[_0xd3fd[248]](_0xad3ex42[_0xd3fd[265]])){var _0xad3ex48=_0xad3ex42[_0xd3fd[265]][_0xd3fd[249]][_0xd3fd[162]];var _0xad3ex28={};do{var _0xad3ex25=_0xad3ex4e[_0xad3ex48][_0xd3fd[263]]?_0xad3ex4e[_0xad3ex48]:replaceAllVariables(_0xad3ex24,_0xad3ex4e[_0xad3ex48]);if(_0xad3ex25){if(_[_0xd3fd[266]](methods[_0xad3ex25[_0xd3fd[97]]])){_0xad3ex28=wait[_0xd3fd[267]](methods[_0xad3ex25[_0xd3fd[97]]],_0xad3ex24,_0xad3ex25)}else {_0xad3ex28=wait[_0xd3fd[267]](methods[_0xd3fd[233]],_0xad3ex24,_0xad3ex25)};if(_0xad3ex28[_0xd3fd[153]]===200&&_0xad3ex28[_0xd3fd[98]]!==_0xd3fd[142]){var _0xad3ex4f=getTargetBySource(_0xad3ex42,_0xad3ex48,_0xad3ex28[_0xd3fd[106]]);if(_0xad3ex4f){}else {if(_0xad3ex25[_0xd3fd[97]]===_0xd3fd[85]){if(_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex4f=getTargetBySource(_0xad3ex42,_0xad3ex48,_0xd3fd[147]);if(_0xad3ex4f){}else {_0xad3ex4f=_0xad3ex48};}};if(_0xad3ex25[_0xd3fd[97]]===_0xd3fd[137]&&_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex4f=_0xad3ex48};};_0xad3ex48=_0xad3ex4f;}else {_0xad3ex48=null};}else {_0xad3ex48=null};}while(_0xad3ex48);;console[_0xd3fd[26]](_0xd3fd[268]);_0xad3ex24[_0xd3fd[230]]();}};}function xfinally(_0xad3ex24){var _0xad3ex42=_0xad3ex24[_0xd3fd[125]];var _0xad3ex4e=_0xad3ex24[_0xd3fd[264]];if(_0xad3ex42[_0xd3fd[269]]){if(!_[_0xd3fd[248]](_0xad3ex42[_0xd3fd[269]])){var _0xad3ex48=_0xad3ex42[_0xd3fd[269]][_0xd3fd[249]][_0xd3fd[162]];var _0xad3ex28={};do{var _0xad3ex25=replaceAllVariables(_0xad3ex24,_0xad3ex4e[_0xad3ex48]);if(_0xad3ex25){if(_[_0xd3fd[266]](methods[_0xad3ex25[_0xd3fd[97]]])){_0xad3ex28=wait[_0xd3fd[267]](methods[_0xad3ex25[_0xd3fd[97]]],_0xad3ex24,_0xad3ex25)}else {_0xad3ex28=wait[_0xd3fd[267]](methods[_0xd3fd[233]],_0xad3ex24,_0xad3ex25)};if(_0xad3ex28[_0xd3fd[153]]===200&&_0xad3ex28[_0xd3fd[98]]!==_0xd3fd[142]){var _0xad3ex4f=getTargetBySource(_0xad3ex42,_0xad3ex48,_0xad3ex28[_0xd3fd[106]]);if(_0xad3ex4f){}else {if(_0xad3ex25[_0xd3fd[97]]===_0xd3fd[85]){if(_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex4f=getTargetBySource(_0xad3ex42,_0xad3ex48,_0xd3fd[147]);if(_0xad3ex4f){}else {_0xad3ex4f=_0xad3ex48};}};if(_0xad3ex25[_0xd3fd[97]]===_0xd3fd[137]&&_0xad3ex25[_0xd3fd[88]]>0){_0xad3ex4f=_0xad3ex48};};_0xad3ex48=_0xad3ex4f;}else {_0xad3ex48=null};}else {_0xad3ex48=null};}while(_0xad3ex48);;_0xad3ex24[_0xd3fd[230]]();console[_0xd3fd[26]](_0xd3fd[270]);}};_0xad3ex24[_0xd3fd[271]]();}function main(_0xad3ex24){_0xad3ex24[_0xd3fd[274]](_0xd3fd[272],function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[273],_0xad3ex27)});_0xad3ex24[_0xd3fd[274]](_0xd3fd[217],function(){console[_0xd3fd[26]](_0xd3fd[275])});_0xad3ex24[_0xd3fd[274]](_0xd3fd[230],function(){if(_0xad3ex24[_0xd3fd[269]]){_0xad3ex24[_0xd3fd[269]]=false;console[_0xd3fd[26]](_0xd3fd[276]);wait[_0xd3fd[277]](xfinally,_0xad3ex24);}else {ReportSquare[_0xd3fd[280]]({leaveAt:moment()[_0xd3fd[44]](_0xd3fd[279])},{where:{uniqueid:_0xad3ex24[_0xd3fd[95]]}})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[278],_0xad3ex27)});console[_0xd3fd[26]](_0xd3fd[281]);}});_0xad3ex24[_0xd3fd[274]](_0xd3fd[93],function(_0xad3ex28){});_0xad3ex24[_0xd3fd[274]](_0xd3fd[282],function(_0xad3ex52){console[_0xd3fd[26]](_0xad3ex52);console[_0xd3fd[26]](_0xd3fd[283]+_0xad3ex52[_0xd3fd[284]]+_0xd3fd[285]+_0xad3ex52[_0xd3fd[286]]);var _0xad3ex53={network:_0xad3ex52[_0xd3fd[287]],network_script:_0xad3ex52[_0xd3fd[288]],request:_0xad3ex52[_0xd3fd[289]],channel:_0xad3ex52[_0xd3fd[290]],language:_0xad3ex52[_0xd3fd[291]],type:_0xad3ex52[_0xd3fd[292]],uniqueid:_0xad3ex52[_0xd3fd[286]],version:_0xad3ex52[_0xd3fd[293]],callerid:_0xad3ex52[_0xd3fd[284]],calleridname:_0xad3ex52[_0xd3fd[294]],callingpres:_0xad3ex52[_0xd3fd[295]],callingani2:_0xad3ex52[_0xd3fd[296]],callington:_0xad3ex52[_0xd3fd[297]],callingtns:_0xad3ex52[_0xd3fd[298]],dnid:_0xad3ex52[_0xd3fd[299]],rdnis:_0xad3ex52[_0xd3fd[300]],context:_0xad3ex52[_0xd3fd[301]],extension:_0xad3ex52[_0xd3fd[302]],priority:_0xad3ex52[_0xd3fd[303]],enhanced:_0xad3ex52[_0xd3fd[304]],accountcode:_0xad3ex52[_0xd3fd[305]],threadid:_0xad3ex52[_0xd3fd[306]],project_name:_0xad3ex52[_0xd3fd[307]],joinAt:moment()[_0xd3fd[44]](_0xd3fd[279])};ReportSquare[_0xd3fd[103]](_0xad3ex53)[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[308],_0xad3ex27)});if(_0xad3ex52[_0xd3fd[307]]){SquareProject[_0xd3fd[317]]({where:{name:_0xad3ex52[_0xd3fd[307]]},attributes:[_0xd3fd[162],_0xd3fd[310]]})[_0xd3fd[316]](function(_0xad3ex3e){if(_0xad3ex3e){if(_0xad3ex3e[_0xd3fd[310]]){xml[_0xd3fd[313]](_0xad3ex3e[_0xd3fd[310]],{normalizeTags:true,explicitArray:false},function(_0xad3ex27,_0xad3ex2e){var _0xad3ex42=_0xad3ex2e[_0xd3fd[311]][_0xd3fd[125]];if(_0xad3ex42){_0xad3ex24[_0xd3fd[125]]=_0xad3ex42;_0xad3ex24[_0xd3fd[269]]=true;_0xad3ex24[_0xd3fd[95]]=_0xad3ex52[_0xd3fd[286]];_0xad3ex24[_0xd3fd[264]]=getVertices(_0xad3ex42);wait[_0xd3fd[277]](xstart,_0xad3ex24);}else {console[_0xd3fd[26]](_0xd3fd[312]);_0xad3ex24[_0xd3fd[271]]();};})}else {console[_0xd3fd[26]](_0xd3fd[314]);_0xad3ex24[_0xd3fd[271]]();}}else {console[_0xd3fd[26]](_0xd3fd[315]);_0xad3ex24[_0xd3fd[271]]();}})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xd3fd[309],_0xad3ex27);_0xad3ex24[_0xd3fd[271]]();})}else {console[_0xd3fd[26]](_0xd3fd[318]);_0xad3ex24[_0xd3fd[271]]();};});}function splitInterval(_0xad3ex36){var _0xad3ex55={};var _0xad3ex3a=_0xad3ex36[_0xd3fd[319]](_0xd3fd[50]);var _0xad3ex56;_0xad3ex3a[_0xd3fd[171]](function(_0xad3ex57,_0xad3ex39){switch(_0xad3ex39){case 0:if(_0xad3ex57!==_0xd3fd[320]){_0xad3ex56=_0xad3ex57[_0xd3fd[319]](_0xd3fd[111]);_0xad3ex55[_0xd3fd[321]]=moment(_0xad3ex56[0],_0xd3fd[322]);_0xad3ex55[_0xd3fd[323]]=moment(_0xad3ex56[1],_0xd3fd[322]);}else {_0xad3ex55[_0xd3fd[321]]=null;_0xad3ex55[_0xd3fd[323]]=null;};break ;;case 1:if(_0xad3ex57!==_0xd3fd[320]){_0xad3ex56=_0xad3ex57[_0xd3fd[319]](_0xd3fd[111]);_0xad3ex55[_0xd3fd[324]]=weekDaysCollection[_0xad3ex56[0]];_0xad3ex55[_0xd3fd[325]]=_0xad3ex56[1]?weekDaysCollection[_0xad3ex56[1]]:null;}else {_0xad3ex55[_0xd3fd[324]]=null;_0xad3ex55[_0xd3fd[325]]=null;};break ;;case 2:if(_0xad3ex57!==_0xd3fd[320]){_0xad3ex56=_0xad3ex57[_0xd3fd[319]](_0xd3fd[111]);_0xad3ex55[_0xd3fd[326]]=_0xad3ex56[0];_0xad3ex55[_0xd3fd[327]]=_0xad3ex56[1]?_0xad3ex56[1]:null;}else {_0xad3ex55[_0xd3fd[326]]=null;_0xad3ex55[_0xd3fd[327]]=null;};break ;;case 3:if(_0xad3ex57!==_0xd3fd[320]){_0xad3ex56=_0xad3ex57[_0xd3fd[319]](_0xd3fd[111]);_0xad3ex55[_0xd3fd[328]]=monthsCollection[_0xad3ex56[0]];_0xad3ex55[_0xd3fd[329]]=_0xad3ex56[1]?monthsCollection[_0xad3ex56[1]]:null;}else {_0xad3ex55[_0xd3fd[328]]=null;_0xad3ex55[_0xd3fd[329]]=null;};break ;;default:;}});return _0xad3ex55;}function isIntervalValid(_0xad3ex36){var _0xad3ex59=moment()[_0xd3fd[44]](_0xd3fd[322]);var _0xad3ex5a=moment()[_0xd3fd[44]](_0xd3fd[330]);var _0xad3ex5b=moment()[_0xd3fd[44]](_0xd3fd[331]);var _0xad3ex5c=moment()[_0xd3fd[44]](_0xd3fd[332]);var _0xad3ex5d,_0xad3ex5e,_0xad3ex5f,_0xad3ex60;var _0xad3ex61=[1,2,3,4,5,6,7,8,9,10,11,12];var _0xad3ex62=[1,2,3,4,5,6,7];var _0xad3ex63=[];for(var _0xad3ex64=1;_0xad3ex64<=31;_0xad3ex64++){_0xad3ex63[_0xd3fd[333]](_0xad3ex64)};_0xad3ex5d=(_0xad3ex36[_0xd3fd[321]]&&_0xad3ex36[_0xd3fd[323]])?moment(_0xad3ex59,_0xd3fd[322])[_0xd3fd[334]](moment(_0xad3ex36[_0xd3fd[321]],_0xd3fd[322]),moment(_0xad3ex36[_0xd3fd[323]],_0xd3fd[322])):true;if(_0xad3ex36[_0xd3fd[324]]){if(_0xad3ex36[_0xd3fd[325]]){var _0xad3ex65=_[_0xd3fd[163]](_0xad3ex62,function(_0xad3ex38){return (_0xad3ex38>=_0xad3ex36[_0xd3fd[324]])||(_0xad3ex38<=_0xad3ex36[_0xd3fd[325]])});_0xad3ex5e=(_0xad3ex65[_0xd3fd[335]](parseInt(_0xad3ex5a))!== -1)?true:false;}else {_0xad3ex5e=(parseInt(_0xad3ex5a)===_0xad3ex36[_0xd3fd[324]])?true:false}}else {_0xad3ex5e=true};if(_0xad3ex36[_0xd3fd[326]]){if(_0xad3ex36[_0xd3fd[327]]){var _0xad3ex66=_[_0xd3fd[163]](_0xad3ex63,function(_0xad3ex38){return (_0xad3ex38>=_0xad3ex36[_0xd3fd[326]])||(_0xad3ex38<=_0xad3ex36[_0xd3fd[327]])});_0xad3ex5f=(_0xad3ex66[_0xd3fd[335]](parseInt(_0xad3ex5b))!== -1)?true:false;}else {_0xad3ex5f=(parseInt(_0xad3ex5b)===_0xad3ex36[_0xd3fd[326]])?true:false}}else {_0xad3ex5f=true};if(_0xad3ex36[_0xd3fd[328]]){if(_0xad3ex36[_0xd3fd[329]]){var _0xad3ex67=_[_0xd3fd[163]](_0xad3ex61,function(_0xad3ex38){return (_0xad3ex38>=_0xad3ex36[_0xd3fd[328]])||(_0xad3ex38<=_0xad3ex36[_0xd3fd[329]])});_0xad3ex60=(_0xad3ex67[_0xd3fd[335]](parseInt(_0xad3ex5c))!== -1)?true:false;}else {_0xad3ex60=(parseInt(_0xad3ex5c)===_0xad3ex36[_0xd3fd[328]])?true:false}}else {_0xad3ex60=true};return _0xad3ex5d&&_0xad3ex5e&&_0xad3ex5f&&_0xad3ex60;}function setVariable(_0xad3ex24,_0xad3ex69,_0xad3ex45,_0xad3ex26){console[_0xd3fd[26]](_0xd3fd[336]);if(!variables){getVariables(false)};var _0xad3ex4b=_[_0xd3fd[40]](variables,{id:parseInt(_0xad3ex69)});console[_0xd3fd[26]](_0xd3fd[337],_0xad3ex45);_0xad3ex24[_0xd3fd[29]](util[_0xd3fd[44]](_0xd3fd[155],_0xad3ex4b[_0xd3fd[43]],_0xad3ex45),function(_0xad3ex27,_0xad3ex28){if(_0xad3ex26){_0xad3ex26(_0xad3ex27,_0xad3ex28)}});}function getVariable(_0xad3ex24,_0xad3ex69){if(!variables){getVariables(false)};var _0xad3ex4b=_[_0xd3fd[40]](variables,{id:parseInt(_0xad3ex69)});var _0xad3ex45=wait[_0xd3fd[259]](_0xad3ex24,_0xd3fd[257],_0xad3ex4b[_0xd3fd[43]]);if(_0xad3ex45[_0xd3fd[153]]===200&&_0xad3ex45[_0xd3fd[98]]!==_0xd3fd[108]){return _0xad3ex45[_0xd3fd[98]][_0xd3fd[258]](_0xad3ex45[_0xd3fd[98]][_0xd3fd[261]](_0xd3fd[260])+1,_0xad3ex45[_0xd3fd[98]][_0xd3fd[261]](_0xd3fd[262]))};return _0xd3fd[63];}function getFilePath(_0xad3ex69){if(!sounds){getSounds(false)};if(_0xad3ex69>0){var _0xad3ex6c=_[_0xd3fd[40]](sounds,{id:parseInt(_0xad3ex69)});return util[_0xd3fd[44]](_0xd3fd[338],_0xad3ex6c[_0xd3fd[339]],_0xad3ex6c[_0xd3fd[340]]);};return _0xd3fd[63];}function getUsers(_0xad3ex6e){User[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){users=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(User,users,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getQueues(_0xad3ex6e){VoiceQueue[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){queues=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(VoiceQueue,queues,_0xd3fd[43])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getTrunks(_0xad3ex6e){Trunk[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){trunks=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(Trunk,trunks,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getVariables(_0xad3ex6e){Variable[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){variables=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(Variable,variables,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getDbConnections(_0xad3ex6e){SquareOdbc[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){dbConnections=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(SquareOdbc,dbConnections,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getIntervals(_0xad3ex6e){Interval[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){intervals=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(Interval,intervals,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getProjects(_0xad3ex6e){SquareProject[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){projects=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(SquareProject,projects,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function getSounds(_0xad3ex6e){Upload[_0xd3fd[342]]()[_0xd3fd[316]](function(_0xad3ex2e){sounds=_[_0xd3fd[341]](_0xad3ex2e);if(_0xad3ex6e){synchUpdates(Upload,sounds,_0xd3fd[162])};})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}function synchUpdates(_0xad3ex77,_0xad3ex78,_0xad3ex46){var _0xad3ex79={};_0xad3ex77[_0xd3fd[343]](function(_0xad3ex7a){_0xad3ex79[_0xad3ex46]=_0xad3ex7a[_0xad3ex46];updateCollection(_0xad3ex78,_0xad3ex79,_0xad3ex7a);});_0xad3ex77[_0xd3fd[344]](function(_0xad3ex7a){_0xad3ex79[_0xad3ex46]=_0xad3ex7a[_0xad3ex46];updateCollection(_0xad3ex78,_0xad3ex79,_0xad3ex7a);});_0xad3ex77[_0xd3fd[346]](function(_0xad3ex7a){_0xad3ex79[_0xad3ex46]=_0xad3ex7a[_0xad3ex46];_[_0xd3fd[345]](_0xad3ex78,_0xad3ex79);});}function updateCollection(_0xad3ex78,_0xad3ex79,_0xad3ex7a){var _0xad3ex7c=_[_0xd3fd[40]](_0xad3ex78,_0xad3ex79);var _0xad3ex39=_0xad3ex78[_0xd3fd[335]](_0xad3ex7c);if(_0xad3ex7c){_[_0xd3fd[347]](_0xad3ex78[_0xad3ex39],_0xad3ex7a)}else {_0xad3ex78[_0xd3fd[348]](_0xad3ex7a)};}function getPort(){Settings[_0xd3fd[317]]()[_0xd3fd[316]](function(_0xad3ex2e){agiPort=_0xad3ex2e[_0xd3fd[349]]})[_0xd3fd[102]](function(_0xad3ex27){console[_0xd3fd[26]](_0xad3ex27)})}module[_0xd3fd[350]]=function(){console[_0xd3fd[26]](_0xd3fd[351]);getPort();var _0xad3ex7e=agi[_0xd3fd[353]](main)[_0xd3fd[352]](agiPort?agiPort:4573);getUsers(true);getQueues(true);getTrunks(true);getVariables(true);getIntervals(true);getProjects(true);getSounds(true);getDbConnections(true);};
\ No newline at end of file
+var _0xebff=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x67\x69","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x78\x6D\x6C\x32\x6A\x73","\x77\x61\x69\x74\x2E\x66\x6F\x72","\x73\x69\x6D\x70\x6C\x65\x2D\x72\x61\x6E\x64\x6F\x6D","\x70\x61\x74\x68","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x68\x65\x6C\x6C\x6A\x73","\x6F\x64\x62\x63","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x53\x65\x74\x74\x69\x6E\x67\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x54\x72\x75\x6E\x6B","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x55\x70\x6C\x6F\x61\x64","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C","\x61\x6E\x73\x77\x65\x72","\x2D\x2D\x41\x4E\x53\x57\x45\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6C\x6F\x67","\x41\x6E\x73\x77\x65\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x63\x61\x6C\x6C\x2E\x2E\x2E","\x41\x4E\x53\x57\x45\x52\x0A","\x73\x65\x6E\x64","\x63\x75\x73\x74\x6F\x6D\x5F\x61\x70\x70","\x2D\x2D\x43\x55\x53\x54\x4F\x4D\x20\x41\x50\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x63\x75\x73\x74\x6F\x6D\x20\x61\x70\x70\x20\x22","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x22\x2E\x2E\x2E","\x6F\x70\x74\x69\x6F\x6E\x73","\x65\x78\x65\x63","\x64\x69\x61\x6C","\x2D\x2D\x49\x4E\x54\x45\x52\x4E\x41\x4C\x5F\x44\x49\x41\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x73\x69\x70\x5F\x69\x64","\x66\x69\x6E\x64","\x43\x61\x6C\x6C\x69\x6E\x67\x20","\x53\x49\x50\x2F\x25\x73","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x2E\x2E\x2E","\x74\x69\x6D\x65\x6F\x75\x74","\x6F\x70\x74\x73","\x75\x72\x6C","\x44\x49\x41\x4C","\x2C","\x6A\x6F\x69\x6E","\x65\x78\x74\x5F\x64\x69\x61\x6C","\x2D\x2D\x45\x58\x54\x45\x52\x4E\x41\x4C\x5F\x44\x49\x41\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x74\x72\x75\x6E\x6B\x5F\x69\x64","\x53\x49\x50\x2F\x25\x73\x40\x25\x73","\x70\x68\x6F\x6E\x65","\x71\x75\x65\x75\x65","\x2D\x2D\x51\x55\x45\x55\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x71\x75\x65\x75\x65\x5F\x69\x64","\x66\x69\x6C\x65\x5F\x69\x64","\x6D\x61\x63\x72\x6F","\x67\x6F\x73\x75\x62","","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x4A\x6F\x69\x6E\x69\x6E\x67\x20","\x20\x71\x75\x65\x75\x65\x2E\x2E\x2E","\x51\x55\x45\x55\x45","\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2D\x2D\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x25\x73\x40\x25\x73","\x62\x6F\x78\x6E\x75\x6D\x62\x65\x72","\x63\x6F\x6E\x74\x65\x78\x74","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x2E\x2E\x2E","\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C","\x6D\x61\x74\x68","\x2D\x2D\x4D\x41\x54\x48\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x43\x61\x6C\x63\x75\x6C\x61\x74\x69\x6E\x67\x20\x65\x78\x70\x72\x65\x73\x73\x69\x6F\x6E\x2E\x2E\x2E","\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E","\x53\x61\x76\x69\x6E\x67\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x69\x64","\x70\x6C\x61\x79\x62\x61\x63\x6B","\x2D\x2D\x50\x4C\x41\x59\x42\x41\x43\x4B\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x70\x6C\x61\x79\x62\x61\x63\x6B\x2E\x2E\x2E","\x50\x4C\x41\x59\x42\x41\x43\x4B","\x6D\x65\x6E\x75","\x2D\x2D\x4D\x45\x4E\x55\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x54\x68\x65\x72\x65\x20\x61\x72\x65\x20","\x72\x65\x74\x72\x79","\x20\x72\x65\x74\x72\x69\x65\x73","\x2F\x76\x61\x72\x2F\x77\x77\x77\x2F\x68\x74\x6D\x6C\x2F\x66\x69\x6C\x65\x73\x2F\x73\x6F\x75\x6E\x64\x73\x2F\x62\x31\x39\x36\x34\x32\x64\x32\x66\x37\x31\x65\x39\x63\x66\x66\x66\x62\x64\x37\x38\x33\x66\x63\x63\x37\x39\x63\x37\x34\x31\x35","\x41\x6E\x6E\x6F\x75\x6E\x63\x69\x6E\x67\x20\x61\x6E\x64\x20\x77\x61\x69\x74\x69\x6E\x67\x20\x66\x6F\x72\x20\x75\x73\x65\x72\x20\x65\x6E\x74\x72\x79\x2E\x2E\x2E","\x47\x45\x54\x20\x44\x41\x54\x41\x20\x25\x73\x20\x25\x73\x20\x25\x73\x0A","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x64\x69\x67\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x61\x62\x65\x6C","\x74\x61\x67","\x72\x65\x73\x75\x6C\x74","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20","\x3A","\x20\x62\x6C\x6F\x63\x6B\x20\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x63\x72\x65\x61\x74\x65","\x20\x28\x74\x69\x6D\x65\x6F\x75\x74\x29","\x53\x61\x76\x69\x6E\x67\x20\x75\x73\x65\x72\x20\x65\x6E\x74\x72\x79\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x64\x61\x74\x61","\x4D\x65\x6E\x75\x20\x74\x69\x6D\x65\x6F\x75\x74\x21","\x30","\x74","\x52\x75\x6E\x20\x6F\x75\x74\x20\x6F\x66\x20\x72\x65\x74\x72\x69\x65\x73\x21","\x2D","\x73\x61\x79\x6E\x75\x6D\x62\x65\x72","\x2D\x2D\x53\x41\x59\x4E\x55\x4D\x42\x45\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x6E\x75\x6D\x62\x65\x72\x2E\x2E\x2E","\x53\x41\x59\x20\x4E\x55\x4D\x42\x45\x52\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x6E\x75\x6D\x62\x65\x72","\x65\x73\x63\x61\x70\x65\x5F\x64\x69\x67\x69\x74\x73","\x73\x61\x79\x70\x68\x6F\x6E\x65\x74\x69\x63","\x2D\x2D\x53\x41\x59\x50\x48\x4F\x4E\x45\x54\x49\x43\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x70\x68\x6F\x6E\x65\x74\x69\x63\x2E\x2E\x2E","\x53\x41\x59\x20\x50\x48\x4F\x4E\x45\x54\x49\x43\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x74\x65\x78\x74","\x74\x74\x73","\x2D\x2D\x47\x4F\x4F\x47\x4C\x45\x5F\x54\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x61\x67\x69\x5F\x73\x63\x72\x69\x70\x74\x73","\x67\x6F\x6F\x67\x6C\x65\x74\x74\x73\x2E\x61\x67\x69","\x67\x6F\x6F\x67\x6C\x65\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x47\x6F\x6F\x67\x6C\x65\x20\x54\x54\x53\x20\x41\x50\x49\x2E\x2E\x2E","\x41\x47\x49","\x69\x73\x70\x65\x65\x63\x68\x74\x74\x73","\x2D\x2D\x49\x53\x50\x45\x45\x43\x48\x5F\x54\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x2F\x76\x61\x72\x2F\x77\x77\x77\x2F\x68\x74\x6D\x6C\x2F\x61\x67\x69\x73\x71\x75\x61\x72\x65\x2F\x61\x67\x69\x73\x63\x72\x69\x70\x74\x73\x2F\x69\x73\x70\x65\x65\x63\x68\x2D\x74\x74\x73\x2E\x61\x67\x69","\x69\x73\x70\x65\x65\x63\x68\x5F\x74\x74\x73\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x6B\x65\x79","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x69\x53\x70\x65\x65\x63\x68\x20\x54\x54\x53\x20\x41\x50\x49\x2E\x2E\x2E","\x67\x65\x74\x64\x69\x67\x69\x74\x73","\x2D\x2D\x47\x45\x54\x44\x49\x47\x49\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6D\x61\x78\x64\x69\x67\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x69\x6E\x64\x69\x67\x69\x74","\x2D\x31","\x54\x68\x65\x72\x65\x20\x69\x73\x20\x61\x20\x72\x65\x73\x75\x6C\x74\x2C\x20\x69\x73\x20\x6F\x76\x65\x72\x20\x74\x68\x65\x20\x6D\x69\x6E\x69\x6D\x75\x6D\x20\x6C\x65\x6E\x67\x74\x68\x20\x61\x6E\x64\x20\x6E\x6F\x74\x20\x64\x75\x65\x20\x74\x6F\x20\x61\x6E\x20\x68\x61\x6E\x67\x75\x70\x21","\x78","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x68\x61\x6E\x67\x75\x70\x21","\x4E\x6F\x20\x65\x6E\x74\x72\x79\x20\x6F\x72\x20\x6E\x6F\x74\x20\x6C\x6F\x6E\x67\x20\x65\x6E\x6F\x75\x67\x68\x21","\x69","\x72\x65\x63\x6F\x72\x64","\x2D\x2D\x52\x45\x43\x4F\x52\x44\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x63\x61\x6C\x6C\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x2E\x2E\x2E","\x52\x45\x43\x4F\x52\x44\x20\x46\x49\x4C\x45\x20\x25\x73\x20\x77\x61\x76\x20\x22\x25\x73\x22\x20\x25\x73\x20\x25\x73\x20\x25\x73\x20\x25\x73\x0A","\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73","\x63\x6F\x64\x65","\x53\x61\x76\x69\x6E\x67\x20\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x66\x69\x6C\x65\x6E\x61\x6D\x65\x20\x69\x6E\x20\x52\x45\x43\x4F\x52\x44\x49\x4E\x47\x5F\x53\x41\x56\x45\x4E\x41\x4D\x45\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x53\x45\x54\x20\x56\x41\x52\x49\x41\x42\x4C\x45\x20\x25\x73\x20\x25\x73\x0A","\x52\x45\x43\x4F\x52\x44\x49\x4E\x47\x5F\x53\x41\x56\x45\x4E\x41\x4D\x45","\x67\x6F\x74\x6F\x69\x66\x74\x69\x6D\x65","\x2D\x2D\x47\x4F\x54\x4F\x49\x46\x54\x49\x4D\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x66\x61\x6C\x73\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x5F\x69\x64","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x69\x64","\x66\x69\x6C\x74\x65\x72","\x49\x73\x20\x61\x20\x67\x72\x6F\x75\x70\x20\x6F\x66\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x21","\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x21","\x43\x68\x65\x63\x6B\x69\x6E\x67\x20\x69\x66\x20\x61\x74\x20\x6C\x65\x61\x73\x74\x20\x6F\x6E\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x2E\x2E\x2E","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x49\x6E\x74\x65\x72\x76\x61\x6C\x20","\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x21","\x74\x72\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x54\x68\x65\x72\x65\x20\x61\x72\x65\x20\x6E\x6F\x20\x73\x75\x62\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x2C\x20\x73\x6F\x20\x69\x74\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x61\x6C\x77\x61\x79\x73\x20\x74\x72\x75\x65\x21","\x49\x73\x20\x61\x20\x73\x69\x6E\x67\x6C\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x21","\x54\x68\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x69\x73\x20\x76\x61\x6C\x69\x64\x21","\x54\x68\x65\x20\x66\x69\x6E\x61\x6C\x20\x72\x65\x73\x75\x6C\x74\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x20\x69\x73\x20\x22","\x22\x21","\x76\x73\x77\x69\x74\x63\x68","\x2D\x2D\x56\x41\x52\x49\x41\x42\x4C\x45\x5F\x53\x57\x49\x54\x43\x48\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x47\x65\x74\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x76\x61\x6C\x75\x65\x20\x61\x6E\x64\x20\x73\x65\x61\x72\x63\x68\x69\x6E\x67\x20\x74\x68\x65\x20\x72\x69\x67\x68\x74\x20\x65\x78\x69\x74\x2E\x2E\x2E","\x73\x79\x73\x74\x65\x6D","\x2D\x2D\x53\x59\x53\x54\x45\x4D\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x63\x6F\x6D\x6D\x61\x6E\x64","\x74\x72\x69\x6D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x73\x79\x73\x74\x65\x6D\x20\x63\x6F\x6D\x6D\x61\x6E\x64\x2E\x2E\x2E","\x72\x65\x70\x6C\x61\x63\x65","\x50\x72\x6F\x67\x72\x61\x6D\x20\x6F\x75\x74\x70\x75\x74\x3A","\x53\x61\x76\x69\x6E\x67\x20\x74\x68\x65\x20\x6F\x75\x74\x70\x75\x74\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x22","\x2D\x2D\x41\x47\x49\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x47\x49\x20\x63\x6F\x6D\x6D\x61\x6E\x64\x2E\x2E\x2E","\x61\x72\x67\x73","\x73\x75\x62\x70\x72\x6F\x6A\x65\x63\x74","\x2D\x2D\x53\x55\x42\x50\x52\x4F\x4A\x45\x43\x54\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x70\x72\x6F\x6A\x65\x63\x74\x5F\x69\x64","\x4D\x6F\x76\x69\x6E\x67\x20\x74\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x22\x22","\x61\x67\x69\x3A\x2F\x2F\x31\x39\x32\x2E\x31\x36\x38\x2E\x32\x2E\x31\x34\x37\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x69\x73\x70\x65\x65\x63\x68\x61\x73\x72","\x2D\x2D\x49\x53\x50\x45\x45\x43\x48\x5F\x41\x53\x52\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x69\x73\x70\x65\x65\x63\x68\x2D\x61\x73\x72\x2E\x61\x67\x69","\x69\x73\x70\x65\x65\x63\x68\x5F\x61\x73\x72\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x6D\x6F\x64\x65\x6C","\x31","\x23","\x43\x61\x6C\x6C\x69\x6E\x67\x20\x47\x6F\x6F\x67\x6C\x65\x20\x41\x53\x52\x20\x41\x50\x49\x2E\x2E\x2E","\x64\x61\x74\x61\x62\x61\x73\x65","\x2D\x2D\x44\x41\x54\x41\x42\x41\x53\x45\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6F\x64\x62\x63\x5F\x69\x64","\x54\x72\x79\x69\x6E\x67\x20\x74\x6F\x20\x67\x65\x74\x20\x4F\x44\x42\x43\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\x2E\x2E","\x71\x75\x65\x72\x79","\x64\x73\x6E","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x6F\x70\x65\x6E\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x3A\x20","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x73\x75\x63\x63\x65\x64\x65\x64\x2C\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x2E\x2E\x2E","\x51\x75\x65\x72\x79\x20\x65\x72\x72\x6F\x72\x3A\x20","\x51\x75\x65\x72\x79\x20\x65\x78\x65\x63\x75\x74\x65\x64\x2C\x20\x63\x6C\x6F\x73\x69\x6E\x67\x20\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x2E\x2E\x2E","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x63\x6C\x6F\x73\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x3A\x20","\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x20\x63\x6C\x6F\x73\x65\x64\x2C\x20\x73\x61\x76\x69\x6E\x67\x20\x72\x65\x73\x75\x6C\x74\x69\x6E\x67\x20\x72\x6F\x77\x73\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x63\x6C\x6F\x73\x65","\x6F\x70\x65\x6E","\x67\x6F\x74\x6F\x63","\x2D\x2D\x47\x4F\x54\x4F\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x47\x6F\x69\x6E\x67\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x20\x2E\x2E\x2E","\x4C\x6F\x63\x61\x6C\x2F\x25\x73\x40\x25\x73","\x67\x6F\x74\x6F\x69\x66","\x2D\x2D\x47\x4F\x54\x4F\x49\x46\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x45\x76\x61\x6C\x75\x61\x74\x69\x6E\x67\x20\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x2E\x2E","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x54\x68\x65\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x73\x20","\x68\x61\x6E\x67\x75\x70","\x2D\x2D\x48\x41\x4E\x47\x55\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x48\x61\x6E\x67\x69\x6E\x20\x75\x70\x20\x74\x68\x65\x20\x63\x61\x6C\x6C\x2E\x2E\x2E","\x6E\x6F\x6F\x70","\x2D\x2D\x4E\x4F\x4F\x50\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x6F\x75\x74\x70\x75\x74","\x4E\x4F\x4F\x50\x20\x76\x61\x6C\x75\x65\x20\x69\x73\x20","\x4E\x4F\x4F\x50","\x73\x61\x79\x64\x69\x67\x69\x74\x73","\x2D\x2D\x53\x41\x59\x44\x49\x47\x49\x54\x53\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x79\x69\x6E\x67\x20\x64\x69\x67\x69\x74\x73\x2E\x2E\x2E","\x53\x41\x59\x20\x44\x49\x47\x49\x54\x53\x20\x25\x73\x20\x22\x25\x73\x22\x0A","\x64\x69\x67\x69\x74\x73","\x73\x65\x74","\x2D\x2D\x53\x45\x54\x20\x42\x4C\x4F\x43\x4B\x2D\x2D","\x53\x61\x76\x69\x6E\x67\x20\x76\x61\x6C\x75\x65\x20\x69\x6E\x20\x61\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x76\x61\x72\x69\x61\x62\x6C\x65\x5F\x76\x61\x6C\x75\x65","\x6D\x78\x63\x65\x6C\x6C","\x69\x73\x41\x72\x72\x61\x79","\x24","\x66\x6F\x72\x49\x6E","\x72\x65\x64\x75\x63\x65","\x65\x64\x67\x65","\x73\x6F\x75\x72\x63\x65","\x76\x61\x6C\x75\x65","\x24\x2E\x74\x61\x72\x67\x65\x74","\x6D\x61\x74\x63\x68","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x66\x6F\x72\x4D\x65\x74\x68\x6F\x64","\x28","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x29","\x72\x65\x70\x6C\x61\x63\x65\x64","\x76\x65\x72\x74\x69\x63\x65\x73","\x73\x74\x61\x72\x74","\x69\x73\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x66\x6F\x72","\x4E\x6F\x20\x74\x61\x72\x67\x65\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x68\x61\x6E\x67\x75\x70\x21","\x66\x69\x6E\x61\x6C\x6C\x79","\x4E\x6F\x20\x74\x61\x72\x67\x65\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x73\x74\x6F\x70\x70\x69\x6E\x67\x20\x22\x46\x69\x6E\x61\x6C\x6C\x79\x22\x20\x62\x72\x61\x6E\x63\x68\x21","\x65\x6E\x64","\x65\x72\x72\x6F\x72","\x2F\x2F\x45\x72\x72\x6F\x72\x3A","\x6F\x6E","\x2F\x2F\x43\x6F\x6E\x74\x65\x78\x74\x20\x63\x6C\x6F\x73\x65","\x2F\x2F\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x22\x46\x69\x6E\x61\x6C\x6C\x79\x22\x20\x62\x72\x61\x6E\x63\x68\x21","\x6C\x61\x75\x6E\x63\x68\x46\x69\x62\x65\x72","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x65\x78\x69\x74\x20\x74\x69\x6D\x65\x20\x66\x72\x6F\x6D\x20\x49\x56\x52","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x75\x70\x64\x61\x74\x65","\x2F\x2F\x43\x6F\x6E\x74\x65\x78\x74\x20\x48\x61\x6E\x67\x75\x70","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x52\x65\x63\x65\x69\x76\x65\x64\x20\x6E\x65\x77\x20\x63\x61\x6C\x6C\x20\x66\x72\x6F\x6D\x3A\x20","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x65\x72\x69\x64","\x20\x77\x69\x74\x68\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x3A\x20","\x61\x67\x69\x5F\x75\x6E\x69\x71\x75\x65\x69\x64","\x61\x67\x69\x5F\x6E\x65\x74\x77\x6F\x72\x6B","\x61\x67\x69\x5F\x6E\x65\x74\x77\x6F\x72\x6B\x5F\x73\x63\x72\x69\x70\x74","\x61\x67\x69\x5F\x72\x65\x71\x75\x65\x73\x74","\x61\x67\x69\x5F\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x67\x69\x5F\x6C\x61\x6E\x67\x75\x61\x67\x65","\x61\x67\x69\x5F\x74\x79\x70\x65","\x61\x67\x69\x5F\x76\x65\x72\x73\x69\x6F\x6E","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x70\x72\x65\x73","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x61\x6E\x69\x32","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x74\x6F\x6E","\x61\x67\x69\x5F\x63\x61\x6C\x6C\x69\x6E\x67\x74\x6E\x73","\x61\x67\x69\x5F\x64\x6E\x69\x64","\x61\x67\x69\x5F\x72\x64\x6E\x69\x73","\x61\x67\x69\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x61\x67\x69\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x67\x69\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x67\x69\x5F\x65\x6E\x68\x61\x6E\x63\x65\x64","\x61\x67\x69\x5F\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x61\x67\x69\x5F\x74\x68\x72\x65\x61\x64\x69\x64","\x61\x67\x69\x5F\x61\x72\x67\x5F\x31","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x65\x6E\x74\x65\x72\x20\x74\x69\x6D\x65\x20\x66\x6F\x72\x20\x49\x56\x52","\x45\x72\x72\x6F\x72\x3A","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x6D\x78\x67\x72\x61\x70\x68\x6D\x6F\x64\x65\x6C","\x4E\x6F\x20\x72\x6F\x6F\x74\x20\x69\x6E\x20\x70\x72\x6F\x6A\x65\x63\x74\x21","\x70\x61\x72\x73\x65\x53\x74\x72\x69\x6E\x67","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x70\x75\x62\x6C\x69\x73\x68\x65\x64\x21","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x66\x6F\x75\x6E\x64\x21","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x4E\x6F\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x61\x72\x67\x75\x6D\x65\x6E\x74\x21","\x73\x70\x6C\x69\x74","\x2A","\x74\x5F\x66\x72\x6F\x6D","\x48\x48\x3A\x6D\x6D","\x74\x5F\x74\x6F","\x77\x64\x5F\x66\x72\x6F\x6D","\x77\x64\x5F\x74\x6F","\x6D\x64\x5F\x66\x72\x6F\x6D","\x6D\x64\x5F\x74\x6F","\x6D\x5F\x66\x72\x6F\x6D","\x6D\x5F\x74\x6F","\x45","\x44","\x4D","\x70\x75\x73\x68","\x69\x73\x42\x65\x74\x77\x65\x65\x6E","\x69\x6E\x64\x65\x78\x4F\x66","\x53\x65\x74\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x2E\x2E","\x53\x65\x6E\x64\x69\x6E\x67\x20\x73\x65\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x2C\x20\x76\x61\x6C\x75\x65\x20\x69\x73\x20","\x25\x73\x2F\x25\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x5F\x70\x61\x74\x68","\x73\x61\x76\x65\x5F\x6E\x61\x6D\x65","\x63\x6C\x6F\x6E\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74","\x61\x67\x69\x5F\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65\x20\x41\x47\x49\x2E\x2E\x2E","\x6C\x69\x73\x74\x65\x6E","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72"];_0xebff[0];var _=require(_0xebff[1]);var agi=require(_0xebff[2]);var util=require(_0xebff[3]);var moment=require(_0xebff[4]);var xml=require(_0xebff[5]);var wait=require(_0xebff[6]);var sr=require(_0xebff[7]);var path=require(_0xebff[8]);var config=require(_0xebff[9]);var sh=require(_0xebff[10]);var db=require(_0xebff[11])();var SquareProject=require(_0xebff[13])[_0xebff[12]];var Variable=require(_0xebff[13])[_0xebff[14]];var SquareOdbc=require(_0xebff[13])[_0xebff[15]];var Settings=require(_0xebff[13])[_0xebff[16]];var User=require(_0xebff[13])[_0xebff[17]];var VoiceQueue=require(_0xebff[13])[_0xebff[18]];var Trunk=require(_0xebff[13])[_0xebff[19]];var Interval=require(_0xebff[13])[_0xebff[20]];var Upload=require(_0xebff[13])[_0xebff[21]];var ReportSquare=require(_0xebff[13])[_0xebff[22]];var ReportSquareDetail=require(_0xebff[13])[_0xebff[23]];var users,trunks,variables,intervals,projects,sounds,queues,dbConnections,generalUniqueId;var agiPort;var weekDaysCollection={mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7};var monthsCollection={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12};var methods={};methods[_0xebff[24]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[25]);console[_0xebff[26]](_0xebff[27]);_0xa970x24[_0xebff[29]](_0xebff[28],function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[30]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[31]);console[_0xebff[26]](_0xebff[32]+_0xa970x25[_0xebff[33]]+_0xebff[34]);_0xa970x24[_0xebff[36]](_0xa970x25[_0xebff[33]],_0xa970x25[_0xebff[35]],function(_0xa970x27,_0xa970x28){if(_0xa970x26){_0xa970x26(_0xa970x27,_0xa970x28)}});};methods[_0xebff[37]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[38]);if(!users){getUsers(false)};var _0xa970x29=_[_0xebff[40]](users,{id:parseInt(_0xa970x25[_0xebff[39]])});console[_0xebff[26]](_0xebff[41]+util[_0xebff[44]](_0xebff[42],_0xa970x29[_0xebff[43]])+_0xebff[45]);var _0xa970x2a=[util[_0xebff[44]](_0xebff[42],_0xa970x29[_0xebff[43]]),_0xa970x25[_0xebff[46]],_0xa970x25[_0xebff[47]],_0xa970x25[_0xebff[48]]];_0xa970x24[_0xebff[36]](_0xebff[49],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[52]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[53]);if(!trunks){getTrunks(false)};var _0xa970x2b=_[_0xebff[40]](trunks,{id:parseInt(_0xa970x25[_0xebff[54]])});console[_0xebff[26]](_0xebff[41]+util[_0xebff[44]](_0xebff[42],_0xa970x2b[_0xebff[43]])+_0xebff[45]);var _0xa970x2a=[util[_0xebff[44]](_0xebff[55],_0xa970x25[_0xebff[56]],_0xa970x2b[_0xebff[43]]),_0xa970x25[_0xebff[46]],_0xa970x25[_0xebff[47]],_0xa970x25[_0xebff[48]]];_0xa970x24[_0xebff[36]](_0xebff[49],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[57]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[58]);if(!queues){getQueues(false)};var _0xa970x2c=_[_0xebff[40]](queues,{name:_0xa970x25[_0xebff[59]]});var _0xa970x2d=getFilePath(_0xa970x25[_0xebff[60]]);var _0xa970x2a=[_0xa970x2c[_0xebff[43]],_0xa970x25[_0xebff[47]],_0xa970x25[_0xebff[48]],_0xa970x2d,_0xa970x25[_0xebff[46]],_0xa970x25[_0xebff[2]],_0xa970x25[_0xebff[61]],_0xa970x25[_0xebff[62]],_0xebff[63],_0xa970x25[_0xebff[64]]];console[_0xebff[26]](_0xebff[65]+_0xa970x2c[_0xebff[43]]+_0xebff[66]);_0xa970x24[_0xebff[36]](_0xebff[67],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[68]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[69]);var _0xa970x2a=[util[_0xebff[44]](_0xebff[70],_0xa970x25[_0xebff[71]],_0xa970x25[_0xebff[72]]),_0xa970x25[_0xebff[47]]];console[_0xebff[26]](_0xebff[73]);_0xa970x24[_0xebff[36]](_0xebff[74],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[75]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[76]);console[_0xebff[26]](_0xebff[77]);var _0xa970x2e=eval(_0xa970x25[_0xebff[78]]);console[_0xebff[26]](_0xebff[79]);setVariable(_0xa970x24,_0xa970x25[_0xebff[80]],_0xa970x2e,_0xa970x26);};methods[_0xebff[81]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[82]);var _0xa970x2f=getFilePath(_0xa970x25[_0xebff[60]]);var _0xa970x2a=[_0xa970x2f,_0xa970x25[_0xebff[47]]];console[_0xebff[26]](_0xebff[83]);_0xa970x24[_0xebff[36]](_0xebff[84],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[85]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[86]);var _0xa970x28={};console[_0xebff[26]](_0xebff[87]+_0xa970x25[_0xebff[88]]+_0xebff[89]);if(_0xa970x25[_0xebff[88]]>0){_0xa970x25[_0xebff[88]]--;var _0xa970x30=_0xebff[90];console[_0xebff[26]](_0xebff[91]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[92],_0xa970x30,parseInt(_0xa970x25[_0xebff[93]])*1000,_0xa970x25[_0xebff[94]]),function(_0xa970x27,_0xa970x28){var _0xa970x31={uniqueid:_0xa970x24[_0xebff[95]],node:_0xa970x25[_0xebff[96]],application:_0xa970x25[_0xebff[97]],data:_0xa970x28[_0xebff[98]]||null};ReportSquareDetail[_0xebff[103]](_0xa970x31)[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[99]+_0xa970x25[_0xebff[97]]+_0xebff[100]+_0xa970x25[_0xebff[96]]+_0xebff[101],_0xa970x27)});if(_0xa970x28[_0xebff[98]]!==_0xebff[104]){var _0xa970x32=parseInt(_0xa970x25[_0xebff[80]]);if(_0xa970x32){console[_0xebff[26]](_0xebff[105]);setVariable(_0xa970x24,_0xa970x32,_0xa970x28[_0xebff[98]]);};_0xa970x28[_0xebff[106]]=_0xa970x28[_0xebff[98]];_0xa970x26(null,_0xa970x28);}else {console[_0xebff[26]](_0xebff[107]);_0xa970x28={code:200,result:_0xebff[108],data:_0xebff[109]};_0xa970x26(null,_0xa970x28);};});}else {console[_0xebff[26]](_0xebff[110]);_0xa970x28={code:200,result:_0xebff[108],data:_0xebff[111]};_0xa970x26(null,_0xa970x28);};};methods[_0xebff[112]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[113]);console[_0xebff[26]](_0xebff[114]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[115],_0xa970x25[_0xebff[116]],_0xa970x25[_0xebff[117]]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[118]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[119]);console[_0xebff[26]](_0xebff[120]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[121],_0xa970x25[_0xebff[122]],_0xa970x25[_0xebff[117]]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[123]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[124]);var _0xa970x2a=[path[_0xebff[51]](config[_0xebff[125]],_0xebff[126],_0xebff[127]),encodeURIComponent(_0xa970x25[_0xebff[122]]),_0xa970x25[_0xebff[128]]];console[_0xebff[26]](_0xebff[129]);_0xa970x24[_0xebff[36]](_0xebff[130],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[131]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[132]);var _0xa970x2a=[_0xebff[133],encodeURIComponent(_0xa970x25[_0xebff[122]]),_0xa970x25[_0xebff[134]],_0xebff[63],_0xebff[63],_0xa970x25[_0xebff[135]]];console[_0xebff[26]](_0xebff[136]);_0xa970x24[_0xebff[36]](_0xebff[130],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[137]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[138]);var _0xa970x28={};console[_0xebff[26]](_0xebff[87]+_0xa970x25[_0xebff[88]]+_0xebff[89]);if(_0xa970x25[_0xebff[88]]>0){_0xa970x25[_0xebff[88]]--;var _0xa970x30=getFilePath(_0xa970x25[_0xebff[60]]);console[_0xebff[26]](_0xebff[91]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[92],_0xa970x30,parseInt(_0xa970x25[_0xebff[93]])*1000,_0xa970x25[_0xebff[139]]),function(_0xa970x27,_0xa970x28){var _0xa970x31={uniqueid:_0xa970x24[_0xebff[95]],node:_0xa970x25[_0xebff[96]],application:_0xa970x25[_0xebff[97]],data:_0xa970x28[_0xebff[98]]||null};ReportSquareDetail[_0xebff[103]](_0xa970x31)[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[99]+_0xa970x25[_0xebff[97]]+_0xebff[100]+_0xa970x25[_0xebff[96]]+_0xebff[101],_0xa970x27)});if(_0xa970x28[_0xebff[98]]&&_0xa970x28[_0xebff[98]][_0xebff[140]]>=parseInt(_0xa970x25[_0xebff[141]])){if(_0xa970x28[_0xebff[98]]!==_0xebff[142]){console[_0xebff[26]](_0xebff[143]);var _0xa970x32=parseInt(_0xa970x25[_0xebff[80]]);if(_0xa970x32){console[_0xebff[26]](_0xebff[105]);setVariable(_0xa970x24,_0xa970x32,_0xa970x28[_0xebff[98]]);};_0xa970x28={code:200,result:_0xebff[108],data:_0xebff[144]};_0xa970x26(null,_0xa970x28);}else {console[_0xebff[26]](_0xebff[145]);_0xa970x28={code:500,result:_0xebff[142]};_0xa970x26(null,_0xa970x28);}}else {console[_0xebff[26]](_0xebff[146]);_0xa970x28={code:200,result:_0xebff[108],data:_0xebff[147]};_0xa970x26(null,_0xa970x28);};});}else {console[_0xebff[26]](_0xebff[110]);_0xa970x28={code:500,result:_0xebff[142]};_0xa970x26(null,_0xa970x28);};};methods[_0xebff[148]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[149]);var _0xa970x33=sr();console[_0xebff[26]](_0xebff[150]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[151],path[_0xebff[51]](config[_0xebff[125]],_0xebff[152],_0xa970x33),_0xa970x25[_0xebff[117]],_0xa970x25[_0xebff[46]],null,true,null),function(_0xa970x27,_0xa970x28){if(_0xa970x28[_0xebff[153]]===200&&_0xa970x28[_0xebff[98]]!==_0xebff[142]){console[_0xebff[26]](_0xebff[154]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[155],_0xebff[156],_0xa970x33),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});}else {_0xa970x26(_0xa970x27,_0xa970x28)}});};methods[_0xebff[157]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[158]);var _0xa970x28;var _0xa970x34=_0xebff[159];var _0xa970x35;if(!intervals){getIntervals(false)};var _0xa970x36=_[_0xebff[40]](intervals,{id:parseInt(_0xa970x25[_0xebff[160]])});if(!_0xa970x36[_0xebff[161]]){_0xa970x35=_[_0xebff[163]](intervals,{IntervalId:parseInt(_0xa970x36[_0xebff[162]])})};if(_0xa970x35){console[_0xebff[26]](_0xebff[164]);if(_0xa970x35[_0xebff[140]]){console[_0xebff[26]](_0xebff[87]+_0xa970x35[_0xebff[140]]+_0xebff[165]);var _0xa970x37;console[_0xebff[26]](_0xebff[166]);_0xa970x35[_0xebff[171]](function(_0xa970x38,_0xa970x39){_0xa970x37=splitInterval(_0xa970x38[_0xebff[167]]);if(isIntervalValid(_0xa970x37)){console[_0xebff[26]](_0xebff[168]+_0xa970x39+_0xebff[169]);_0xa970x34=_0xebff[170];};});}else {console[_0xebff[26]](_0xebff[172]);_0xa970x34=_0xebff[170];};}else {console[_0xebff[26]](_0xebff[173]);var _0xa970x3a=splitInterval(_0xa970x36[_0xebff[167]]);if(isIntervalValid(_0xa970x3a)){console[_0xebff[26]](_0xebff[174]);_0xa970x34=_0xebff[170];};};console[_0xebff[26]](_0xebff[175]+_0xa970x34+_0xebff[176]);_0xa970x28={code:200,result:_0xebff[108],data:_0xa970x34};_0xa970x26(null,_0xa970x28);};methods[_0xebff[177]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[178]);console[_0xebff[26]](_0xebff[179]);var _0xa970x28={data:getVariable(_0xa970x24,_0xa970x25[_0xebff[80]])};_0xa970x26(null,_0xa970x28);};methods[_0xebff[180]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[181]);var _0xa970x31={uniqueid:_0xa970x24[_0xebff[95]],node:_0xa970x25[_0xebff[96]],application:_0xa970x25[_0xebff[97]],data:_[_0xebff[183]](_0xa970x25[_0xebff[182]])||null};ReportSquareDetail[_0xebff[103]](_0xa970x31)[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[99]+_0xa970x25[_0xebff[97]]+_0xebff[100]+_0xa970x25[_0xebff[96]]+_0xebff[101],_0xa970x27)});console[_0xebff[26]](_0xebff[184]);sh[_0xebff[36]](_[_0xebff[183]](_0xa970x25[_0xebff[182]]),function(_0xa970x3b,_0xa970x3c){var _0xa970x3d=_0xa970x3c[_0xebff[185]](/(\r\n|\n|\r)/gm,_0xebff[63]);console[_0xebff[26]](_0xebff[186],_0xa970x3d);console[_0xebff[26]](_0xebff[187]);setVariable(_0xa970x24,_0xa970x25[_0xebff[80]],_0xebff[188]+_0xa970x3d+_0xebff[188],_0xa970x26);});};methods[_0xebff[2]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[189]);console[_0xebff[26]](_0xebff[190]);_0xa970x24[_0xebff[36]](_0xebff[130],_0xa970x25[_0xebff[182]],_0xa970x25[_0xebff[191]],function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[192]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[193]);if(!projects){getProjects(false)};var _0xa970x3e=_[_0xebff[40]](projects,{id:parseInt(_0xa970x25[_0xebff[194]])});console[_0xebff[26]](_0xebff[195]+_0xa970x3e[_0xebff[43]]+_0xebff[34]);_0xa970x24[_0xebff[36]](_0xebff[130],util[_0xebff[44]](_0xebff[196],_0xa970x3e[_0xebff[43]]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[197]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[198]);var _0xa970x2a=[path[_0xebff[51]](config[_0xebff[125]],_0xebff[126],_0xebff[199]),_0xa970x25[_0xebff[200]],_0xebff[63],(_0xa970x25[_0xebff[201]]===_0xebff[108]?_0xebff[63]:_0xa970x25[_0xebff[201]]),_0xebff[202],_0xebff[203],_0xebff[63],_0xa970x25[_0xebff[135]]];console[_0xebff[26]](_0xebff[204]);_0xa970x24[_0xebff[36]](_0xebff[130],_0xa970x2a[_0xebff[51]](_0xebff[50]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[205]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[206]);if(!dbConnections){getDbConnections(false)};var _0xa970x3f=_[_0xebff[40]](dbConnections,{id:parseInt(_0xa970x25[_0xebff[207]])});console[_0xebff[26]](_0xebff[208]);var _0xa970x31={uniqueid:_0xa970x24[_0xebff[95]],node:_0xa970x25[_0xebff[96]],application:_0xa970x25[_0xebff[97]],data:_0xa970x25[_0xebff[209]]||null};ReportSquareDetail[_0xebff[103]](_0xa970x31)[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[99]+_0xa970x25[_0xebff[97]]+_0xebff[100]+_0xa970x25[_0xebff[96]]+_0xebff[101],_0xa970x27)});db[_0xebff[218]](_0xa970x3f[_0xebff[210]],function(_0xa970x27){if(_0xa970x27){console[_0xebff[26]](_0xebff[211],_0xa970x27);var _0xa970x28={code:500,result:_0xebff[142]};_0xa970x26(null,_0xa970x28);}else {console[_0xebff[26]](_0xebff[212]);db[_0xebff[209]](_0xa970x25[_0xebff[209]],function(_0xa970x27,_0xa970x40){if(_0xa970x27){console[_0xebff[26]](_0xebff[213],_0xa970x27);var _0xa970x28={code:500,result:_0xebff[142]};_0xa970x26(null,_0xa970x28);}else {console[_0xebff[26]](_0xebff[214]);db[_0xebff[217]](function(_0xa970x27){if(_0xa970x27){console[_0xebff[26]](_0xebff[215],_0xa970x27);var _0xa970x28={code:500,result:_0xebff[142]};_0xa970x26(null,_0xa970x28);}else {console[_0xebff[26]](_0xebff[216]);setVariable(_0xa970x24,_0xa970x25[_0xebff[80]],_0xa970x40,_0xa970x26);}});}});}});};methods[_0xebff[219]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[220]);console[_0xebff[26]](_0xebff[221]+_0xa970x25[_0xebff[222]]+_0xebff[223]);_0xa970x24[_0xebff[36]](_0xebff[49],util[_0xebff[44]](_0xebff[224],_0xa970x25[_0xebff[222]],_0xa970x25[_0xebff[72]]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[225]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[226]);var _0xa970x28={code:200,result:_0xebff[108]};console[_0xebff[26]](_0xebff[227]);_0xa970x28[_0xebff[106]]=String(eval(_0xa970x25[_0xebff[228]])?_0xebff[170]:_0xebff[159]);console[_0xebff[26]](_0xebff[229]+_0xa970x28[_0xebff[106]]);_0xa970x26(null,_0xa970x28);};methods[_0xebff[230]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[231]);console[_0xebff[26]](_0xebff[232]);_0xa970x24[_0xebff[230]]();};methods[_0xebff[233]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[234]);var _0xa970x3c=(_0xa970x25[_0xebff[235]])?_0xebff[188]+_0xa970x25[_0xebff[235]]+_0xebff[188]:_0xebff[188]+_0xa970x25[_0xebff[96]]+_0xebff[188];console[_0xebff[26]](_0xebff[236]+_0xa970x3c);_0xa970x24[_0xebff[36]](_0xebff[237],_0xa970x3c,function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[238]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[239]);console[_0xebff[26]](_0xebff[240]);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[241],_0xa970x25[_0xebff[242]],_0xa970x25[_0xebff[117]]),function(_0xa970x27,_0xa970x28){_0xa970x26(_0xa970x27,_0xa970x28)});};methods[_0xebff[243]]=function(_0xa970x24,_0xa970x25,_0xa970x26){console[_0xebff[26]](_0xebff[244]);console[_0xebff[26]](_0xebff[245]);setVariable(_0xa970x24,_0xa970x25[_0xebff[80]],_0xa970x25[_0xebff[246]],_0xa970x26);};function getVertices(_0xa970x42){return _[_0xebff[251]](_0xa970x42,function(_0xa970x2e,_0xa970x43,_0xa970x44){if(_0xa970x44===_0xebff[247]){return _0xa970x2e};if(_[_0xebff[248]](_0xa970x43)){_[_0xebff[250]](_0xa970x43,function(_0xa970x45,_0xa970x46){_0xa970x2e[_0xa970x45[_0xebff[249]][_0xebff[162]]]=_0xa970x45[_0xebff[249]];_0xa970x2e[_0xa970x45[_0xebff[249]][_0xebff[162]]][_0xebff[97]]=_0xa970x44;});return _0xa970x2e;};_0xa970x2e[_0xa970x43[_0xebff[249]][_0xebff[162]]]=_0xa970x43[_0xebff[249]];_0xa970x2e[_0xa970x43[_0xebff[249]][_0xebff[162]]][_0xebff[97]]=_0xa970x44;return _0xa970x2e;},{})}function getTargetBySource(_0xa970x42,_0xa970x48,_0xa970x45){return _[_0xebff[98]](_[_0xebff[40]](_0xa970x42[_0xebff[247]],function(_0xa970x43){if(_0xa970x43[_0xebff[249]][_0xebff[252]]&&_0xa970x43[_0xebff[249]][_0xebff[253]]){if(_0xa970x43[_0xebff[249]][_0xebff[253]]===_0xa970x48){if(_0xa970x43[_0xebff[249]][_0xebff[254]]&&_0xa970x43[_0xebff[249]][_0xebff[254]]!==_0xa970x45){return false};return true;}};return false;}),_0xebff[255])}function replaceAllVariables(_0xa970x24,_0xa970x25,_0xa970x26){var _0xa970x4a=_0xa970x25;for(var _0xa970x46 in _0xa970x4a){var _0xa970x28=_0xa970x4a[_0xa970x46][_0xebff[256]](/{+(.*?)}/gi);if(_0xa970x28){for(var _0xa970x4b in _0xa970x28){var _0xa970x45=wait[_0xebff[259]](_0xa970x24,_0xebff[257],_0xa970x28[_0xa970x4b][_0xebff[258]](1,_0xa970x28[_0xa970x4b][_0xebff[140]]-1));if(_0xa970x45[_0xebff[153]]===200&&_0xa970x45[_0xebff[98]]!==_0xebff[108]){var _0xa970x4c=_0xa970x45[_0xebff[98]][_0xebff[258]](_0xa970x45[_0xebff[98]][_0xebff[261]](_0xebff[260])+1,_0xa970x45[_0xebff[98]][_0xebff[261]](_0xebff[262]));_0xa970x4a[_0xa970x46]=_0xa970x4a[_0xa970x46][_0xebff[185]](_0xa970x28[_0xa970x4b],_0xa970x4c);};}};};_0xa970x4a[_0xebff[263]]=true;return _0xa970x4a;}function xstart(_0xa970x24){var _0xa970x42=_0xa970x24[_0xebff[125]];var _0xa970x4e=_0xa970x24[_0xebff[264]];if(_0xa970x42[_0xebff[265]]){if(!_[_0xebff[248]](_0xa970x42[_0xebff[265]])){var _0xa970x48=_0xa970x42[_0xebff[265]][_0xebff[249]][_0xebff[162]];var _0xa970x28={};do{var _0xa970x25=_0xa970x4e[_0xa970x48][_0xebff[263]]?_0xa970x4e[_0xa970x48]:replaceAllVariables(_0xa970x24,_0xa970x4e[_0xa970x48]);if(_0xa970x25){if(_[_0xebff[266]](methods[_0xa970x25[_0xebff[97]]])){_0xa970x28=wait[_0xebff[267]](methods[_0xa970x25[_0xebff[97]]],_0xa970x24,_0xa970x25)}else {_0xa970x28=wait[_0xebff[267]](methods[_0xebff[233]],_0xa970x24,_0xa970x25)};if(_0xa970x28[_0xebff[153]]===200&&_0xa970x28[_0xebff[98]]!==_0xebff[142]){var _0xa970x4f=getTargetBySource(_0xa970x42,_0xa970x48,_0xa970x28[_0xebff[106]]);if(_0xa970x4f){}else {if(_0xa970x25[_0xebff[97]]===_0xebff[85]){if(_0xa970x25[_0xebff[88]]>0){_0xa970x4f=getTargetBySource(_0xa970x42,_0xa970x48,_0xebff[147]);if(_0xa970x4f){}else {_0xa970x4f=_0xa970x48};}};if(_0xa970x25[_0xebff[97]]===_0xebff[137]&&_0xa970x25[_0xebff[88]]>0){_0xa970x4f=_0xa970x48};};_0xa970x48=_0xa970x4f;}else {_0xa970x48=null};}else {_0xa970x48=null};}while(_0xa970x48);;console[_0xebff[26]](_0xebff[268]);_0xa970x24[_0xebff[230]]();}};}function xfinally(_0xa970x24){var _0xa970x42=_0xa970x24[_0xebff[125]];var _0xa970x4e=_0xa970x24[_0xebff[264]];if(_0xa970x42[_0xebff[269]]){if(!_[_0xebff[248]](_0xa970x42[_0xebff[269]])){var _0xa970x48=_0xa970x42[_0xebff[269]][_0xebff[249]][_0xebff[162]];var _0xa970x28={};do{var _0xa970x25=replaceAllVariables(_0xa970x24,_0xa970x4e[_0xa970x48]);if(_0xa970x25){if(_[_0xebff[266]](methods[_0xa970x25[_0xebff[97]]])){_0xa970x28=wait[_0xebff[267]](methods[_0xa970x25[_0xebff[97]]],_0xa970x24,_0xa970x25)}else {_0xa970x28=wait[_0xebff[267]](methods[_0xebff[233]],_0xa970x24,_0xa970x25)};if(_0xa970x28[_0xebff[153]]===200&&_0xa970x28[_0xebff[98]]!==_0xebff[142]){var _0xa970x4f=getTargetBySource(_0xa970x42,_0xa970x48,_0xa970x28[_0xebff[106]]);if(_0xa970x4f){}else {if(_0xa970x25[_0xebff[97]]===_0xebff[85]){if(_0xa970x25[_0xebff[88]]>0){_0xa970x4f=getTargetBySource(_0xa970x42,_0xa970x48,_0xebff[147]);if(_0xa970x4f){}else {_0xa970x4f=_0xa970x48};}};if(_0xa970x25[_0xebff[97]]===_0xebff[137]&&_0xa970x25[_0xebff[88]]>0){_0xa970x4f=_0xa970x48};};_0xa970x48=_0xa970x4f;}else {_0xa970x48=null};}else {_0xa970x48=null};}while(_0xa970x48);;_0xa970x24[_0xebff[230]]();console[_0xebff[26]](_0xebff[270]);}};_0xa970x24[_0xebff[271]]();}function main(_0xa970x24){_0xa970x24[_0xebff[274]](_0xebff[272],function(_0xa970x27){console[_0xebff[26]](_0xebff[273],_0xa970x27)});_0xa970x24[_0xebff[274]](_0xebff[217],function(){console[_0xebff[26]](_0xebff[275])});_0xa970x24[_0xebff[274]](_0xebff[230],function(){if(_0xa970x24[_0xebff[269]]){_0xa970x24[_0xebff[269]]=false;console[_0xebff[26]](_0xebff[276]);wait[_0xebff[277]](xfinally,_0xa970x24);}else {ReportSquare[_0xebff[280]]({leaveAt:moment()[_0xebff[44]](_0xebff[279])},{where:{uniqueid:_0xa970x24[_0xebff[95]]}})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[278],_0xa970x27)});console[_0xebff[26]](_0xebff[281]);}});_0xa970x24[_0xebff[274]](_0xebff[93],function(_0xa970x28){});_0xa970x24[_0xebff[274]](_0xebff[282],function(_0xa970x52){console[_0xebff[26]](_0xa970x52);console[_0xebff[26]](_0xebff[283]+_0xa970x52[_0xebff[284]]+_0xebff[285]+_0xa970x52[_0xebff[286]]);var _0xa970x53={network:_0xa970x52[_0xebff[287]],network_script:_0xa970x52[_0xebff[288]],request:_0xa970x52[_0xebff[289]],channel:_0xa970x52[_0xebff[290]],language:_0xa970x52[_0xebff[291]],type:_0xa970x52[_0xebff[292]],uniqueid:_0xa970x52[_0xebff[286]],version:_0xa970x52[_0xebff[293]],callerid:_0xa970x52[_0xebff[284]],calleridname:_0xa970x52[_0xebff[294]],callingpres:_0xa970x52[_0xebff[295]],callingani2:_0xa970x52[_0xebff[296]],callington:_0xa970x52[_0xebff[297]],callingtns:_0xa970x52[_0xebff[298]],dnid:_0xa970x52[_0xebff[299]],rdnis:_0xa970x52[_0xebff[300]],context:_0xa970x52[_0xebff[301]],extension:_0xa970x52[_0xebff[302]],priority:_0xa970x52[_0xebff[303]],enhanced:_0xa970x52[_0xebff[304]],accountcode:_0xa970x52[_0xebff[305]],threadid:_0xa970x52[_0xebff[306]],project_name:_0xa970x52[_0xebff[307]],joinAt:moment()[_0xebff[44]](_0xebff[279])};ReportSquare[_0xebff[103]](_0xa970x53)[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[308],_0xa970x27)});if(_0xa970x52[_0xebff[307]]){SquareProject[_0xebff[317]]({where:{name:_0xa970x52[_0xebff[307]]},attributes:[_0xebff[162],_0xebff[310]]})[_0xebff[316]](function(_0xa970x3e){if(_0xa970x3e){if(_0xa970x3e[_0xebff[310]]){xml[_0xebff[313]](_0xa970x3e[_0xebff[310]],{normalizeTags:true,explicitArray:false},function(_0xa970x27,_0xa970x2e){var _0xa970x42=_0xa970x2e[_0xebff[311]][_0xebff[125]];if(_0xa970x42){_0xa970x24[_0xebff[125]]=_0xa970x42;_0xa970x24[_0xebff[269]]=true;_0xa970x24[_0xebff[95]]=_0xa970x52[_0xebff[286]];_0xa970x24[_0xebff[264]]=getVertices(_0xa970x42);wait[_0xebff[277]](xstart,_0xa970x24);}else {console[_0xebff[26]](_0xebff[312]);_0xa970x24[_0xebff[271]]();};})}else {console[_0xebff[26]](_0xebff[314]);_0xa970x24[_0xebff[271]]();}}else {console[_0xebff[26]](_0xebff[315]);_0xa970x24[_0xebff[271]]();}})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xebff[309],_0xa970x27);_0xa970x24[_0xebff[271]]();})}else {console[_0xebff[26]](_0xebff[318]);_0xa970x24[_0xebff[271]]();};});}function splitInterval(_0xa970x36){var _0xa970x55={};var _0xa970x3a=_0xa970x36[_0xebff[319]](_0xebff[50]);var _0xa970x56;_0xa970x3a[_0xebff[171]](function(_0xa970x57,_0xa970x39){switch(_0xa970x39){case 0:if(_0xa970x57!==_0xebff[320]){_0xa970x56=_0xa970x57[_0xebff[319]](_0xebff[111]);_0xa970x55[_0xebff[321]]=moment(_0xa970x56[0],_0xebff[322]);_0xa970x55[_0xebff[323]]=moment(_0xa970x56[1],_0xebff[322]);}else {_0xa970x55[_0xebff[321]]=null;_0xa970x55[_0xebff[323]]=null;};break ;;case 1:if(_0xa970x57!==_0xebff[320]){_0xa970x56=_0xa970x57[_0xebff[319]](_0xebff[111]);_0xa970x55[_0xebff[324]]=weekDaysCollection[_0xa970x56[0]];_0xa970x55[_0xebff[325]]=_0xa970x56[1]?weekDaysCollection[_0xa970x56[1]]:null;}else {_0xa970x55[_0xebff[324]]=null;_0xa970x55[_0xebff[325]]=null;};break ;;case 2:if(_0xa970x57!==_0xebff[320]){_0xa970x56=_0xa970x57[_0xebff[319]](_0xebff[111]);_0xa970x55[_0xebff[326]]=_0xa970x56[0];_0xa970x55[_0xebff[327]]=_0xa970x56[1]?_0xa970x56[1]:null;}else {_0xa970x55[_0xebff[326]]=null;_0xa970x55[_0xebff[327]]=null;};break ;;case 3:if(_0xa970x57!==_0xebff[320]){_0xa970x56=_0xa970x57[_0xebff[319]](_0xebff[111]);_0xa970x55[_0xebff[328]]=monthsCollection[_0xa970x56[0]];_0xa970x55[_0xebff[329]]=_0xa970x56[1]?monthsCollection[_0xa970x56[1]]:null;}else {_0xa970x55[_0xebff[328]]=null;_0xa970x55[_0xebff[329]]=null;};break ;;default:;}});return _0xa970x55;}function isIntervalValid(_0xa970x36){var _0xa970x59=moment()[_0xebff[44]](_0xebff[322]);var _0xa970x5a=moment()[_0xebff[44]](_0xebff[330]);var _0xa970x5b=moment()[_0xebff[44]](_0xebff[331]);var _0xa970x5c=moment()[_0xebff[44]](_0xebff[332]);var _0xa970x5d,_0xa970x5e,_0xa970x5f,_0xa970x60;var _0xa970x61=[1,2,3,4,5,6,7,8,9,10,11,12];var _0xa970x62=[1,2,3,4,5,6,7];var _0xa970x63=[];for(var _0xa970x64=1;_0xa970x64<=31;_0xa970x64++){_0xa970x63[_0xebff[333]](_0xa970x64)};_0xa970x5d=(_0xa970x36[_0xebff[321]]&&_0xa970x36[_0xebff[323]])?moment(_0xa970x59,_0xebff[322])[_0xebff[334]](moment(_0xa970x36[_0xebff[321]],_0xebff[322]),moment(_0xa970x36[_0xebff[323]],_0xebff[322])):true;if(_0xa970x36[_0xebff[324]]){if(_0xa970x36[_0xebff[325]]){var _0xa970x65=_[_0xebff[163]](_0xa970x62,function(_0xa970x38){return (_0xa970x38>=_0xa970x36[_0xebff[324]])||(_0xa970x38<=_0xa970x36[_0xebff[325]])});_0xa970x5e=(_0xa970x65[_0xebff[335]](parseInt(_0xa970x5a))!== -1)?true:false;}else {_0xa970x5e=(parseInt(_0xa970x5a)===_0xa970x36[_0xebff[324]])?true:false}}else {_0xa970x5e=true};if(_0xa970x36[_0xebff[326]]){if(_0xa970x36[_0xebff[327]]){var _0xa970x66=_[_0xebff[163]](_0xa970x63,function(_0xa970x38){return (_0xa970x38>=_0xa970x36[_0xebff[326]])||(_0xa970x38<=_0xa970x36[_0xebff[327]])});_0xa970x5f=(_0xa970x66[_0xebff[335]](parseInt(_0xa970x5b))!== -1)?true:false;}else {_0xa970x5f=(parseInt(_0xa970x5b)===_0xa970x36[_0xebff[326]])?true:false}}else {_0xa970x5f=true};if(_0xa970x36[_0xebff[328]]){if(_0xa970x36[_0xebff[329]]){var _0xa970x67=_[_0xebff[163]](_0xa970x61,function(_0xa970x38){return (_0xa970x38>=_0xa970x36[_0xebff[328]])||(_0xa970x38<=_0xa970x36[_0xebff[329]])});_0xa970x60=(_0xa970x67[_0xebff[335]](parseInt(_0xa970x5c))!== -1)?true:false;}else {_0xa970x60=(parseInt(_0xa970x5c)===_0xa970x36[_0xebff[328]])?true:false}}else {_0xa970x60=true};return _0xa970x5d&&_0xa970x5e&&_0xa970x5f&&_0xa970x60;}function setVariable(_0xa970x24,_0xa970x69,_0xa970x45,_0xa970x26){console[_0xebff[26]](_0xebff[336]);if(!variables){getVariables(false)};var _0xa970x4b=_[_0xebff[40]](variables,{id:parseInt(_0xa970x69)});console[_0xebff[26]](_0xebff[337],_0xa970x45);_0xa970x24[_0xebff[29]](util[_0xebff[44]](_0xebff[155],_0xa970x4b[_0xebff[43]],_0xa970x45),function(_0xa970x27,_0xa970x28){if(_0xa970x26){_0xa970x26(_0xa970x27,_0xa970x28)}});}function getVariable(_0xa970x24,_0xa970x69){if(!variables){getVariables(false)};var _0xa970x4b=_[_0xebff[40]](variables,{id:parseInt(_0xa970x69)});var _0xa970x45=wait[_0xebff[259]](_0xa970x24,_0xebff[257],_0xa970x4b[_0xebff[43]]);if(_0xa970x45[_0xebff[153]]===200&&_0xa970x45[_0xebff[98]]!==_0xebff[108]){return _0xa970x45[_0xebff[98]][_0xebff[258]](_0xa970x45[_0xebff[98]][_0xebff[261]](_0xebff[260])+1,_0xa970x45[_0xebff[98]][_0xebff[261]](_0xebff[262]))};return _0xebff[63];}function getFilePath(_0xa970x69){if(!sounds){getSounds(false)};if(_0xa970x69>0){var _0xa970x6c=_[_0xebff[40]](sounds,{id:parseInt(_0xa970x69)});return util[_0xebff[44]](_0xebff[338],_0xa970x6c[_0xebff[339]],_0xa970x6c[_0xebff[340]]);};return _0xebff[63];}function getUsers(_0xa970x6e){User[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){users=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(User,users,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getQueues(_0xa970x6e){VoiceQueue[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){queues=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(VoiceQueue,queues,_0xebff[43])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getTrunks(_0xa970x6e){Trunk[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){trunks=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(Trunk,trunks,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getVariables(_0xa970x6e){Variable[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){variables=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(Variable,variables,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getDbConnections(_0xa970x6e){SquareOdbc[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){dbConnections=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(SquareOdbc,dbConnections,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getIntervals(_0xa970x6e){Interval[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){intervals=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(Interval,intervals,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getProjects(_0xa970x6e){SquareProject[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){projects=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(SquareProject,projects,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function getSounds(_0xa970x6e){Upload[_0xebff[342]]()[_0xebff[316]](function(_0xa970x2e){sounds=_[_0xebff[341]](_0xa970x2e);if(_0xa970x6e){synchUpdates(Upload,sounds,_0xebff[162])};})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}function synchUpdates(_0xa970x77,_0xa970x78,_0xa970x46){var _0xa970x79={};_0xa970x77[_0xebff[343]](function(_0xa970x7a){_0xa970x79[_0xa970x46]=_0xa970x7a[_0xa970x46];updateCollection(_0xa970x78,_0xa970x79,_0xa970x7a);});_0xa970x77[_0xebff[344]](function(_0xa970x7a){_0xa970x79[_0xa970x46]=_0xa970x7a[_0xa970x46];updateCollection(_0xa970x78,_0xa970x79,_0xa970x7a);});_0xa970x77[_0xebff[346]](function(_0xa970x7a){_0xa970x79[_0xa970x46]=_0xa970x7a[_0xa970x46];_[_0xebff[345]](_0xa970x78,_0xa970x79);});}function updateCollection(_0xa970x78,_0xa970x79,_0xa970x7a){var _0xa970x7c=_[_0xebff[40]](_0xa970x78,_0xa970x79);var _0xa970x39=_0xa970x78[_0xebff[335]](_0xa970x7c);if(_0xa970x7c){_[_0xebff[347]](_0xa970x78[_0xa970x39],_0xa970x7a)}else {_0xa970x78[_0xebff[348]](_0xa970x7a)};}function getPort(){Settings[_0xebff[317]]()[_0xebff[316]](function(_0xa970x2e){agiPort=_0xa970x2e[_0xebff[349]]})[_0xebff[102]](function(_0xa970x27){console[_0xebff[26]](_0xa970x27)})}module[_0xebff[350]]=function(){console[_0xebff[26]](_0xebff[351]);getPort();var _0xa970x7e=agi[_0xebff[353]](main)[_0xebff[352]](agiPort?agiPort:4573);getUsers(true);getQueues(true);getTrunks(true);getVariables(true);getIntervals(true);getProjects(true);getSounds(true);getDbConnections(true);};
\ No newline at end of file
-var _0x4f7c=["\x6D\x6F\x6D\x65\x6E\x74","\x41\x43\x57\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x53\x49\x50\x2F\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x55\x4E\x41\x56\x41\x49\x4C\x41\x42\x4C\x45\x20\x42\x59\x20\x41\x43\x57","\x65\x72\x72\x6F\x72","\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20\x61\x6C\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x71\x75\x65\x75\x65","\x41\x43\x57","\x53\x49\x4E\x47\x4C\x45\x20\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20","\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x55\x4E\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20\x61\x6C\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x61\x63\x74\x69\x6F\x6E","\x61\x67\x65\x6E\x74\x70\x61\x75\x73\x65","\x72\x65\x61\x73\x6F\x6E","\x70\x61\x75\x73\x65\x64","\x31","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x20","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x73\x65\x63\x6F\x6E\x64\x73","\x64\x69\x66\x66","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x20\x75\x70\x64\x61\x74\x65\x64\x20\x73\x65\x63\x6F\x6E\x64\x73\x20","\x20\x41\x43\x57\x20\x69\x6E\x20\x71\x75\x65\x75\x65\x20","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x21","\x66\x69\x6E\x64\x41\x6C\x6C","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A\x20\x20","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x75\x70\x64\x61\x74\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0x4f7c[0]);var asteriskManager=null;function ACW(_0xf39fx4){console[_0x4f7c[2]](_0x4f7c[1]);asteriskManager=_0xf39fx4;}ACW[_0x4f7c[4]][_0x4f7c[3]]=function(_0xf39fx5){if(asteriskManager&&asteriskManager[_0x4f7c[5]]()){if(_0xf39fx5[_0x4f7c[6]]===_0x4f7c[7]){asteriskManager[_0x4f7c[17]]({action:_0x4f7c[8],interface:_0xf39fx5[_0x4f7c[6]],paused:true,reason:_0x4f7c[9]},function(_0xf39fx6,_0xf39fx7){if(_0xf39fx6){console[_0x4f7c[10]](_0xf39fx6);return ;};console[_0x4f7c[2]](_0x4f7c[11]+_0xf39fx5[_0x4f7c[6]]);asteriskManager[_0x4f7c[17]]({action:_0x4f7c[8],interface:_0xf39fx5[_0x4f7c[6]],queue:_0xf39fx5[_0x4f7c[12]],paused:true,reason:_0x4f7c[13]},function(_0xf39fx6,_0xf39fx7){if(_0xf39fx6){console[_0x4f7c[10]](_0xf39fx6);return ;};console[_0x4f7c[2]](_0x4f7c[14]+_0xf39fx5[_0x4f7c[12]]+_0x4f7c[15]+_0xf39fx5[_0x4f7c[6]]);findAndUpdateFlag(_0xf39fx5);setTimeout(function(){asteriskManager[_0x4f7c[17]]({action:_0x4f7c[8],interface:_0xf39fx5[_0x4f7c[6]],paused:false},function(_0xf39fx6,_0xf39fx7){if(_0xf39fx6){console[_0x4f7c[10]](_0xf39fx6)};console[_0x4f7c[2]](_0x4f7c[16]+_0xf39fx5[_0x4f7c[6]]);})},5000);});})}}};ACW[_0x4f7c[4]][_0x4f7c[18]]=function(_0xf39fx5){if((_0xf39fx5[_0x4f7c[19]]===_0x4f7c[13]||_0xf39fx5[_0x4f7c[19]]===_0x4f7c[9])&&_0xf39fx5[_0x4f7c[20]]===_0x4f7c[21]){return }};function findAndUpdateTime(_0xf39fx5){var _0xf39fx9=require(_0x4f7c[23])[_0x4f7c[22]];_0xf39fx9[_0x4f7c[37]]({where:{agentcomplete:true,agentacw:true,acwtime:null,queue:_0xf39fx5[_0x4f7c[12]],interface:_0xf39fx5[_0x4f7c[6]]}})[_0x4f7c[34]](function(_0xf39fxa){if(_0xf39fxa[_0x4f7c[26]]>0){var _0xf39fx9=_0xf39fxa[_0xf39fxa[_0x4f7c[26]]-1];var _0xf39fxb=moment()[_0x4f7c[29]](_0xf39fx9[_0x4f7c[27]],_0x4f7c[28]);_0xf39fx9[_0x4f7c[35]]({acwtime:_0xf39fxb})[_0x4f7c[34]](function(_0xf39fx7){console[_0x4f7c[2]](_0x4f7c[30]+_0xf39fx7[_0x4f7c[31]]+_0x4f7c[32]+_0xf39fxb+_0x4f7c[33]+_0xf39fx7[_0x4f7c[12]])})[_0x4f7c[25]](function(_0xf39fx6){console[_0x4f7c[10]](_0x4f7c[24]+_0xf39fx6)});}else {console[_0x4f7c[10]]( new Error(_0x4f7c[36]))}})[_0x4f7c[25]](function(_0xf39fx6){console[_0x4f7c[10]](_0x4f7c[24]+_0xf39fx6)});}function findAndUpdateFlag(_0xf39fx5){var _0xf39fx9=require(_0x4f7c[23])[_0x4f7c[22]];_0xf39fx9[_0x4f7c[42]]({agentacw:true},{where:{uniqueid:_0xf39fx5[_0x4f7c[40]],destuniqueid:_0xf39fx5[_0x4f7c[41]]}})[_0x4f7c[34]](function(_0xf39fx9){console[_0x4f7c[2]](_0x4f7c[39])})[_0x4f7c[25]](function(_0xf39fx6){console[_0x4f7c[10]](_0x4f7c[38]+_0xf39fx6)});}module[_0x4f7c[43]]=ACW;
\ No newline at end of file
+var _0x288a=["\x6D\x6F\x6D\x65\x6E\x74","\x41\x43\x57\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x53\x49\x50\x2F\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x55\x4E\x41\x56\x41\x49\x4C\x41\x42\x4C\x45\x20\x42\x59\x20\x41\x43\x57","\x65\x72\x72\x6F\x72","\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20\x61\x6C\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x71\x75\x65\x75\x65","\x41\x43\x57","\x53\x49\x4E\x47\x4C\x45\x20\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20","\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x55\x4E\x50\x41\x55\x53\x45\x20\x41\x43\x57\x20\x69\x6E\x20\x61\x6C\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x61\x67\x65\x6E\x74\x20","\x61\x63\x74\x69\x6F\x6E","\x61\x67\x65\x6E\x74\x70\x61\x75\x73\x65","\x72\x65\x61\x73\x6F\x6E","\x70\x61\x75\x73\x65\x64","\x31","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x20","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x73\x65\x63\x6F\x6E\x64\x73","\x64\x69\x66\x66","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x20\x75\x70\x64\x61\x74\x65\x64\x20\x73\x65\x63\x6F\x6E\x64\x73\x20","\x20\x41\x43\x57\x20\x69\x6E\x20\x71\x75\x65\x75\x65\x20","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x21","\x66\x69\x6E\x64\x41\x6C\x6C","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A\x20\x20","\x5B\x61\x63\x77\x5D\x20\x61\x67\x65\x6E\x74\x20\x61\x63\x77\x20\x75\x70\x64\x61\x74\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0x288a[0]);var asteriskManager=null;function ACW(_0x557bx4){console[_0x288a[2]](_0x288a[1]);asteriskManager=_0x557bx4;}ACW[_0x288a[4]][_0x288a[3]]=function(_0x557bx5){if(asteriskManager&&asteriskManager[_0x288a[5]]()){if(_0x557bx5[_0x288a[6]]===_0x288a[7]){asteriskManager[_0x288a[17]]({action:_0x288a[8],interface:_0x557bx5[_0x288a[6]],paused:true,reason:_0x288a[9]},function(_0x557bx6,_0x557bx7){if(_0x557bx6){console[_0x288a[10]](_0x557bx6);return ;};console[_0x288a[2]](_0x288a[11]+_0x557bx5[_0x288a[6]]);asteriskManager[_0x288a[17]]({action:_0x288a[8],interface:_0x557bx5[_0x288a[6]],queue:_0x557bx5[_0x288a[12]],paused:true,reason:_0x288a[13]},function(_0x557bx6,_0x557bx7){if(_0x557bx6){console[_0x288a[10]](_0x557bx6);return ;};console[_0x288a[2]](_0x288a[14]+_0x557bx5[_0x288a[12]]+_0x288a[15]+_0x557bx5[_0x288a[6]]);findAndUpdateFlag(_0x557bx5);setTimeout(function(){asteriskManager[_0x288a[17]]({action:_0x288a[8],interface:_0x557bx5[_0x288a[6]],paused:false},function(_0x557bx6,_0x557bx7){if(_0x557bx6){console[_0x288a[10]](_0x557bx6)};console[_0x288a[2]](_0x288a[16]+_0x557bx5[_0x288a[6]]);})},5000);});})}}};ACW[_0x288a[4]][_0x288a[18]]=function(_0x557bx5){if((_0x557bx5[_0x288a[19]]===_0x288a[13]||_0x557bx5[_0x288a[19]]===_0x288a[9])&&_0x557bx5[_0x288a[20]]===_0x288a[21]){return }};function findAndUpdateTime(_0x557bx5){var _0x557bx9=require(_0x288a[23])[_0x288a[22]];_0x557bx9[_0x288a[37]]({where:{agentcomplete:true,agentacw:true,acwtime:null,queue:_0x557bx5[_0x288a[12]],interface:_0x557bx5[_0x288a[6]]}})[_0x288a[34]](function(_0x557bxa){if(_0x557bxa[_0x288a[26]]>0){var _0x557bx9=_0x557bxa[_0x557bxa[_0x288a[26]]-1];var _0x557bxb=moment()[_0x288a[29]](_0x557bx9[_0x288a[27]],_0x288a[28]);_0x557bx9[_0x288a[35]]({acwtime:_0x557bxb})[_0x288a[34]](function(_0x557bx7){console[_0x288a[2]](_0x288a[30]+_0x557bx7[_0x288a[31]]+_0x288a[32]+_0x557bxb+_0x288a[33]+_0x557bx7[_0x288a[12]])})[_0x288a[25]](function(_0x557bx6){console[_0x288a[10]](_0x288a[24]+_0x557bx6)});}else {console[_0x288a[10]]( new Error(_0x288a[36]))}})[_0x288a[25]](function(_0x557bx6){console[_0x288a[10]](_0x288a[24]+_0x557bx6)});}function findAndUpdateFlag(_0x557bx5){var _0x557bx9=require(_0x288a[23])[_0x288a[22]];_0x557bx9[_0x288a[42]]({agentacw:true},{where:{uniqueid:_0x557bx5[_0x288a[40]],destuniqueid:_0x557bx5[_0x288a[41]]}})[_0x288a[34]](function(_0x557bx9){console[_0x288a[2]](_0x288a[39])})[_0x288a[25]](function(_0x557bx6){console[_0x288a[10]](_0x288a[38]+_0x557bx6)});}module[_0x288a[43]]=ACW;
\ No newline at end of file
-var _0xf6c6=["\x6D\x6F\x6D\x65\x6E\x74","\x41\x67\x65\x6E\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x63\x61\x6C\x6C\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70\x41\x74","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x65\x6A\x65\x63\x74\x65\x64","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xf6c6[0]);function Agent(){console[_0xf6c6[2]](_0xf6c6[1])}Agent[_0xf6c6[4]][_0xf6c6[3]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[3];_0x3258x3[_0xf6c6[6]]=moment()[_0xf6c6[8]](_0xf6c6[7]);createAgent(_0x3258x3);};Agent[_0xf6c6[4]][_0xf6c6[9]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[9];_0x3258x3[_0xf6c6[10]]=moment()[_0xf6c6[8]](_0xf6c6[7]);updateAgents(_0x3258x3);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0xf6c6[8]](_0xf6c6[7]),reason:_0xf6c6[11],lastevent:_0xf6c6[11]},{uniqueid:_0x3258x3[_0xf6c6[12]],destuniqueid:{$ne:_0x3258x3[_0xf6c6[13]]},reason:null});};Agent[_0xf6c6[4]][_0xf6c6[14]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[14];_0x3258x3[_0xf6c6[15]]=true;_0x3258x3[_0xf6c6[16]]=moment()[_0xf6c6[8]](_0xf6c6[7]);updateAgents(_0x3258x3);};Agent[_0xf6c6[4]][_0xf6c6[17]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[17];_0x3258x3[_0xf6c6[18]]=true;_0x3258x3[_0xf6c6[19]]=moment()[_0xf6c6[8]](_0xf6c6[7]);updateAgents(_0x3258x3);};Agent[_0xf6c6[4]][_0xf6c6[20]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[21];_0x3258x3[_0xf6c6[22]]=true;_0x3258x3[_0xf6c6[23]]=moment()[_0xf6c6[8]](_0xf6c6[7]);_0x3258x3[_0xf6c6[24]]=_0xf6c6[21];updateAgents(_0x3258x3);};Agent[_0xf6c6[4]][_0xf6c6[25]]=function(_0x3258x3){_0x3258x3[_0xf6c6[5]]=_0xf6c6[26];_0x3258x3[_0xf6c6[22]]=true;_0x3258x3[_0xf6c6[23]]=moment()[_0xf6c6[8]](_0xf6c6[7]);_0x3258x3[_0xf6c6[24]]=_0xf6c6[26];updateAgents(_0x3258x3,{uniqueid:_0x3258x3[_0xf6c6[12]],reason:null});};function createAgent(_0x3258x3){var _0x3258x5=require(_0xf6c6[28])[_0xf6c6[27]];_0x3258x5[_0xf6c6[34]](_0x3258x3)[_0xf6c6[33]](function(_0x3258x5){console[_0xf6c6[2]](_0xf6c6[32])})[_0xf6c6[31]](function(_0x3258x6){console[_0xf6c6[30]](_0xf6c6[29]+_0x3258x6)});}function updateAgents(_0x3258x3,_0x3258x8){var _0x3258x5=require(_0xf6c6[28])[_0xf6c6[27]];_0x3258x5[_0xf6c6[37]](_0x3258x3,{where:(_0x3258x8)?_0x3258x8:{uniqueid:_0x3258x3[_0xf6c6[12]],destuniqueid:_0x3258x3[_0xf6c6[13]]},individualHooks:true})[_0xf6c6[33]](function(_0x3258x5){console[_0xf6c6[2]](_0xf6c6[36])})[_0xf6c6[31]](function(_0x3258x6){console[_0xf6c6[30]](_0xf6c6[35]+_0x3258x6)});}module[_0xf6c6[38]]=Agent;
\ No newline at end of file
+var _0x6cab=["\x6D\x6F\x6D\x65\x6E\x74","\x41\x67\x65\x6E\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x63\x61\x6C\x6C\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70\x41\x74","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x65\x6A\x65\x63\x74\x65\x64","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0x6cab[0]);function Agent(){console[_0x6cab[2]](_0x6cab[1])}Agent[_0x6cab[4]][_0x6cab[3]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[3];_0x909bx3[_0x6cab[6]]=moment()[_0x6cab[8]](_0x6cab[7]);createAgent(_0x909bx3);};Agent[_0x6cab[4]][_0x6cab[9]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[9];_0x909bx3[_0x6cab[10]]=moment()[_0x6cab[8]](_0x6cab[7]);updateAgents(_0x909bx3);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0x6cab[8]](_0x6cab[7]),reason:_0x6cab[11],lastevent:_0x6cab[11]},{uniqueid:_0x909bx3[_0x6cab[12]],destuniqueid:{$ne:_0x909bx3[_0x6cab[13]]},reason:null});};Agent[_0x6cab[4]][_0x6cab[14]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[14];_0x909bx3[_0x6cab[15]]=true;_0x909bx3[_0x6cab[16]]=moment()[_0x6cab[8]](_0x6cab[7]);updateAgents(_0x909bx3);};Agent[_0x6cab[4]][_0x6cab[17]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[17];_0x909bx3[_0x6cab[18]]=true;_0x909bx3[_0x6cab[19]]=moment()[_0x6cab[8]](_0x6cab[7]);updateAgents(_0x909bx3);};Agent[_0x6cab[4]][_0x6cab[20]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[21];_0x909bx3[_0x6cab[22]]=true;_0x909bx3[_0x6cab[23]]=moment()[_0x6cab[8]](_0x6cab[7]);_0x909bx3[_0x6cab[24]]=_0x6cab[21];updateAgents(_0x909bx3);};Agent[_0x6cab[4]][_0x6cab[25]]=function(_0x909bx3){_0x909bx3[_0x6cab[5]]=_0x6cab[26];_0x909bx3[_0x6cab[22]]=true;_0x909bx3[_0x6cab[23]]=moment()[_0x6cab[8]](_0x6cab[7]);_0x909bx3[_0x6cab[24]]=_0x6cab[26];updateAgents(_0x909bx3,{uniqueid:_0x909bx3[_0x6cab[12]],reason:null});};function createAgent(_0x909bx3){var _0x909bx5=require(_0x6cab[28])[_0x6cab[27]];_0x909bx5[_0x6cab[34]](_0x909bx3)[_0x6cab[33]](function(_0x909bx5){console[_0x6cab[2]](_0x6cab[32])})[_0x6cab[31]](function(_0x909bx6){console[_0x6cab[30]](_0x6cab[29]+_0x909bx6)});}function updateAgents(_0x909bx3,_0x909bx8){var _0x909bx5=require(_0x6cab[28])[_0x6cab[27]];_0x909bx5[_0x6cab[37]](_0x909bx3,{where:(_0x909bx8)?_0x909bx8:{uniqueid:_0x909bx3[_0x6cab[12]],destuniqueid:_0x909bx3[_0x6cab[13]]},individualHooks:true})[_0x6cab[33]](function(_0x909bx5){console[_0x6cab[2]](_0x6cab[36])})[_0x6cab[31]](function(_0x909bx6){console[_0x6cab[30]](_0x6cab[35]+_0x909bx6)});}module[_0x6cab[38]]=Agent;
\ No newline at end of file
-var _0xb7d4=["\x43\x61\x6C\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x64\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x63\x61\x6C\x6C\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x63\x61\x6C\x6C\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];function Call(){console[_0xb7d4[1]](_0xb7d4[0])}Call[_0xb7d4[3]][_0xb7d4[2]]=function(_0x23e9x2){create(_0x23e9x2)};function create(_0x23e9x2){var _0x23e9x4=require(_0xb7d4[5])[_0xb7d4[4]];_0x23e9x4[_0xb7d4[11]](_0x23e9x2)[_0xb7d4[10]](function(_0x23e9x4){console[_0xb7d4[1]](_0xb7d4[9])})[_0xb7d4[8]](function(_0x23e9x5){console[_0xb7d4[7]](_0xb7d4[6]+_0x23e9x5)});}module[_0xb7d4[12]]=Call;
\ No newline at end of file
+var _0xd9d3=["\x43\x61\x6C\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x64\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x63\x61\x6C\x6C\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x63\x61\x6C\x6C\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];function Call(){console[_0xd9d3[1]](_0xd9d3[0])}Call[_0xd9d3[3]][_0xd9d3[2]]=function(_0xb4cfx2){create(_0xb4cfx2)};function create(_0xb4cfx2){var _0xb4cfx4=require(_0xd9d3[5])[_0xd9d3[4]];_0xb4cfx4[_0xd9d3[11]](_0xb4cfx2)[_0xd9d3[10]](function(_0xb4cfx4){console[_0xd9d3[1]](_0xd9d3[9])})[_0xd9d3[8]](function(_0xb4cfx5){console[_0xd9d3[7]](_0xd9d3[6]+_0xb4cfx5)});}module[_0xd9d3[12]]=Call;
\ No newline at end of file
-var _0x9be9=["\x44\x69\x61\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x62\x65\x67\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x65\x6E\x64","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x62\x65\x67\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x65\x6E\x64\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x65\x6E\x64\x20\x75\x70\x64\x61\x74\x65\x64","\x69\x6E\x66\x6F","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];function Dial(){console[_0x9be9[1]](_0x9be9[0])}Dial[_0x9be9[3]][_0x9be9[2]]=function(_0x57bex2){create(_0x57bex2)};Dial[_0x9be9[3]][_0x9be9[4]]=function(_0x57bex2){findAndUpdate(_0x57bex2)};function create(_0x57bex2){var _0x57bex4=require(_0x9be9[6])[_0x9be9[5]];_0x57bex4[_0x9be9[12]](_0x57bex2)[_0x9be9[11]](function(_0x57bex4){console[_0x9be9[1]](_0x9be9[10])})[_0x9be9[9]](function(_0x57bex5){console[_0x9be9[8]](_0x9be9[7]+_0x57bex5)});}function findAndUpdate(_0x57bex2){var _0x57bex4=require(_0x9be9[6])[_0x9be9[5]];_0x57bex4[_0x9be9[17]](_0x57bex2,{where:{uniqueid:_0x57bex2[_0x9be9[16]]}})[_0x9be9[11]](function(){console[_0x9be9[15]](_0x9be9[14])})[_0x9be9[9]](function(_0x57bex5){console[_0x9be9[8]](_0x9be9[13]+_0x57bex5)});}module[_0x9be9[18]]=Dial;
\ No newline at end of file
+var _0x3f9d=["\x44\x69\x61\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x62\x65\x67\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x65\x6E\x64","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x62\x65\x67\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x65\x6E\x64\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x64\x69\x61\x6C\x5D\x20\x64\x69\x61\x6C\x20\x65\x6E\x64\x20\x75\x70\x64\x61\x74\x65\x64","\x69\x6E\x66\x6F","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];function Dial(){console[_0x3f9d[1]](_0x3f9d[0])}Dial[_0x3f9d[3]][_0x3f9d[2]]=function(_0x604fx2){create(_0x604fx2)};Dial[_0x3f9d[3]][_0x3f9d[4]]=function(_0x604fx2){findAndUpdate(_0x604fx2)};function create(_0x604fx2){var _0x604fx4=require(_0x3f9d[6])[_0x3f9d[5]];_0x604fx4[_0x3f9d[12]](_0x604fx2)[_0x3f9d[11]](function(_0x604fx4){console[_0x3f9d[1]](_0x3f9d[10])})[_0x3f9d[9]](function(_0x604fx5){console[_0x3f9d[8]](_0x3f9d[7]+_0x604fx5)});}function findAndUpdate(_0x604fx2){var _0x604fx4=require(_0x3f9d[6])[_0x3f9d[5]];_0x604fx4[_0x3f9d[17]](_0x604fx2,{where:{uniqueid:_0x604fx2[_0x3f9d[16]]}})[_0x3f9d[11]](function(){console[_0x3f9d[15]](_0x3f9d[14])})[_0x3f9d[9]](function(_0x604fx5){console[_0x3f9d[8]](_0x3f9d[13]+_0x604fx5)});}module[_0x3f9d[18]]=Dial;
\ No newline at end of file
-var _0x7bc5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x61\x67\x65\x6E\x74","\x2E\x2F\x63\x61\x6C\x6C","\x2E\x2F\x64\x69\x61\x6C","\x2E\x2F\x6D\x65\x6D\x62\x65\x72","\x2E\x2F\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72","\x2E\x2F\x71\x75\x65\x75\x65\x5F\x6D\x65\x6D\x62\x65\x72","\x2E\x2F\x61\x63\x77","\x65\x78\x70\x6F\x72\x74\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x68\x6F\x73\x74","\x6F\x70\x74\x69\x6F\x6E\x73","\x70\x6F\x72\x74","\x69\x6E\x66\x6F","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x63\x6C\x6F\x73\x65","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x43\x4C\x4F\x53\x45\x3A\x20\x25\x73","\x6C\x6F\x67","\x65\x72\x72\x6F\x72","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x45\x52\x52\x4F\x52\x3A\x20\x25\x73","\x6D\x61\x6E\x61\x67\x65\x72\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x63\x61\x6C\x6C\x65\x64","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64","\x6C\x6F\x67\x69\x6E","\x61\x64\x64\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x61\x67\x65\x6E\x74\x70\x61\x75\x73\x65","\x70\x61\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x6D\x6F\x76\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x73\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73","\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x62\x65\x67\x69\x6E","\x64\x69\x61\x6C\x65\x6E\x64","\x65\x6E\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x6A\x6F\x69\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65","\x6C\x65\x61\x76\x65","\x63\x64\x72","\x61\x64\x64","\x68\x61\x6E\x67\x75\x70","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2F\x2E\x2E\x2F\x66\x61\x78","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x2F\x75\x73\x65\x72\x2E\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x61\x6D\x69"];_0x7bc5[0];var Agent=require(_0x7bc5[1]);var Call=require(_0x7bc5[2]);var Dial=require(_0x7bc5[3]);var Member=require(_0x7bc5[4]);var QueueCaller=require(_0x7bc5[5]);var QueueMember=require(_0x7bc5[6]);var ACW=require(_0x7bc5[7]);function onDisconnect(_0xdba2x9){}function onConnect(_0xdba2x9){}module[_0x7bc5[8]]=function(_0xdba2x9){var _0xdba2xb= new Agent();var _0xdba2xc= new Call();var _0xdba2xd= new Dial();var _0xdba2xe= new Member();var _0xdba2xf= new QueueMember();var _0xdba2x10= new QueueCaller();var _0xdba2x11= new ACW(_0xdba2x9);_0xdba2x9[_0x7bc5[16]](_0x7bc5[9],function(){console[_0x7bc5[14]](_0x7bc5[10],_0xdba2x9[_0x7bc5[12]][_0x7bc5[11]],_0xdba2x9[_0x7bc5[12]][_0x7bc5[13]]);_0xdba2x9[_0x7bc5[12]][_0x7bc5[15]]= new Date();onConnect(_0xdba2x9);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[17],function(){onDisconnect(_0xdba2x9);console[_0x7bc5[14]](_0x7bc5[18],_0xdba2x9[_0x7bc5[12]][_0x7bc5[11]],_0xdba2x9[_0x7bc5[12]][_0x7bc5[13]]);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[19],function(_0xdba2x12){console[_0x7bc5[21]](_0x7bc5[20],_0xdba2x9[_0x7bc5[12]][_0x7bc5[11]],_0xdba2x9[_0x7bc5[12]][_0x7bc5[13]],_0xdba2x12)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[22],function(_0xdba2x13){console[_0x7bc5[21]](_0x7bc5[23],_0xdba2x9[_0x7bc5[12]][_0x7bc5[11]],_0xdba2x9[_0x7bc5[12]][_0x7bc5[13]],_0xdba2x13)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[24],function(_0xdba2x14){});_0xdba2x9[_0x7bc5[16]](_0x7bc5[25],function(_0xdba2x14){_0xdba2xb[_0x7bc5[26]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[27],function(_0xdba2x14){_0xdba2x11[_0x7bc5[27]](_0xdba2x14);_0xdba2xb[_0x7bc5[28]](_0xdba2x14);_0xdba2x10[_0x7bc5[28]](_0xdba2x14);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[29],function(_0xdba2x14){_0xdba2xb[_0x7bc5[9]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[30],function(_0xdba2x14){_0xdba2xb[_0x7bc5[31]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[32],function(_0xdba2x14){_0xdba2xb[_0x7bc5[33]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[34],function(_0xdba2x14){_0xdba2xe[_0x7bc5[35]](_0xdba2x14);_0xdba2xf[_0x7bc5[36]](_0xdba2x14);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[37],function(_0xdba2x14){_0xdba2x11[_0x7bc5[38]](_0xdba2x14);_0xdba2xe[_0x7bc5[39]](_0xdba2x14);_0xdba2xf[_0x7bc5[39]](_0xdba2x14);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[40],function(_0xdba2x14){_0xdba2xf[_0x7bc5[41]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[42],function(_0xdba2x14){_0xdba2xe[_0x7bc5[43]](_0xdba2x14);_0xdba2xf[_0x7bc5[44]](_0xdba2x14);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[45],function(_0xdba2x14){_0xdba2xf[_0x7bc5[46]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[47],function(_0xdba2x14){_0xdba2xf[_0x7bc5[48]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[49],function(_0xdba2x14){_0xdba2xd[_0x7bc5[50]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[51],function(_0xdba2x14){_0xdba2xd[_0x7bc5[52]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[53],function(_0xdba2x14){_0xdba2x10[_0x7bc5[54]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[55],function(_0xdba2x14){_0xdba2x10[_0x7bc5[56]](_0xdba2x14);_0xdba2xb[_0x7bc5[57]](_0xdba2x14);});_0xdba2x9[_0x7bc5[16]](_0x7bc5[58],function(_0xdba2x14){_0xdba2x10[_0x7bc5[59]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[60],function(_0xdba2x14){_0xdba2xc[_0x7bc5[61]](_0xdba2x14)});_0xdba2x9[_0x7bc5[16]](_0x7bc5[62],function(_0xdba2x14){});require(_0x7bc5[64])[_0x7bc5[63]](_0xdba2x9);require(_0x7bc5[65])[_0x7bc5[63]](_0xdba2x9);require(_0x7bc5[66])[_0x7bc5[63]](_0xdba2x9);require(_0x7bc5[67])[_0x7bc5[63]](_0xdba2x9);};
\ No newline at end of file
+var _0x613b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x61\x67\x65\x6E\x74","\x2E\x2F\x63\x61\x6C\x6C","\x2E\x2F\x64\x69\x61\x6C","\x2E\x2F\x6D\x65\x6D\x62\x65\x72","\x2E\x2F\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72","\x2E\x2F\x71\x75\x65\x75\x65\x5F\x6D\x65\x6D\x62\x65\x72","\x2E\x2F\x61\x63\x77","\x65\x78\x70\x6F\x72\x74\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x68\x6F\x73\x74","\x6F\x70\x74\x69\x6F\x6E\x73","\x70\x6F\x72\x74","\x69\x6E\x66\x6F","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x63\x6C\x6F\x73\x65","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x43\x4C\x4F\x53\x45\x3A\x20\x25\x73","\x6C\x6F\x67","\x65\x72\x72\x6F\x72","\x5B\x25\x73\x3A\x25\x73\x5D\x20\x41\x4D\x49\x20\x45\x52\x52\x4F\x52\x3A\x20\x25\x73","\x6D\x61\x6E\x61\x67\x65\x72\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x63\x61\x6C\x6C\x65\x64","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64","\x6C\x6F\x67\x69\x6E","\x61\x64\x64\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x61\x67\x65\x6E\x74\x70\x61\x75\x73\x65","\x70\x61\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x6D\x6F\x76\x65\x64","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x73\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73","\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x62\x65\x67\x69\x6E","\x64\x69\x61\x6C\x65\x6E\x64","\x65\x6E\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x6A\x6F\x69\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65","\x6C\x65\x61\x76\x65","\x63\x64\x72","\x61\x64\x64","\x68\x61\x6E\x67\x75\x70","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2F\x2E\x2E\x2F\x66\x61\x78","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x2F\x75\x73\x65\x72\x2E\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x61\x6D\x69"];_0x613b[0];var Agent=require(_0x613b[1]);var Call=require(_0x613b[2]);var Dial=require(_0x613b[3]);var Member=require(_0x613b[4]);var QueueCaller=require(_0x613b[5]);var QueueMember=require(_0x613b[6]);var ACW=require(_0x613b[7]);function onDisconnect(_0xf7b9x9){}function onConnect(_0xf7b9x9){}module[_0x613b[8]]=function(_0xf7b9x9){var _0xf7b9xb= new Agent();var _0xf7b9xc= new Call();var _0xf7b9xd= new Dial();var _0xf7b9xe= new Member();var _0xf7b9xf= new QueueMember();var _0xf7b9x10= new QueueCaller();var _0xf7b9x11= new ACW(_0xf7b9x9);_0xf7b9x9[_0x613b[16]](_0x613b[9],function(){console[_0x613b[14]](_0x613b[10],_0xf7b9x9[_0x613b[12]][_0x613b[11]],_0xf7b9x9[_0x613b[12]][_0x613b[13]]);_0xf7b9x9[_0x613b[12]][_0x613b[15]]= new Date();onConnect(_0xf7b9x9);});_0xf7b9x9[_0x613b[16]](_0x613b[17],function(){onDisconnect(_0xf7b9x9);console[_0x613b[14]](_0x613b[18],_0xf7b9x9[_0x613b[12]][_0x613b[11]],_0xf7b9x9[_0x613b[12]][_0x613b[13]]);});_0xf7b9x9[_0x613b[16]](_0x613b[19],function(_0xf7b9x12){console[_0x613b[21]](_0x613b[20],_0xf7b9x9[_0x613b[12]][_0x613b[11]],_0xf7b9x9[_0x613b[12]][_0x613b[13]],_0xf7b9x12)});_0xf7b9x9[_0x613b[16]](_0x613b[22],function(_0xf7b9x13){console[_0x613b[21]](_0x613b[23],_0xf7b9x9[_0x613b[12]][_0x613b[11]],_0xf7b9x9[_0x613b[12]][_0x613b[13]],_0xf7b9x13)});_0xf7b9x9[_0x613b[16]](_0x613b[24],function(_0xf7b9x14){});_0xf7b9x9[_0x613b[16]](_0x613b[25],function(_0xf7b9x14){_0xf7b9xb[_0x613b[26]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[27],function(_0xf7b9x14){_0xf7b9x11[_0x613b[27]](_0xf7b9x14);_0xf7b9xb[_0x613b[28]](_0xf7b9x14);_0xf7b9x10[_0x613b[28]](_0xf7b9x14);});_0xf7b9x9[_0x613b[16]](_0x613b[29],function(_0xf7b9x14){_0xf7b9xb[_0x613b[9]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[30],function(_0xf7b9x14){_0xf7b9xb[_0x613b[31]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[32],function(_0xf7b9x14){_0xf7b9xb[_0x613b[33]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[34],function(_0xf7b9x14){_0xf7b9xe[_0x613b[35]](_0xf7b9x14);_0xf7b9xf[_0x613b[36]](_0xf7b9x14);});_0xf7b9x9[_0x613b[16]](_0x613b[37],function(_0xf7b9x14){_0xf7b9x11[_0x613b[38]](_0xf7b9x14);_0xf7b9xe[_0x613b[39]](_0xf7b9x14);_0xf7b9xf[_0x613b[39]](_0xf7b9x14);});_0xf7b9x9[_0x613b[16]](_0x613b[40],function(_0xf7b9x14){_0xf7b9xf[_0x613b[41]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[42],function(_0xf7b9x14){_0xf7b9xe[_0x613b[43]](_0xf7b9x14);_0xf7b9xf[_0x613b[44]](_0xf7b9x14);});_0xf7b9x9[_0x613b[16]](_0x613b[45],function(_0xf7b9x14){_0xf7b9xf[_0x613b[46]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[47],function(_0xf7b9x14){_0xf7b9xf[_0x613b[48]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[49],function(_0xf7b9x14){_0xf7b9xd[_0x613b[50]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[51],function(_0xf7b9x14){_0xf7b9xd[_0x613b[52]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[53],function(_0xf7b9x14){_0xf7b9x10[_0x613b[54]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[55],function(_0xf7b9x14){_0xf7b9x10[_0x613b[56]](_0xf7b9x14);_0xf7b9xb[_0x613b[57]](_0xf7b9x14);});_0xf7b9x9[_0x613b[16]](_0x613b[58],function(_0xf7b9x14){_0xf7b9x10[_0x613b[59]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[60],function(_0xf7b9x14){_0xf7b9xc[_0x613b[61]](_0xf7b9x14)});_0xf7b9x9[_0x613b[16]](_0x613b[62],function(_0xf7b9x14){});require(_0x613b[64])[_0x613b[63]](_0xf7b9x9);require(_0x613b[65])[_0x613b[63]](_0xf7b9x9);require(_0x613b[66])[_0x613b[63]](_0xf7b9x9);require(_0x613b[67])[_0x613b[63]](_0xf7b9x9);};
\ No newline at end of file
-var _0xf722=["\x6D\x6F\x6D\x65\x6E\x74","\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6C\x6F\x67\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x74\x61\x74\x65","\x73\x74\x61\x74\x65\x64\x65\x73\x63","\x4C\x4F\x47\x49\x4E","\x65\x6E\x74\x65\x72\x64\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67\x6F\x75\x74","\x65\x78\x69\x74\x64\x61\x74\x65","\x70\x61\x75\x73\x65","\x50\x41\x55\x53\x45","\x70\x61\x75\x73\x65\x64","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x63\x72\x65\x61\x74\x65\x64","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x78\x69\x73\x74","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x75\x70\x64\x61\x74\x65\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x70\x72\x65\x61\x64","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xf722[0]);function Member(){console[_0xf722[2]](_0xf722[1])}Member[_0xf722[4]][_0xf722[3]]=function(_0xad94x3){_0xad94x3[_0xf722[5]]=0;_0xad94x3[_0xf722[6]]=_0xf722[7];_0xad94x3[_0xf722[8]]=moment()[_0xf722[10]](_0xf722[9]);findOrCreate(_0xad94x3);};Member[_0xf722[4]][_0xf722[11]]=function(_0xad94x3){_0xad94x3[_0xf722[5]]=0;_0xad94x3[_0xf722[6]]=_0xf722[7];_0xad94x3[_0xf722[12]]=moment()[_0xf722[10]](_0xf722[9]);findAndUpdate(_0xad94x3);};Member[_0xf722[4]][_0xf722[13]]=function(_0xad94x3){_0xad94x3[_0xf722[5]]=1;_0xad94x3[_0xf722[6]]=_0xf722[14];var _0xad94x4=parseInt(_0xad94x3[_0xf722[15]],10);if(_0xad94x4){_0xad94x3[_0xf722[8]]=moment()[_0xf722[10]](_0xf722[9]);findOrCreate(_0xad94x3);}else {if(_0xad94x3[_0xf722[16]]){delete _0xad94x3[_0xf722[16]]};_0xad94x3[_0xf722[12]]=moment()[_0xf722[10]](_0xf722[9]);findAndUpdate(_0xad94x3);};};function findOrCreate(_0xad94x3){var _0xad94x6=require(_0xf722[18])[_0xf722[17]];_0xad94x6[_0xf722[27]]({where:{queue:_0xad94x3[_0xf722[25]],membername:_0xad94x3[_0xf722[26]],state:_0xad94x3[_0xf722[5]],enterdate:{$ne:null},exitdate:null},defaults:_0xad94x3})[_0xf722[24]](function(_0xad94x7,_0xad94x8){if(_0xad94x8){console[_0xf722[2]](_0xf722[19])}else {console[_0xf722[2]](_0xf722[20]);_0xad94x7[_0xf722[23]]({exitdate:moment()[_0xf722[10]](_0xf722[9])})[_0xf722[22]](function(_0xad94x9){console[_0xf722[2]](_0xf722[21]);findOrCreate(_0xad94x3);});}});}function findAndUpdate(_0xad94x3){var _0xad94x6=require(_0xf722[18])[_0xf722[17]];_0xad94x6[_0xf722[31]](_0xad94x3,{where:{queue:_0xad94x3[_0xf722[25]],membername:_0xad94x3[_0xf722[26]],state:_0xad94x3[_0xf722[5]],enterdate:{$ne:null},exitdate:null,reason:null}})[_0xf722[22]](function(_0xad94x6){console[_0xf722[2]](_0xf722[21])})[_0xf722[30]](function(_0xad94xb){console[_0xf722[29]](_0xf722[28]+_0xad94xb)});}module[_0xf722[32]]=Member;
\ No newline at end of file
+var _0xdf80=["\x6D\x6F\x6D\x65\x6E\x74","\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6C\x6F\x67\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x74\x61\x74\x65","\x73\x74\x61\x74\x65\x64\x65\x73\x63","\x4C\x4F\x47\x49\x4E","\x65\x6E\x74\x65\x72\x64\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67\x6F\x75\x74","\x65\x78\x69\x74\x64\x61\x74\x65","\x70\x61\x75\x73\x65","\x50\x41\x55\x53\x45","\x70\x61\x75\x73\x65\x64","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x63\x72\x65\x61\x74\x65\x64","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x78\x69\x73\x74","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x75\x70\x64\x61\x74\x65\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x70\x72\x65\x61\x64","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x5B\x6D\x65\x6D\x62\x65\x72\x5D\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xdf80[0]);function Member(){console[_0xdf80[2]](_0xdf80[1])}Member[_0xdf80[4]][_0xdf80[3]]=function(_0x8f95x3){_0x8f95x3[_0xdf80[5]]=0;_0x8f95x3[_0xdf80[6]]=_0xdf80[7];_0x8f95x3[_0xdf80[8]]=moment()[_0xdf80[10]](_0xdf80[9]);findOrCreate(_0x8f95x3);};Member[_0xdf80[4]][_0xdf80[11]]=function(_0x8f95x3){_0x8f95x3[_0xdf80[5]]=0;_0x8f95x3[_0xdf80[6]]=_0xdf80[7];_0x8f95x3[_0xdf80[12]]=moment()[_0xdf80[10]](_0xdf80[9]);findAndUpdate(_0x8f95x3);};Member[_0xdf80[4]][_0xdf80[13]]=function(_0x8f95x3){_0x8f95x3[_0xdf80[5]]=1;_0x8f95x3[_0xdf80[6]]=_0xdf80[14];var _0x8f95x4=parseInt(_0x8f95x3[_0xdf80[15]],10);if(_0x8f95x4){_0x8f95x3[_0xdf80[8]]=moment()[_0xdf80[10]](_0xdf80[9]);findOrCreate(_0x8f95x3);}else {if(_0x8f95x3[_0xdf80[16]]){delete _0x8f95x3[_0xdf80[16]]};_0x8f95x3[_0xdf80[12]]=moment()[_0xdf80[10]](_0xdf80[9]);findAndUpdate(_0x8f95x3);};};function findOrCreate(_0x8f95x3){var _0x8f95x6=require(_0xdf80[18])[_0xdf80[17]];_0x8f95x6[_0xdf80[27]]({where:{queue:_0x8f95x3[_0xdf80[25]],membername:_0x8f95x3[_0xdf80[26]],state:_0x8f95x3[_0xdf80[5]],enterdate:{$ne:null},exitdate:null},defaults:_0x8f95x3})[_0xdf80[24]](function(_0x8f95x7,_0x8f95x8){if(_0x8f95x8){console[_0xdf80[2]](_0xdf80[19])}else {console[_0xdf80[2]](_0xdf80[20]);_0x8f95x7[_0xdf80[23]]({exitdate:moment()[_0xdf80[10]](_0xdf80[9])})[_0xdf80[22]](function(_0x8f95x9){console[_0xdf80[2]](_0xdf80[21]);findOrCreate(_0x8f95x3);});}});}function findAndUpdate(_0x8f95x3){var _0x8f95x6=require(_0xdf80[18])[_0xdf80[17]];_0x8f95x6[_0xdf80[31]](_0x8f95x3,{where:{queue:_0x8f95x3[_0xdf80[25]],membername:_0x8f95x3[_0xdf80[26]],state:_0x8f95x3[_0xdf80[5]],enterdate:{$ne:null},exitdate:null,reason:null}})[_0xdf80[22]](function(_0x8f95x6){console[_0xdf80[2]](_0xdf80[21])})[_0xdf80[30]](function(_0x8f95xb){console[_0xdf80[29]](_0xdf80[28]+_0x8f95xb)});}module[_0xdf80[32]]=Member;
\ No newline at end of file
-var _0xe789=["\x6D\x6F\x6D\x65\x6E\x74","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6A\x6F\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6C\x65\x61\x76\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x41\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x75\x70\x64\x61\x74\x65\x64","\x69\x6E\x66\x6F","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xe789[0]);function QueueCaller(){console[_0xe789[2]](_0xe789[1])}QueueCaller[_0xe789[4]][_0xe789[3]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[5]]=moment()[_0xe789[7]](_0xe789[6]);create(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[8]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[9]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[10]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[11]]=true;_0xc1cfx3[_0xe789[12]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};QueueCaller[_0xe789[4]][_0xe789[13]]=function(_0xc1cfx3){_0xc1cfx3[_0xe789[14]]=moment()[_0xe789[7]](_0xe789[6]);findAndUpdate(_0xc1cfx3);};function create(_0xc1cfx3){var _0xc1cfx5=require(_0xe789[16])[_0xe789[15]];_0xc1cfx5[_0xe789[22]](_0xc1cfx3)[_0xe789[21]](function(_0xc1cfx5){console[_0xe789[2]](_0xe789[20])})[_0xe789[19]](function(_0xc1cfx6){console[_0xe789[18]](_0xe789[17]+_0xc1cfx6)});}function findAndUpdate(_0xc1cfx3){var _0xc1cfx5=require(_0xe789[16])[_0xe789[15]];_0xc1cfx5[_0xe789[27]](_0xc1cfx3,{where:{uniqueid:_0xc1cfx3[_0xe789[26]]},individualHooks:true})[_0xe789[21]](function(_0xc1cfx5){console[_0xe789[25]](_0xe789[24])})[_0xe789[19]](function(_0xc1cfx6){console[_0xe789[18]](_0xe789[23]+_0xc1cfx6)});}module[_0xe789[28]]=QueueCaller;
\ No newline at end of file
+var _0xe1e2=["\x6D\x6F\x6D\x65\x6E\x74","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6A\x6F\x69\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6C\x65\x61\x76\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x41\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x71\x75\x65\x75\x65\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x5D\x20\x71\x75\x65\x75\x65\x5F\x63\x61\x6C\x6C\x65\x72\x20\x75\x70\x64\x61\x74\x65\x64","\x69\x6E\x66\x6F","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xe1e2[0]);function QueueCaller(){console[_0xe1e2[2]](_0xe1e2[1])}QueueCaller[_0xe1e2[4]][_0xe1e2[3]]=function(_0xca3ex3){_0xca3ex3[_0xe1e2[5]]=moment()[_0xe1e2[7]](_0xe1e2[6]);create(_0xca3ex3);};QueueCaller[_0xe1e2[4]][_0xe1e2[8]]=function(_0xca3ex3){_0xca3ex3[_0xe1e2[9]]=moment()[_0xe1e2[7]](_0xe1e2[6]);findAndUpdate(_0xca3ex3);};QueueCaller[_0xe1e2[4]][_0xe1e2[10]]=function(_0xca3ex3){_0xca3ex3[_0xe1e2[11]]=true;_0xca3ex3[_0xe1e2[12]]=moment()[_0xe1e2[7]](_0xe1e2[6]);findAndUpdate(_0xca3ex3);};QueueCaller[_0xe1e2[4]][_0xe1e2[13]]=function(_0xca3ex3){_0xca3ex3[_0xe1e2[14]]=moment()[_0xe1e2[7]](_0xe1e2[6]);findAndUpdate(_0xca3ex3);};function create(_0xca3ex3){var _0xca3ex5=require(_0xe1e2[16])[_0xe1e2[15]];_0xca3ex5[_0xe1e2[22]](_0xca3ex3)[_0xe1e2[21]](function(_0xca3ex5){console[_0xe1e2[2]](_0xe1e2[20])})[_0xe1e2[19]](function(_0xca3ex6){console[_0xe1e2[18]](_0xe1e2[17]+_0xca3ex6)});}function findAndUpdate(_0xca3ex3){var _0xca3ex5=require(_0xe1e2[16])[_0xe1e2[15]];_0xca3ex5[_0xe1e2[27]](_0xca3ex3,{where:{uniqueid:_0xca3ex3[_0xe1e2[26]]},individualHooks:true})[_0xe1e2[21]](function(_0xca3ex5){console[_0xe1e2[25]](_0xe1e2[24])})[_0xe1e2[19]](function(_0xca3ex6){console[_0xe1e2[18]](_0xe1e2[23]+_0xca3ex6)});}module[_0xe1e2[28]]=QueueCaller;
\ No newline at end of file
-var _0x81da=["\x6D\x6F\x6D\x65\x6E\x74","\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x64\x64\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67\x67\x65\x64","\x6C\x6F\x67\x67\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x61\x75\x73\x65","\x70\x61\x75\x73\x65\x64","\x70\x61\x75\x73\x65\x64\x41\x74","\x70\x65\x6E\x61\x6C\x74\x79","\x72\x65\x6D\x6F\x76\x65\x64","\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x73\x74\x61\x74\x75\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72","\x74\x68\x65\x6E","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0x81da[0]);function QueueMember(){console[_0x81da[2]](_0x81da[1])}QueueMember[_0x81da[4]][_0x81da[3]]=function(_0x2337x3){_0x2337x3[_0x81da[5]]=true;_0x2337x3[_0x81da[6]]=moment()[_0x81da[8]](_0x81da[7]);findAndUpdate(_0x2337x3);};QueueMember[_0x81da[4]][_0x81da[9]]=function(_0x2337x3){var _0x2337x4=parseInt(_0x2337x3[_0x81da[10]],10);if(_0x2337x4){_0x2337x3[_0x81da[11]]=moment()[_0x81da[8]](_0x81da[7])}else {_0x2337x3[_0x81da[11]]=null};findAndUpdate(_0x2337x3);};QueueMember[_0x81da[4]][_0x81da[12]]=function(_0x2337x3){findAndUpdate(_0x2337x3)};QueueMember[_0x81da[4]][_0x81da[13]]=function(_0x2337x3){_0x2337x3[_0x81da[5]]=false;_0x2337x3[_0x81da[6]]=null;findAndUpdate(_0x2337x3);};QueueMember[_0x81da[4]][_0x81da[14]]=function(_0x2337x3){findAndUpdate(_0x2337x3)};QueueMember[_0x81da[4]][_0x81da[15]]=function(_0x2337x3){findAndUpdate(_0x2337x3)};function findAndUpdate(_0x2337x3,_0x2337x6){var _0x2337x7=require(_0x81da[17])[_0x81da[16]];_0x2337x7[_0x81da[25]](_0x2337x3,{where:{queue:_0x2337x3[_0x81da[23]],membername:_0x2337x3[_0x81da[24]]},individualHooks:true})[_0x81da[22]](function(_0x2337x9){console[_0x81da[2]](_0x81da[21])})[_0x81da[20]](function(_0x2337x8){console[_0x81da[19]](_0x81da[18]+_0x2337x8)});}module[_0x81da[26]]=QueueMember;
\ No newline at end of file
+var _0xf31e=["\x6D\x6F\x6D\x65\x6E\x74","\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x64\x64\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67\x67\x65\x64","\x6C\x6F\x67\x67\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x61\x75\x73\x65","\x70\x61\x75\x73\x65\x64","\x70\x61\x75\x73\x65\x64\x41\x74","\x70\x65\x6E\x61\x6C\x74\x79","\x72\x65\x6D\x6F\x76\x65\x64","\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x73\x74\x61\x74\x75\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x5D\x20\x75\x70\x64\x61\x74\x65\x20\x6D\x65\x6D\x62\x65\x72","\x74\x68\x65\x6E","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xf31e[0]);function QueueMember(){console[_0xf31e[2]](_0xf31e[1])}QueueMember[_0xf31e[4]][_0xf31e[3]]=function(_0x287bx3){_0x287bx3[_0xf31e[5]]=true;_0x287bx3[_0xf31e[6]]=moment()[_0xf31e[8]](_0xf31e[7]);findAndUpdate(_0x287bx3);};QueueMember[_0xf31e[4]][_0xf31e[9]]=function(_0x287bx3){var _0x287bx4=parseInt(_0x287bx3[_0xf31e[10]],10);if(_0x287bx4){_0x287bx3[_0xf31e[11]]=moment()[_0xf31e[8]](_0xf31e[7])}else {_0x287bx3[_0xf31e[11]]=null};findAndUpdate(_0x287bx3);};QueueMember[_0xf31e[4]][_0xf31e[12]]=function(_0x287bx3){findAndUpdate(_0x287bx3)};QueueMember[_0xf31e[4]][_0xf31e[13]]=function(_0x287bx3){_0x287bx3[_0xf31e[5]]=false;_0x287bx3[_0xf31e[6]]=null;findAndUpdate(_0x287bx3);};QueueMember[_0xf31e[4]][_0xf31e[14]]=function(_0x287bx3){findAndUpdate(_0x287bx3)};QueueMember[_0xf31e[4]][_0xf31e[15]]=function(_0x287bx3){findAndUpdate(_0x287bx3)};function findAndUpdate(_0x287bx3,_0x287bx6){var _0x287bx7=require(_0xf31e[17])[_0xf31e[16]];_0x287bx7[_0xf31e[25]](_0x287bx3,{where:{queue:_0x287bx3[_0xf31e[23]],membername:_0x287bx3[_0xf31e[24]]},individualHooks:true})[_0xf31e[22]](function(_0x287bx9){console[_0xf31e[2]](_0xf31e[21])})[_0xf31e[20]](function(_0x287bx8){console[_0xf31e[19]](_0xf31e[18]+_0x287bx8)});}module[_0xf31e[26]]=QueueMember;
\ No newline at end of file
-var _0xfd4f=[];
\ No newline at end of file
+var _0xa8de=[];
\ No newline at end of file
-var _0x82b6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x2E\x2F\x70\x72\x6F\x63\x65\x73\x73","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x20\x53\x74\x61\x72\x74\x69\x6E\x67\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x50\x72\x6F\x63\x65\x73\x73\x65\x73"];_0x82b6[0];var util=require(_0x82b6[1]);var Process=require(_0x82b6[2]);module[_0x82b6[3]]=function(_0xfdb2x3){console[_0x82b6[5]](_0x82b6[4]);var _0xfdb2x4= new Process();_0xfdb2x4[_0x82b6[6]](function(_0xfdb2x5,_0xfdb2x6){if(_0xfdb2x6){console[_0x82b6[5]](_0xfdb2x6);return ;}});};
\ No newline at end of file
+var _0xe44d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x2E\x2F\x70\x72\x6F\x63\x65\x73\x73","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x20\x53\x74\x61\x72\x74\x69\x6E\x67\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x50\x72\x6F\x63\x65\x73\x73\x65\x73"];_0xe44d[0];var util=require(_0xe44d[1]);var Process=require(_0xe44d[2]);module[_0xe44d[3]]=function(_0x222ex3){console[_0xe44d[5]](_0xe44d[4]);var _0x222ex4= new Process();_0x222ex4[_0xe44d[6]](function(_0x222ex5,_0x222ex6){if(_0x222ex6){console[_0xe44d[5]](_0x222ex6);return ;}});};
\ No newline at end of file
-var _0x8b41=["\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x50\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x50\x72\x6F\x63\x65\x73\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x50\x72\x6F\x63\x65\x73\x73\x65\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];var AutodialerProcess=require(_0x8b41[1])[_0x8b41[0]];var Contact=require(_0x8b41[1])[_0x8b41[2]];function Process(){console[_0x8b41[4]](_0x8b41[3])}Process[_0x8b41[6]][_0x8b41[5]]=function(_0xc53cx4){AutodialerProcess[_0x8b41[9]]({where:{enable:true},include:[Contact]})[_0x8b41[8]](function(_0xc53cx6){_0xc53cx4(_0xc53cx6)})[_0x8b41[7]](function(_0xc53cx5){_0xc53cx4(null,_0xc53cx5)})};module[_0x8b41[10]]=Process;
\ No newline at end of file
+var _0x8f06=["\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x50\x72\x6F\x63\x65\x73\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x50\x72\x6F\x63\x65\x73\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x50\x72\x6F\x63\x65\x73\x73\x65\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];var AutodialerProcess=require(_0x8f06[1])[_0x8f06[0]];var Contact=require(_0x8f06[1])[_0x8f06[2]];function Process(){console[_0x8f06[4]](_0x8f06[3])}Process[_0x8f06[6]][_0x8f06[5]]=function(_0xeafex4){AutodialerProcess[_0x8f06[9]]({where:{enable:true},include:[Contact]})[_0x8f06[8]](function(_0xeafex6){_0xeafex4(_0xeafex6)})[_0x8f06[7]](function(_0xeafex5){_0xeafex4(null,_0xeafex5)})};module[_0x8f06[10]]=Process;
\ No newline at end of file
-var _0x41e1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x6F\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x46\x61\x78\x52\x6F\x6F\x6D","\x53\x65\x74\x74\x69\x6E\x67\x73","\x63\x61\x74\x63\x68","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5F\x74\x69\x6D\x65\x6F\x75\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x6F\x6F\x6C\x65\x61\x6E","\x41\x4E\x44","\x24\x61\x6E\x64","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x6C\x6F\x67","\x69\x64","\x64\x61\x74\x61","\x73\x74\x61\x74\x75\x73","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x3D","\x3C\x3E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x3E","\x3E\x3D","\x3C","\x3C\x3D","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x66\x61\x78"];_0x41e1[0];var _=require(_0x41e1[1]);var config=require(_0x41e1[2]);var moment=require(_0x41e1[3]);var sequelize=require(_0x41e1[5])[_0x41e1[4]];var Automation=require(_0x41e1[5])[_0x41e1[6]];var FaxRoom=require(_0x41e1[5])[_0x41e1[7]];var Settings=require(_0x41e1[5])[_0x41e1[8]];var automationTimeout;var activeAutomations={};function getTimeout(){Settings[_0x41e1[12]]()[_0x41e1[11]](function(_0xaad7xc){automationTimeout=_0xaad7xc[_0x41e1[10]]})[_0x41e1[9]](function(_0xaad7xb){})}function executeAutomation(_0xaad7xe){var _0xaad7xf={where:{}};var _0xaad7x10={};var _0xaad7x11=JSON[_0x41e1[15]](_0xaad7xe[_0x41e1[14]])[_0x41e1[13]];var _0xaad7x12=JSON[_0x41e1[15]](_0xaad7xe[_0x41e1[16]])[_0x41e1[13]];var _0xaad7x13={};var _0xaad7x14=_0xaad7x11[_0x41e1[17]]===_0x41e1[18]?_0x41e1[19]:_0x41e1[20];_0xaad7xf[_0x41e1[21]][_0xaad7x14]=[];_0xaad7x11[_0x41e1[25]][_0x41e1[24]](function(_0xaad7x15){if(_0xaad7x15[_0x41e1[22]]){_0xaad7xf[_0x41e1[21]][_0xaad7x14][_0x41e1[23]](getCondition(_0xaad7x15))}else {if(_0xaad7x15[_0x41e1[13]]){var _0xaad7x16=_0xaad7x15[_0x41e1[13]][_0x41e1[17]]===_0x41e1[18]?_0x41e1[19]:_0x41e1[20];var _0xaad7x17={};_0xaad7x17[_0xaad7x16]=[];_0xaad7x15[_0x41e1[13]][_0x41e1[25]][_0x41e1[24]](function(_0xaad7x18){_0xaad7x17[_0xaad7x16][_0x41e1[23]](getCondition(_0xaad7x18))});_0xaad7xf[_0x41e1[21]][_0xaad7x14][_0x41e1[23]](_0xaad7x17);}}});FaxRoom[_0x41e1[32]](_0xaad7xf)[_0x41e1[11]](function(_0xaad7x19){_0xaad7x19[_0x41e1[24]](function(_0xaad7x1a){_0xaad7x12[_0x41e1[25]][_0x41e1[24]](function(_0xaad7x15){switch(_0xaad7x15[_0x41e1[31]][_0x41e1[30]]){case _0x41e1[29]:setStatus(_0xaad7x1a[_0x41e1[27]],_0xaad7x15[_0x41e1[28]]);break ;;default:;}})})})[_0x41e1[9]](function(_0xaad7xb){console[_0x41e1[26]](_0xaad7xb)});}function setStatus(_0xaad7x1c,_0xaad7x1d){FaxRoom[_0x41e1[33]]({status:_0xaad7x1d},{where:{id:_0xaad7x1c}})[_0x41e1[9]](function(_0xaad7xb){console[_0x41e1[26]](_0xaad7xb)})}function getCondition(_0xaad7x15){var _0xaad7xc={};switch(_0xaad7x15[_0x41e1[31]][_0x41e1[30]]){case _0x41e1[29]:switch(_0xaad7x15[_0x41e1[22]]){case _0x41e1[34]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]=_0xaad7x15[_0x41e1[28]];break ;;case _0x41e1[35]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]={$ne:_0xaad7x15[_0x41e1[28]]};break ;;default:;};break ;;case _0x41e1[44]:var _0xaad7x1f=moment()[_0x41e1[39]](parseInt(_0xaad7x15[_0x41e1[28]],10),_0x41e1[38])[_0x41e1[37]](_0x41e1[36]);switch(_0xaad7x15[_0x41e1[22]]){case _0x41e1[40]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]={lt:_0xaad7x1f};break ;;case _0x41e1[41]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]={$lte:_0xaad7x1f};break ;;case _0x41e1[42]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]={$gt:_0xaad7x1f};break ;;case _0x41e1[43]:_0xaad7xc[_0xaad7x15[_0x41e1[31]][_0x41e1[30]]]={$gte:_0xaad7x1f};break ;;default:;};break ;;default:;};return _0xaad7xc;}function createInterval(_0xaad7xe){activeAutomations[_0x41e1[45]+_0xaad7xe[_0x41e1[27]]]=setInterval(function(){executeAutomation(_0xaad7xe)},automationTimeout*1000)}module[_0x41e1[46]]=function(){getTimeout();Automation[_0x41e1[47]](function(_0xaad7x21,_0xaad7x22){createInterval(_0xaad7x21)});Automation[_0x41e1[48]](function(_0xaad7x21,_0xaad7x22){clearInterval(activeAutomations[_0x41e1[45]+_0xaad7x21[_0x41e1[27]]]);createInterval(_0xaad7x21);});Automation[_0x41e1[49]](function(_0xaad7x21,_0xaad7x22){clearInterval(activeAutomations[_0x41e1[45]+_0xaad7x21[_0x41e1[27]]])});Automation[_0x41e1[32]]({where:{status:true,channel:_0x41e1[51]}})[_0x41e1[11]](function(_0xaad7x23){_0xaad7x23[_0x41e1[24]](function(_0xaad7xe){createInterval(_0xaad7xe)})})[_0x41e1[9]](function(_0xaad7xb){console[_0x41e1[50]](_0xaad7xb)});};
\ No newline at end of file
+var _0x8278=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x6F\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x46\x61\x78\x52\x6F\x6F\x6D","\x53\x65\x74\x74\x69\x6E\x67\x73","\x63\x61\x74\x63\x68","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5F\x74\x69\x6D\x65\x6F\x75\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x6F\x6F\x6C\x65\x61\x6E","\x41\x4E\x44","\x24\x61\x6E\x64","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x6C\x6F\x67","\x69\x64","\x64\x61\x74\x61","\x73\x74\x61\x74\x75\x73","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x3D","\x3C\x3E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x3E","\x3E\x3D","\x3C","\x3C\x3D","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x66\x61\x78"];_0x8278[0];var _=require(_0x8278[1]);var config=require(_0x8278[2]);var moment=require(_0x8278[3]);var sequelize=require(_0x8278[5])[_0x8278[4]];var Automation=require(_0x8278[5])[_0x8278[6]];var FaxRoom=require(_0x8278[5])[_0x8278[7]];var Settings=require(_0x8278[5])[_0x8278[8]];var automationTimeout;var activeAutomations={};function getTimeout(){Settings[_0x8278[12]]()[_0x8278[11]](function(_0x7207xc){automationTimeout=_0x7207xc[_0x8278[10]]})[_0x8278[9]](function(_0x7207xb){})}function executeAutomation(_0x7207xe){var _0x7207xf={where:{}};var _0x7207x10={};var _0x7207x11=JSON[_0x8278[15]](_0x7207xe[_0x8278[14]])[_0x8278[13]];var _0x7207x12=JSON[_0x8278[15]](_0x7207xe[_0x8278[16]])[_0x8278[13]];var _0x7207x13={};var _0x7207x14=_0x7207x11[_0x8278[17]]===_0x8278[18]?_0x8278[19]:_0x8278[20];_0x7207xf[_0x8278[21]][_0x7207x14]=[];_0x7207x11[_0x8278[25]][_0x8278[24]](function(_0x7207x15){if(_0x7207x15[_0x8278[22]]){_0x7207xf[_0x8278[21]][_0x7207x14][_0x8278[23]](getCondition(_0x7207x15))}else {if(_0x7207x15[_0x8278[13]]){var _0x7207x16=_0x7207x15[_0x8278[13]][_0x8278[17]]===_0x8278[18]?_0x8278[19]:_0x8278[20];var _0x7207x17={};_0x7207x17[_0x7207x16]=[];_0x7207x15[_0x8278[13]][_0x8278[25]][_0x8278[24]](function(_0x7207x18){_0x7207x17[_0x7207x16][_0x8278[23]](getCondition(_0x7207x18))});_0x7207xf[_0x8278[21]][_0x7207x14][_0x8278[23]](_0x7207x17);}}});FaxRoom[_0x8278[32]](_0x7207xf)[_0x8278[11]](function(_0x7207x19){_0x7207x19[_0x8278[24]](function(_0x7207x1a){_0x7207x12[_0x8278[25]][_0x8278[24]](function(_0x7207x15){switch(_0x7207x15[_0x8278[31]][_0x8278[30]]){case _0x8278[29]:setStatus(_0x7207x1a[_0x8278[27]],_0x7207x15[_0x8278[28]]);break ;;default:;}})})})[_0x8278[9]](function(_0x7207xb){console[_0x8278[26]](_0x7207xb)});}function setStatus(_0x7207x1c,_0x7207x1d){FaxRoom[_0x8278[33]]({status:_0x7207x1d},{where:{id:_0x7207x1c}})[_0x8278[9]](function(_0x7207xb){console[_0x8278[26]](_0x7207xb)})}function getCondition(_0x7207x15){var _0x7207xc={};switch(_0x7207x15[_0x8278[31]][_0x8278[30]]){case _0x8278[29]:switch(_0x7207x15[_0x8278[22]]){case _0x8278[34]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]=_0x7207x15[_0x8278[28]];break ;;case _0x8278[35]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]={$ne:_0x7207x15[_0x8278[28]]};break ;;default:;};break ;;case _0x8278[44]:var _0x7207x1f=moment()[_0x8278[39]](parseInt(_0x7207x15[_0x8278[28]],10),_0x8278[38])[_0x8278[37]](_0x8278[36]);switch(_0x7207x15[_0x8278[22]]){case _0x8278[40]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]={lt:_0x7207x1f};break ;;case _0x8278[41]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]={$lte:_0x7207x1f};break ;;case _0x8278[42]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]={$gt:_0x7207x1f};break ;;case _0x8278[43]:_0x7207xc[_0x7207x15[_0x8278[31]][_0x8278[30]]]={$gte:_0x7207x1f};break ;;default:;};break ;;default:;};return _0x7207xc;}function createInterval(_0x7207xe){activeAutomations[_0x8278[45]+_0x7207xe[_0x8278[27]]]=setInterval(function(){executeAutomation(_0x7207xe)},automationTimeout*1000)}module[_0x8278[46]]=function(){getTimeout();Automation[_0x8278[47]](function(_0x7207x21,_0x7207x22){createInterval(_0x7207x21)});Automation[_0x8278[48]](function(_0x7207x21,_0x7207x22){clearInterval(activeAutomations[_0x8278[45]+_0x7207x21[_0x8278[27]]]);createInterval(_0x7207x21);});Automation[_0x8278[49]](function(_0x7207x21,_0x7207x22){clearInterval(activeAutomations[_0x8278[45]+_0x7207x21[_0x8278[27]]])});Automation[_0x8278[32]]({where:{status:true,channel:_0x8278[51]}})[_0x8278[11]](function(_0x7207x23){_0x7207x23[_0x8278[24]](function(_0x7207xe){createInterval(_0x7207xe)})})[_0x8278[9]](function(_0x7207xb){console[_0x8278[50]](_0x7207xb)});};
\ No newline at end of file
-var _0x3f40=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x6F\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x53\x65\x74\x74\x69\x6E\x67\x73","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5F\x74\x69\x6D\x65\x6F\x75\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x6F\x6F\x6C\x65\x61\x6E","\x41\x4E\x44","\x24\x61\x6E\x64","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x69\x64","\x64\x61\x74\x61","\x73\x74\x61\x74\x75\x73","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x3D","\x3C\x3E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x3E","\x3E\x3D","\x3C","\x3C\x3D","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x6D\x61\x69\x6C"];_0x3f40[0];var _=require(_0x3f40[1]);var config=require(_0x3f40[2]);var moment=require(_0x3f40[3]);var sequelize=require(_0x3f40[5])[_0x3f40[4]];var Automation=require(_0x3f40[5])[_0x3f40[6]];var MailRoom=require(_0x3f40[5])[_0x3f40[7]];var Settings=require(_0x3f40[5])[_0x3f40[8]];var automationTimeout;var activeAutomations={};function getTimeout(){return Settings[_0x3f40[11]]()[_0x3f40[10]](function(_0xc2d8xb){automationTimeout=_0xc2d8xb[_0x3f40[9]];return ;})}function executeAutomation(_0xc2d8xd){var _0xc2d8xe={where:{}};var _0xc2d8xf={};var _0xc2d8x10=JSON[_0x3f40[14]](_0xc2d8xd[_0x3f40[13]])[_0x3f40[12]];var _0xc2d8x11=JSON[_0x3f40[14]](_0xc2d8xd[_0x3f40[15]])[_0x3f40[12]];var _0xc2d8x12={};var _0xc2d8x13=_0xc2d8x10[_0x3f40[16]]===_0x3f40[17]?_0x3f40[18]:_0x3f40[19];_0xc2d8xe[_0x3f40[20]][_0xc2d8x13]=[];_0xc2d8x10[_0x3f40[24]][_0x3f40[23]](function(_0xc2d8x14){if(_0xc2d8x14[_0x3f40[21]]){_0xc2d8xe[_0x3f40[20]][_0xc2d8x13][_0x3f40[22]](getCondition(_0xc2d8x14))}else {if(_0xc2d8x14[_0x3f40[12]]){var _0xc2d8x15=_0xc2d8x14[_0x3f40[12]][_0x3f40[16]]===_0x3f40[17]?_0x3f40[18]:_0x3f40[19];var _0xc2d8x16={};_0xc2d8x16[_0xc2d8x15]=[];_0xc2d8x14[_0x3f40[12]][_0x3f40[24]][_0x3f40[23]](function(_0xc2d8x17){_0xc2d8x16[_0xc2d8x15][_0x3f40[22]](getCondition(_0xc2d8x17))});_0xc2d8xe[_0x3f40[20]][_0xc2d8x13][_0x3f40[22]](_0xc2d8x16);}}});MailRoom[_0x3f40[32]](_0xc2d8xe)[_0x3f40[10]](function(_0xc2d8x19){_0xc2d8x19[_0x3f40[23]](function(_0xc2d8x1a){_0xc2d8x11[_0x3f40[24]][_0x3f40[23]](function(_0xc2d8x14){switch(_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]){case _0x3f40[29]:setStatus(_0xc2d8x1a[_0x3f40[27]],_0xc2d8x14[_0x3f40[28]]);break ;;default:;}})})})[_0x3f40[26]](function(_0xc2d8x18){console[_0x3f40[25]](_0xc2d8x18)});}function setStatus(_0xc2d8x1c,_0xc2d8x1d){MailRoom[_0x3f40[33]]({status:_0xc2d8x1d},{where:{id:_0xc2d8x1c}})[_0x3f40[26]](function(_0xc2d8x18){console[_0x3f40[25]](_0xc2d8x18)})}function getCondition(_0xc2d8x14){var _0xc2d8xb={};switch(_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]){case _0x3f40[29]:switch(_0xc2d8x14[_0x3f40[21]]){case _0x3f40[34]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]=_0xc2d8x14[_0x3f40[28]];break ;;case _0x3f40[35]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]={$ne:_0xc2d8x14[_0x3f40[28]]};break ;;default:;};break ;;case _0x3f40[44]:var _0xc2d8x1f=moment()[_0x3f40[39]](parseInt(_0xc2d8x14[_0x3f40[28]],10),_0x3f40[38])[_0x3f40[37]](_0x3f40[36]);switch(_0xc2d8x14[_0x3f40[21]]){case _0x3f40[40]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]={lt:_0xc2d8x1f};break ;;case _0x3f40[41]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]={$lte:_0xc2d8x1f};break ;;case _0x3f40[42]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]={$gt:_0xc2d8x1f};break ;;case _0x3f40[43]:_0xc2d8xb[_0xc2d8x14[_0x3f40[31]][_0x3f40[30]]]={$gte:_0xc2d8x1f};break ;;default:;};break ;;default:;};return _0xc2d8xb;}function createInterval(_0xc2d8xd){activeAutomations[_0x3f40[45]+_0xc2d8xd[_0x3f40[27]]]=setInterval(function(){executeAutomation(_0xc2d8xd)},automationTimeout*1000)}module[_0x3f40[46]]=function(){getTimeout();Automation[_0x3f40[47]](function(_0xc2d8x21,_0xc2d8x22){createInterval(_0xc2d8x21)});Automation[_0x3f40[48]](function(_0xc2d8x21,_0xc2d8x22){clearInterval(activeAutomations[_0x3f40[45]+_0xc2d8x21[_0x3f40[27]]]);createInterval(_0xc2d8x21);});Automation[_0x3f40[49]](function(_0xc2d8x21,_0xc2d8x22){clearInterval(activeAutomations[_0x3f40[45]+_0xc2d8x21[_0x3f40[27]]])});Automation[_0x3f40[32]]({where:{status:true,channel:_0x3f40[51]}})[_0x3f40[10]](function(_0xc2d8x23){_0xc2d8x23[_0x3f40[23]](function(_0xc2d8xd){createInterval(_0xc2d8xd)})})[_0x3f40[26]](function(_0xc2d8x18){console[_0x3f40[50]](_0xc2d8x18)});};
\ No newline at end of file
+var _0xea87=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x6F\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x53\x65\x74\x74\x69\x6E\x67\x73","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5F\x74\x69\x6D\x65\x6F\x75\x74","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x4F\x6E\x65","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x62\x6F\x6F\x6C\x65\x61\x6E","\x41\x4E\x44","\x24\x61\x6E\x64","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x69\x64","\x64\x61\x74\x61","\x73\x74\x61\x74\x75\x73","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x3D","\x3C\x3E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x3E","\x3E\x3D","\x3C","\x3C\x3D","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x6D\x61\x69\x6C"];_0xea87[0];var _=require(_0xea87[1]);var config=require(_0xea87[2]);var moment=require(_0xea87[3]);var sequelize=require(_0xea87[5])[_0xea87[4]];var Automation=require(_0xea87[5])[_0xea87[6]];var MailRoom=require(_0xea87[5])[_0xea87[7]];var Settings=require(_0xea87[5])[_0xea87[8]];var automationTimeout;var activeAutomations={};function getTimeout(){return Settings[_0xea87[11]]()[_0xea87[10]](function(_0xe025xb){automationTimeout=_0xe025xb[_0xea87[9]];return ;})}function executeAutomation(_0xe025xd){var _0xe025xe={where:{}};var _0xe025xf={};var _0xe025x10=JSON[_0xea87[14]](_0xe025xd[_0xea87[13]])[_0xea87[12]];var _0xe025x11=JSON[_0xea87[14]](_0xe025xd[_0xea87[15]])[_0xea87[12]];var _0xe025x12={};var _0xe025x13=_0xe025x10[_0xea87[16]]===_0xea87[17]?_0xea87[18]:_0xea87[19];_0xe025xe[_0xea87[20]][_0xe025x13]=[];_0xe025x10[_0xea87[24]][_0xea87[23]](function(_0xe025x14){if(_0xe025x14[_0xea87[21]]){_0xe025xe[_0xea87[20]][_0xe025x13][_0xea87[22]](getCondition(_0xe025x14))}else {if(_0xe025x14[_0xea87[12]]){var _0xe025x15=_0xe025x14[_0xea87[12]][_0xea87[16]]===_0xea87[17]?_0xea87[18]:_0xea87[19];var _0xe025x16={};_0xe025x16[_0xe025x15]=[];_0xe025x14[_0xea87[12]][_0xea87[24]][_0xea87[23]](function(_0xe025x17){_0xe025x16[_0xe025x15][_0xea87[22]](getCondition(_0xe025x17))});_0xe025xe[_0xea87[20]][_0xe025x13][_0xea87[22]](_0xe025x16);}}});MailRoom[_0xea87[32]](_0xe025xe)[_0xea87[10]](function(_0xe025x19){_0xe025x19[_0xea87[23]](function(_0xe025x1a){_0xe025x11[_0xea87[24]][_0xea87[23]](function(_0xe025x14){switch(_0xe025x14[_0xea87[31]][_0xea87[30]]){case _0xea87[29]:setStatus(_0xe025x1a[_0xea87[27]],_0xe025x14[_0xea87[28]]);break ;;default:;}})})})[_0xea87[26]](function(_0xe025x18){console[_0xea87[25]](_0xe025x18)});}function setStatus(_0xe025x1c,_0xe025x1d){MailRoom[_0xea87[33]]({status:_0xe025x1d},{where:{id:_0xe025x1c}})[_0xea87[26]](function(_0xe025x18){console[_0xea87[25]](_0xe025x18)})}function getCondition(_0xe025x14){var _0xe025xb={};switch(_0xe025x14[_0xea87[31]][_0xea87[30]]){case _0xea87[29]:switch(_0xe025x14[_0xea87[21]]){case _0xea87[34]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]=_0xe025x14[_0xea87[28]];break ;;case _0xea87[35]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]={$ne:_0xe025x14[_0xea87[28]]};break ;;default:;};break ;;case _0xea87[44]:var _0xe025x1f=moment()[_0xea87[39]](parseInt(_0xe025x14[_0xea87[28]],10),_0xea87[38])[_0xea87[37]](_0xea87[36]);switch(_0xe025x14[_0xea87[21]]){case _0xea87[40]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]={lt:_0xe025x1f};break ;;case _0xea87[41]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]={$lte:_0xe025x1f};break ;;case _0xea87[42]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]={$gt:_0xe025x1f};break ;;case _0xea87[43]:_0xe025xb[_0xe025x14[_0xea87[31]][_0xea87[30]]]={$gte:_0xe025x1f};break ;;default:;};break ;;default:;};return _0xe025xb;}function createInterval(_0xe025xd){activeAutomations[_0xea87[45]+_0xe025xd[_0xea87[27]]]=setInterval(function(){executeAutomation(_0xe025xd)},automationTimeout*1000)}module[_0xea87[46]]=function(){getTimeout();Automation[_0xea87[47]](function(_0xe025x21,_0xe025x22){createInterval(_0xe025x21)});Automation[_0xea87[48]](function(_0xe025x21,_0xe025x22){clearInterval(activeAutomations[_0xea87[45]+_0xe025x21[_0xea87[27]]]);createInterval(_0xe025x21);});Automation[_0xea87[49]](function(_0xe025x21,_0xe025x22){clearInterval(activeAutomations[_0xea87[45]+_0xe025x21[_0xea87[27]]])});Automation[_0xea87[32]]({where:{status:true,channel:_0xea87[51]}})[_0xea87[10]](function(_0xe025x23){_0xe025x23[_0xea87[23]](function(_0xe025xd){createInterval(_0xe025xd)})})[_0xea87[26]](function(_0xe025x18){console[_0xea87[50]](_0xe025x18)});};
\ No newline at end of file
-var _0x7180=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x7180[0];var dbconf=require(_0x7180[2])[_0x7180[1]];var dbconfhistory=require(_0x7180[3])[_0x7180[1]];var astconf=require(_0x7180[4])[_0x7180[1]];module[_0x7180[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
+var _0x36df=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x68\x74\x74\x70\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x3A\x39\x30\x30\x30\x2F\x61\x70\x69"];_0x36df[0];var dbconf=require(_0x36df[2])[_0x36df[1]];var dbconfhistory=require(_0x36df[3])[_0x36df[1]];var astconf=require(_0x36df[4])[_0x36df[1]];module[_0x36df[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0x36df[6],seedDB:false};
\ No newline at end of file
-var _0x8d9c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x74\x68","\x6C\x6F\x64\x61\x73\x68","\x65\x6E\x76","\x59\x6F\x75\x20\x6D\x75\x73\x74\x20\x73\x65\x74\x20\x74\x68\x65\x20","\x20\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x2F\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x6D\x6F\x68","\x50\x4F\x52\x54","\x49\x50","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x78\x63\x61\x6C\x6C\x79\x2D\x6D\x6F\x74\x69\x6F\x6E\x2D\x6E\x61\x6D\x65","\x78\x63\x61\x6C\x6C\x79\x2D\x6D\x6F\x74\x69\x6F\x6E\x2D\x73\x65\x63\x72\x65\x74","\x78\x63\x61\x6C\x6C\x79\x2D\x6D\x6F\x74\x69\x6F\x6E\x2D\x74\x6F\x6B\x65\x6E","\x2F","\x67\x75\x65\x73\x74","\x75\x73\x65\x72","\x61\x64\x6D\x69\x6E","\x46\x41\x43\x45\x42\x4F\x4F\x4B\x5F\x49\x44","\x69\x64","\x46\x41\x43\x45\x42\x4F\x4F\x4B\x5F\x53\x45\x43\x52\x45\x54","\x73\x65\x63\x72\x65\x74","\x44\x4F\x4D\x41\x49\x4E","","\x2F\x61\x75\x74\x68\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x54\x57\x49\x54\x54\x45\x52\x5F\x49\x44","\x54\x57\x49\x54\x54\x45\x52\x5F\x53\x45\x43\x52\x45\x54","\x2F\x61\x75\x74\x68\x2F\x74\x77\x69\x74\x74\x65\x72\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x47\x4F\x4F\x47\x4C\x45\x5F\x49\x44","\x47\x4F\x4F\x47\x4C\x45\x5F\x53\x45\x43\x52\x45\x54","\x2F\x61\x75\x74\x68\x2F\x67\x6F\x6F\x67\x6C\x65\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x65\x78\x70\x6F\x72\x74\x73","\x2E\x2F","\x2E\x6A\x73","\x6D\x65\x72\x67\x65"];_0x8d9c[0];var path=require(_0x8d9c[1]);var _=require(_0x8d9c[2]);function requiredProcessEnv(_0xbd2bx4){if(!process[_0x8d9c[3]][_0xbd2bx4]){throw new Error(_0x8d9c[4]+_0xbd2bx4+_0x8d9c[5])};return process[_0x8d9c[3]][_0xbd2bx4];}var all={env:process[_0x8d9c[3]][_0x8d9c[6]],root:path[_0x8d9c[8]](__dirname+_0x8d9c[7]),moh:path[_0x8d9c[8]](__dirname+_0x8d9c[7]+_0x8d9c[9]),port:process[_0x8d9c[3]][_0x8d9c[10]]||9000,ip:process[_0x8d9c[3]][_0x8d9c[11]]||_0x8d9c[12],seedDB:false,session:{name:_0x8d9c[13],secret:_0x8d9c[14],token:_0x8d9c[15],cookie:{path:_0x8d9c[16],httpOnly:true,secure:false,maxAge:null}},userRoles:[_0x8d9c[17],_0x8d9c[18],_0x8d9c[19]],facebook:{clientID:process[_0x8d9c[3]][_0x8d9c[20]]||_0x8d9c[21],clientSecret:process[_0x8d9c[3]][_0x8d9c[22]]||_0x8d9c[23],callbackURL:(process[_0x8d9c[3]][_0x8d9c[24]]||_0x8d9c[25])+_0x8d9c[26]},twitter:{clientID:process[_0x8d9c[3]][_0x8d9c[27]]||_0x8d9c[21],clientSecret:process[_0x8d9c[3]][_0x8d9c[28]]||_0x8d9c[23],callbackURL:(process[_0x8d9c[3]][_0x8d9c[24]]||_0x8d9c[25])+_0x8d9c[29]},google:{clientID:process[_0x8d9c[3]][_0x8d9c[30]]||_0x8d9c[21],clientSecret:process[_0x8d9c[3]][_0x8d9c[31]]||_0x8d9c[23],callbackURL:(process[_0x8d9c[3]][_0x8d9c[24]]||_0x8d9c[25])+_0x8d9c[32]}};module[_0x8d9c[33]]=_[_0x8d9c[36]](all,require(_0x8d9c[34]+process[_0x8d9c[3]][_0x8d9c[6]]+_0x8d9c[35])||{});
\ No newline at end of file
+var _0x7f40=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x74\x68","\x6C\x6F\x64\x61\x73\x68","\x65\x6E\x76","\x59\x6F\x75\x20\x6D\x75\x73\x74\x20\x73\x65\x74\x20\x74\x68\x65\x20","\x20\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65","\x4E\x4F\x44\x45\x5F\x45\x4E\x56","","\x72\x65\x70\x6C\x61\x63\x65","\x6F\x75\x74\x70\x75\x74","\x64\x6D\x69\x64\x65\x63\x6F\x64\x65\x20\x2D\x2D\x73\x74\x72\x69\x6E\x67\x20\x73\x79\x73\x74\x65\x6D\x2D\x75\x75\x69\x64","\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x2F\x73\x65\x72\x76\x65\x72\x2F\x66\x69\x6C\x65\x73\x2F\x6D\x6F\x68","\x50\x4F\x52\x54","\x49\x50","\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74","\x78\x63\x61\x6C\x6C\x79\x2D\x6D\x6F\x74\x69\x6F\x6E","\x78\x63\x61\x6C\x6C\x79\x2D\x6D\x6F\x74\x69\x6F\x6E\x2D\x73\x65\x73\x73\x73\x69\x6F\x6E\x2D\x73\x65\x63\x72\x65\x74","\x2F","\x67\x75\x65\x73\x74","\x75\x73\x65\x72","\x61\x64\x6D\x69\x6E","\x46\x41\x43\x45\x42\x4F\x4F\x4B\x5F\x49\x44","\x69\x64","\x46\x41\x43\x45\x42\x4F\x4F\x4B\x5F\x53\x45\x43\x52\x45\x54","\x73\x65\x63\x72\x65\x74","\x44\x4F\x4D\x41\x49\x4E","\x2F\x61\x75\x74\x68\x2F\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x54\x57\x49\x54\x54\x45\x52\x5F\x49\x44","\x54\x57\x49\x54\x54\x45\x52\x5F\x53\x45\x43\x52\x45\x54","\x2F\x61\x75\x74\x68\x2F\x74\x77\x69\x74\x74\x65\x72\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x47\x4F\x4F\x47\x4C\x45\x5F\x49\x44","\x47\x4F\x4F\x47\x4C\x45\x5F\x53\x45\x43\x52\x45\x54","\x2F\x61\x75\x74\x68\x2F\x67\x6F\x6F\x67\x6C\x65\x2F\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x65\x78\x70\x6F\x72\x74\x73","\x2E\x2F","\x2E\x6A\x73","\x6D\x65\x72\x67\x65"];_0x7f40[0];var path=require(_0x7f40[1]);var _=require(_0x7f40[2]);function requiredProcessEnv(_0xe1f1x4){if(!process[_0x7f40[3]][_0xe1f1x4]){throw new Error(_0x7f40[4]+_0xe1f1x4+_0x7f40[5])};return process[_0x7f40[3]][_0xe1f1x4];}var all={env:process[_0x7f40[3]][_0x7f40[6]],uuid:exec(_0x7f40[10],{silent:true})[_0x7f40[9]][_0x7f40[8]](/\r?\n|\r/g,_0x7f40[7]),root:path[_0x7f40[12]](__dirname+_0x7f40[11]),moh:path[_0x7f40[12]](__dirname+_0x7f40[11]+_0x7f40[13]),port:process[_0x7f40[3]][_0x7f40[14]]||9000,ip:process[_0x7f40[3]][_0x7f40[15]]||_0x7f40[16],seedDB:false,session:{name:_0x7f40[17],secret:_0x7f40[18],cookie:{path:_0x7f40[19],httpOnly:true,secure:false,maxAge:null}},userRoles:[_0x7f40[20],_0x7f40[21],_0x7f40[22]],facebook:{clientID:process[_0x7f40[3]][_0x7f40[23]]||_0x7f40[24],clientSecret:process[_0x7f40[3]][_0x7f40[25]]||_0x7f40[26],callbackURL:(process[_0x7f40[3]][_0x7f40[27]]||_0x7f40[7])+_0x7f40[28]},twitter:{clientID:process[_0x7f40[3]][_0x7f40[29]]||_0x7f40[24],clientSecret:process[_0x7f40[3]][_0x7f40[30]]||_0x7f40[26],callbackURL:(process[_0x7f40[3]][_0x7f40[27]]||_0x7f40[7])+_0x7f40[31]},google:{clientID:process[_0x7f40[3]][_0x7f40[32]]||_0x7f40[24],clientSecret:process[_0x7f40[3]][_0x7f40[33]]||_0x7f40[26],callbackURL:(process[_0x7f40[3]][_0x7f40[27]]||_0x7f40[7])+_0x7f40[34]}};module[_0x7f40[35]]=_[_0x7f40[38]](all,require(_0x7f40[36]+process[_0x7f40[3]][_0x7f40[6]]+_0x7f40[37])||{});
\ No newline at end of file
-var _0x310a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x310a[0];var dbconf=require(_0x310a[2])[_0x310a[1]];var dbconfhistory=require(_0x310a[3])[_0x310a[1]];var astconf=require(_0x310a[4])[_0x310a[1]];module[_0x310a[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
+var _0x5718=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x78\x63\x61\x6C\x6C\x79\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x6F\x6D\x2F\x61\x70\x69"];_0x5718[0];var dbconf=require(_0x5718[2])[_0x5718[1]];var dbconfhistory=require(_0x5718[3])[_0x5718[1]];var astconf=require(_0x5718[4])[_0x5718[1]];module[_0x5718[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0x5718[6],seedDB:true};
\ No newline at end of file
-var _0xa44e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x74\x65\x73\x74","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0xa44e[0];var dbconf=require(_0xa44e[2])[_0xa44e[1]];var dbconfhistory=require(_0xa44e[3])[_0xa44e[1]];var astconf=require(_0xa44e[4])[_0xa44e[1]];module[_0xa44e[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
+var _0xf303=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x74\x65\x73\x74","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x64\x62\x63\x6F\x6E\x66\x68\x69\x73\x74\x6F\x72\x79\x2E\x6A\x73\x6F\x6E","\x2E\x2F\x61\x73\x74\x63\x6F\x6E\x66\x2E\x6A\x73\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0xf303[0];var dbconf=require(_0xf303[2])[_0xf303[1]];var dbconfhistory=require(_0xf303[3])[_0xf303[1]];var astconf=require(_0xf303[4])[_0xf303[1]];module[_0xf303[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
-var _0xe895=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x73\x65\x72\x76\x65\x2D\x66\x61\x76\x69\x63\x6F\x6E","\x6D\x6F\x72\x67\x61\x6E","\x63\x6F\x6D\x70\x72\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79\x2D\x70\x61\x72\x73\x65\x72","\x6D\x65\x74\x68\x6F\x64\x2D\x6F\x76\x65\x72\x72\x69\x64\x65","\x63\x6F\x6F\x6B\x69\x65\x2D\x70\x61\x72\x73\x65\x72","\x65\x72\x72\x6F\x72\x68\x61\x6E\x64\x6C\x65\x72","\x70\x61\x74\x68","\x70\x61\x73\x73\x70\x6F\x72\x74","\x65\x78\x70\x72\x65\x73\x73\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x66\x6C\x61\x73\x68","\x65\x78\x70\x72\x65\x73\x73\x2D\x6D\x79\x73\x71\x6C\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x6E\x76","\x67\x65\x74","\x76\x69\x65\x77\x73","\x72\x6F\x6F\x74","\x2F\x73\x65\x72\x76\x65\x72\x2F\x76\x69\x65\x77\x73","\x73\x65\x74","\x68\x74\x6D\x6C","\x72\x65\x6E\x64\x65\x72\x46\x69\x6C\x65","\x65\x6A\x73","\x65\x6E\x67\x69\x6E\x65","\x76\x69\x65\x77\x20\x65\x6E\x67\x69\x6E\x65","\x75\x73\x65","\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6A\x73\x6F\x6E","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x68\x6F\x73\x74","\x64\x62","\x70\x6F\x72\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x64\x61\x74\x61\x62\x61\x73\x65","\x63\x6F\x6F\x6B\x69\x65","\x6E\x61\x6D\x65","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x70\x75\x62\x6C\x69\x63","\x66\x61\x76\x69\x63\x6F\x6E\x2E\x69\x63\x6F","\x6A\x6F\x69\x6E","\x73\x74\x61\x74\x69\x63","\x61\x70\x70\x50\x61\x74\x68","\x2F\x70\x75\x62\x6C\x69\x63","\x64\x65\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x74\x65\x73\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x6C\x69\x76\x65\x72\x65\x6C\x6F\x61\x64","\x2E\x74\x6D\x70","\x63\x6C\x69\x65\x6E\x74"];_0xe895[0];var express=require(_0xe895[1]);var favicon=require(_0xe895[2]);var morgan=require(_0xe895[3]);var compression=require(_0xe895[4]);var bodyParser=require(_0xe895[5]);var methodOverride=require(_0xe895[6]);var cookieParser=require(_0xe895[7]);var errorHandler=require(_0xe895[8]);var path=require(_0xe895[9]);var passport=require(_0xe895[10]);var session=require(_0xe895[11]);var flash=require(_0xe895[12]);var SessionStore=require(_0xe895[13]);var session=require(_0xe895[11]);var config=require(_0xe895[14]);module[_0xe895[15]]=function(_0x2d4exf){var _0x2d4ex10=_0x2d4exf[_0xe895[17]](_0xe895[16]);_0x2d4exf[_0xe895[21]](_0xe895[18],config[_0xe895[19]]+_0xe895[20]);_0x2d4exf[_0xe895[25]](_0xe895[22],require(_0xe895[24])[_0xe895[23]]);_0x2d4exf[_0xe895[21]](_0xe895[26],_0xe895[22]);_0x2d4exf[_0xe895[27]](compression());_0x2d4exf[_0xe895[27]](bodyParser[_0xe895[28]]({extended:false}));_0x2d4exf[_0xe895[27]](bodyParser[_0xe895[29]]());_0x2d4exf[_0xe895[27]](methodOverride());_0x2d4exf[_0xe895[27]](cookieParser());_0x2d4exf[_0xe895[27]](passport[_0xe895[30]]());_0x2d4exf[_0xe895[27]](session({secret:config[_0xe895[32]][_0xe895[31]],store: new SessionStore({host:config[_0xe895[34]][_0xe895[33]],port:config[_0xe895[34]][_0xe895[35]],user:config[_0xe895[34]][_0xe895[36]],password:config[_0xe895[34]][_0xe895[37]],database:config[_0xe895[34]][_0xe895[38]]}),cookie:config[_0xe895[32]][_0xe895[39]],name:config[_0xe895[32]][_0xe895[40]],resave:true,saveUninitialized:true}));if(_0xe895[41]===_0x2d4ex10){_0x2d4exf[_0xe895[27]](favicon(path[_0xe895[44]](config[_0xe895[19]],_0xe895[42],_0xe895[43])));_0x2d4exf[_0xe895[27]](express[_0xe895[45]](path[_0xe895[44]](config[_0xe895[19]],_0xe895[42])));_0x2d4exf[_0xe895[21]](_0xe895[46],config[_0xe895[19]]+_0xe895[47]);_0x2d4exf[_0xe895[27]](morgan(_0xe895[48]));};if(_0xe895[49]===_0x2d4ex10||_0xe895[50]===_0x2d4ex10){_0x2d4exf[_0xe895[27]](require(_0xe895[51])());_0x2d4exf[_0xe895[27]](express[_0xe895[45]](path[_0xe895[44]](config[_0xe895[19]],_0xe895[52])));_0x2d4exf[_0xe895[27]](express[_0xe895[45]](path[_0xe895[44]](config[_0xe895[19]],_0xe895[53])));_0x2d4exf[_0xe895[21]](_0xe895[46],_0xe895[53]);_0x2d4exf[_0xe895[27]](morgan(_0xe895[48]));_0x2d4exf[_0xe895[27]](errorHandler());};_0x2d4exf[_0xe895[27]](flash());};
\ No newline at end of file
+var _0xf41c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x73\x65\x72\x76\x65\x2D\x66\x61\x76\x69\x63\x6F\x6E","\x6D\x6F\x72\x67\x61\x6E","\x63\x6F\x6D\x70\x72\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79\x2D\x70\x61\x72\x73\x65\x72","\x6D\x65\x74\x68\x6F\x64\x2D\x6F\x76\x65\x72\x72\x69\x64\x65","\x63\x6F\x6F\x6B\x69\x65\x2D\x70\x61\x72\x73\x65\x72","\x65\x72\x72\x6F\x72\x68\x61\x6E\x64\x6C\x65\x72","\x70\x61\x74\x68","\x70\x61\x73\x73\x70\x6F\x72\x74","\x65\x78\x70\x72\x65\x73\x73\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x66\x6C\x61\x73\x68","\x65\x78\x70\x72\x65\x73\x73\x2D\x6D\x79\x73\x71\x6C\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x6E\x76","\x67\x65\x74","\x76\x69\x65\x77\x73","\x72\x6F\x6F\x74","\x2F\x73\x65\x72\x76\x65\x72\x2F\x76\x69\x65\x77\x73","\x73\x65\x74","\x68\x74\x6D\x6C","\x72\x65\x6E\x64\x65\x72\x46\x69\x6C\x65","\x65\x6A\x73","\x65\x6E\x67\x69\x6E\x65","\x76\x69\x65\x77\x20\x65\x6E\x67\x69\x6E\x65","\x75\x73\x65","\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6A\x73\x6F\x6E","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x68\x6F\x73\x74","\x64\x62","\x70\x6F\x72\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x64\x61\x74\x61\x62\x61\x73\x65","\x63\x6F\x6F\x6B\x69\x65","\x6E\x61\x6D\x65","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x70\x75\x62\x6C\x69\x63","\x66\x61\x76\x69\x63\x6F\x6E\x2E\x69\x63\x6F","\x6A\x6F\x69\x6E","\x73\x74\x61\x74\x69\x63","\x61\x70\x70\x50\x61\x74\x68","\x2F\x70\x75\x62\x6C\x69\x63","\x64\x65\x76","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x74\x65\x73\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x6C\x69\x76\x65\x72\x65\x6C\x6F\x61\x64","\x2E\x74\x6D\x70","\x63\x6C\x69\x65\x6E\x74"];_0xf41c[0];var express=require(_0xf41c[1]);var favicon=require(_0xf41c[2]);var morgan=require(_0xf41c[3]);var compression=require(_0xf41c[4]);var bodyParser=require(_0xf41c[5]);var methodOverride=require(_0xf41c[6]);var cookieParser=require(_0xf41c[7]);var errorHandler=require(_0xf41c[8]);var path=require(_0xf41c[9]);var passport=require(_0xf41c[10]);var session=require(_0xf41c[11]);var flash=require(_0xf41c[12]);var SessionStore=require(_0xf41c[13]);var session=require(_0xf41c[11]);var config=require(_0xf41c[14]);module[_0xf41c[15]]=function(_0xc00axf){var _0xc00ax10=_0xc00axf[_0xf41c[17]](_0xf41c[16]);_0xc00axf[_0xf41c[21]](_0xf41c[18],config[_0xf41c[19]]+_0xf41c[20]);_0xc00axf[_0xf41c[25]](_0xf41c[22],require(_0xf41c[24])[_0xf41c[23]]);_0xc00axf[_0xf41c[21]](_0xf41c[26],_0xf41c[22]);_0xc00axf[_0xf41c[27]](compression());_0xc00axf[_0xf41c[27]](bodyParser[_0xf41c[28]]({extended:false}));_0xc00axf[_0xf41c[27]](bodyParser[_0xf41c[29]]());_0xc00axf[_0xf41c[27]](methodOverride());_0xc00axf[_0xf41c[27]](cookieParser());_0xc00axf[_0xf41c[27]](passport[_0xf41c[30]]());_0xc00axf[_0xf41c[27]](session({secret:config[_0xf41c[32]][_0xf41c[31]],store: new SessionStore({host:config[_0xf41c[34]][_0xf41c[33]],port:config[_0xf41c[34]][_0xf41c[35]],user:config[_0xf41c[34]][_0xf41c[36]],password:config[_0xf41c[34]][_0xf41c[37]],database:config[_0xf41c[34]][_0xf41c[38]]}),cookie:config[_0xf41c[32]][_0xf41c[39]],name:config[_0xf41c[32]][_0xf41c[40]],resave:true,saveUninitialized:true}));if(_0xf41c[41]===_0xc00ax10){_0xc00axf[_0xf41c[27]](favicon(path[_0xf41c[44]](config[_0xf41c[19]],_0xf41c[42],_0xf41c[43])));_0xc00axf[_0xf41c[27]](express[_0xf41c[45]](path[_0xf41c[44]](config[_0xf41c[19]],_0xf41c[42])));_0xc00axf[_0xf41c[21]](_0xf41c[46],config[_0xf41c[19]]+_0xf41c[47]);_0xc00axf[_0xf41c[27]](morgan(_0xf41c[48]));};if(_0xf41c[49]===_0xc00ax10||_0xf41c[50]===_0xc00ax10){_0xc00axf[_0xf41c[27]](require(_0xf41c[51])());_0xc00axf[_0xf41c[27]](express[_0xf41c[45]](path[_0xf41c[44]](config[_0xf41c[19]],_0xf41c[52])));_0xc00axf[_0xf41c[27]](express[_0xf41c[45]](path[_0xf41c[44]](config[_0xf41c[19]],_0xf41c[53])));_0xc00axf[_0xf41c[21]](_0xf41c[46],_0xf41c[53]);_0xc00axf[_0xf41c[27]](morgan(_0xf41c[48]));_0xc00axf[_0xf41c[27]](errorHandler());};_0xc00axf[_0xf41c[27]](flash());};
\ No newline at end of file
-var _0x2a55=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x74\x69\x66\x66\x2D\x74\x6F\x2D\x70\x6E\x67","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x66\x73","\x70\x61\x74\x68","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x45\x76\x65\x6E\x74","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x69\x64","\x49\x4E\x43\x4F\x4D\x49\x4E\x47","\x46\x41\x58","\x63\x72\x65\x61\x74\x65","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x72\x65\x6D\x6F\x74\x65\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x76\x34","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x69\x6E\x62\x6F\x75\x6E\x64","\x2E\x70\x64\x66","\x6A\x6F\x69\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x20","\x20","\x54\x68\x65\x20\x66\x69\x6C\x65\x20","\x20\x65\x78\x69\x74\x73","\x20\x77\x61\x73\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x69\x6E\x20\x50\x44\x46","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x74\x73","\x65\x78\x69\x73\x74\x73","\x4E\x45\x57","\x6F\x6E","\x73\x65\x6E\x64\x66\x61\x78","\x2A\x2A\x2A\x53\x65\x6E\x64\x46\x41\x58\x2A\x2A\x2A","\x6C\x6F\x67","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x76\x61\x72\x73\x65\x74","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x53\x65\x74\x3A\x20","\x76\x61\x6C\x75\x65","\x46\x41\x49\x4C\x45\x44","\x53\x45\x4E\x54","\x66\x61\x78\x65\x72\x72\x6F\x72","\x66\x61\x78\x73\x74\x61\x74\x75\x73\x73\x74\x72\x69\x6E\x67","\x6C\x61\x73\x74\x73\x74\x61\x74\x75\x73","\x75\x73\x65\x72\x65\x76\x65\x6E\x74","\x46\x61\x78","\x53\x45\x4E\x44\x49\x4E\x47","\x75\x75\x69\x64","\x46\x41\x58\x53\x74\x61\x74\x75\x73\x3A\x20","\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x61\x6D\x69"];_0x2a55[0];var _=require(_0x2a55[1]);var uuidLib=require(_0x2a55[2]);var ConvertTiff=require(_0x2a55[3]);var exec=require(_0x2a55[5])[_0x2a55[4]];var fs=require(_0x2a55[6]);var path=require(_0x2a55[7]);var FaxMessage=require(_0x2a55[9])[_0x2a55[8]];var FaxRoom=require(_0x2a55[9])[_0x2a55[10]];var Contact=require(_0x2a55[9])[_0x2a55[11]];var Event=require(_0x2a55[9])[_0x2a55[12]];var config=require(_0x2a55[13]);exports[_0x2a55[14]]=function(_0xfd52xc){_0xfd52xc[_0x2a55[50]](_0x2a55[15],function(_0xfd52xd){FaxRoom[_0x2a55[24]]({status:_0x2a55[49],from:_0xfd52xd[_0x2a55[27]],FaxAccountId:1})[_0x2a55[45]](function(_0xfd52xf){_0xfd52xd[_0x2a55[18]]=_0x2a55[19];_0xfd52xd[_0x2a55[20]]=_0xfd52xf[_0x2a55[21]];FaxMessage[_0x2a55[24]](_0xfd52xd)[_0x2a55[45]](function(_0xfd52x10){Event[_0x2a55[24]]({name:_0x2a55[22],channel:_0x2a55[23],FaxRoomId:_0xfd52xf[_0x2a55[21]],FaxAccountId:1})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)});Contact[_0x2a55[28]]({where:{phone:_0xfd52xd[_0x2a55[27]]},defaults:{phone:_0xfd52xd[_0x2a55[27]],fullname:_0xfd52xd[_0x2a55[27]]}})[_0x2a55[26]](function(_0xfd52x11,_0xfd52x12){_0xfd52x10[_0x2a55[25]](_0xfd52x11)});Contact[_0x2a55[28]]({where:{phone:_0xfd52xd[_0x2a55[30]]},defaults:{phone:_0xfd52xd[_0x2a55[30]],fullname:_0xfd52xd[_0x2a55[30]]}})[_0x2a55[26]](function(_0xfd52x11,_0xfd52x12){_0xfd52x10[_0x2a55[29]](_0xfd52x11)});var _0xfd52x13=uuidLib[_0x2a55[31]]();var _0xfd52x14=_0xfd52xd[_0x2a55[32]];var _0xfd52x15=path[_0x2a55[39]](config[_0x2a55[33]],_0x2a55[34],_0x2a55[35],_0x2a55[36],_0x2a55[37],_0xfd52x13+_0x2a55[38]);var _0xfd52x16=_0x2a55[40]+_0xfd52x14+_0x2a55[41]+_0xfd52x15;fs[_0x2a55[48]](_0xfd52x14,function(_0xfd52x17){if(_0xfd52x17){console[_0x2a55[16]](_0x2a55[42]+_0xfd52x14+_0x2a55[43]);exec(_0xfd52x16,function(_0xfd52xe){if(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)}else {_0xfd52x10[_0x2a55[46]]({filenamePDF:_0xfd52x13+_0x2a55[38]})[_0x2a55[45]](function(){console[_0x2a55[16]](_0x2a55[42]+_0xfd52x14+_0x2a55[44])})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})}});}else {console[_0x2a55[16]](_0x2a55[42]+_0xfd52x14+_0x2a55[47])}});})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)});})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})});_0xfd52xc[_0x2a55[50]](_0x2a55[51],function(_0xfd52xd){console[_0x2a55[53]](_0x2a55[52]);FaxMessage[_0x2a55[55]]({where:{uniqueid:_0xfd52xd[_0x2a55[54]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){_0xfd52x10[_0x2a55[46]](_0xfd52xd)}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)});});_0xfd52xc[_0x2a55[50]](_0x2a55[56],function(_0xfd52xd){if(_0xfd52xd[_0x2a55[59]][_0x2a55[58]](_0x2a55[57])){FaxMessage[_0x2a55[55]]({where:{uniqueid:_0xfd52xd[_0x2a55[54]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){console[_0x2a55[53]](_0x2a55[60],_0x2a55[18],_0xfd52xd[_0x2a55[61]]);_0xfd52x10[_0x2a55[46]]({status:_0xfd52xd[_0x2a55[61]]==_0x2a55[62]?_0x2a55[62]:_0x2a55[63]});}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})}else {if(_0xfd52xd[_0x2a55[59]][_0x2a55[58]](_0x2a55[64])){FaxMessage[_0x2a55[55]]({where:{uniqueid:_0xfd52xd[_0x2a55[54]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){console[_0x2a55[53]](_0x2a55[60],_0x2a55[16],_0xfd52xd[_0x2a55[61]]);_0xfd52x10[_0x2a55[46]]({error:_0xfd52xd[_0x2a55[61]]});}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})}else {if(_0xfd52xd[_0x2a55[59]][_0x2a55[58]](_0x2a55[65])){FaxMessage[_0x2a55[55]]({where:{uniqueid:_0xfd52xd[_0x2a55[54]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){console[_0x2a55[53]](_0x2a55[60],_0x2a55[66],_0xfd52xd[_0x2a55[61]]);_0xfd52x10[_0x2a55[46]]({laststatus:_0xfd52xd[_0x2a55[61]]});}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})}}}});_0xfd52xc[_0x2a55[50]](_0x2a55[67],function(_0xfd52xd){if(_0xfd52xd[_0x2a55[67]]===_0x2a55[68]){FaxMessage[_0x2a55[55]]({where:{uuid:_0xfd52xd[_0x2a55[70]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){_0xfd52xd[_0x2a55[18]]=_0x2a55[69];_0xfd52x10[_0x2a55[46]](_0xfd52xd);}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})}});_0xfd52xc[_0x2a55[50]](_0x2a55[57],function(_0xfd52xd){FaxMessage[_0x2a55[55]]({where:{uniqueid:_0xfd52xd[_0x2a55[54]]}})[_0x2a55[45]](function(_0xfd52x10){if(_0xfd52x10){console[_0x2a55[53]](_0x2a55[71],_0xfd52xd[_0x2a55[54]],_0xfd52xd[_0x2a55[18]]);_0xfd52x10[_0x2a55[46]]({operation:_0xfd52xd[_0x2a55[72]],laststatus:_0xfd52xd[_0x2a55[18]]});}})[_0x2a55[17]](function(_0xfd52xe){console[_0x2a55[16]](_0xfd52xe)})});require(_0x2a55[73])[_0x2a55[14]](_0xfd52xc);};
\ No newline at end of file
+var _0x6ca2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6E\x6F\x64\x65\x2D\x75\x75\x69\x64","\x74\x69\x66\x66\x2D\x74\x6F\x2D\x70\x6E\x67","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x66\x73","\x70\x61\x74\x68","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x45\x76\x65\x6E\x74","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x67\x69\x73\x74\x65\x72","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x69\x64","\x49\x4E\x43\x4F\x4D\x49\x4E\x47","\x46\x41\x58","\x63\x72\x65\x61\x74\x65","\x73\x65\x74\x46\x72\x6F\x6D","\x73\x70\x72\x65\x61\x64","\x72\x65\x6D\x6F\x74\x65\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x73\x65\x74\x54\x6F","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x76\x34","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x66\x61\x78","\x69\x6E\x62\x6F\x75\x6E\x64","\x2E\x70\x64\x66","\x6A\x6F\x69\x6E","\x63\x6F\x6E\x76\x65\x72\x74\x20","\x20","\x54\x68\x65\x20\x66\x69\x6C\x65\x20","\x20\x65\x78\x69\x74\x73","\x20\x77\x61\x73\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x69\x6E\x20\x50\x44\x46","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x65\x78\x69\x74\x73","\x65\x78\x69\x73\x74\x73","\x4E\x45\x57","\x6F\x6E","\x73\x65\x6E\x64\x66\x61\x78","\x2A\x2A\x2A\x53\x65\x6E\x64\x46\x41\x58\x2A\x2A\x2A","\x6C\x6F\x67","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x76\x61\x72\x73\x65\x74","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x53\x65\x74\x3A\x20","\x76\x61\x6C\x75\x65","\x46\x41\x49\x4C\x45\x44","\x53\x45\x4E\x54","\x66\x61\x78\x65\x72\x72\x6F\x72","\x66\x61\x78\x73\x74\x61\x74\x75\x73\x73\x74\x72\x69\x6E\x67","\x6C\x61\x73\x74\x73\x74\x61\x74\x75\x73","\x75\x73\x65\x72\x65\x76\x65\x6E\x74","\x46\x61\x78","\x53\x45\x4E\x44\x49\x4E\x47","\x75\x75\x69\x64","\x46\x41\x58\x53\x74\x61\x74\x75\x73\x3A\x20","\x6F\x70\x65\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x61\x6D\x69"];_0x6ca2[0];var _=require(_0x6ca2[1]);var uuidLib=require(_0x6ca2[2]);var ConvertTiff=require(_0x6ca2[3]);var exec=require(_0x6ca2[5])[_0x6ca2[4]];var fs=require(_0x6ca2[6]);var path=require(_0x6ca2[7]);var FaxMessage=require(_0x6ca2[9])[_0x6ca2[8]];var FaxRoom=require(_0x6ca2[9])[_0x6ca2[10]];var Contact=require(_0x6ca2[9])[_0x6ca2[11]];var Event=require(_0x6ca2[9])[_0x6ca2[12]];var config=require(_0x6ca2[13]);exports[_0x6ca2[14]]=function(_0xf8c6xc){_0xf8c6xc[_0x6ca2[50]](_0x6ca2[15],function(_0xf8c6xd){FaxRoom[_0x6ca2[24]]({status:_0x6ca2[49],from:_0xf8c6xd[_0x6ca2[27]],FaxAccountId:1})[_0x6ca2[45]](function(_0xf8c6xf){_0xf8c6xd[_0x6ca2[18]]=_0x6ca2[19];_0xf8c6xd[_0x6ca2[20]]=_0xf8c6xf[_0x6ca2[21]];FaxMessage[_0x6ca2[24]](_0xf8c6xd)[_0x6ca2[45]](function(_0xf8c6x10){Event[_0x6ca2[24]]({name:_0x6ca2[22],channel:_0x6ca2[23],FaxRoomId:_0xf8c6xf[_0x6ca2[21]],FaxAccountId:1})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)});Contact[_0x6ca2[28]]({where:{phone:_0xf8c6xd[_0x6ca2[27]]},defaults:{phone:_0xf8c6xd[_0x6ca2[27]],fullname:_0xf8c6xd[_0x6ca2[27]]}})[_0x6ca2[26]](function(_0xf8c6x11,_0xf8c6x12){_0xf8c6x10[_0x6ca2[25]](_0xf8c6x11)});Contact[_0x6ca2[28]]({where:{phone:_0xf8c6xd[_0x6ca2[30]]},defaults:{phone:_0xf8c6xd[_0x6ca2[30]],fullname:_0xf8c6xd[_0x6ca2[30]]}})[_0x6ca2[26]](function(_0xf8c6x11,_0xf8c6x12){_0xf8c6x10[_0x6ca2[29]](_0xf8c6x11)});var _0xf8c6x13=uuidLib[_0x6ca2[31]]();var _0xf8c6x14=_0xf8c6xd[_0x6ca2[32]];var _0xf8c6x15=path[_0x6ca2[39]](config[_0x6ca2[33]],_0x6ca2[34],_0x6ca2[35],_0x6ca2[36],_0x6ca2[37],_0xf8c6x13+_0x6ca2[38]);var _0xf8c6x16=_0x6ca2[40]+_0xf8c6x14+_0x6ca2[41]+_0xf8c6x15;fs[_0x6ca2[48]](_0xf8c6x14,function(_0xf8c6x17){if(_0xf8c6x17){console[_0x6ca2[16]](_0x6ca2[42]+_0xf8c6x14+_0x6ca2[43]);exec(_0xf8c6x16,function(_0xf8c6xe){if(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)}else {_0xf8c6x10[_0x6ca2[46]]({filenamePDF:_0xf8c6x13+_0x6ca2[38]})[_0x6ca2[45]](function(){console[_0x6ca2[16]](_0x6ca2[42]+_0xf8c6x14+_0x6ca2[44])})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})}});}else {console[_0x6ca2[16]](_0x6ca2[42]+_0xf8c6x14+_0x6ca2[47])}});})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)});})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})});_0xf8c6xc[_0x6ca2[50]](_0x6ca2[51],function(_0xf8c6xd){console[_0x6ca2[53]](_0x6ca2[52]);FaxMessage[_0x6ca2[55]]({where:{uniqueid:_0xf8c6xd[_0x6ca2[54]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){_0xf8c6x10[_0x6ca2[46]](_0xf8c6xd)}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)});});_0xf8c6xc[_0x6ca2[50]](_0x6ca2[56],function(_0xf8c6xd){if(_0xf8c6xd[_0x6ca2[59]][_0x6ca2[58]](_0x6ca2[57])){FaxMessage[_0x6ca2[55]]({where:{uniqueid:_0xf8c6xd[_0x6ca2[54]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){console[_0x6ca2[53]](_0x6ca2[60],_0x6ca2[18],_0xf8c6xd[_0x6ca2[61]]);_0xf8c6x10[_0x6ca2[46]]({status:_0xf8c6xd[_0x6ca2[61]]==_0x6ca2[62]?_0x6ca2[62]:_0x6ca2[63]});}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})}else {if(_0xf8c6xd[_0x6ca2[59]][_0x6ca2[58]](_0x6ca2[64])){FaxMessage[_0x6ca2[55]]({where:{uniqueid:_0xf8c6xd[_0x6ca2[54]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){console[_0x6ca2[53]](_0x6ca2[60],_0x6ca2[16],_0xf8c6xd[_0x6ca2[61]]);_0xf8c6x10[_0x6ca2[46]]({error:_0xf8c6xd[_0x6ca2[61]]});}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})}else {if(_0xf8c6xd[_0x6ca2[59]][_0x6ca2[58]](_0x6ca2[65])){FaxMessage[_0x6ca2[55]]({where:{uniqueid:_0xf8c6xd[_0x6ca2[54]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){console[_0x6ca2[53]](_0x6ca2[60],_0x6ca2[66],_0xf8c6xd[_0x6ca2[61]]);_0xf8c6x10[_0x6ca2[46]]({laststatus:_0xf8c6xd[_0x6ca2[61]]});}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})}}}});_0xf8c6xc[_0x6ca2[50]](_0x6ca2[67],function(_0xf8c6xd){if(_0xf8c6xd[_0x6ca2[67]]===_0x6ca2[68]){FaxMessage[_0x6ca2[55]]({where:{uuid:_0xf8c6xd[_0x6ca2[70]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){_0xf8c6xd[_0x6ca2[18]]=_0x6ca2[69];_0xf8c6x10[_0x6ca2[46]](_0xf8c6xd);}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})}});_0xf8c6xc[_0x6ca2[50]](_0x6ca2[57],function(_0xf8c6xd){FaxMessage[_0x6ca2[55]]({where:{uniqueid:_0xf8c6xd[_0x6ca2[54]]}})[_0x6ca2[45]](function(_0xf8c6x10){if(_0xf8c6x10){console[_0x6ca2[53]](_0x6ca2[71],_0xf8c6xd[_0x6ca2[54]],_0xf8c6xd[_0x6ca2[18]]);_0xf8c6x10[_0x6ca2[46]]({operation:_0xf8c6xd[_0x6ca2[72]],laststatus:_0xf8c6xd[_0x6ca2[18]]});}})[_0x6ca2[17]](function(_0xf8c6xe){console[_0x6ca2[16]](_0xf8c6xe)})});require(_0x6ca2[73])[_0x6ca2[14]](_0xf8c6xc);};
\ No newline at end of file
-var _0x9c77=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20","\x69\x64","\x20\x72\x6F\x77\x20\x63\x6F\x70\x69\x65\x64","\x20\x72\x6F\x77\x20\x64\x65\x6C\x65\x74\x65\x64","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x63\x72\x65\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x63\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20","\x65\x78\x70\x6F\x72\x74\x73","\x30\x20\x2A\x2F\x36\x30\x20\x2A\x20\x2A\x20\x2A\x20\x2A","\x73\x74\x61\x72\x74"];_0x9c77[0];var moment=require(_0x9c77[1]);var ReportAgent=require(_0x9c77[3])[_0x9c77[2]];var ReportCall=require(_0x9c77[3])[_0x9c77[4]];var ReportDial=require(_0x9c77[3])[_0x9c77[5]];var ReportMember=require(_0x9c77[3])[_0x9c77[6]];var ReportQueue=require(_0x9c77[3])[_0x9c77[7]];var ReportIntegration=require(_0x9c77[3])[_0x9c77[8]];var ReportMailSession=require(_0x9c77[3])[_0x9c77[9]];var ReportAgentHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[10]];var ReportCallHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[12]];var ReportDialHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[13]];var ReportMemberHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[14]];var ReportQueueHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[15]];var ReportIntegrationHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[16]];var ReportMailSessionHistory=require(_0x9c77[3])[_0x9c77[11]][_0x9c77[17]];function ReportAgentInReportAgentHistory(){ReportAgent[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])},reason:{$ne:null}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){console[_0x9c77[23]](_0x9c77[21]+_0x9e8fx12[_0x9c77[22]]);_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){ReportAgentHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[24]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportAgent[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[24]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[18]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[18]+_0x9e8fx11)})});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[18]+_0x9e8fx11)})}function ReportCallInReportCallHistory(){ReportCall[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){console[_0x9c77[23]](_0x9c77[36]+_0x9e8fx12[_0x9c77[22]]);ReportCallHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[37]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportCall[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[38]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[35]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[35]+_0x9e8fx11)});})})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[35]+_0x9e8fx11)})}function ReportDialInReportDialHistory(){ReportDial[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])},dialstatus:{$ne:null}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){console[_0x9c77[23]](_0x9c77[40]+_0x9e8fx12[_0x9c77[22]]);_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){ReportDialHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[41]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportDial[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[41]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[39]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[39]+_0x9e8fx11)})});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[39]+_0x9e8fx11)})}function ReportMemberInReportMemberHistory(){ReportMember[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])},exitdate:{$ne:null}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){console[_0x9c77[23]](_0x9c77[43]+_0x9e8fx12[_0x9c77[22]]);_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){ReportMemberHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[44]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportMember[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[44]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[42]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[42]+_0x9e8fx11)})});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[42]+_0x9e8fx11)})}function ReportQueueInReportQueueHistory(){ReportQueue[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])},queuecallerleaveAt:{$ne:null}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){console[_0x9c77[23]](_0x9c77[46]+_0x9e8fx12[_0x9c77[22]]);_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){ReportQueueHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[47]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportQueue[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[47]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[45]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[45]+_0x9e8fx11)})});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[45]+_0x9e8fx11)})}function ReportIntegrationInReportIntegrationHistory(){ReportIntegration[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){console[_0x9c77[23]](_0x9c77[49]+_0x9e8fx12[_0x9c77[22]]);ReportIntegrationHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[37]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportIntegration[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[50]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[48]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[48]+_0x9e8fx11)});})})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[48]+_0x9e8fx11)})}function ReportMailSessionInReportMailSessionHistory(){ReportMailSession[_0x9c77[34]]({where:{createdAt:{$lte:moment()[_0x9c77[33]](_0x9c77[32])},mailleaveAt:{$ne:null}},raw:true})[_0x9c77[28]](function(_0x9e8fx12){console[_0x9c77[23]](_0x9c77[52]+_0x9e8fx12[_0x9c77[22]]);_0x9e8fx12[_0x9c77[31]](function(_0x9e8fx13,_0x9e8fx14){ReportMailSessionHistory[_0x9c77[30]](_0x9e8fx13)[_0x9c77[28]](function(){console[_0x9c77[23]](_0x9c77[53]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[26]);ReportMailSession[_0x9c77[29]]({where:{id:_0x9e8fx13[_0x9c77[25]]},individualHooks:true})[_0x9c77[28]](function(_0x9e8fx15){console[_0x9c77[23]](_0x9c77[53]+_0x9e8fx13[_0x9c77[25]]+_0x9c77[27])})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[51]+_0x9e8fx11)});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[23]](_0x9c77[51]+_0x9e8fx11)})});})[_0x9c77[20]](function(_0x9e8fx11){console[_0x9c77[19]](_0x9c77[51]+_0x9e8fx11)})}module[_0x9c77[54]]=function(_0x9e8fx1c){var _0x9e8fx1d= new _0x9e8fx1c({cronTime:_0x9c77[55],onTick:function(){ new ReportAgentInReportAgentHistory(); new ReportCallInReportCallHistory(); new ReportDialInReportDialHistory(); new ReportMemberInReportMemberHistory(); new ReportQueueInReportQueueHistory(); new ReportIntegrationInReportIntegrationHistory(); new ReportMailSessionInReportMailSessionHistory();}});_0x9e8fx1d[_0x9c77[56]]();};
\ No newline at end of file
+var _0xdd59=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20","\x69\x64","\x20\x72\x6F\x77\x20\x63\x6F\x70\x69\x65\x64","\x20\x72\x6F\x77\x20\x64\x65\x6C\x65\x74\x65\x64","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x63\x72\x65\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x63\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20","\x65\x78\x70\x6F\x72\x74\x73","\x30\x20\x2A\x2F\x36\x30\x20\x2A\x20\x2A\x20\x2A\x20\x2A","\x73\x74\x61\x72\x74"];_0xdd59[0];var moment=require(_0xdd59[1]);var ReportAgent=require(_0xdd59[3])[_0xdd59[2]];var ReportCall=require(_0xdd59[3])[_0xdd59[4]];var ReportDial=require(_0xdd59[3])[_0xdd59[5]];var ReportMember=require(_0xdd59[3])[_0xdd59[6]];var ReportQueue=require(_0xdd59[3])[_0xdd59[7]];var ReportIntegration=require(_0xdd59[3])[_0xdd59[8]];var ReportMailSession=require(_0xdd59[3])[_0xdd59[9]];var ReportAgentHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[10]];var ReportCallHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[12]];var ReportDialHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[13]];var ReportMemberHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[14]];var ReportQueueHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[15]];var ReportIntegrationHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[16]];var ReportMailSessionHistory=require(_0xdd59[3])[_0xdd59[11]][_0xdd59[17]];function ReportAgentInReportAgentHistory(){ReportAgent[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])},reason:{$ne:null}},raw:true})[_0xdd59[28]](function(_0x7facx12){console[_0xdd59[23]](_0xdd59[21]+_0x7facx12[_0xdd59[22]]);_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){ReportAgentHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[24]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportAgent[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[24]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[18]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[18]+_0x7facx11)})});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[18]+_0x7facx11)})}function ReportCallInReportCallHistory(){ReportCall[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])}},raw:true})[_0xdd59[28]](function(_0x7facx12){_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){console[_0xdd59[23]](_0xdd59[36]+_0x7facx12[_0xdd59[22]]);ReportCallHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[37]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportCall[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[38]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[35]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[35]+_0x7facx11)});})})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[35]+_0x7facx11)})}function ReportDialInReportDialHistory(){ReportDial[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])},dialstatus:{$ne:null}},raw:true})[_0xdd59[28]](function(_0x7facx12){console[_0xdd59[23]](_0xdd59[40]+_0x7facx12[_0xdd59[22]]);_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){ReportDialHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[41]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportDial[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[41]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[39]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[39]+_0x7facx11)})});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[39]+_0x7facx11)})}function ReportMemberInReportMemberHistory(){ReportMember[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])},exitdate:{$ne:null}},raw:true})[_0xdd59[28]](function(_0x7facx12){console[_0xdd59[23]](_0xdd59[43]+_0x7facx12[_0xdd59[22]]);_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){ReportMemberHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[44]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportMember[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[44]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[42]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[42]+_0x7facx11)})});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[42]+_0x7facx11)})}function ReportQueueInReportQueueHistory(){ReportQueue[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])},queuecallerleaveAt:{$ne:null}},raw:true})[_0xdd59[28]](function(_0x7facx12){console[_0xdd59[23]](_0xdd59[46]+_0x7facx12[_0xdd59[22]]);_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){ReportQueueHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[47]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportQueue[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[47]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[45]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[45]+_0x7facx11)})});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[45]+_0x7facx11)})}function ReportIntegrationInReportIntegrationHistory(){ReportIntegration[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])}},raw:true})[_0xdd59[28]](function(_0x7facx12){_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){console[_0xdd59[23]](_0xdd59[49]+_0x7facx12[_0xdd59[22]]);ReportIntegrationHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[37]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportIntegration[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[50]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[48]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[48]+_0x7facx11)});})})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[48]+_0x7facx11)})}function ReportMailSessionInReportMailSessionHistory(){ReportMailSession[_0xdd59[34]]({where:{createdAt:{$lte:moment()[_0xdd59[33]](_0xdd59[32])},mailleaveAt:{$ne:null}},raw:true})[_0xdd59[28]](function(_0x7facx12){console[_0xdd59[23]](_0xdd59[52]+_0x7facx12[_0xdd59[22]]);_0x7facx12[_0xdd59[31]](function(_0x7facx13,_0x7facx14){ReportMailSessionHistory[_0xdd59[30]](_0x7facx13)[_0xdd59[28]](function(){console[_0xdd59[23]](_0xdd59[53]+_0x7facx13[_0xdd59[25]]+_0xdd59[26]);ReportMailSession[_0xdd59[29]]({where:{id:_0x7facx13[_0xdd59[25]]},individualHooks:true})[_0xdd59[28]](function(_0x7facx15){console[_0xdd59[23]](_0xdd59[53]+_0x7facx13[_0xdd59[25]]+_0xdd59[27])})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[51]+_0x7facx11)});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[23]](_0xdd59[51]+_0x7facx11)})});})[_0xdd59[20]](function(_0x7facx11){console[_0xdd59[19]](_0xdd59[51]+_0x7facx11)})}module[_0xdd59[54]]=function(_0x7facx1c){var _0x7facx1d= new _0x7facx1c({cronTime:_0xdd59[55],onTick:function(){ new ReportAgentInReportAgentHistory(); new ReportCallInReportCallHistory(); new ReportDialInReportDialHistory(); new ReportMemberInReportMemberHistory(); new ReportQueueInReportQueueHistory(); new ReportIntegrationInReportIntegrationHistory(); new ReportMailSessionInReportMailSessionHistory();}});_0x7facx1d[_0xdd59[56]]();};
\ No newline at end of file
-var _0x1c39=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73","\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x73\x6F\x75\x72\x63\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x75\x73\x65\x72","\x5F\x63\x6F\x6E\x66\x69\x67","\x69\x6D\x61\x70","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x20\x49\x4D\x41\x50\x20\x55\x50\x44\x41\x54\x45\x44","\x6C\x6F\x67","\x73\x74\x6F\x70","\x20\x49\x4D\x41\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x69\x6C\x74\x65\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x2F","\x6A\x6F\x69\x6E","\x73\x74\x61\x72\x74","\x73\x65\x72\x76\x65\x72\x3A\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x20\x49\x4D\x41\x50\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x6F\x6E","\x73\x65\x72\x76\x65\x72\x3A\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x20\x49\x4D\x41\x50\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x49\x4D\x41\x50\x20\x45\x52\x52\x4F\x52","\x45\x52\x52\x4F\x52","\x6D\x61\x69\x6C","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x73\x75\x62\x6A\x65\x63\x74","\x3B","\x66\x72\x6F\x6D","\x61\x64\x64\x72\x65\x73\x73","\x70\x6C\x75\x63\x6B","\x74\x6F","\x63\x63","\x62\x63\x63","\x52\x45\x43\x45\x49\x56\x45\x44","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x61\x70","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x6D\x73\x67","\x73\x65\x74\x42\x63\x63","\x73\x65\x74\x43\x63","\x73\x65\x74\x54\x6F","\x73\x65\x74\x46\x72\x6F\x6D","\x61\x6C\x6C","\x73\x70\x72\x65\x61\x64","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x69\x6E\x64\x4F\x6E\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x72\x65\x64\x69\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79"];_0x1c39[0];var _=require(_0x1c39[1]);var path=require(_0x1c39[2]);var config=require(_0x1c39[3]);var ImapListener=require(_0x1c39[4]);var MailServerIn=require(_0x1c39[6])[_0x1c39[5]];var MailMessage=require(_0x1c39[6])[_0x1c39[7]];var MailRoom=require(_0x1c39[6])[_0x1c39[8]];var Contact=require(_0x1c39[6])[_0x1c39[9]];var ContactEmail=require(_0x1c39[6])[_0x1c39[10]];var sequelize=require(_0x1c39[6])[_0x1c39[11]];module[_0x1c39[12]]={create:function(_0xebfaxb){var _0xebfaxc;function _0xebfaxd(_0xebfaxb){if(!_0xebfaxb[_0x1c39[14]](_0x1c39[13])&&!_0xebfaxb[_0x1c39[14]](_0x1c39[15])&&_0xebfaxb[_0x1c39[16]]===_0xebfaxc[_0x1c39[19]][_0x1c39[18]][_0x1c39[17]]){console[_0x1c39[22]](_0x1c39[20]+_0xebfaxb[_0x1c39[16]]+_0x1c39[21]);_0xebfaxc[_0x1c39[23]]();_0xebfaxf(_0xebfaxb);}}function _0xebfaxe(_0xebfaxb){if(_0xebfaxb[_0x1c39[16]]===_0xebfaxc[_0x1c39[19]][_0x1c39[18]][_0x1c39[17]]){console[_0x1c39[22]](_0x1c39[20]+_0xebfaxb[_0x1c39[16]]+_0x1c39[24]);_0xebfaxc[_0x1c39[23]]();_0xebfaxc=null;}}function _0xebfaxf(_0xebfaxb){if(_0xebfaxc){_0xebfaxc[_0x1c39[23]](_0xebfaxb);_0xebfaxc=null;};_0xebfaxc= new ImapListener({username:_0xebfaxb[_0x1c39[16]],password:_0xebfaxb[_0x1c39[25]],host:_0xebfaxb[_0x1c39[26]],port:_0xebfaxb[_0x1c39[27]],tls:_0xebfaxb[_0x1c39[28]],tlsOptions:{rejectUnauthorized:false},mailbox:_0xebfaxb[_0x1c39[29]],searchFilter:[_0xebfaxb[_0x1c39[30]]],markSeen:true,fetchUnreadOnStart:true,mailParserOptions:{streamAttachments:false},attachments:true,attachmentOptions:{directory:path[_0x1c39[36]](config[_0x1c39[31]],_0x1c39[32],_0x1c39[33],_0x1c39[34],_0x1c39[35])}});_0xebfaxc[_0x1c39[37]]();_0xebfaxc[_0x1c39[47]](_0x1c39[38],function(){console[_0x1c39[22]](_0x1c39[20]+_0xebfaxb[_0x1c39[16]]+_0x1c39[39]);return MailServerIn[_0x1c39[46]](_0xebfaxb[_0x1c39[45]])[_0x1c39[44]](function(_0xebfax11){return _0xebfax11[_0x1c39[43]]({state:_0x1c39[42]})})[_0x1c39[41]](function(_0xebfax10){console[_0x1c39[40]](_0xebfax10)});});_0xebfaxc[_0x1c39[47]](_0x1c39[48],function(){console[_0x1c39[22]](_0x1c39[20]+_0xebfaxb[_0x1c39[49]]+_0x1c39[50]);MailServerIn[_0x1c39[46]](_0xebfaxb[_0x1c39[45]])[_0x1c39[44]](function(_0xebfax11){_0xebfax11[_0x1c39[52]]({state:_0x1c39[51]})})[_0x1c39[41]](function(_0xebfax10){console[_0x1c39[40]](_0xebfax10)});});_0xebfaxc[_0x1c39[47]](_0x1c39[40],function(_0xebfax10){console[_0x1c39[22]](_0x1c39[20]+_0xebfaxb[_0x1c39[49]]+_0x1c39[53],_0xebfax10);MailServerIn[_0x1c39[46]](_0xebfaxb[_0x1c39[45]])[_0x1c39[44]](function(_0xebfax11){_0xebfax11[_0x1c39[52]]({state:_0x1c39[54],source:_0xebfax10[_0x1c39[15]]})})[_0x1c39[41]](function(_0xebfax10){console[_0x1c39[40]](_0xebfax10)});});_0xebfaxc[_0x1c39[47]](_0x1c39[55],function(_0xebfax12,_0xebfax13,_0xebfax14){var _0xebfax15;var _0xebfax16;var _0xebfax17,_0xebfax18,_0xebfax19,_0xebfax1a;function _0xebfax1b(_0xebfax1c){_0xebfax15=_0xebfax1c;return MailMessage[_0x1c39[68]]({messageId:_0xebfax12[_0x1c39[56]],subject:_0xebfax12[_0x1c39[57]],from:_[_0x1c39[61]](_0xebfax12[_0x1c39[59]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]),to:_0xebfax12[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,cc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,bcc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,status:_0x1c39[65],html:_0xebfax12[_0x1c39[66]]||null,text:_0xebfax12[_0x1c39[67]]||null,MailAttachments:_0xebfax12[_0x1c39[34]]||[],MailRoomId:_0xebfax1c[_0x1c39[45]]});}function _0xebfax1d(_0xebfax1e){_0xebfax16=_0xebfax1e;return ContactEmail[_0x1c39[69]]({where:{email:_0xebfax16[_0x1c39[59]]},defaults:{email:_0xebfax16[_0x1c39[59]]}});}function _0xebfax1f(_0xebfax20,_0xebfax21){var _0xebfax22=[];var _0xebfax23=_0xebfax16[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60]):[];_0xebfax17=_0xebfax20;_0xebfax23[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24}}))});return _0xebfax22;}function _0xebfax25(_0xebfax26){var _0xebfax22=[];var _0xebfax27=_0xebfax16[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60]):[];_0xebfax18=_[_0x1c39[72]](_0xebfax26,function(_0xebfax28){return _0xebfax28[0]});_0xebfax27[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24}}))});return _0xebfax22;}function _0xebfax29(_0xebfax2a){var _0xebfax22=[];var _0xebfax2b=_0xebfax16[_0x1c39[64]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60]):[];_0xebfax19=_[_0x1c39[72]](_0xebfax2a,function(_0xebfax28){return _0xebfax28[0]});_0xebfax2b[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24}}))});return _0xebfax22;}function _0xebfax2c(_0xebfax2d){_0xebfax1a=_[_0x1c39[72]](_0xebfax2d,function(_0xebfax28){return _0xebfax28[0]});return ;}return sequelize[_0x1c39[84]](function(_0xebfax2f){if(_0xebfax12[_0x1c39[73]]){console[_0x1c39[22]](_0x1c39[74],_0xebfax12);return MailMessage[_0x1c39[82]]({where:{messageId:_0xebfax12[_0x1c39[73]][0]},include:[{all:true}]})[_0x1c39[44]](function(_0xebfax30){return _0xebfax30[_0x1c39[81]]()})[_0x1c39[44]](function(_0xebfax1c){_0xebfax15=_0xebfax1c;return MailMessage[_0x1c39[68]]({messageId:_0xebfax12[_0x1c39[56]],subject:_0xebfax12[_0x1c39[57]],from:_[_0x1c39[61]](_0xebfax12[_0x1c39[59]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]),to:_0xebfax12[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,cc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,bcc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,status:_0x1c39[65],html:_0xebfax12[_0x1c39[66]]||null,text:_0xebfax12[_0x1c39[67]]||null,MailAttachments:_0xebfax12[_0x1c39[34]]||[],MailRoomId:_0xebfax1c[_0x1c39[45]]},{include:[{all:true}],transaction:_0xebfax2f});})[_0x1c39[44]](function(_0xebfax1e){_0xebfax16=_0xebfax1e;return ContactEmail[_0x1c39[69]]({where:{email:_0xebfax16[_0x1c39[59]]},defaults:{email:_0xebfax16[_0x1c39[59]]},transaction:_0xebfax2f});})[_0x1c39[80]](function(_0xebfax20,_0xebfax21){var _0xebfax22=[];var _0xebfax23=_0xebfax16[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60]):[];_0xebfax17=_0xebfax20;_0xebfax23[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax26){var _0xebfax22=[];var _0xebfax27=_0xebfax16[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60]):[];_0xebfax18=_[_0x1c39[72]](_0xebfax26,function(_0xebfax28){return _0xebfax28[0]});_0xebfax27[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax2a){var _0xebfax22=[];var _0xebfax2b=_0xebfax16[_0x1c39[64]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60]):[];_0xebfax19=_[_0x1c39[72]](_0xebfax2a,function(_0xebfax28){return _0xebfax28[0]});_0xebfax2b[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax2d){_0xebfax1a=_[_0x1c39[72]](_0xebfax2d,function(_0xebfax28){return _0xebfax28[0]});return ;})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[78]](_0xebfax17,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[77]](_0xebfax18,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[76]](_0xebfax19,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[75]](_0xebfax1a,{transaction:_0xebfax2f})});}else {return MailRoom[_0x1c39[68]]({roomId:_0xebfax12[_0x1c39[56]],subject:_0xebfax12[_0x1c39[57]],from:_[_0x1c39[61]](_0xebfax12[_0x1c39[59]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]),MailAccountId:_0xebfaxb[_0x1c39[49]]},{transaction:_0xebfax2f})[_0x1c39[44]](function(_0xebfax1c){_0xebfax15=_0xebfax1c;return MailMessage[_0x1c39[68]]({messageId:_0xebfax12[_0x1c39[56]],subject:_0xebfax12[_0x1c39[57]],from:_[_0x1c39[61]](_0xebfax12[_0x1c39[59]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]),to:_0xebfax12[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,cc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,bcc:_0xebfax12[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60])[_0x1c39[36]](_0x1c39[58]):null,status:_0x1c39[65],html:_0xebfax12[_0x1c39[66]]||null,text:_0xebfax12[_0x1c39[67]]||null,MailAttachments:_0xebfax12[_0x1c39[34]]||[],MailRoomId:_0xebfax1c[_0x1c39[45]]},{include:[{all:true}],transaction:_0xebfax2f});})[_0x1c39[44]](function(_0xebfax1e){_0xebfax16=_0xebfax1e;return ContactEmail[_0x1c39[69]]({where:{email:_0xebfax16[_0x1c39[59]]},defaults:{email:_0xebfax16[_0x1c39[59]]},transaction:_0xebfax2f});})[_0x1c39[80]](function(_0xebfax20,_0xebfax21){var _0xebfax22=[];var _0xebfax23=_0xebfax16[_0x1c39[62]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[62]],_0x1c39[60]):[];_0xebfax17=_0xebfax20;_0xebfax23[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax26){var _0xebfax22=[];var _0xebfax27=_0xebfax16[_0x1c39[63]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[63]],_0x1c39[60]):[];_0xebfax18=_[_0x1c39[72]](_0xebfax26,function(_0xebfax28){return _0xebfax28[0]});_0xebfax27[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[83]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax2a){var _0xebfax22=[];var _0xebfax2b=_0xebfax16[_0x1c39[64]]?_[_0x1c39[61]](_0xebfax12[_0x1c39[64]],_0x1c39[60]):[];_0xebfax19=_[_0x1c39[72]](_0xebfax2a,function(_0xebfax28){return _0xebfax28[0]});_0xebfax2b[_0x1c39[71]](function(_0xebfax24){_0xebfax22[_0x1c39[70]](ContactEmail[_0x1c39[69]]({where:{email:_0xebfax24},defaults:{email:_0xebfax24},transaction:_0xebfax2f}))});return _0xebfax22;})[_0x1c39[79]]()[_0x1c39[44]](function(_0xebfax2d){_0xebfax1a=_[_0x1c39[72]](_0xebfax2d,function(_0xebfax28){return _0xebfax28[0]});return ;})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[78]](_0xebfax17,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[77]](_0xebfax18,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[76]](_0xebfax19,{transaction:_0xebfax2f})})[_0x1c39[44]](function(){return _0xebfax16[_0x1c39[75]](_0xebfax1a,{transaction:_0xebfax2f})})}})[_0x1c39[44]](function(_0xebfax2e){console[_0x1c39[22]](_0xebfax2e)})[_0x1c39[41]](function(_0xebfax10){console[_0x1c39[40]](_0xebfax10)});});_0xebfaxc[_0x1c39[47]](_0x1c39[85],function(_0xebfax31){console[_0x1c39[22]](_0xebfax31[_0x1c39[2]])});}_0xebfaxf(_0xebfaxb);MailServerIn[_0x1c39[86]](function(_0xebfaxb){_0xebfaxf(_0xebfaxb)});MailServerIn[_0x1c39[87]](function(_0xebfaxb){_0xebfaxd(_0xebfaxb)});MailServerIn[_0x1c39[88]](function(_0xebfaxb){_0xebfaxe(_0xebfaxb)});}};
\ No newline at end of file
+var _0xbfd1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6D\x61\x69\x6C\x2D\x6C\x69\x73\x74\x65\x6E\x65\x72\x32","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73","\x73\x74\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x73\x6F\x75\x72\x63\x65","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x75\x73\x65\x72","\x5F\x63\x6F\x6E\x66\x69\x67","\x69\x6D\x61\x70","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x20\x49\x4D\x41\x50\x20\x55\x50\x44\x41\x54\x45\x44","\x6C\x6F\x67","\x73\x74\x6F\x70","\x20\x49\x4D\x41\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x6D\x61\x69\x6C\x62\x6F\x78","\x66\x69\x6C\x74\x65\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x2F","\x6A\x6F\x69\x6E","\x73\x74\x61\x72\x74","\x73\x65\x72\x76\x65\x72\x3A\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x20\x49\x4D\x41\x50\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x6F\x6E","\x73\x65\x72\x76\x65\x72\x3A\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x20\x49\x4D\x41\x50\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x20\x49\x4D\x41\x50\x20\x45\x52\x52\x4F\x52","\x45\x52\x52\x4F\x52","\x6D\x61\x69\x6C","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x73\x75\x62\x6A\x65\x63\x74","\x3B","\x66\x72\x6F\x6D","\x61\x64\x64\x72\x65\x73\x73","\x70\x6C\x75\x63\x6B","\x74\x6F","\x63\x63","\x62\x63\x63","\x52\x45\x43\x45\x49\x56\x45\x44","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x61\x70","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x6D\x73\x67","\x73\x65\x74\x42\x63\x63","\x73\x65\x74\x43\x63","\x73\x65\x74\x54\x6F","\x73\x65\x74\x46\x72\x6F\x6D","\x61\x6C\x6C","\x73\x70\x72\x65\x61\x64","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x69\x6E\x64\x4F\x6E\x65","\x66\x69\x6E\x64\x4F\x72\x43\x72\x72\x65\x64\x69\x65\x61\x74\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79"];_0xbfd1[0];var _=require(_0xbfd1[1]);var path=require(_0xbfd1[2]);var config=require(_0xbfd1[3]);var ImapListener=require(_0xbfd1[4]);var MailServerIn=require(_0xbfd1[6])[_0xbfd1[5]];var MailMessage=require(_0xbfd1[6])[_0xbfd1[7]];var MailRoom=require(_0xbfd1[6])[_0xbfd1[8]];var Contact=require(_0xbfd1[6])[_0xbfd1[9]];var ContactEmail=require(_0xbfd1[6])[_0xbfd1[10]];var sequelize=require(_0xbfd1[6])[_0xbfd1[11]];module[_0xbfd1[12]]={create:function(_0x7b8bxb){var _0x7b8bxc;function _0x7b8bxd(_0x7b8bxb){if(!_0x7b8bxb[_0xbfd1[14]](_0xbfd1[13])&&!_0x7b8bxb[_0xbfd1[14]](_0xbfd1[15])&&_0x7b8bxb[_0xbfd1[16]]===_0x7b8bxc[_0xbfd1[19]][_0xbfd1[18]][_0xbfd1[17]]){console[_0xbfd1[22]](_0xbfd1[20]+_0x7b8bxb[_0xbfd1[16]]+_0xbfd1[21]);_0x7b8bxc[_0xbfd1[23]]();_0x7b8bxf(_0x7b8bxb);}}function _0x7b8bxe(_0x7b8bxb){if(_0x7b8bxb[_0xbfd1[16]]===_0x7b8bxc[_0xbfd1[19]][_0xbfd1[18]][_0xbfd1[17]]){console[_0xbfd1[22]](_0xbfd1[20]+_0x7b8bxb[_0xbfd1[16]]+_0xbfd1[24]);_0x7b8bxc[_0xbfd1[23]]();_0x7b8bxc=null;}}function _0x7b8bxf(_0x7b8bxb){if(_0x7b8bxc){_0x7b8bxc[_0xbfd1[23]](_0x7b8bxb);_0x7b8bxc=null;};_0x7b8bxc= new ImapListener({username:_0x7b8bxb[_0xbfd1[16]],password:_0x7b8bxb[_0xbfd1[25]],host:_0x7b8bxb[_0xbfd1[26]],port:_0x7b8bxb[_0xbfd1[27]],tls:_0x7b8bxb[_0xbfd1[28]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x7b8bxb[_0xbfd1[29]],searchFilter:[_0x7b8bxb[_0xbfd1[30]]],markSeen:true,fetchUnreadOnStart:true,mailParserOptions:{streamAttachments:false},attachments:true,attachmentOptions:{directory:path[_0xbfd1[36]](config[_0xbfd1[31]],_0xbfd1[32],_0xbfd1[33],_0xbfd1[34],_0xbfd1[35])}});_0x7b8bxc[_0xbfd1[37]]();_0x7b8bxc[_0xbfd1[47]](_0xbfd1[38],function(){console[_0xbfd1[22]](_0xbfd1[20]+_0x7b8bxb[_0xbfd1[16]]+_0xbfd1[39]);return MailServerIn[_0xbfd1[46]](_0x7b8bxb[_0xbfd1[45]])[_0xbfd1[44]](function(_0x7b8bx11){return _0x7b8bx11[_0xbfd1[43]]({state:_0xbfd1[42]})})[_0xbfd1[41]](function(_0x7b8bx10){console[_0xbfd1[40]](_0x7b8bx10)});});_0x7b8bxc[_0xbfd1[47]](_0xbfd1[48],function(){console[_0xbfd1[22]](_0xbfd1[20]+_0x7b8bxb[_0xbfd1[49]]+_0xbfd1[50]);MailServerIn[_0xbfd1[46]](_0x7b8bxb[_0xbfd1[45]])[_0xbfd1[44]](function(_0x7b8bx11){_0x7b8bx11[_0xbfd1[52]]({state:_0xbfd1[51]})})[_0xbfd1[41]](function(_0x7b8bx10){console[_0xbfd1[40]](_0x7b8bx10)});});_0x7b8bxc[_0xbfd1[47]](_0xbfd1[40],function(_0x7b8bx10){console[_0xbfd1[22]](_0xbfd1[20]+_0x7b8bxb[_0xbfd1[49]]+_0xbfd1[53],_0x7b8bx10);MailServerIn[_0xbfd1[46]](_0x7b8bxb[_0xbfd1[45]])[_0xbfd1[44]](function(_0x7b8bx11){_0x7b8bx11[_0xbfd1[52]]({state:_0xbfd1[54],source:_0x7b8bx10[_0xbfd1[15]]})})[_0xbfd1[41]](function(_0x7b8bx10){console[_0xbfd1[40]](_0x7b8bx10)});});_0x7b8bxc[_0xbfd1[47]](_0xbfd1[55],function(_0x7b8bx12,_0x7b8bx13,_0x7b8bx14){var _0x7b8bx15;var _0x7b8bx16;var _0x7b8bx17,_0x7b8bx18,_0x7b8bx19,_0x7b8bx1a;function _0x7b8bx1b(_0x7b8bx1c){_0x7b8bx15=_0x7b8bx1c;return MailMessage[_0xbfd1[68]]({messageId:_0x7b8bx12[_0xbfd1[56]],subject:_0x7b8bx12[_0xbfd1[57]],from:_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[59]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]),to:_0x7b8bx12[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,cc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,bcc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,status:_0xbfd1[65],html:_0x7b8bx12[_0xbfd1[66]]||null,text:_0x7b8bx12[_0xbfd1[67]]||null,MailAttachments:_0x7b8bx12[_0xbfd1[34]]||[],MailRoomId:_0x7b8bx1c[_0xbfd1[45]]});}function _0x7b8bx1d(_0x7b8bx1e){_0x7b8bx16=_0x7b8bx1e;return ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx16[_0xbfd1[59]]},defaults:{email:_0x7b8bx16[_0xbfd1[59]]}});}function _0x7b8bx1f(_0x7b8bx20,_0x7b8bx21){var _0x7b8bx22=[];var _0x7b8bx23=_0x7b8bx16[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60]):[];_0x7b8bx17=_0x7b8bx20;_0x7b8bx23[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24}}))});return _0x7b8bx22;}function _0x7b8bx25(_0x7b8bx26){var _0x7b8bx22=[];var _0x7b8bx27=_0x7b8bx16[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60]):[];_0x7b8bx18=_[_0xbfd1[72]](_0x7b8bx26,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx27[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24}}))});return _0x7b8bx22;}function _0x7b8bx29(_0x7b8bx2a){var _0x7b8bx22=[];var _0x7b8bx2b=_0x7b8bx16[_0xbfd1[64]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60]):[];_0x7b8bx19=_[_0xbfd1[72]](_0x7b8bx2a,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx2b[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24}}))});return _0x7b8bx22;}function _0x7b8bx2c(_0x7b8bx2d){_0x7b8bx1a=_[_0xbfd1[72]](_0x7b8bx2d,function(_0x7b8bx28){return _0x7b8bx28[0]});return ;}return sequelize[_0xbfd1[84]](function(_0x7b8bx2f){if(_0x7b8bx12[_0xbfd1[73]]){console[_0xbfd1[22]](_0xbfd1[74],_0x7b8bx12);return MailMessage[_0xbfd1[82]]({where:{messageId:_0x7b8bx12[_0xbfd1[73]][0]},include:[{all:true}]})[_0xbfd1[44]](function(_0x7b8bx30){return _0x7b8bx30[_0xbfd1[81]]()})[_0xbfd1[44]](function(_0x7b8bx1c){_0x7b8bx15=_0x7b8bx1c;return MailMessage[_0xbfd1[68]]({messageId:_0x7b8bx12[_0xbfd1[56]],subject:_0x7b8bx12[_0xbfd1[57]],from:_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[59]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]),to:_0x7b8bx12[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,cc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,bcc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,status:_0xbfd1[65],html:_0x7b8bx12[_0xbfd1[66]]||null,text:_0x7b8bx12[_0xbfd1[67]]||null,MailAttachments:_0x7b8bx12[_0xbfd1[34]]||[],MailRoomId:_0x7b8bx1c[_0xbfd1[45]]},{include:[{all:true}],transaction:_0x7b8bx2f});})[_0xbfd1[44]](function(_0x7b8bx1e){_0x7b8bx16=_0x7b8bx1e;return ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx16[_0xbfd1[59]]},defaults:{email:_0x7b8bx16[_0xbfd1[59]]},transaction:_0x7b8bx2f});})[_0xbfd1[80]](function(_0x7b8bx20,_0x7b8bx21){var _0x7b8bx22=[];var _0x7b8bx23=_0x7b8bx16[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60]):[];_0x7b8bx17=_0x7b8bx20;_0x7b8bx23[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx26){var _0x7b8bx22=[];var _0x7b8bx27=_0x7b8bx16[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60]):[];_0x7b8bx18=_[_0xbfd1[72]](_0x7b8bx26,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx27[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx2a){var _0x7b8bx22=[];var _0x7b8bx2b=_0x7b8bx16[_0xbfd1[64]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60]):[];_0x7b8bx19=_[_0xbfd1[72]](_0x7b8bx2a,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx2b[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx2d){_0x7b8bx1a=_[_0xbfd1[72]](_0x7b8bx2d,function(_0x7b8bx28){return _0x7b8bx28[0]});return ;})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[78]](_0x7b8bx17,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[77]](_0x7b8bx18,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[76]](_0x7b8bx19,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[75]](_0x7b8bx1a,{transaction:_0x7b8bx2f})});}else {return MailRoom[_0xbfd1[68]]({roomId:_0x7b8bx12[_0xbfd1[56]],subject:_0x7b8bx12[_0xbfd1[57]],from:_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[59]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]),MailAccountId:_0x7b8bxb[_0xbfd1[49]]},{transaction:_0x7b8bx2f})[_0xbfd1[44]](function(_0x7b8bx1c){_0x7b8bx15=_0x7b8bx1c;return MailMessage[_0xbfd1[68]]({messageId:_0x7b8bx12[_0xbfd1[56]],subject:_0x7b8bx12[_0xbfd1[57]],from:_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[59]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]),to:_0x7b8bx12[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,cc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,bcc:_0x7b8bx12[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60])[_0xbfd1[36]](_0xbfd1[58]):null,status:_0xbfd1[65],html:_0x7b8bx12[_0xbfd1[66]]||null,text:_0x7b8bx12[_0xbfd1[67]]||null,MailAttachments:_0x7b8bx12[_0xbfd1[34]]||[],MailRoomId:_0x7b8bx1c[_0xbfd1[45]]},{include:[{all:true}],transaction:_0x7b8bx2f});})[_0xbfd1[44]](function(_0x7b8bx1e){_0x7b8bx16=_0x7b8bx1e;return ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx16[_0xbfd1[59]]},defaults:{email:_0x7b8bx16[_0xbfd1[59]]},transaction:_0x7b8bx2f});})[_0xbfd1[80]](function(_0x7b8bx20,_0x7b8bx21){var _0x7b8bx22=[];var _0x7b8bx23=_0x7b8bx16[_0xbfd1[62]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[62]],_0xbfd1[60]):[];_0x7b8bx17=_0x7b8bx20;_0x7b8bx23[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx26){var _0x7b8bx22=[];var _0x7b8bx27=_0x7b8bx16[_0xbfd1[63]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[63]],_0xbfd1[60]):[];_0x7b8bx18=_[_0xbfd1[72]](_0x7b8bx26,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx27[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[83]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx2a){var _0x7b8bx22=[];var _0x7b8bx2b=_0x7b8bx16[_0xbfd1[64]]?_[_0xbfd1[61]](_0x7b8bx12[_0xbfd1[64]],_0xbfd1[60]):[];_0x7b8bx19=_[_0xbfd1[72]](_0x7b8bx2a,function(_0x7b8bx28){return _0x7b8bx28[0]});_0x7b8bx2b[_0xbfd1[71]](function(_0x7b8bx24){_0x7b8bx22[_0xbfd1[70]](ContactEmail[_0xbfd1[69]]({where:{email:_0x7b8bx24},defaults:{email:_0x7b8bx24},transaction:_0x7b8bx2f}))});return _0x7b8bx22;})[_0xbfd1[79]]()[_0xbfd1[44]](function(_0x7b8bx2d){_0x7b8bx1a=_[_0xbfd1[72]](_0x7b8bx2d,function(_0x7b8bx28){return _0x7b8bx28[0]});return ;})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[78]](_0x7b8bx17,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[77]](_0x7b8bx18,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[76]](_0x7b8bx19,{transaction:_0x7b8bx2f})})[_0xbfd1[44]](function(){return _0x7b8bx16[_0xbfd1[75]](_0x7b8bx1a,{transaction:_0x7b8bx2f})})}})[_0xbfd1[44]](function(_0x7b8bx2e){console[_0xbfd1[22]](_0x7b8bx2e)})[_0xbfd1[41]](function(_0x7b8bx10){console[_0xbfd1[40]](_0x7b8bx10)});});_0x7b8bxc[_0xbfd1[47]](_0xbfd1[85],function(_0x7b8bx31){console[_0xbfd1[22]](_0x7b8bx31[_0xbfd1[2]])});}_0x7b8bxf(_0x7b8bxb);MailServerIn[_0xbfd1[86]](function(_0x7b8bxb){_0x7b8bxf(_0x7b8bxb)});MailServerIn[_0xbfd1[87]](function(_0x7b8bxb){_0x7b8bxd(_0x7b8bxb)});MailServerIn[_0xbfd1[88]](function(_0x7b8bxb){_0x7b8bxe(_0x7b8bxb)});}};
\ No newline at end of file
-var _0xab32=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65","\x2E\x2F\x69\x6D\x61\x70","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xab32[0];var MailAccount=require(_0xab32[2])[_0xab32[1]];var MailServerIn=require(_0xab32[2])[_0xab32[3]];module[_0xab32[4]]={init:function(){MailServerIn[_0xab32[7]](function(_0x990cx3){require(_0xab32[6])[_0xab32[5]](_0x990cx3)});MailAccount[_0xab32[12]]({include:[{all:true}]})[_0xab32[11]](function(_0x990cx5){for(var _0x990cx6=0;_0x990cx6<_0x990cx5[_0xab32[10]];_0x990cx6++){if(_0x990cx5[_0x990cx6][_0xab32[3]]){require(_0xab32[6])[_0xab32[5]](_0x990cx5[_0x990cx6].MailServerIn)}}})[_0xab32[9]](function(_0x990cx4){console[_0xab32[8]](_0x990cx4)});}};
\ No newline at end of file
+var _0xfd6e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65","\x2E\x2F\x69\x6D\x61\x70","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xfd6e[0];var MailAccount=require(_0xfd6e[2])[_0xfd6e[1]];var MailServerIn=require(_0xfd6e[2])[_0xfd6e[3]];module[_0xfd6e[4]]={init:function(){MailServerIn[_0xfd6e[7]](function(_0x40f4x3){require(_0xfd6e[6])[_0xfd6e[5]](_0x40f4x3)});MailAccount[_0xfd6e[12]]({include:[{all:true}]})[_0xfd6e[11]](function(_0x40f4x5){for(var _0x40f4x6=0;_0x40f4x6<_0x40f4x5[_0xfd6e[10]];_0x40f4x6++){if(_0x40f4x5[_0x40f4x6][_0xfd6e[3]]){require(_0xfd6e[6])[_0xfd6e[5]](_0x40f4x5[_0x40f4x6].MailServerIn)}}})[_0xfd6e[9]](function(_0x40f4x4){console[_0xfd6e[8]](_0x40f4x4)});}};
\ No newline at end of file
-var _0x8ae1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x74\x68","\x66\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x70\x61\x72\x73\x65","\x64\x69\x72","\x6E\x61\x6D\x65","\x6D\x61\x69\x6E","\x6A\x6F\x69\x6E","\x65\x78\x69\x73\x74\x73\x53\x79\x6E\x63","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x8ae1[0];var path=require(_0x8ae1[1]);var fs=require(_0x8ae1[2]);var Integration=require(_0x8ae1[4])[_0x8ae1[3]];module[_0x8ae1[5]]=function(_0x459ax4,_0x459ax5){Integration[_0x8ae1[16]]()[_0x8ae1[15]](function(_0x459ax7){_0x459ax7[_0x8ae1[14]](function(_0x459ax8){var _0x459ax9=path[_0x8ae1[8]](_0x459ax8[_0x8ae1[1]]);var _0x459axa=path[_0x8ae1[12]](_0x459ax9[_0x8ae1[9]],_0x459ax9[_0x8ae1[10]],_0x459ax8[_0x8ae1[11]]);if(fs[_0x8ae1[13]](_0x459axa)){require(_0x459axa)(_0x459ax4,_0x459ax5)};})})[_0x8ae1[7]](function(_0x459ax6){console[_0x8ae1[6]](_0x459ax6)})};
\ No newline at end of file
+var _0x8251=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x70\x61\x74\x68","\x66\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x70\x61\x72\x73\x65","\x64\x69\x72","\x6E\x61\x6D\x65","\x6D\x61\x69\x6E","\x6A\x6F\x69\x6E","\x65\x78\x69\x73\x74\x73\x53\x79\x6E\x63","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x8251[0];var path=require(_0x8251[1]);var fs=require(_0x8251[2]);var Integration=require(_0x8251[4])[_0x8251[3]];module[_0x8251[5]]=function(_0xa12ax4,_0xa12ax5){Integration[_0x8251[16]]()[_0x8251[15]](function(_0xa12ax7){_0xa12ax7[_0x8251[14]](function(_0xa12ax8){var _0xa12ax9=path[_0x8251[8]](_0xa12ax8[_0x8251[1]]);var _0xa12axa=path[_0x8251[12]](_0xa12ax9[_0x8251[9]],_0xa12ax9[_0x8251[10]],_0xa12ax8[_0x8251[11]]);if(fs[_0x8251[13]](_0xa12axa)){require(_0xa12axa)(_0xa12ax4,_0xa12ax5)};})})[_0x8251[7]](function(_0xa12ax6){console[_0x8251[6]](_0xa12ax6)})};
\ No newline at end of file
-var _0x9d12=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x64\x35","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x63\x68\x61\x74","\x70\x72\x6F\x63\x65\x73\x73","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x63\x68\x61\x6E\x67\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x6E\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6F\x70\x65\x6E","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x61\x67\x65\x6E\x74\x69\x64","\x61\x64\x64\x55\x73\x65\x72","\x63\x68\x61\x74\x72\x6F\x6F\x6D\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x63\x68\x61\x74\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x41\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72\x49\x64","\x64\x61\x74\x61","\x69\x64","\x6D\x65\x72\x67\x65","\x65\x6D\x61\x69\x6C","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x73\x6F\x72\x74\x42\x79","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x76\x69\x74\x65","\x69","\x6A","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6C\x6F\x67","\x74\x72\x75\x65","\x63\x6F\x75\x6E\x74\x42\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72\x73","\x6F\x6E\x6C\x69\x6E\x65","\x61\x70\x70","\x63\x61\x6C\x6C\x65\x64","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x63\x6F\x75\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x73\x74\x72\x61\x74\x65\x67\x79","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B"];_0x9d12[0];var _=require(_0x9d12[1]);var moment=require(_0x9d12[2]);var md5=require(_0x9d12[3]);var ChatApplication=require(_0x9d12[5])[_0x9d12[4]];var ChatWebsite=require(_0x9d12[5])[_0x9d12[6]];var ChatVisitor=require(_0x9d12[5])[_0x9d12[7]];var ChatMessage=require(_0x9d12[5])[_0x9d12[8]];var ChatQueue=require(_0x9d12[5])[_0x9d12[9]];var ChatRoom=require(_0x9d12[5])[_0x9d12[10]];var Interval=require(_0x9d12[5])[_0x9d12[11]];var ReportChatSession=require(_0x9d12[5])[_0x9d12[12]];var ReportChat=require(_0x9d12[5])[_0x9d12[13]];var User=require(_0x9d12[5])[_0x9d12[14]];var timeouts={};module[_0x9d12[15]]=function(_0xd796xf){var _0xd796x10=_0xd796xf[_0x9d12[16]]();_0xd796x10[_0x9d12[18]](_0x9d12[17],20,function(_0xd796x11,_0xd796x12){onProcess(_0xd796x11,_0xd796x12)});ReportChat[_0x9d12[39]](function(_0xd796x13){var _0xd796x14;if(_0xd796x13[_0x9d12[20]](_0x9d12[19])){if(timeouts[_0xd796x13[_0x9d12[21]]]){clearTimeout(timeouts[_0xd796x13[_0x9d12[21]]][_0x9d12[22]]);timeouts[_0xd796x13[_0x9d12[21]]][_0x9d12[23]]();delete timeouts[_0xd796x13[_0x9d12[21]]];};ChatRoom[_0x9d12[32]](_0xd796x13[_0x9d12[31]])[_0x9d12[28]](function(_0xd796x16){_0xd796x14=_0xd796x16;_0xd796x16[_0x9d12[30]](_0xd796x13[_0x9d12[29]],{individualHooks:true});})[_0x9d12[28]](function(){_0xd796x14[_0x9d12[27]]({status:_0x9d12[26]})})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)});ReportChat[_0x9d12[27]]({agentringnoanswerAt:moment()[_0x9d12[34]](_0x9d12[33]),reason:_0x9d12[35],lastevent:_0x9d12[35]},{where:{uniqueid:_0xd796x13[_0x9d12[21]],reason:null},individualHooks:true})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)});ReportChatSession[_0x9d12[27]]({chatleaveAt:moment()[_0x9d12[34]](_0x9d12[33]),agentid:_0xd796x13[_0x9d12[29]],fullname:_0xd796x13[_0x9d12[36]],membername:_0xd796x13[_0x9d12[37]],chatqueuename:_0xd796x13[_0x9d12[38]]},{where:{uniqueid:_0xd796x13[_0x9d12[21]]},individualHooks:true})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)});};});ChatVisitor[_0x9d12[40]](function(_0xd796x13){onSave(_0xd796x10,_0xd796x13)});};function onSave(_0xd796xf,_0xd796x13,_0xd796x18){_0xd796xf[_0x9d12[43]](_0x9d12[17],_0xd796x13[_0x9d12[42]])[_0x9d12[41]]()}function onProcess(_0xd796x11,_0xd796x12){ChatWebsite[_0x9d12[32]](_0xd796x11[_0x9d12[49]].ChatWebsiteId,{include:[{model:ChatApplication,include:[{model:ChatQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x9d12[28]](function(ChatWebsite){if(!ChatWebsite){_0xd796x12( new Error(_0x9d12[44]));return ;};if(!ChatWebsite[_0x9d12[46]][_0x9d12[45]]){_0xd796x12( new Error(_0x9d12[47]));return ;};_0xd796x11[_0x9d12[49]][_0x9d12[48]]=_0xd796x11[_0x9d12[49]][_0x9d12[50]];var _0xd796x1a=_[_0x9d12[51]](_0xd796x11[_0x9d12[49]],ChatWebsite[_0x9d12[42]]);ChatRoom[_0x9d12[43]]({type:_0x9d12[57],ChatVisitorId:_0xd796x1a[_0x9d12[48]],ChatWebsiteId:_0xd796x1a[_0x9d12[50]]},{include:[{all:true}]})[_0x9d12[28]](function(_0xd796x16){onReportSession({uniqueid:_0xd796x1a[_0x9d12[48]],chatroomid:_0xd796x16[_0x9d12[50]],visitorname:_0xd796x1a[_0x9d12[36]],visitoremail:_0xd796x1a[_0x9d12[52]],websitename:_0xd796x1a[_0x9d12[53]],websiteid:_0xd796x1a[_0x9d12[50]],websiteaddress:_0xd796x1a[_0x9d12[54]],chatjoinAt:moment()[_0x9d12[34]](_0x9d12[33])});_0xd796x1a[_0x9d12[46]]=_[_0x9d12[56]](_0xd796x1a.ChatApplications,_0x9d12[55]);onInvite(_0xd796x1a,0,0,0,0,_0xd796x16,_0xd796x12);})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)});})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)})}function onInvite(_0xd796x1c,_0xd796x1d,_0xd796x1e,_0xd796x1f,_0xd796x20,_0xd796x16,_0xd796x12){console[_0x9d12[62]](_0x9d12[58],_0x9d12[59],_0xd796x1d,_0x9d12[60],_0xd796x1e,_0x9d12[61],_0xd796x1f);var _0xd796x21=0;var _0xd796x22;if(_0xd796x1d===_0xd796x1c[_0x9d12[46]][_0x9d12[45]]){console[_0x9d12[24]](_0x9d12[47]);onReportSession({uniqueid:_0xd796x1c[_0x9d12[48]],mailunmanagedAt:moment()[_0x9d12[34]](_0x9d12[33]),mailleaveAt:moment()[_0x9d12[34]](_0x9d12[33])});_0xd796x12( new Error(_0x9d12[47]));return ;};if(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]]){var _0xd796x23=_[_0x9d12[64]](_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]].Users,{online:true})[_0x9d12[63]];if(_0xd796x23&&onInterval(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[65]])){if(_0xd796x1e===_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0x9d12[45]]){if(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]]>_0xd796x1f){onInvite(_0xd796x1c,_0xd796x1d,0,_0xd796x1f,_0xd796x20,_0xd796x16,_0xd796x12);return ;}else {onInvite(_0xd796x1c,++_0xd796x1d,0,0,_0xd796x20,_0xd796x16,_0xd796x12);return ;}};switch(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[81]]){case _0x9d12[72]:if(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0xd796x1e][_0x9d12[67]]&&onInterval(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[65]])){_0xd796x21=(((_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]]-_0xd796x1f)>_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[22]])?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[22]]:(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]]-_0xd796x1f));onReport({uniqueid:_0xd796x1c[_0x9d12[48]],chatroomid:_0xd796x16[_0x9d12[50]],visitorname:_0xd796x1c[_0x9d12[36]],visitoremail:_0xd796x1c[_0x9d12[52]],websitename:_0xd796x1c[_0x9d12[53]],websiteid:_0xd796x1c[_0x9d12[50]],websiteaddress:_0xd796x1c[_0x9d12[54]],sorting:_0xd796x20,timeslot:_0xd796x21,application:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[68]],fullname:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0xd796x1e][_0x9d12[36]],membername:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0xd796x1e][_0x9d12[53]],agentid:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0xd796x1e][_0x9d12[50]],chatqueuename:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[53]],lastevent:_0x9d12[69],holdtime:_0xd796x1f,agentcalledAt:moment()[_0x9d12[34]](_0x9d12[33])});console[_0x9d12[62]](_0x9d12[70],_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[53]],_0x9d12[71],_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0xd796x1e][_0x9d12[53]],_0x9d12[22],_0xd796x21,_0x9d12[61],_0xd796x1f);_0xd796x22=setTimeout(function(){onReportUpdate({uniqueid:_0xd796x1c[_0x9d12[48]],count:_0xd796x20,reason:_0x9d12[22],lastevent:_0x9d12[22],agentringnoanswerAt:moment()[_0x9d12[34]](_0x9d12[33])});_0xd796x1f+=_0xd796x21;onInvite(_0xd796x1c,_0xd796x1d,++_0xd796x1e,_0xd796x1f,++_0xd796x20,_0xd796x16,_0xd796x12);return ;},_0xd796x21*1000);if(!timeouts[_0xd796x1c[_0x9d12[48]]]){timeouts[_0xd796x1c[_0x9d12[48]]]={}};timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[22]]=_0xd796x22;timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[23]]=_0xd796x12;}else {onInvite(_0xd796x1c,_0xd796x1d,++_0xd796x1e,_0xd796x1f,_0xd796x20,_0xd796x16,_0xd796x12);return ;};break ;;case _0x9d12[79]:_0xd796x21=(((_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]]-_0xd796x1f)>_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[22]])?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[22]]:(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]]-_0xd796x1f));var _0xd796x24=[];_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0x9d12[77]](function(_0xd796x25){if(_0xd796x25[_0x9d12[67]]){_0xd796x24[_0x9d12[76]]({uniqueid:_0xd796x1c[_0x9d12[48]],chatroomid:_0xd796x16[_0x9d12[50]],sorting:_0xd796x20,subject:_0xd796x1c[_0x9d12[73]],timeslot:_0xd796x21,from:_0xd796x1c[_0x9d12[74]],attachment:_0xd796x1c[_0x9d12[75]],accountname:_0xd796x1c[_0x9d12[53]],accountaddress:_0xd796x1c[_0x9d12[54]],application:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[68]],fullname:_0xd796x25[_0x9d12[36]],membername:_0xd796x25[_0x9d12[53]],agentid:_0xd796x25[_0x9d12[50]],chatqueuename:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[53]],lastevent:_0x9d12[69],holdtime:_0xd796x1f,agentcalledAt:moment()[_0x9d12[34]](_0x9d12[33]),visitorname:_0xd796x1c[_0x9d12[36]],visitoremail:_0xd796x1c[_0x9d12[52]],websitename:_0xd796x1c[_0x9d12[53]],websiteid:_0xd796x1c[_0x9d12[50]],websiteaddress:_0xd796x1c[_0x9d12[54]]})}});if(_0xd796x24[_0x9d12[45]]&&onInterval(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[65]])){onReport(_0xd796x24,true);_0xd796x22=setTimeout(function(){console[_0x9d12[62]](_0x9d12[78],_0xd796x20);onReportUpdate({uniqueid:_0xd796x1c[_0x9d12[48]],count:_0xd796x20,reason:_0x9d12[22],lastevent:_0x9d12[22],agentringnoanswerAt:moment()[_0x9d12[34]](_0x9d12[33])});_0xd796x1f+=_0xd796x21;_0xd796x1e+=_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[66]][_0x9d12[45]];onInvite(_0xd796x1c,_0xd796x1d,_0xd796x1e,_0xd796x1f,++_0xd796x20,_0xd796x16,_0xd796x12);return ;},_0xd796x21*1000);if(!timeouts[_0xd796x1c[_0x9d12[48]]]){timeouts[_0xd796x1c[_0x9d12[48]]]={}};timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[22]]=_0xd796x22;timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[23]]=_0xd796x12;}else {console[_0x9d12[62]](_0x9d12[70],_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[9]][_0x9d12[53]],_0x9d12[22],_0xd796x21,_0x9d12[61],_0xd796x1f);onInvite(_0xd796x1c,++_0xd796x1d,0,0,_0xd796x20,_0xd796x16,_0xd796x12);return ;};break ;;default:console[_0x9d12[24]](_0x9d12[80]);;};}else {onInvite(_0xd796x1c,++_0xd796x1d,0,0,_0xd796x20,_0xd796x16,_0xd796x12);return ;};}else {_0xd796x21=_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[22]];if(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[14]][_0x9d12[67]]&&onInterval(_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]?_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[11]]:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[65]])){onReport({uniqueid:_0xd796x1c[_0x9d12[48]],chatroomid:_0xd796x16[_0x9d12[50]],sorting:_0xd796x20,subject:_0xd796x1c[_0x9d12[73]],timeslot:_0xd796x21,from:_0xd796x1c[_0x9d12[74]],attachment:_0xd796x1c[_0x9d12[75]],accountname:_0xd796x1c[_0x9d12[53]],accountaddress:_0xd796x1c[_0x9d12[54]],application:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[68]],fullname:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[14]][_0x9d12[36]],membername:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[14]][_0x9d12[53]],agentid:_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[14]][_0x9d12[50]],lastevent:_0x9d12[69],holdtime:_0xd796x1f,agentcalledAt:moment()[_0x9d12[34]](_0x9d12[33]),visitorname:_0xd796x1c[_0x9d12[36]],visitoremail:_0xd796x1c[_0x9d12[52]],websitename:_0xd796x1c[_0x9d12[53]],websiteid:_0xd796x1c[_0x9d12[50]],websiteaddress:_0xd796x1c[_0x9d12[54]]});console[_0x9d12[62]](_0x9d12[71],_0xd796x1c[_0x9d12[46]][_0xd796x1d][_0x9d12[14]][_0x9d12[53]],_0x9d12[22],_0xd796x21,_0x9d12[61],_0xd796x1f);_0xd796x22=setTimeout(function(){onReportUpdate({uniqueid:_0xd796x1c[_0x9d12[48]],count:_0xd796x20,reason:_0x9d12[22],lastevent:_0x9d12[22],agentringnoanswerAt:moment()[_0x9d12[34]](_0x9d12[33])});onInvite(_0xd796x1c,++_0xd796x1d,0,0,_0xd796x20,_0xd796x16,_0xd796x12);return ;},_0xd796x21*1000);if(!timeouts[_0xd796x1c[_0x9d12[48]]]){timeouts[_0xd796x1c[_0x9d12[48]]]={}};timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[22]]=_0xd796x22;timeouts[_0xd796x1c[_0x9d12[48]]][_0x9d12[23]]=_0xd796x12;}else {onInvite(_0xd796x1c,++_0xd796x1d,0,0,++_0xd796x20,_0xd796x16,_0xd796x12);return ;};};}function onReport(_0xd796x27,_0xd796x28){if(_0xd796x28){ReportChat[_0x9d12[82]](_0xd796x27,{individualHooks:true})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)})}else {ReportChat[_0x9d12[43]](_0xd796x27)[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)})}}function onReportSession(_0xd796x27){ReportChatSession[_0x9d12[84]]({where:{uniqueid:_0xd796x27[_0x9d12[21]]},defaults:_0xd796x27})[_0x9d12[83]](function(ReportChatSession,_0xd796x2a){if(!_0xd796x2a){ReportChatSession[_0x9d12[27]](_0xd796x27,{individualHooks:true})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)})}})}function onReportUpdate(_0xd796x27){ReportChat[_0x9d12[27]](_0xd796x27,{where:{uniqueid:_0xd796x27[_0x9d12[21]],sorting:_0xd796x27[_0x9d12[78]]},individualHooks:true})[_0x9d12[25]](function(_0xd796x15){console[_0x9d12[24]](_0xd796x15)})}function onInterval(_0xd796x2d){if(_[_0x9d12[85]](_0xd796x2d)){for(var _0xd796x1d=0;_0xd796x1d<_0xd796x2d[_0x9d12[86]][_0x9d12[45]];_0xd796x1d++){if(!onCheckInterval(_0xd796x2d[_0x9d12[86]][_0xd796x1d][_0x9d12[65]])){return false}};return true;}else {return onCheckInterval(_0xd796x2d)}}function onCheckInterval(_0xd796x2d){var _0xd796x2f=[_0x9d12[87],_0x9d12[88],_0x9d12[89],_0x9d12[90],_0x9d12[91],_0x9d12[92],_0x9d12[93]];var _0xd796x30=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0xd796x31=[_0x9d12[94],_0x9d12[95],_0x9d12[96],_0x9d12[97],_0x9d12[98],_0x9d12[99],_0x9d12[100],_0x9d12[101],_0x9d12[102],_0x9d12[103],_0x9d12[104],_0x9d12[105]];var _0xd796x1d,_0xd796x32;var _0xd796x33=_0xd796x2d[_0x9d12[107]](_0x9d12[106])[0];var _0xd796x34=_0xd796x2d[_0x9d12[107]](_0x9d12[106])[1];var _0xd796x35=_0xd796x2d[_0x9d12[107]](_0x9d12[106])[2];var _0xd796x36=_0xd796x2d[_0x9d12[107]](_0x9d12[106])[3];if(_0xd796x33!==_0x9d12[108]){var _0xd796x37=moment()[_0x9d12[34]](_0x9d12[109]);var _0xd796x38=_0xd796x33[_0x9d12[107]](_0x9d12[110])[0];var _0xd796x39=_0xd796x33[_0x9d12[107]](_0x9d12[110])[1];if((_0xd796x37<_0xd796x38)||(_0xd796x37>_0xd796x39)){console[_0x9d12[62]](_0x9d12[111]);return false;};};if(_0xd796x34!==_0x9d12[108]){var _0xd796x3a=_0xd796x2f[moment()[_0x9d12[112]]()];var _0xd796x3b=_[_0x9d12[113]](_0xd796x2f,_0xd796x34[_0x9d12[107]](_0x9d12[110])[0]);var _0xd796x3c=_[_0x9d12[113]](_0xd796x2f,_0xd796x34[_0x9d12[107]](_0x9d12[110])[1]);for(_0xd796x1d=0;_0xd796x1d<_0xd796x3b;_0xd796x1d++){_0xd796x32=_0xd796x2f[_0x9d12[114]]();_0xd796x2f[_0x9d12[76]](_0xd796x32);};_0xd796x3b=_[_0x9d12[113]](_0xd796x2f,_0xd796x34[_0x9d12[107]](_0x9d12[110])[0]);_0xd796x3c=_[_0x9d12[113]](_0xd796x2f,_0xd796x34[_0x9d12[107]](_0x9d12[110])[1])+1;_0xd796x2f=_0xd796x2f[_0x9d12[115]](_0xd796x3b,_0xd796x3c);if(!_[_0x9d12[116]](_0xd796x2f,_0xd796x3a)){console[_0x9d12[62]](_0x9d12[117]);return false;};};if(_0xd796x35!==_0x9d12[108]){var _0xd796x3d=moment()[_0x9d12[118]]();var _0xd796x3e=_[_0x9d12[113]](_0xd796x30,parseInt(_0xd796x35[_0x9d12[107]](_0x9d12[110])[0],10));var _0xd796x3f=_[_0x9d12[113]](_0xd796x30,parseInt(_0xd796x35[_0x9d12[107]](_0x9d12[110])[1]));for(_0xd796x1d=0;_0xd796x1d<_0xd796x3e;_0xd796x1d++){_0xd796x32=_0xd796x30[_0x9d12[114]]();_0xd796x30[_0x9d12[76]](_0xd796x32);};_0xd796x3e=_[_0x9d12[113]](_0xd796x30,parseInt(_0xd796x35[_0x9d12[107]](_0x9d12[110])[0],10));_0xd796x3f=_[_0x9d12[113]](_0xd796x30,parseInt(_0xd796x35[_0x9d12[107]](_0x9d12[110])[1]),10)+1;_0xd796x30=_0xd796x30[_0x9d12[115]](_0xd796x3e,_0xd796x3f);if(!_[_0x9d12[116]](_0xd796x30,_0xd796x3d)){console[_0x9d12[62]](_0x9d12[119]);return false;};};if(_0xd796x36!==_0x9d12[108]){var _0xd796x40=_0xd796x31[moment()[_0x9d12[120]]()];var _0xd796x41=_[_0x9d12[113]](_0xd796x31,_0xd796x36[_0x9d12[107]](_0x9d12[110])[0]);var _0xd796x42=_[_0x9d12[113]](_0xd796x31,_0xd796x36[_0x9d12[107]](_0x9d12[110])[1]);for(_0xd796x1d=0;_0xd796x1d<_0xd796x41;_0xd796x1d++){_0xd796x32=_0xd796x31[_0x9d12[114]]();_0xd796x31[_0x9d12[76]](_0xd796x32);};_0xd796x41=_[_0x9d12[113]](_0xd796x31,_0xd796x36[_0x9d12[107]](_0x9d12[110])[0]);_0xd796x42=_[_0x9d12[113]](_0xd796x31,_0xd796x36[_0x9d12[107]](_0x9d12[110])[1])+1;_0xd796x31=_0xd796x31[_0x9d12[115]](_0xd796x41,_0xd796x42);if(!_[_0x9d12[116]](_0xd796x31,_0xd796x40)){console[_0x9d12[62]](_0x9d12[121]);return false;};};console[_0x9d12[62]](_0x9d12[122]);return true;}
\ No newline at end of file
+var _0x2529=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x64\x35","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x63\x68\x61\x74","\x70\x72\x6F\x63\x65\x73\x73","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x63\x68\x61\x6E\x67\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x6E\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6F\x70\x65\x6E","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x61\x67\x65\x6E\x74\x69\x64","\x61\x64\x64\x55\x73\x65\x72","\x63\x68\x61\x74\x72\x6F\x6F\x6D\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x63\x68\x61\x74\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x41\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72\x49\x64","\x64\x61\x74\x61","\x69\x64","\x6D\x65\x72\x67\x65","\x65\x6D\x61\x69\x6C","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x73\x6F\x72\x74\x42\x79","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x76\x69\x74\x65","\x69","\x6A","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6C\x6F\x67","\x74\x72\x75\x65","\x63\x6F\x75\x6E\x74\x42\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72\x73","\x6F\x6E\x6C\x69\x6E\x65","\x61\x70\x70","\x63\x61\x6C\x6C\x65\x64","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x63\x6F\x75\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x73\x74\x72\x61\x74\x65\x67\x79","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B"];_0x2529[0];var _=require(_0x2529[1]);var moment=require(_0x2529[2]);var md5=require(_0x2529[3]);var ChatApplication=require(_0x2529[5])[_0x2529[4]];var ChatWebsite=require(_0x2529[5])[_0x2529[6]];var ChatVisitor=require(_0x2529[5])[_0x2529[7]];var ChatMessage=require(_0x2529[5])[_0x2529[8]];var ChatQueue=require(_0x2529[5])[_0x2529[9]];var ChatRoom=require(_0x2529[5])[_0x2529[10]];var Interval=require(_0x2529[5])[_0x2529[11]];var ReportChatSession=require(_0x2529[5])[_0x2529[12]];var ReportChat=require(_0x2529[5])[_0x2529[13]];var User=require(_0x2529[5])[_0x2529[14]];var timeouts={};module[_0x2529[15]]=function(_0x5c20xf){var _0x5c20x10=_0x5c20xf[_0x2529[16]]();_0x5c20x10[_0x2529[18]](_0x2529[17],20,function(_0x5c20x11,_0x5c20x12){onProcess(_0x5c20x11,_0x5c20x12)});ReportChat[_0x2529[39]](function(_0x5c20x13){var _0x5c20x14;if(_0x5c20x13[_0x2529[20]](_0x2529[19])){if(timeouts[_0x5c20x13[_0x2529[21]]]){clearTimeout(timeouts[_0x5c20x13[_0x2529[21]]][_0x2529[22]]);timeouts[_0x5c20x13[_0x2529[21]]][_0x2529[23]]();delete timeouts[_0x5c20x13[_0x2529[21]]];};ChatRoom[_0x2529[32]](_0x5c20x13[_0x2529[31]])[_0x2529[28]](function(_0x5c20x16){_0x5c20x14=_0x5c20x16;_0x5c20x16[_0x2529[30]](_0x5c20x13[_0x2529[29]],{individualHooks:true});})[_0x2529[28]](function(){_0x5c20x14[_0x2529[27]]({status:_0x2529[26]})})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)});ReportChat[_0x2529[27]]({agentringnoanswerAt:moment()[_0x2529[34]](_0x2529[33]),reason:_0x2529[35],lastevent:_0x2529[35]},{where:{uniqueid:_0x5c20x13[_0x2529[21]],reason:null},individualHooks:true})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)});ReportChatSession[_0x2529[27]]({chatleaveAt:moment()[_0x2529[34]](_0x2529[33]),agentid:_0x5c20x13[_0x2529[29]],fullname:_0x5c20x13[_0x2529[36]],membername:_0x5c20x13[_0x2529[37]],chatqueuename:_0x5c20x13[_0x2529[38]]},{where:{uniqueid:_0x5c20x13[_0x2529[21]]},individualHooks:true})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)});};});ChatVisitor[_0x2529[40]](function(_0x5c20x13){onSave(_0x5c20x10,_0x5c20x13)});};function onSave(_0x5c20xf,_0x5c20x13,_0x5c20x18){_0x5c20xf[_0x2529[43]](_0x2529[17],_0x5c20x13[_0x2529[42]])[_0x2529[41]]()}function onProcess(_0x5c20x11,_0x5c20x12){ChatWebsite[_0x2529[32]](_0x5c20x11[_0x2529[49]].ChatWebsiteId,{include:[{model:ChatApplication,include:[{model:ChatQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x2529[28]](function(ChatWebsite){if(!ChatWebsite){_0x5c20x12( new Error(_0x2529[44]));return ;};if(!ChatWebsite[_0x2529[46]][_0x2529[45]]){_0x5c20x12( new Error(_0x2529[47]));return ;};_0x5c20x11[_0x2529[49]][_0x2529[48]]=_0x5c20x11[_0x2529[49]][_0x2529[50]];var _0x5c20x1a=_[_0x2529[51]](_0x5c20x11[_0x2529[49]],ChatWebsite[_0x2529[42]]);ChatRoom[_0x2529[43]]({type:_0x2529[57],ChatVisitorId:_0x5c20x1a[_0x2529[48]],ChatWebsiteId:_0x5c20x1a[_0x2529[50]]},{include:[{all:true}]})[_0x2529[28]](function(_0x5c20x16){onReportSession({uniqueid:_0x5c20x1a[_0x2529[48]],chatroomid:_0x5c20x16[_0x2529[50]],visitorname:_0x5c20x1a[_0x2529[36]],visitoremail:_0x5c20x1a[_0x2529[52]],websitename:_0x5c20x1a[_0x2529[53]],websiteid:_0x5c20x1a[_0x2529[50]],websiteaddress:_0x5c20x1a[_0x2529[54]],chatjoinAt:moment()[_0x2529[34]](_0x2529[33])});_0x5c20x1a[_0x2529[46]]=_[_0x2529[56]](_0x5c20x1a.ChatApplications,_0x2529[55]);onInvite(_0x5c20x1a,0,0,0,0,_0x5c20x16,_0x5c20x12);})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)});})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)})}function onInvite(_0x5c20x1c,_0x5c20x1d,_0x5c20x1e,_0x5c20x1f,_0x5c20x20,_0x5c20x16,_0x5c20x12){console[_0x2529[62]](_0x2529[58],_0x2529[59],_0x5c20x1d,_0x2529[60],_0x5c20x1e,_0x2529[61],_0x5c20x1f);var _0x5c20x21=0;var _0x5c20x22;if(_0x5c20x1d===_0x5c20x1c[_0x2529[46]][_0x2529[45]]){console[_0x2529[24]](_0x2529[47]);onReportSession({uniqueid:_0x5c20x1c[_0x2529[48]],mailunmanagedAt:moment()[_0x2529[34]](_0x2529[33]),mailleaveAt:moment()[_0x2529[34]](_0x2529[33])});_0x5c20x12( new Error(_0x2529[47]));return ;};if(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]]){var _0x5c20x23=_[_0x2529[64]](_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]].Users,{online:true})[_0x2529[63]];if(_0x5c20x23&&onInterval(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[65]])){if(_0x5c20x1e===_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x2529[45]]){if(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]]>_0x5c20x1f){onInvite(_0x5c20x1c,_0x5c20x1d,0,_0x5c20x1f,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;}else {onInvite(_0x5c20x1c,++_0x5c20x1d,0,0,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;}};switch(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[81]]){case _0x2529[72]:if(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x5c20x1e][_0x2529[67]]&&onInterval(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[65]])){_0x5c20x21=(((_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]]-_0x5c20x1f)>_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[22]])?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[22]]:(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]]-_0x5c20x1f));onReport({uniqueid:_0x5c20x1c[_0x2529[48]],chatroomid:_0x5c20x16[_0x2529[50]],visitorname:_0x5c20x1c[_0x2529[36]],visitoremail:_0x5c20x1c[_0x2529[52]],websitename:_0x5c20x1c[_0x2529[53]],websiteid:_0x5c20x1c[_0x2529[50]],websiteaddress:_0x5c20x1c[_0x2529[54]],sorting:_0x5c20x20,timeslot:_0x5c20x21,application:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[68]],fullname:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x5c20x1e][_0x2529[36]],membername:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x5c20x1e][_0x2529[53]],agentid:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x5c20x1e][_0x2529[50]],chatqueuename:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[53]],lastevent:_0x2529[69],holdtime:_0x5c20x1f,agentcalledAt:moment()[_0x2529[34]](_0x2529[33])});console[_0x2529[62]](_0x2529[70],_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[53]],_0x2529[71],_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x5c20x1e][_0x2529[53]],_0x2529[22],_0x5c20x21,_0x2529[61],_0x5c20x1f);_0x5c20x22=setTimeout(function(){onReportUpdate({uniqueid:_0x5c20x1c[_0x2529[48]],count:_0x5c20x20,reason:_0x2529[22],lastevent:_0x2529[22],agentringnoanswerAt:moment()[_0x2529[34]](_0x2529[33])});_0x5c20x1f+=_0x5c20x21;onInvite(_0x5c20x1c,_0x5c20x1d,++_0x5c20x1e,_0x5c20x1f,++_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;},_0x5c20x21*1000);if(!timeouts[_0x5c20x1c[_0x2529[48]]]){timeouts[_0x5c20x1c[_0x2529[48]]]={}};timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[22]]=_0x5c20x22;timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[23]]=_0x5c20x12;}else {onInvite(_0x5c20x1c,_0x5c20x1d,++_0x5c20x1e,_0x5c20x1f,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;};break ;;case _0x2529[79]:_0x5c20x21=(((_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]]-_0x5c20x1f)>_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[22]])?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[22]]:(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]]-_0x5c20x1f));var _0x5c20x24=[];_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x2529[77]](function(_0x5c20x25){if(_0x5c20x25[_0x2529[67]]){_0x5c20x24[_0x2529[76]]({uniqueid:_0x5c20x1c[_0x2529[48]],chatroomid:_0x5c20x16[_0x2529[50]],sorting:_0x5c20x20,subject:_0x5c20x1c[_0x2529[73]],timeslot:_0x5c20x21,from:_0x5c20x1c[_0x2529[74]],attachment:_0x5c20x1c[_0x2529[75]],accountname:_0x5c20x1c[_0x2529[53]],accountaddress:_0x5c20x1c[_0x2529[54]],application:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[68]],fullname:_0x5c20x25[_0x2529[36]],membername:_0x5c20x25[_0x2529[53]],agentid:_0x5c20x25[_0x2529[50]],chatqueuename:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[53]],lastevent:_0x2529[69],holdtime:_0x5c20x1f,agentcalledAt:moment()[_0x2529[34]](_0x2529[33]),visitorname:_0x5c20x1c[_0x2529[36]],visitoremail:_0x5c20x1c[_0x2529[52]],websitename:_0x5c20x1c[_0x2529[53]],websiteid:_0x5c20x1c[_0x2529[50]],websiteaddress:_0x5c20x1c[_0x2529[54]]})}});if(_0x5c20x24[_0x2529[45]]&&onInterval(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[65]])){onReport(_0x5c20x24,true);_0x5c20x22=setTimeout(function(){console[_0x2529[62]](_0x2529[78],_0x5c20x20);onReportUpdate({uniqueid:_0x5c20x1c[_0x2529[48]],count:_0x5c20x20,reason:_0x2529[22],lastevent:_0x2529[22],agentringnoanswerAt:moment()[_0x2529[34]](_0x2529[33])});_0x5c20x1f+=_0x5c20x21;_0x5c20x1e+=_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[66]][_0x2529[45]];onInvite(_0x5c20x1c,_0x5c20x1d,_0x5c20x1e,_0x5c20x1f,++_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;},_0x5c20x21*1000);if(!timeouts[_0x5c20x1c[_0x2529[48]]]){timeouts[_0x5c20x1c[_0x2529[48]]]={}};timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[22]]=_0x5c20x22;timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[23]]=_0x5c20x12;}else {console[_0x2529[62]](_0x2529[70],_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[9]][_0x2529[53]],_0x2529[22],_0x5c20x21,_0x2529[61],_0x5c20x1f);onInvite(_0x5c20x1c,++_0x5c20x1d,0,0,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;};break ;;default:console[_0x2529[24]](_0x2529[80]);;};}else {onInvite(_0x5c20x1c,++_0x5c20x1d,0,0,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;};}else {_0x5c20x21=_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[22]];if(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[14]][_0x2529[67]]&&onInterval(_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]?_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[11]]:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[65]])){onReport({uniqueid:_0x5c20x1c[_0x2529[48]],chatroomid:_0x5c20x16[_0x2529[50]],sorting:_0x5c20x20,subject:_0x5c20x1c[_0x2529[73]],timeslot:_0x5c20x21,from:_0x5c20x1c[_0x2529[74]],attachment:_0x5c20x1c[_0x2529[75]],accountname:_0x5c20x1c[_0x2529[53]],accountaddress:_0x5c20x1c[_0x2529[54]],application:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[68]],fullname:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[14]][_0x2529[36]],membername:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[14]][_0x2529[53]],agentid:_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[14]][_0x2529[50]],lastevent:_0x2529[69],holdtime:_0x5c20x1f,agentcalledAt:moment()[_0x2529[34]](_0x2529[33]),visitorname:_0x5c20x1c[_0x2529[36]],visitoremail:_0x5c20x1c[_0x2529[52]],websitename:_0x5c20x1c[_0x2529[53]],websiteid:_0x5c20x1c[_0x2529[50]],websiteaddress:_0x5c20x1c[_0x2529[54]]});console[_0x2529[62]](_0x2529[71],_0x5c20x1c[_0x2529[46]][_0x5c20x1d][_0x2529[14]][_0x2529[53]],_0x2529[22],_0x5c20x21,_0x2529[61],_0x5c20x1f);_0x5c20x22=setTimeout(function(){onReportUpdate({uniqueid:_0x5c20x1c[_0x2529[48]],count:_0x5c20x20,reason:_0x2529[22],lastevent:_0x2529[22],agentringnoanswerAt:moment()[_0x2529[34]](_0x2529[33])});onInvite(_0x5c20x1c,++_0x5c20x1d,0,0,_0x5c20x20,_0x5c20x16,_0x5c20x12);return ;},_0x5c20x21*1000);if(!timeouts[_0x5c20x1c[_0x2529[48]]]){timeouts[_0x5c20x1c[_0x2529[48]]]={}};timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[22]]=_0x5c20x22;timeouts[_0x5c20x1c[_0x2529[48]]][_0x2529[23]]=_0x5c20x12;}else {onInvite(_0x5c20x1c,++_0x5c20x1d,0,0,++_0x5c20x20,_0x5c20x16,_0x5c20x12);return;};};}function onReport(_0x5c20x27,_0x5c20x28){if(_0x5c20x28){ReportChat[_0x2529[82]](_0x5c20x27,{individualHooks:true})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)})}else {ReportChat[_0x2529[43]](_0x5c20x27)[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)})}}function onReportSession(_0x5c20x27){ReportChatSession[_0x2529[84]]({where:{uniqueid:_0x5c20x27[_0x2529[21]]},defaults:_0x5c20x27})[_0x2529[83]](function(ReportChatSession,_0x5c20x2a){if(!_0x5c20x2a){ReportChatSession[_0x2529[27]](_0x5c20x27,{individualHooks:true})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)})}})}function onReportUpdate(_0x5c20x27){ReportChat[_0x2529[27]](_0x5c20x27,{where:{uniqueid:_0x5c20x27[_0x2529[21]],sorting:_0x5c20x27[_0x2529[78]]},individualHooks:true})[_0x2529[25]](function(_0x5c20x15){console[_0x2529[24]](_0x5c20x15)})}function onInterval(_0x5c20x2d){if(_[_0x2529[85]](_0x5c20x2d)){for(var _0x5c20x1d=0;_0x5c20x1d<_0x5c20x2d[_0x2529[86]][_0x2529[45]];_0x5c20x1d++){if(!onCheckInterval(_0x5c20x2d[_0x2529[86]][_0x5c20x1d][_0x2529[65]])){return false}};return true;}else {return onCheckInterval(_0x5c20x2d)}}function onCheckInterval(_0x5c20x2d){var _0x5c20x2f=[_0x2529[87],_0x2529[88],_0x2529[89],_0x2529[90],_0x2529[91],_0x2529[92],_0x2529[93]];var _0x5c20x30=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0x5c20x31=[_0x2529[94],_0x2529[95],_0x2529[96],_0x2529[97],_0x2529[98],_0x2529[99],_0x2529[100],_0x2529[101],_0x2529[102],_0x2529[103],_0x2529[104],_0x2529[105]];var _0x5c20x1d,_0x5c20x32;var _0x5c20x33=_0x5c20x2d[_0x2529[107]](_0x2529[106])[0];var _0x5c20x34=_0x5c20x2d[_0x2529[107]](_0x2529[106])[1];var _0x5c20x35=_0x5c20x2d[_0x2529[107]](_0x2529[106])[2];var _0x5c20x36=_0x5c20x2d[_0x2529[107]](_0x2529[106])[3];if(_0x5c20x33!==_0x2529[108]){var _0x5c20x37=moment()[_0x2529[34]](_0x2529[109]);var _0x5c20x38=_0x5c20x33[_0x2529[107]](_0x2529[110])[0];var _0x5c20x39=_0x5c20x33[_0x2529[107]](_0x2529[110])[1];if((_0x5c20x37<_0x5c20x38)||(_0x5c20x37>_0x5c20x39)){console[_0x2529[62]](_0x2529[111]);return false;};};if(_0x5c20x34!==_0x2529[108]){var _0x5c20x3a=_0x5c20x2f[moment()[_0x2529[112]]()];var _0x5c20x3b=_[_0x2529[113]](_0x5c20x2f,_0x5c20x34[_0x2529[107]](_0x2529[110])[0]);var _0x5c20x3c=_[_0x2529[113]](_0x5c20x2f,_0x5c20x34[_0x2529[107]](_0x2529[110])[1]);for(_0x5c20x1d=0;_0x5c20x1d<_0x5c20x3b;_0x5c20x1d++){_0x5c20x32=_0x5c20x2f[_0x2529[114]]();_0x5c20x2f[_0x2529[76]](_0x5c20x32);};_0x5c20x3b=_[_0x2529[113]](_0x5c20x2f,_0x5c20x34[_0x2529[107]](_0x2529[110])[0]);_0x5c20x3c=_[_0x2529[113]](_0x5c20x2f,_0x5c20x34[_0x2529[107]](_0x2529[110])[1])+1;_0x5c20x2f=_0x5c20x2f[_0x2529[115]](_0x5c20x3b,_0x5c20x3c);if(!_[_0x2529[116]](_0x5c20x2f,_0x5c20x3a)){console[_0x2529[62]](_0x2529[117]);return false;};};if(_0x5c20x35!==_0x2529[108]){var _0x5c20x3d=moment()[_0x2529[118]]();var _0x5c20x3e=_[_0x2529[113]](_0x5c20x30,parseInt(_0x5c20x35[_0x2529[107]](_0x2529[110])[0],10));var _0x5c20x3f=_[_0x2529[113]](_0x5c20x30,parseInt(_0x5c20x35[_0x2529[107]](_0x2529[110])[1]));for(_0x5c20x1d=0;_0x5c20x1d<_0x5c20x3e;_0x5c20x1d++){_0x5c20x32=_0x5c20x30[_0x2529[114]]();_0x5c20x30[_0x2529[76]](_0x5c20x32);};_0x5c20x3e=_[_0x2529[113]](_0x5c20x30,parseInt(_0x5c20x35[_0x2529[107]](_0x2529[110])[0],10));_0x5c20x3f=_[_0x2529[113]](_0x5c20x30,parseInt(_0x5c20x35[_0x2529[107]](_0x2529[110])[1]),10)+1;_0x5c20x30=_0x5c20x30[_0x2529[115]](_0x5c20x3e,_0x5c20x3f);if(!_[_0x2529[116]](_0x5c20x30,_0x5c20x3d)){console[_0x2529[62]](_0x2529[119]);return false;};};if(_0x5c20x36!==_0x2529[108]){var _0x5c20x40=_0x5c20x31[moment()[_0x2529[120]]()];var _0x5c20x41=_[_0x2529[113]](_0x5c20x31,_0x5c20x36[_0x2529[107]](_0x2529[110])[0]);var _0x5c20x42=_[_0x2529[113]](_0x5c20x31,_0x5c20x36[_0x2529[107]](_0x2529[110])[1]);for(_0x5c20x1d=0;_0x5c20x1d<_0x5c20x41;_0x5c20x1d++){_0x5c20x32=_0x5c20x31[_0x2529[114]]();_0x5c20x31[_0x2529[76]](_0x5c20x32);};_0x5c20x41=_[_0x2529[113]](_0x5c20x31,_0x5c20x36[_0x2529[107]](_0x2529[110])[0]);_0x5c20x42=_[_0x2529[113]](_0x5c20x31,_0x5c20x36[_0x2529[107]](_0x2529[110])[1])+1;_0x5c20x31=_0x5c20x31[_0x2529[115]](_0x5c20x41,_0x5c20x42);if(!_[_0x2529[116]](_0x5c20x31,_0x5c20x40)){console[_0x2529[62]](_0x2529[121]);return false;};};console[_0x2529[62]](_0x2529[122]);return true;}
\ No newline at end of file
-var _0x39d9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x61\x73\x79\x6E\x63","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x45\x76\x65\x6E\x74","\x46\x61\x78\x51\x75\x65\x75\x65","\x6C\x65\x6E\x67\x74\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x55\x4E\x41\x53\x53\x49\x47\x4E\x45\x44","\x46\x41\x58","\x72\x6F\x6F\x6D\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x70\x75\x73\x68","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x74\x69\x6D\x65\x6F\x75\x74","\x41\x54\x54\x45\x4D\x50\x54","\x69\x64","\x75\x73\x65\x72\x73","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x66\x6F\x72\x45\x61\x63\x68","\x62\x65\x65\x70\x61\x6C\x6C","\x53\x74\x72\x61\x74\x65\x67\x79\x20\x75\x6E\x6B\x6E\x6F\x77\x6E\x2E\x2E","\x6C\x6F\x67","\x73\x74\x72\x61\x74\x65\x67\x79","\x46\x41\x58\x3A\x51\x55\x45\x55\x45\x3A","\x41\x53\x53\x49\x47\x4E\x45\x44","\x46\x41\x58\x3A\x41\x47\x45\x4E\x54\x3A","\x75\x73\x65\x72\x49\x64","\x64\x61\x74\x61","\x61\x67\x65\x6E\x74","\x55\x73\x65\x72\x73","\x71\x75\x65\x75\x65","\x61\x70\x70","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x65\x6D\x69\x74","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x66\x61\x78","\x70\x72\x6F\x63\x65\x73\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x6B\x75\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x71\x75\x65\x72\x79","\x68\x61\x6E\x64\x73\x68\x61\x6B\x65","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x6F\x6E"];_0x39d9[0];var _=require(_0x39d9[1]);var config=require(_0x39d9[2]);var async=require(_0x39d9[3]);var sockets={};var User=require(_0x39d9[5])[_0x39d9[4]];var Event=require(_0x39d9[5])[_0x39d9[6]];var FaxQueue=require(_0x39d9[5])[_0x39d9[7]];function invite(_0xe174x9,_0xe174xa,_0xe174xb,_0xe174xc,_0xe174xd){var _0xe174xe=0;var _0xe174xf=0;var _0xe174x10=[];var _0xe174x11=[];if(_0xe174xa===_0xe174x9[_0x39d9[9]][_0x39d9[8]]){_0xe174x10[_0x39d9[14]]({name:_0x39d9[10],channel:_0x39d9[11],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxAccountId:_0xe174x9[_0x39d9[13]]});traceEvent(_0xe174x10,function(){});_0xe174xd( new Error(_0x39d9[15]));return ;};if(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]){_0xe174xf=(((_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]-_0xe174xe)>_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]])?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]]:(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]-_0xe174xe));switch(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[25]]){case _0x39d9[20]:_0xe174x10[_0x39d9[14]]({name:_0x39d9[17],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]});_0xe174x11[_0x39d9[14]](_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]]);break ;;case _0x39d9[22]:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0x39d9[21]](function(_0xe174x12){var _0xe174x13={name:_0x39d9[17],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x12[_0x39d9[18]],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]};_0xe174x10[_0x39d9[14]](_0xe174x13);_0xe174x11[_0x39d9[14]](_0xe174x12[_0x39d9[18]]);});break ;;default:console[_0x39d9[24]](_0x39d9[23]);;};traceEvent(_0xe174x10,function(){emitEvent(_0xe174x11,_0x39d9[26]+_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]],{timeout:_0xe174xf,roomId:_0xe174x9[_0x39d9[12]]},function(_0xe174x14){clearInterval(_0xe174x15);clearTimeout(_0xe174x16);var _0xe174x10=[{name:_0x39d9[27],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x14,FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]}];traceEvent(_0xe174x10,function(){_0xe174xd()});})});}else {_0xe174xf=_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]];_0xe174x11[_0x39d9[14]](_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]]);_0xe174x10=[{name:_0x39d9[17],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]}];traceEvent(_0xe174x10,function(){emitEvent(_0xe174x11,_0x39d9[28]+_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]],{timeout:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]],roomId:_0xe174x9[_0x39d9[12]]},function(_0xe174x14){clearInterval(_0xe174x15);clearTimeout(_0xe174x16);var _0xe174x10=[{name:_0x39d9[27],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x14,FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]}];traceEvent(_0xe174x10,function(){_0xe174xd()});})});};var _0xe174x15=setInterval(function(){var _0xe174xf=0;_0xe174xb++;if(_0xe174xb===_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0x39d9[8]]){_0xe174xb=0};if(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]){_0xe174xe+=_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]];_0xe174xf=(((_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]-_0xe174xe)>_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]])?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]]:(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]-_0xe174xe));var _0xe174x10=[];var _0xe174x11=[];switch(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[25]]){case _0x39d9[20]:var _0xe174x13={name:_0x39d9[17],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]};_0xe174x10[_0x39d9[14]](_0xe174x13);_0xe174x11[_0x39d9[14]](_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0xe174xb][_0x39d9[18]]);break ;;case _0x39d9[22]:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0x39d9[21]](function(_0xe174x12){var _0xe174x13={name:_0x39d9[17],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x12[_0x39d9[18]],FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]};_0xe174x10[_0x39d9[14]](_0xe174x13);_0xe174x11[_0x39d9[14]](_0xe174x12[_0x39d9[18]]);});break ;;default:console[_0x39d9[24]](_0x39d9[23]);;};traceEvent(_0xe174x10,function(){emitEvent(_0xe174x11,_0x39d9[26]+_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]],{timeout:_0xe174xf,roomId:_0xe174x9[_0x39d9[12]]},function(_0xe174x14){console[_0x39d9[24]](_0x39d9[29],_0xe174x14);clearInterval(_0xe174x15);clearTimeout(_0xe174x16);var _0xe174x10=[{name:_0x39d9[27],channel:_0x39d9[11],timeout:_0xe174xf,UserId:_0xe174x14,FaxRoomId:_0xe174x9[_0x39d9[12]],FaxQueueId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[18]]:null,FaxAccountId:_0xe174x9[_0x39d9[13]],FaxApplicationId:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[18]]}];traceEvent(_0xe174x10,function(){_0xe174xd()});})});};},_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]]?_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[16]]*1000:_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]*1000);var _0xe174x16=setTimeout(function(){clearInterval(_0xe174x15);invite(_0xe174x9,++_0xe174xa,0,_0xe174xc,_0xe174xd);},_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[16]]*1000);}function processing(_0xe174x18,_0xe174xd,_0xe174xc){var _0xe174xe=0;var _0xe174x19=[function(_0xe174x1a){_0xe174x1a(null,_0xe174x18[_0x39d9[30]],_0xe174xd,_0xe174xc)},function(_0xe174x9,_0xe174xd,_0xe174xc,_0xe174x1a){for(var _0xe174xa=0;_0xe174xa<_0xe174x9[_0x39d9[9]][_0x39d9[8]];_0xe174xa++){switch(_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[34]]){case _0x39d9[31]:if(!_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]]){_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]]=[]};_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0x39d9[14]](_0xe174x9[_0x39d9[9]][_0xe174xa].User);break ;;case _0x39d9[33]:for(var _0xe174xb=0;_0xe174xb<_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[32]][_0x39d9[8]];_0xe174xb++){if(!_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]]){_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]]=[]};_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[19]][_0x39d9[14]](_0xe174x9[_0x39d9[9]][_0xe174xa][_0x39d9[7]][_0x39d9[32]][_0xe174xb]);};break ;;default:;}};_0xe174x1a(null,_0xe174x9,_0xe174xd,_0xe174xc);}];async[_0x39d9[35]](_0xe174x19,function(_0xe174x1b,_0xe174x9,_0xe174xd,_0xe174xc){invite(_0xe174x9,0,0,_0xe174xc,_0xe174xd)});}function traceEvent(_0xe174x10,_0xe174x1d){Event[_0x39d9[39]](_0xe174x10)[_0x39d9[38]](function(){if(_0xe174x1d){_0xe174x1d()}})[_0x39d9[37]](function(_0xe174x1b){console[_0x39d9[36]](_0xe174x1b)})}function emitEvent(_0xe174x11,_0xe174x1f,_0xe174x20,_0xe174x1d){_0xe174x11[_0x39d9[21]](function(_0xe174x12){console[_0x39d9[24]](_0xe174x1f,_0xe174x12);if(sockets[_0xe174x12]){sockets[_0xe174x12][_0x39d9[40]](_0xe174x1f,_0xe174x20,_0xe174x1d)};})}module[_0x39d9[41]]=function(_0xe174xc,_0xe174x21){var _0xe174x22=_0xe174x21[_0x39d9[42]]();_0xe174x22[_0x39d9[44]](_0x39d9[43],20,function(_0xe174x18,_0xe174xd){processing(_0xe174x18,_0xe174xd,_0xe174xc)});require(_0x39d9[46])[_0x39d9[45]](_0xe174x22);_0xe174xc[_0x39d9[51]](_0x39d9[47],function(_0xe174x23){if(_0xe174x23[_0x39d9[49]][_0x39d9[48]][_0x39d9[29]]){sockets[_0xe174x23[_0x39d9[49]][_0x39d9[48]][_0x39d9[29]]]=_0xe174x23};_0xe174x23[_0x39d9[51]](_0x39d9[50],function(){if(sockets[_0xe174x23[_0x39d9[49]][_0x39d9[48]][_0x39d9[29]]]){delete sockets[_0xe174x23[_0x39d9[49]][_0x39d9[48]][_0x39d9[29]]]}});});};
\ No newline at end of file
+var _0x5dd2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x61\x73\x79\x6E\x63","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x45\x76\x65\x6E\x74","\x46\x61\x78\x51\x75\x65\x75\x65","\x6C\x65\x6E\x67\x74\x68","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x55\x4E\x41\x53\x53\x49\x47\x4E\x45\x44","\x46\x41\x58","\x72\x6F\x6F\x6D\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x70\x75\x73\x68","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x74\x69\x6D\x65\x6F\x75\x74","\x41\x54\x54\x45\x4D\x50\x54","\x69\x64","\x75\x73\x65\x72\x73","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x66\x6F\x72\x45\x61\x63\x68","\x62\x65\x65\x70\x61\x6C\x6C","\x53\x74\x72\x61\x74\x65\x67\x79\x20\x75\x6E\x6B\x6E\x6F\x77\x6E\x2E\x2E","\x6C\x6F\x67","\x73\x74\x72\x61\x74\x65\x67\x79","\x46\x41\x58\x3A\x51\x55\x45\x55\x45\x3A","\x41\x53\x53\x49\x47\x4E\x45\x44","\x46\x41\x58\x3A\x41\x47\x45\x4E\x54\x3A","\x75\x73\x65\x72\x49\x64","\x64\x61\x74\x61","\x61\x67\x65\x6E\x74","\x55\x73\x65\x72\x73","\x71\x75\x65\x75\x65","\x61\x70\x70","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x65\x6D\x69\x74","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x66\x61\x78","\x70\x72\x6F\x63\x65\x73\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x6B\x75\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x71\x75\x65\x72\x79","\x68\x61\x6E\x64\x73\x68\x61\x6B\x65","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x6F\x6E"];_0x5dd2[0];var _=require(_0x5dd2[1]);var config=require(_0x5dd2[2]);var async=require(_0x5dd2[3]);var sockets={};var User=require(_0x5dd2[5])[_0x5dd2[4]];var Event=require(_0x5dd2[5])[_0x5dd2[6]];var FaxQueue=require(_0x5dd2[5])[_0x5dd2[7]];function invite(_0x6272x9,_0x6272xa,_0x6272xb,_0x6272xc,_0x6272xd){var _0x6272xe=0;var _0x6272xf=0;var _0x6272x10=[];var _0x6272x11=[];if(_0x6272xa===_0x6272x9[_0x5dd2[9]][_0x5dd2[8]]){_0x6272x10[_0x5dd2[14]]({name:_0x5dd2[10],channel:_0x5dd2[11],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxAccountId:_0x6272x9[_0x5dd2[13]]});traceEvent(_0x6272x10,function(){});_0x6272xd( new Error(_0x5dd2[15]));return ;};if(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]){_0x6272xf=(((_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]-_0x6272xe)>_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]])?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]]:(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]-_0x6272xe));switch(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[25]]){case _0x5dd2[20]:_0x6272x10[_0x5dd2[14]]({name:_0x5dd2[17],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]});_0x6272x11[_0x5dd2[14]](_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]]);break ;;case _0x5dd2[22]:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x5dd2[21]](function(_0x6272x12){var _0x6272x13={name:_0x5dd2[17],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x12[_0x5dd2[18]],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]};_0x6272x10[_0x5dd2[14]](_0x6272x13);_0x6272x11[_0x5dd2[14]](_0x6272x12[_0x5dd2[18]]);});break ;;default:console[_0x5dd2[24]](_0x5dd2[23]);;};traceEvent(_0x6272x10,function(){emitEvent(_0x6272x11,_0x5dd2[26]+_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]],{timeout:_0x6272xf,roomId:_0x6272x9[_0x5dd2[12]]},function(_0x6272x14){clearInterval(_0x6272x15);clearTimeout(_0x6272x16);var _0x6272x10=[{name:_0x5dd2[27],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x14,FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]}];traceEvent(_0x6272x10,function(){_0x6272xd()});})});}else {_0x6272xf=_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]];_0x6272x11[_0x5dd2[14]](_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]]);_0x6272x10=[{name:_0x5dd2[17],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]}];traceEvent(_0x6272x10,function(){emitEvent(_0x6272x11,_0x5dd2[28]+_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]],{timeout:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]],roomId:_0x6272x9[_0x5dd2[12]]},function(_0x6272x14){clearInterval(_0x6272x15);clearTimeout(_0x6272x16);var _0x6272x10=[{name:_0x5dd2[27],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x14,FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]}];traceEvent(_0x6272x10,function(){_0x6272xd()});})});};var _0x6272x15=setInterval(function(){var _0x6272xf=0;_0x6272xb++;if(_0x6272xb===_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x5dd2[8]]){_0x6272xb=0};if(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]){_0x6272xe+=_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]];_0x6272xf=(((_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]-_0x6272xe)>_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]])?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]]:(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]-_0x6272xe));var _0x6272x10=[];var _0x6272x11=[];switch(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[25]]){case _0x5dd2[20]:var _0x6272x13={name:_0x5dd2[17],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]};_0x6272x10[_0x5dd2[14]](_0x6272x13);_0x6272x11[_0x5dd2[14]](_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x6272xb][_0x5dd2[18]]);break ;;case _0x5dd2[22]:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x5dd2[21]](function(_0x6272x12){var _0x6272x13={name:_0x5dd2[17],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x12[_0x5dd2[18]],FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]};_0x6272x10[_0x5dd2[14]](_0x6272x13);_0x6272x11[_0x5dd2[14]](_0x6272x12[_0x5dd2[18]]);});break ;;default:console[_0x5dd2[24]](_0x5dd2[23]);;};traceEvent(_0x6272x10,function(){emitEvent(_0x6272x11,_0x5dd2[26]+_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]],{timeout:_0x6272xf,roomId:_0x6272x9[_0x5dd2[12]]},function(_0x6272x14){console[_0x5dd2[24]](_0x5dd2[29],_0x6272x14);clearInterval(_0x6272x15);clearTimeout(_0x6272x16);var _0x6272x10=[{name:_0x5dd2[27],channel:_0x5dd2[11],timeout:_0x6272xf,UserId:_0x6272x14,FaxRoomId:_0x6272x9[_0x5dd2[12]],FaxQueueId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[18]]:null,FaxAccountId:_0x6272x9[_0x5dd2[13]],FaxApplicationId:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[18]]}];traceEvent(_0x6272x10,function(){_0x6272xd()});})});};},_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]]?_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[16]]*1000:_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]*1000);var _0x6272x16=setTimeout(function(){clearInterval(_0x6272x15);invite(_0x6272x9,++_0x6272xa,0,_0x6272xc,_0x6272xd);},_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[16]]*1000);}function processing(_0x6272x18,_0x6272xd,_0x6272xc){var _0x6272xe=0;var _0x6272x19=[function(_0x6272x1a){_0x6272x1a(null,_0x6272x18[_0x5dd2[30]],_0x6272xd,_0x6272xc)},function(_0x6272x9,_0x6272xd,_0x6272xc,_0x6272x1a){for(var _0x6272xa=0;_0x6272xa<_0x6272x9[_0x5dd2[9]][_0x5dd2[8]];_0x6272xa++){switch(_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[34]]){case _0x5dd2[31]:if(!_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]]){_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]]=[]};_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x5dd2[14]](_0x6272x9[_0x5dd2[9]][_0x6272xa].User);break ;;case _0x5dd2[33]:for(var _0x6272xb=0;_0x6272xb<_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[32]][_0x5dd2[8]];_0x6272xb++){if(!_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]]){_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]]=[]};_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[19]][_0x5dd2[14]](_0x6272x9[_0x5dd2[9]][_0x6272xa][_0x5dd2[7]][_0x5dd2[32]][_0x6272xb]);};break ;;default:;}};_0x6272x1a(null,_0x6272x9,_0x6272xd,_0x6272xc);}];async[_0x5dd2[35]](_0x6272x19,function(_0x6272x1b,_0x6272x9,_0x6272xd,_0x6272xc){invite(_0x6272x9,0,0,_0x6272xc,_0x6272xd)});}function traceEvent(_0x6272x10,_0x6272x1d){Event[_0x5dd2[39]](_0x6272x10)[_0x5dd2[38]](function(){if(_0x6272x1d){_0x6272x1d()}})[_0x5dd2[37]](function(_0x6272x1b){console[_0x5dd2[36]](_0x6272x1b)})}function emitEvent(_0x6272x11,_0x6272x1f,_0x6272x20,_0x6272x1d){_0x6272x11[_0x5dd2[21]](function(_0x6272x12){console[_0x5dd2[24]](_0x6272x1f,_0x6272x12);if(sockets[_0x6272x12]){sockets[_0x6272x12][_0x5dd2[40]](_0x6272x1f,_0x6272x20,_0x6272x1d)};})}module[_0x5dd2[41]]=function(_0x6272xc,_0x6272x21){var _0x6272x22=_0x6272x21[_0x5dd2[42]]();_0x6272x22[_0x5dd2[44]](_0x5dd2[43],20,function(_0x6272x18,_0x6272xd){processing(_0x6272x18,_0x6272xd,_0x6272xc)});require(_0x5dd2[46])[_0x5dd2[45]](_0x6272x22);_0x6272xc[_0x5dd2[51]](_0x5dd2[47],function(_0x6272x23){if(_0x6272x23[_0x5dd2[49]][_0x5dd2[48]][_0x5dd2[29]]){sockets[_0x6272x23[_0x5dd2[49]][_0x5dd2[48]][_0x5dd2[29]]]=_0x6272x23};_0x6272x23[_0x5dd2[51]](_0x5dd2[50],function(){if(sockets[_0x6272x23[_0x5dd2[49]][_0x5dd2[48]][_0x5dd2[29]]]){delete sockets[_0x6272x23[_0x5dd2[49]][_0x5dd2[48]][_0x5dd2[29]]]}});});};
\ No newline at end of file
-var _0x96ad=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x6D\x61\x69\x6C","\x70\x72\x6F\x63\x65\x73\x73","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x63\x68\x61\x6E\x67\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x6E\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x61\x67\x65\x6E\x74\x69\x64","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6D\x61\x69\x6C\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x74\x75\x73","\x4E\x45\x57","\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x41\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x64\x61\x74\x61","\x69\x64","\x6D\x65\x72\x67\x65","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x63\x63","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x73\x6F\x72\x74\x42\x79","\x69\x6E\x76\x69\x74\x65","\x69","\x6A","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6C\x6F\x67","\x74\x72\x75\x65","\x63\x6F\x75\x6E\x74\x42\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72\x73","\x6F\x6E\x6C\x69\x6E\x65","\x61\x70\x70","\x63\x61\x6C\x6C\x65\x64","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x63\x6F\x75\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x73\x74\x72\x61\x74\x65\x67\x79","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B"];_0x96ad[0];var _=require(_0x96ad[1]);var moment=require(_0x96ad[2]);var MailApplication=require(_0x96ad[4])[_0x96ad[3]];var MailAccount=require(_0x96ad[4])[_0x96ad[5]];var MailQueue=require(_0x96ad[4])[_0x96ad[6]];var MailRoom=require(_0x96ad[4])[_0x96ad[7]];var Interval=require(_0x96ad[4])[_0x96ad[8]];var ReportMailSession=require(_0x96ad[4])[_0x96ad[9]];var ReportMail=require(_0x96ad[4])[_0x96ad[10]];var User=require(_0x96ad[4])[_0x96ad[11]];var timeouts={};module[_0x96ad[12]]=function(_0x6f2cxc){var _0x6f2cxd=_0x6f2cxc[_0x96ad[13]]();_0x6f2cxd[_0x96ad[15]](_0x96ad[14],20,function(_0x6f2cxe,_0x6f2cxf){onProcess(_0x6f2cxe,_0x6f2cxf)});ReportMail[_0x96ad[33]](function(_0x6f2cx10){if(_0x6f2cx10[_0x96ad[17]](_0x96ad[16])){if(timeouts[_0x6f2cx10[_0x96ad[18]]]){clearTimeout(timeouts[_0x6f2cx10[_0x96ad[18]]][_0x96ad[19]]);timeouts[_0x6f2cx10[_0x96ad[18]]][_0x96ad[20]]();delete timeouts[_0x6f2cx10[_0x96ad[18]]];};MailRoom[_0x96ad[26]](_0x6f2cx10[_0x96ad[18]])[_0x96ad[25]](function(_0x6f2cx12){_0x6f2cx12[_0x96ad[24]]({UserId:_0x6f2cx10[_0x96ad[23]]})})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)});ReportMail[_0x96ad[24]]({agentringnoanswerAt:moment()[_0x96ad[28]](_0x96ad[27]),reason:_0x96ad[29],lastevent:_0x96ad[29]},{where:{uniqueid:_0x6f2cx10[_0x96ad[18]],reason:null},individualHooks:true})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)});ReportMailSession[_0x96ad[24]]({mailleaveAt:moment()[_0x96ad[28]](_0x96ad[27]),fullname:_0x6f2cx10[_0x96ad[30]],membername:_0x6f2cx10[_0x96ad[31]],mailqueuename:_0x6f2cx10[_0x96ad[32]]},{where:{uniqueid:_0x6f2cx10[_0x96ad[18]]},individualHooks:true})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)});}});MailRoom[_0x96ad[34]](function(_0x6f2cx10){onSave(_0x6f2cxd,_0x6f2cx10)});MailRoom[_0x96ad[35]](function(_0x6f2cx10){onSave(_0x6f2cxd,_0x6f2cx10)});};function onSave(_0x6f2cxc,_0x6f2cx10,_0x6f2cx14){if(_0x6f2cx10[_0x96ad[36]]===_0x96ad[37]){_0x6f2cxc[_0x96ad[40]](_0x96ad[14],_0x6f2cx10[_0x96ad[39]])[_0x96ad[38]]()}}function onProcess(_0x6f2cxe,_0x6f2cxf){MailAccount[_0x96ad[26]](_0x6f2cxe[_0x96ad[46]].MailAccountId,{include:[{model:MailApplication,include:[{model:MailQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x96ad[25]](function(_0x6f2cx16){if(!_0x6f2cx16){_0x6f2cxf( new Error(_0x96ad[41]));return ;};if(!_0x6f2cx16[_0x96ad[43]][_0x96ad[42]]){_0x6f2cxf( new Error(_0x96ad[44]));return ;};_0x6f2cxe[_0x96ad[46]][_0x96ad[45]]=_0x6f2cxe[_0x96ad[46]][_0x96ad[47]];var _0x6f2cx17=_[_0x96ad[48]](_0x6f2cxe[_0x96ad[46]],_0x6f2cx16[_0x96ad[39]]);onReportSession({uniqueid:_0x6f2cx17[_0x96ad[45]],subject:_0x6f2cx17[_0x96ad[49]],from:_0x6f2cx17[_0x96ad[50]],cc:_0x6f2cx17[_0x96ad[51]],attachment:_0x6f2cx17[_0x96ad[52]],accountname:_0x6f2cx17[_0x96ad[53]],accountaddress:_0x6f2cx17[_0x96ad[54]],mailjoinAt:moment()[_0x96ad[28]](_0x96ad[27])});_0x6f2cx17[_0x96ad[43]]=_[_0x96ad[56]](_0x6f2cx17.MailApplications,_0x96ad[55]);onInvite(_0x6f2cx17,0,0,0,0,_0x6f2cxf);})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)})}function onInvite(_0x6f2cx19,_0x6f2cx1a,_0x6f2cx1b,_0x6f2cx1c,_0x6f2cx1d,_0x6f2cxf){console[_0x96ad[61]](_0x96ad[57],_0x96ad[58],_0x6f2cx1a,_0x96ad[59],_0x6f2cx1b,_0x96ad[60],_0x6f2cx1c);var _0x6f2cx1e=0;var _0x6f2cx1f;if(_0x6f2cx1a===_0x6f2cx19[_0x96ad[43]][_0x96ad[42]]){console[_0x96ad[21]](_0x96ad[44]);onReportSession({uniqueid:_0x6f2cx19[_0x96ad[45]],mailunmanagedAt:moment()[_0x96ad[28]](_0x96ad[27]),mailleaveAt:moment()[_0x96ad[28]](_0x96ad[27])});_0x6f2cxf( new Error(_0x96ad[44]));return ;};if(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]]){var _0x6f2cx20=_[_0x96ad[63]](_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]].Users,{online:true})[_0x96ad[62]];if(_0x6f2cx20&&onInterval(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[64]])){if(_0x6f2cx1b===_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x96ad[42]]){if(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]]>_0x6f2cx1c){onInvite(_0x6f2cx19,_0x6f2cx1a,0,_0x6f2cx1c,_0x6f2cx1d,_0x6f2cxf);return ;}else {onInvite(_0x6f2cx19,++_0x6f2cx1a,0,0,_0x6f2cx1d,_0x6f2cxf);return ;}};switch(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[77]]){case _0x96ad[71]:if(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x6f2cx1b][_0x96ad[66]]&&onInterval(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[64]])){_0x6f2cx1e=(((_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]]-_0x6f2cx1c)>_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[19]])?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[19]]:(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]]-_0x6f2cx1c));onReport({uniqueid:_0x6f2cx19[_0x96ad[45]],sorting:_0x6f2cx1d,subject:_0x6f2cx19[_0x96ad[49]],timeslot:_0x6f2cx1e,from:_0x6f2cx19[_0x96ad[50]],attachment:_0x6f2cx19[_0x96ad[52]],accountname:_0x6f2cx19[_0x96ad[53]],accountaddress:_0x6f2cx19[_0x96ad[54]],application:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[67]],fullname:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x6f2cx1b][_0x96ad[30]],membername:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x6f2cx1b][_0x96ad[53]],agentid:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x6f2cx1b][_0x96ad[47]],mailqueuename:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[53]],lastevent:_0x96ad[68],holdtime:_0x6f2cx1c,agentcalledAt:moment()[_0x96ad[28]](_0x96ad[27])});console[_0x96ad[61]](_0x96ad[69],_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[53]],_0x96ad[70],_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x6f2cx1b][_0x96ad[53]],_0x96ad[19],_0x6f2cx1e,_0x96ad[60],_0x6f2cx1c);_0x6f2cx1f=setTimeout(function(){onReportUpdate({uniqueid:_0x6f2cx19[_0x96ad[45]],count:_0x6f2cx1d,reason:_0x96ad[19],lastevent:_0x96ad[19],agentringnoanswerAt:moment()[_0x96ad[28]](_0x96ad[27])});_0x6f2cx1c+=_0x6f2cx1e;onInvite(_0x6f2cx19,_0x6f2cx1a,++_0x6f2cx1b,_0x6f2cx1c,++_0x6f2cx1d,_0x6f2cxf);return ;},_0x6f2cx1e*1000);if(!timeouts[_0x6f2cx19[_0x96ad[45]]]){timeouts[_0x6f2cx19[_0x96ad[45]]]={}};timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[19]]=_0x6f2cx1f;timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[20]]=_0x6f2cxf;}else {onInvite(_0x6f2cx19,_0x6f2cx1a,++_0x6f2cx1b,_0x6f2cx1c,_0x6f2cx1d,_0x6f2cxf);return ;};break ;;case _0x96ad[75]:_0x6f2cx1e=(((_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]]-_0x6f2cx1c)>_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[19]])?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[19]]:(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]]-_0x6f2cx1c));var _0x6f2cx21=[];_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x96ad[73]](function(_0x6f2cx22){if(_0x6f2cx22[_0x96ad[66]]){_0x6f2cx21[_0x96ad[72]]({uniqueid:_0x6f2cx19[_0x96ad[45]],sorting:_0x6f2cx1d,subject:_0x6f2cx19[_0x96ad[49]],timeslot:_0x6f2cx1e,from:_0x6f2cx19[_0x96ad[50]],attachment:_0x6f2cx19[_0x96ad[52]],accountname:_0x6f2cx19[_0x96ad[53]],accountaddress:_0x6f2cx19[_0x96ad[54]],application:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[67]],fullname:_0x6f2cx22[_0x96ad[30]],membername:_0x6f2cx22[_0x96ad[53]],agentid:_0x6f2cx22[_0x96ad[47]],mailqueuename:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[53]],lastevent:_0x96ad[68],holdtime:_0x6f2cx1c,agentcalledAt:moment()[_0x96ad[28]](_0x96ad[27])})}});if(_0x6f2cx21[_0x96ad[42]]&&onInterval(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[64]])){onReport(_0x6f2cx21,true);_0x6f2cx1f=setTimeout(function(){console[_0x96ad[61]](_0x96ad[74],_0x6f2cx1d);onReportUpdate({uniqueid:_0x6f2cx19[_0x96ad[45]],count:_0x6f2cx1d,reason:_0x96ad[19],lastevent:_0x96ad[19],agentringnoanswerAt:moment()[_0x96ad[28]](_0x96ad[27])});_0x6f2cx1c+=_0x6f2cx1e;_0x6f2cx1b+=_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[65]][_0x96ad[42]];onInvite(_0x6f2cx19,_0x6f2cx1a,_0x6f2cx1b,_0x6f2cx1c,++_0x6f2cx1d,_0x6f2cxf);return ;},_0x6f2cx1e*1000);if(!timeouts[_0x6f2cx19[_0x96ad[45]]]){timeouts[_0x6f2cx19[_0x96ad[45]]]={}};timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[19]]=_0x6f2cx1f;timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[20]]=_0x6f2cxf;}else {console[_0x96ad[61]](_0x96ad[69],_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[6]][_0x96ad[53]],_0x96ad[19],_0x6f2cx1e,_0x96ad[60],_0x6f2cx1c);onInvite(_0x6f2cx19,++_0x6f2cx1a,0,0,_0x6f2cx1d,_0x6f2cxf);return ;};break ;;default:console[_0x96ad[21]](_0x96ad[76]);;};}else {onInvite(_0x6f2cx19,++_0x6f2cx1a,0,0,_0x6f2cx1d,_0x6f2cxf);return ;};}else {_0x6f2cx1e=_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[19]];if(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[11]][_0x96ad[66]]&&onInterval(_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]?_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[8]]:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[64]])){onReport({uniqueid:_0x6f2cx19[_0x96ad[45]],sorting:_0x6f2cx1d,subject:_0x6f2cx19[_0x96ad[49]],timeslot:_0x6f2cx1e,from:_0x6f2cx19[_0x96ad[50]],attachment:_0x6f2cx19[_0x96ad[52]],accountname:_0x6f2cx19[_0x96ad[53]],accountaddress:_0x6f2cx19[_0x96ad[54]],application:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[67]],fullname:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[11]][_0x96ad[30]],membername:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[11]][_0x96ad[53]],agentid:_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[11]][_0x96ad[47]],lastevent:_0x96ad[68],holdtime:_0x6f2cx1c,agentcalledAt:moment()[_0x96ad[28]](_0x96ad[27])});console[_0x96ad[61]](_0x96ad[70],_0x6f2cx19[_0x96ad[43]][_0x6f2cx1a][_0x96ad[11]][_0x96ad[53]],_0x96ad[19],_0x6f2cx1e,_0x96ad[60],_0x6f2cx1c);_0x6f2cx1f=setTimeout(function(){onReportUpdate({uniqueid:_0x6f2cx19[_0x96ad[45]],count:_0x6f2cx1d,reason:_0x96ad[19],lastevent:_0x96ad[19],agentringnoanswerAt:moment()[_0x96ad[28]](_0x96ad[27])});onInvite(_0x6f2cx19,++_0x6f2cx1a,0,0,_0x6f2cx1d,_0x6f2cxf);return ;},_0x6f2cx1e*1000);if(!timeouts[_0x6f2cx19[_0x96ad[45]]]){timeouts[_0x6f2cx19[_0x96ad[45]]]={}};timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[19]]=_0x6f2cx1f;timeouts[_0x6f2cx19[_0x96ad[45]]][_0x96ad[20]]=_0x6f2cxf;}else {onInvite(_0x6f2cx19,++_0x6f2cx1a,0,0,++_0x6f2cx1d,_0x6f2cxf);return ;};};}function onReport(_0x6f2cx24,_0x6f2cx25){if(_0x6f2cx25){ReportMail[_0x96ad[78]](_0x6f2cx24,{individualHooks:true})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)})}else {ReportMail[_0x96ad[40]](_0x6f2cx24)[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)})}}function onReportSession(_0x6f2cx24){ReportMailSession[_0x96ad[80]]({where:{uniqueid:_0x6f2cx24[_0x96ad[18]]},defaults:_0x6f2cx24})[_0x96ad[79]](function(_0x6f2cx27,_0x6f2cx28){if(!_0x6f2cx28){_0x6f2cx27[_0x96ad[24]](_0x6f2cx24,{individualHooks:true})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)})}})}function onReportUpdate(_0x6f2cx24){ReportMail[_0x96ad[24]](_0x6f2cx24,{where:{uniqueid:_0x6f2cx24[_0x96ad[18]],sorting:_0x6f2cx24[_0x96ad[74]]},individualHooks:true})[_0x96ad[22]](function(_0x6f2cx11){console[_0x96ad[21]](_0x6f2cx11)})}function onInterval(_0x6f2cx2b){if(_[_0x96ad[81]](_0x6f2cx2b)){for(var _0x6f2cx1a=0;_0x6f2cx1a<_0x6f2cx2b[_0x96ad[82]][_0x96ad[42]];_0x6f2cx1a++){if(!onCheckInterval(_0x6f2cx2b[_0x96ad[82]][_0x6f2cx1a][_0x96ad[64]])){return false}};return true;}else {return onCheckInterval(_0x6f2cx2b)}}function onCheckInterval(_0x6f2cx2b){var _0x6f2cx2d=[_0x96ad[83],_0x96ad[84],_0x96ad[85],_0x96ad[86],_0x96ad[87],_0x96ad[88],_0x96ad[89]];var _0x6f2cx2e=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0x6f2cx2f=[_0x96ad[90],_0x96ad[91],_0x96ad[92],_0x96ad[93],_0x96ad[94],_0x96ad[95],_0x96ad[96],_0x96ad[97],_0x96ad[98],_0x96ad[99],_0x96ad[100],_0x96ad[101]];var _0x6f2cx1a,_0x6f2cx30;var _0x6f2cx31=_0x6f2cx2b[_0x96ad[103]](_0x96ad[102])[0];var _0x6f2cx32=_0x6f2cx2b[_0x96ad[103]](_0x96ad[102])[1];var _0x6f2cx33=_0x6f2cx2b[_0x96ad[103]](_0x96ad[102])[2];var _0x6f2cx34=_0x6f2cx2b[_0x96ad[103]](_0x96ad[102])[3];if(_0x6f2cx31!==_0x96ad[104]){var _0x6f2cx35=moment()[_0x96ad[28]](_0x96ad[105]);var _0x6f2cx36=_0x6f2cx31[_0x96ad[103]](_0x96ad[106])[0];var _0x6f2cx37=_0x6f2cx31[_0x96ad[103]](_0x96ad[106])[1];if((_0x6f2cx35<_0x6f2cx36)||(_0x6f2cx35>_0x6f2cx37)){console[_0x96ad[61]](_0x96ad[107]);return false;};};if(_0x6f2cx32!==_0x96ad[104]){var _0x6f2cx38=_0x6f2cx2d[moment()[_0x96ad[108]]()];var _0x6f2cx39=_[_0x96ad[109]](_0x6f2cx2d,_0x6f2cx32[_0x96ad[103]](_0x96ad[106])[0]);var _0x6f2cx3a=_[_0x96ad[109]](_0x6f2cx2d,_0x6f2cx32[_0x96ad[103]](_0x96ad[106])[1]);for(_0x6f2cx1a=0;_0x6f2cx1a<_0x6f2cx39;_0x6f2cx1a++){_0x6f2cx30=_0x6f2cx2d[_0x96ad[110]]();_0x6f2cx2d[_0x96ad[72]](_0x6f2cx30);};_0x6f2cx39=_[_0x96ad[109]](_0x6f2cx2d,_0x6f2cx32[_0x96ad[103]](_0x96ad[106])[0]);_0x6f2cx3a=_[_0x96ad[109]](_0x6f2cx2d,_0x6f2cx32[_0x96ad[103]](_0x96ad[106])[1])+1;_0x6f2cx2d=_0x6f2cx2d[_0x96ad[111]](_0x6f2cx39,_0x6f2cx3a);if(!_[_0x96ad[112]](_0x6f2cx2d,_0x6f2cx38)){console[_0x96ad[61]](_0x96ad[113]);return false;};};if(_0x6f2cx33!==_0x96ad[104]){var _0x6f2cx3b=moment()[_0x96ad[114]]();var _0x6f2cx3c=_[_0x96ad[109]](_0x6f2cx2e,parseInt(_0x6f2cx33[_0x96ad[103]](_0x96ad[106])[0],10));var _0x6f2cx3d=_[_0x96ad[109]](_0x6f2cx2e,parseInt(_0x6f2cx33[_0x96ad[103]](_0x96ad[106])[1]));for(_0x6f2cx1a=0;_0x6f2cx1a<_0x6f2cx3c;_0x6f2cx1a++){_0x6f2cx30=_0x6f2cx2e[_0x96ad[110]]();_0x6f2cx2e[_0x96ad[72]](_0x6f2cx30);};_0x6f2cx3c=_[_0x96ad[109]](_0x6f2cx2e,parseInt(_0x6f2cx33[_0x96ad[103]](_0x96ad[106])[0],10));_0x6f2cx3d=_[_0x96ad[109]](_0x6f2cx2e,parseInt(_0x6f2cx33[_0x96ad[103]](_0x96ad[106])[1]),10)+1;_0x6f2cx2e=_0x6f2cx2e[_0x96ad[111]](_0x6f2cx3c,_0x6f2cx3d);if(!_[_0x96ad[112]](_0x6f2cx2e,_0x6f2cx3b)){console[_0x96ad[61]](_0x96ad[115]);return false;};};if(_0x6f2cx34!==_0x96ad[104]){var _0x6f2cx3e=_0x6f2cx2f[moment()[_0x96ad[116]]()];var _0x6f2cx3f=_[_0x96ad[109]](_0x6f2cx2f,_0x6f2cx34[_0x96ad[103]](_0x96ad[106])[0]);var _0x6f2cx40=_[_0x96ad[109]](_0x6f2cx2f,_0x6f2cx34[_0x96ad[103]](_0x96ad[106])[1]);for(_0x6f2cx1a=0;_0x6f2cx1a<_0x6f2cx3f;_0x6f2cx1a++){_0x6f2cx30=_0x6f2cx2f[_0x96ad[110]]();_0x6f2cx2f[_0x96ad[72]](_0x6f2cx30);};_0x6f2cx3f=_[_0x96ad[109]](_0x6f2cx2f,_0x6f2cx34[_0x96ad[103]](_0x96ad[106])[0]);_0x6f2cx40=_[_0x96ad[109]](_0x6f2cx2f,_0x6f2cx34[_0x96ad[103]](_0x96ad[106])[1])+1;_0x6f2cx2f=_0x6f2cx2f[_0x96ad[111]](_0x6f2cx3f,_0x6f2cx40);if(!_[_0x96ad[112]](_0x6f2cx2f,_0x6f2cx3e)){console[_0x96ad[61]](_0x96ad[117]);return false;};};console[_0x96ad[61]](_0x96ad[118]);return true;}
\ No newline at end of file
+var _0xb516=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x6D\x61\x69\x6C","\x70\x72\x6F\x63\x65\x73\x73","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x63\x68\x61\x6E\x67\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x6E\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x61\x67\x65\x6E\x74\x69\x64","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6D\x61\x69\x6C\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x74\x75\x73","\x4E\x45\x57","\x73\x61\x76\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x41\x76\x61\x69\x6C\x61\x62\x6C\x65\x20\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x44\x69\x61\x6C\x50\x6C\x61\x6E\x20\x65\x6E\x64\x65\x64\x2E\x2E","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x64\x61\x74\x61","\x69\x64","\x6D\x65\x72\x67\x65","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x63\x63","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x6E\x61\x6D\x65","\x61\x64\x64\x72\x65\x73\x73","\x70\x72\x69\x6F\x72\x69\x74\x79","\x73\x6F\x72\x74\x42\x79","\x69\x6E\x76\x69\x74\x65","\x69","\x6A","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6C\x6F\x67","\x74\x72\x75\x65","\x63\x6F\x75\x6E\x74\x42\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72\x73","\x6F\x6E\x6C\x69\x6E\x65","\x61\x70\x70","\x63\x61\x6C\x6C\x65\x64","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x63\x6F\x75\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x73\x74\x72\x61\x74\x65\x67\x79","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B"];_0xb516[0];var _=require(_0xb516[1]);var moment=require(_0xb516[2]);var MailApplication=require(_0xb516[4])[_0xb516[3]];var MailAccount=require(_0xb516[4])[_0xb516[5]];var MailQueue=require(_0xb516[4])[_0xb516[6]];var MailRoom=require(_0xb516[4])[_0xb516[7]];var Interval=require(_0xb516[4])[_0xb516[8]];var ReportMailSession=require(_0xb516[4])[_0xb516[9]];var ReportMail=require(_0xb516[4])[_0xb516[10]];var User=require(_0xb516[4])[_0xb516[11]];var timeouts={};module[_0xb516[12]]=function(_0xbb93xc){var _0xbb93xd=_0xbb93xc[_0xb516[13]]();_0xbb93xd[_0xb516[15]](_0xb516[14],20,function(_0xbb93xe,_0xbb93xf){onProcess(_0xbb93xe,_0xbb93xf)});ReportMail[_0xb516[33]](function(_0xbb93x10){if(_0xbb93x10[_0xb516[17]](_0xb516[16])){if(timeouts[_0xbb93x10[_0xb516[18]]]){clearTimeout(timeouts[_0xbb93x10[_0xb516[18]]][_0xb516[19]]);timeouts[_0xbb93x10[_0xb516[18]]][_0xb516[20]]();delete timeouts[_0xbb93x10[_0xb516[18]]];};MailRoom[_0xb516[26]](_0xbb93x10[_0xb516[18]])[_0xb516[25]](function(_0xbb93x12){_0xbb93x12[_0xb516[24]]({UserId:_0xbb93x10[_0xb516[23]]})})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)});ReportMail[_0xb516[24]]({agentringnoanswerAt:moment()[_0xb516[28]](_0xb516[27]),reason:_0xb516[29],lastevent:_0xb516[29]},{where:{uniqueid:_0xbb93x10[_0xb516[18]],reason:null},individualHooks:true})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)});ReportMailSession[_0xb516[24]]({mailleaveAt:moment()[_0xb516[28]](_0xb516[27]),fullname:_0xbb93x10[_0xb516[30]],membername:_0xbb93x10[_0xb516[31]],mailqueuename:_0xbb93x10[_0xb516[32]]},{where:{uniqueid:_0xbb93x10[_0xb516[18]]},individualHooks:true})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)});}});MailRoom[_0xb516[34]](function(_0xbb93x10){onSave(_0xbb93xd,_0xbb93x10)});MailRoom[_0xb516[35]](function(_0xbb93x10){onSave(_0xbb93xd,_0xbb93x10)});};function onSave(_0xbb93xc,_0xbb93x10,_0xbb93x14){if(_0xbb93x10[_0xb516[36]]===_0xb516[37]){_0xbb93xc[_0xb516[40]](_0xb516[14],_0xbb93x10[_0xb516[39]])[_0xb516[38]]()}}function onProcess(_0xbb93xe,_0xbb93xf){MailAccount[_0xb516[26]](_0xbb93xe[_0xb516[46]].MailAccountId,{include:[{model:MailApplication,include:[{model:MailQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0xb516[25]](function(_0xbb93x16){if(!_0xbb93x16){_0xbb93xf( new Error(_0xb516[41]));return ;};if(!_0xbb93x16[_0xb516[43]][_0xb516[42]]){_0xbb93xf( new Error(_0xb516[44]));return ;};_0xbb93xe[_0xb516[46]][_0xb516[45]]=_0xbb93xe[_0xb516[46]][_0xb516[47]];var _0xbb93x17=_[_0xb516[48]](_0xbb93xe[_0xb516[46]],_0xbb93x16[_0xb516[39]]);onReportSession({uniqueid:_0xbb93x17[_0xb516[45]],subject:_0xbb93x17[_0xb516[49]],from:_0xbb93x17[_0xb516[50]],cc:_0xbb93x17[_0xb516[51]],attachment:_0xbb93x17[_0xb516[52]],accountname:_0xbb93x17[_0xb516[53]],accountaddress:_0xbb93x17[_0xb516[54]],mailjoinAt:moment()[_0xb516[28]](_0xb516[27])});_0xbb93x17[_0xb516[43]]=_[_0xb516[56]](_0xbb93x17.MailApplications,_0xb516[55]);onInvite(_0xbb93x17,0,0,0,0,_0xbb93xf);})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)})}function onInvite(_0xbb93x19,_0xbb93x1a,_0xbb93x1b,_0xbb93x1c,_0xbb93x1d,_0xbb93xf){console[_0xb516[61]](_0xb516[57],_0xb516[58],_0xbb93x1a,_0xb516[59],_0xbb93x1b,_0xb516[60],_0xbb93x1c);var _0xbb93x1e=0;var _0xbb93x1f;if(_0xbb93x1a===_0xbb93x19[_0xb516[43]][_0xb516[42]]){console[_0xb516[21]](_0xb516[44]);onReportSession({uniqueid:_0xbb93x19[_0xb516[45]],mailunmanagedAt:moment()[_0xb516[28]](_0xb516[27]),mailleaveAt:moment()[_0xb516[28]](_0xb516[27])});_0xbb93xf( new Error(_0xb516[44]));return ;};if(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]]){var _0xbb93x20=_[_0xb516[63]](_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]].Users,{online:true})[_0xb516[62]];if(_0xbb93x20&&onInterval(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[64]])){if(_0xbb93x1b===_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xb516[42]]){if(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]]>_0xbb93x1c){onInvite(_0xbb93x19,_0xbb93x1a,0,_0xbb93x1c,_0xbb93x1d,_0xbb93xf);return ;}else {onInvite(_0xbb93x19,++_0xbb93x1a,0,0,_0xbb93x1d,_0xbb93xf);return ;}};switch(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[77]]){case _0xb516[71]:if(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xbb93x1b][_0xb516[66]]&&onInterval(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[64]])){_0xbb93x1e=(((_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]]-_0xbb93x1c)>_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[19]])?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[19]]:(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]]-_0xbb93x1c));onReport({uniqueid:_0xbb93x19[_0xb516[45]],sorting:_0xbb93x1d,subject:_0xbb93x19[_0xb516[49]],timeslot:_0xbb93x1e,from:_0xbb93x19[_0xb516[50]],attachment:_0xbb93x19[_0xb516[52]],accountname:_0xbb93x19[_0xb516[53]],accountaddress:_0xbb93x19[_0xb516[54]],application:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[67]],fullname:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xbb93x1b][_0xb516[30]],membername:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xbb93x1b][_0xb516[53]],agentid:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xbb93x1b][_0xb516[47]],mailqueuename:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[53]],lastevent:_0xb516[68],holdtime:_0xbb93x1c,agentcalledAt:moment()[_0xb516[28]](_0xb516[27])});console[_0xb516[61]](_0xb516[69],_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[53]],_0xb516[70],_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xbb93x1b][_0xb516[53]],_0xb516[19],_0xbb93x1e,_0xb516[60],_0xbb93x1c);_0xbb93x1f=setTimeout(function(){onReportUpdate({uniqueid:_0xbb93x19[_0xb516[45]],count:_0xbb93x1d,reason:_0xb516[19],lastevent:_0xb516[19],agentringnoanswerAt:moment()[_0xb516[28]](_0xb516[27])});_0xbb93x1c+=_0xbb93x1e;onInvite(_0xbb93x19,_0xbb93x1a,++_0xbb93x1b,_0xbb93x1c,++_0xbb93x1d,_0xbb93xf);return ;},_0xbb93x1e*1000);if(!timeouts[_0xbb93x19[_0xb516[45]]]){timeouts[_0xbb93x19[_0xb516[45]]]={}};timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[19]]=_0xbb93x1f;timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[20]]=_0xbb93xf;}else {onInvite(_0xbb93x19,_0xbb93x1a,++_0xbb93x1b,_0xbb93x1c,_0xbb93x1d,_0xbb93xf);return ;};break ;;case _0xb516[75]:_0xbb93x1e=(((_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]]-_0xbb93x1c)>_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[19]])?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[19]]:(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]]-_0xbb93x1c));var _0xbb93x21=[];_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xb516[73]](function(_0xbb93x22){if(_0xbb93x22[_0xb516[66]]){_0xbb93x21[_0xb516[72]]({uniqueid:_0xbb93x19[_0xb516[45]],sorting:_0xbb93x1d,subject:_0xbb93x19[_0xb516[49]],timeslot:_0xbb93x1e,from:_0xbb93x19[_0xb516[50]],attachment:_0xbb93x19[_0xb516[52]],accountname:_0xbb93x19[_0xb516[53]],accountaddress:_0xbb93x19[_0xb516[54]],application:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[67]],fullname:_0xbb93x22[_0xb516[30]],membername:_0xbb93x22[_0xb516[53]],agentid:_0xbb93x22[_0xb516[47]],mailqueuename:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[53]],lastevent:_0xb516[68],holdtime:_0xbb93x1c,agentcalledAt:moment()[_0xb516[28]](_0xb516[27])})}});if(_0xbb93x21[_0xb516[42]]&&onInterval(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[64]])){onReport(_0xbb93x21,true);_0xbb93x1f=setTimeout(function(){console[_0xb516[61]](_0xb516[74],_0xbb93x1d);onReportUpdate({uniqueid:_0xbb93x19[_0xb516[45]],count:_0xbb93x1d,reason:_0xb516[19],lastevent:_0xb516[19],agentringnoanswerAt:moment()[_0xb516[28]](_0xb516[27])});_0xbb93x1c+=_0xbb93x1e;_0xbb93x1b+=_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[65]][_0xb516[42]];onInvite(_0xbb93x19,_0xbb93x1a,_0xbb93x1b,_0xbb93x1c,++_0xbb93x1d,_0xbb93xf);return ;},_0xbb93x1e*1000);if(!timeouts[_0xbb93x19[_0xb516[45]]]){timeouts[_0xbb93x19[_0xb516[45]]]={}};timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[19]]=_0xbb93x1f;timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[20]]=_0xbb93xf;}else {console[_0xb516[61]](_0xb516[69],_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[6]][_0xb516[53]],_0xb516[19],_0xbb93x1e,_0xb516[60],_0xbb93x1c);onInvite(_0xbb93x19,++_0xbb93x1a,0,0,_0xbb93x1d,_0xbb93xf);return ;};break ;;default:console[_0xb516[21]](_0xb516[76]);;};}else {onInvite(_0xbb93x19,++_0xbb93x1a,0,0,_0xbb93x1d,_0xbb93xf);return ;};}else {_0xbb93x1e=_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[19]];if(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[11]][_0xb516[66]]&&onInterval(_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]?_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[8]]:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[64]])){onReport({uniqueid:_0xbb93x19[_0xb516[45]],sorting:_0xbb93x1d,subject:_0xbb93x19[_0xb516[49]],timeslot:_0xbb93x1e,from:_0xbb93x19[_0xb516[50]],attachment:_0xbb93x19[_0xb516[52]],accountname:_0xbb93x19[_0xb516[53]],accountaddress:_0xbb93x19[_0xb516[54]],application:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[67]],fullname:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[11]][_0xb516[30]],membername:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[11]][_0xb516[53]],agentid:_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[11]][_0xb516[47]],lastevent:_0xb516[68],holdtime:_0xbb93x1c,agentcalledAt:moment()[_0xb516[28]](_0xb516[27])});console[_0xb516[61]](_0xb516[70],_0xbb93x19[_0xb516[43]][_0xbb93x1a][_0xb516[11]][_0xb516[53]],_0xb516[19],_0xbb93x1e,_0xb516[60],_0xbb93x1c);_0xbb93x1f=setTimeout(function(){onReportUpdate({uniqueid:_0xbb93x19[_0xb516[45]],count:_0xbb93x1d,reason:_0xb516[19],lastevent:_0xb516[19],agentringnoanswerAt:moment()[_0xb516[28]](_0xb516[27])});onInvite(_0xbb93x19,++_0xbb93x1a,0,0,_0xbb93x1d,_0xbb93xf);return ;},_0xbb93x1e*1000);if(!timeouts[_0xbb93x19[_0xb516[45]]]){timeouts[_0xbb93x19[_0xb516[45]]]={}};timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[19]]=_0xbb93x1f;timeouts[_0xbb93x19[_0xb516[45]]][_0xb516[20]]=_0xbb93xf;}else {onInvite(_0xbb93x19,++_0xbb93x1a,0,0,++_0xbb93x1d,_0xbb93xf);return;};};}function onReport(_0xbb93x24,_0xbb93x25){if(_0xbb93x25){ReportMail[_0xb516[78]](_0xbb93x24,{individualHooks:true})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)})}else {ReportMail[_0xb516[40]](_0xbb93x24)[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)})}}function onReportSession(_0xbb93x24){ReportMailSession[_0xb516[80]]({where:{uniqueid:_0xbb93x24[_0xb516[18]]},defaults:_0xbb93x24})[_0xb516[79]](function(_0xbb93x27,_0xbb93x28){if(!_0xbb93x28){_0xbb93x27[_0xb516[24]](_0xbb93x24,{individualHooks:true})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)})}})}function onReportUpdate(_0xbb93x24){ReportMail[_0xb516[24]](_0xbb93x24,{where:{uniqueid:_0xbb93x24[_0xb516[18]],sorting:_0xbb93x24[_0xb516[74]]},individualHooks:true})[_0xb516[22]](function(_0xbb93x11){console[_0xb516[21]](_0xbb93x11)})}function onInterval(_0xbb93x2b){if(_[_0xb516[81]](_0xbb93x2b)){for(var _0xbb93x1a=0;_0xbb93x1a<_0xbb93x2b[_0xb516[82]][_0xb516[42]];_0xbb93x1a++){if(!onCheckInterval(_0xbb93x2b[_0xb516[82]][_0xbb93x1a][_0xb516[64]])){return false}};return true;}else {return onCheckInterval(_0xbb93x2b)}}function onCheckInterval(_0xbb93x2b){var _0xbb93x2d=[_0xb516[83],_0xb516[84],_0xb516[85],_0xb516[86],_0xb516[87],_0xb516[88],_0xb516[89]];var _0xbb93x2e=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0xbb93x2f=[_0xb516[90],_0xb516[91],_0xb516[92],_0xb516[93],_0xb516[94],_0xb516[95],_0xb516[96],_0xb516[97],_0xb516[98],_0xb516[99],_0xb516[100],_0xb516[101]];var _0xbb93x1a,_0xbb93x30;var _0xbb93x31=_0xbb93x2b[_0xb516[103]](_0xb516[102])[0];var _0xbb93x32=_0xbb93x2b[_0xb516[103]](_0xb516[102])[1];var _0xbb93x33=_0xbb93x2b[_0xb516[103]](_0xb516[102])[2];var _0xbb93x34=_0xbb93x2b[_0xb516[103]](_0xb516[102])[3];if(_0xbb93x31!==_0xb516[104]){var _0xbb93x35=moment()[_0xb516[28]](_0xb516[105]);var _0xbb93x36=_0xbb93x31[_0xb516[103]](_0xb516[106])[0];var _0xbb93x37=_0xbb93x31[_0xb516[103]](_0xb516[106])[1];if((_0xbb93x35<_0xbb93x36)||(_0xbb93x35>_0xbb93x37)){console[_0xb516[61]](_0xb516[107]);return false;};};if(_0xbb93x32!==_0xb516[104]){var _0xbb93x38=_0xbb93x2d[moment()[_0xb516[108]]()];var _0xbb93x39=_[_0xb516[109]](_0xbb93x2d,_0xbb93x32[_0xb516[103]](_0xb516[106])[0]);var _0xbb93x3a=_[_0xb516[109]](_0xbb93x2d,_0xbb93x32[_0xb516[103]](_0xb516[106])[1]);for(_0xbb93x1a=0;_0xbb93x1a<_0xbb93x39;_0xbb93x1a++){_0xbb93x30=_0xbb93x2d[_0xb516[110]]();_0xbb93x2d[_0xb516[72]](_0xbb93x30);};_0xbb93x39=_[_0xb516[109]](_0xbb93x2d,_0xbb93x32[_0xb516[103]](_0xb516[106])[0]);_0xbb93x3a=_[_0xb516[109]](_0xbb93x2d,_0xbb93x32[_0xb516[103]](_0xb516[106])[1])+1;_0xbb93x2d=_0xbb93x2d[_0xb516[111]](_0xbb93x39,_0xbb93x3a);if(!_[_0xb516[112]](_0xbb93x2d,_0xbb93x38)){console[_0xb516[61]](_0xb516[113]);return false;};};if(_0xbb93x33!==_0xb516[104]){var _0xbb93x3b=moment()[_0xb516[114]]();var _0xbb93x3c=_[_0xb516[109]](_0xbb93x2e,parseInt(_0xbb93x33[_0xb516[103]](_0xb516[106])[0],10));var _0xbb93x3d=_[_0xb516[109]](_0xbb93x2e,parseInt(_0xbb93x33[_0xb516[103]](_0xb516[106])[1]));for(_0xbb93x1a=0;_0xbb93x1a<_0xbb93x3c;_0xbb93x1a++){_0xbb93x30=_0xbb93x2e[_0xb516[110]]();_0xbb93x2e[_0xb516[72]](_0xbb93x30);};_0xbb93x3c=_[_0xb516[109]](_0xbb93x2e,parseInt(_0xbb93x33[_0xb516[103]](_0xb516[106])[0],10));_0xbb93x3d=_[_0xb516[109]](_0xbb93x2e,parseInt(_0xbb93x33[_0xb516[103]](_0xb516[106])[1]),10)+1;_0xbb93x2e=_0xbb93x2e[_0xb516[111]](_0xbb93x3c,_0xbb93x3d);if(!_[_0xb516[112]](_0xbb93x2e,_0xbb93x3b)){console[_0xb516[61]](_0xb516[115]);return false;};};if(_0xbb93x34!==_0xb516[104]){var _0xbb93x3e=_0xbb93x2f[moment()[_0xb516[116]]()];var _0xbb93x3f=_[_0xb516[109]](_0xbb93x2f,_0xbb93x34[_0xb516[103]](_0xb516[106])[0]);var _0xbb93x40=_[_0xb516[109]](_0xbb93x2f,_0xbb93x34[_0xb516[103]](_0xb516[106])[1]);for(_0xbb93x1a=0;_0xbb93x1a<_0xbb93x3f;_0xbb93x1a++){_0xbb93x30=_0xbb93x2f[_0xb516[110]]();_0xbb93x2f[_0xb516[72]](_0xbb93x30);};_0xbb93x3f=_[_0xb516[109]](_0xbb93x2f,_0xbb93x34[_0xb516[103]](_0xb516[106])[0]);_0xbb93x40=_[_0xb516[109]](_0xbb93x2f,_0xbb93x34[_0xb516[103]](_0xb516[106])[1])+1;_0xbb93x2f=_0xbb93x2f[_0xb516[111]](_0xbb93x3f,_0xbb93x40);if(!_[_0xb516[112]](_0xbb93x2f,_0xbb93x3e)){console[_0xb516[61]](_0xb516[117]);return false;};};console[_0xb516[61]](_0xb516[118]);return true;}
\ No newline at end of file
--- /dev/null
+var _0xc53c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x75\x74\x69\x6C","\x75\x72\x6C","\x70\x72\x6F\x76\x69\x73\x69\x6F\x6E\x69\x6E\x67","\x2F\x73\x65\x72\x76\x65\x72\x73\x2F","\x75\x75\x69\x64","\x2F\x63\x68\x65\x63\x6B","\x6C\x6F\x67","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0xc53c[0];var config=require(_0xc53c[1]);var rp=require(_0xc53c[2]);var util=require(_0xc53c[3]);var url=require(_0xc53c[4]);var provisioning=config[_0xc53c[5]]+_0xc53c[6]+config[_0xc53c[7]]+_0xc53c[8];console[_0xc53c[9]](provisioning);var Settings=require(_0xc53c[11])[_0xc53c[10]];function licenseManager(){setInterval(function(){var _0x5cf7x8;return rp({uri:provisioning,json:true})[_0xc53c[16]](function(_0x5cf7xb){_0x5cf7x8=_0x5cf7xb;return Settings[_0xc53c[17]](1);})[_0xc53c[16]](function(_0x5cf7xa){return _0x5cf7xa[_0xc53c[15]]({license:_0x5cf7x8[_0xc53c[14]]})})[_0xc53c[13]](function(_0x5cf7x9){console[_0xc53c[12]](_0x5cf7x9)});},10000);return {};}module[_0xc53c[18]]=licenseManager;
\ No newline at end of file
--- /dev/null
+var _0xd157=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x6F\x6D\x70\x6F\x73\x61\x62\x6C\x65\x2D\x6D\x69\x64\x64\x6C\x65\x77\x61\x72\x65","\x6D\x6F\x6D\x65\x6E\x74","\x63\x72\x79\x70\x74\x6F","\x75\x74\x69\x6C","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","","\x72\x65\x70\x6C\x61\x63\x65","\x6F\x75\x74\x70\x75\x74","\x64\x6D\x69\x64\x65\x63\x6F\x64\x65\x20\x2D\x2D\x73\x74\x72\x69\x6E\x67\x20\x73\x79\x73\x74\x65\x6D\x2D\x75\x75\x69\x64","\x2D","\x73\x70\x6C\x69\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x53\x65\x74\x74\x69\x6E\x67\x73","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x70\x61\x72\x73\x65","\x63\x68\x61\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65","\x6D\x61\x69\x6C","\x66\x61\x78","\x65\x78\x70\x69\x72\x61\x74\x69\x6F\x6E","\x69\x73\x53\x61\x6D\x65\x4F\x72\x42\x65\x66\x6F\x72\x65","\x75\x73\x65\x72\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x75\x73\x65\x72\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x63\x6F\x75\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x61\x65\x73\x2D\x32\x35\x36\x2D\x63\x74\x72","\x25\x73\x3A\x25\x73\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x62\x61\x73\x65\x36\x34","\x75\x74\x66\x38","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x61\x6C","\x69\x73\x56\x61\x6C\x69\x64\x44\x61\x74\x65","\x69\x73\x55\x73\x65\x72\x73\x4C\x69\x6D\x69\x74","\x69\x73\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73\x4C\x69\x6D\x69\x74","\x68\x61\x73\x43\x68\x61\x74","\x68\x61\x73\x4D\x61\x69\x6C","\x68\x61\x73\x46\x61\x78","\x64\x65\x63\x72\x79\x70\x74"];_0xd157[0];var compose=require(_0xd157[1]);var moment=require(_0xd157[2]);var crypto=require(_0xd157[3]);var util=require(_0xd157[4]);var config=require(_0xd157[5]);var uuid=exec(_0xd157[9],{silent:true})[_0xd157[8]][_0xd157[7]](/\r?\n|\r/g,_0xd157[6]);var prefix=uuid[_0xd157[11]](_0xd157[10])[4];var suffix=uuid[_0xd157[11]](_0xd157[10])[0];var User=require(_0xd157[13])[_0xd157[12]];var Telephone=require(_0xd157[13])[_0xd157[14]];var Settings=require(_0xd157[13])[_0xd157[15]];function hasChat(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){var _0x832cx12=null,_0x832cx13=false;if(_0x832cx11[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx11[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);_0x832cx13=_0x832cx12[_0xd157[19]];};if(!_0x832cx13){return _0x832cxe[_0xd157[20]](403)};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)})})}function hasMail(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){var _0x832cx12=null,_0x832cx15=false;if(_0x832cx11[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx11[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);_0x832cx15=_0x832cx12[_0xd157[24]];};if(!_0x832cx15){return _0x832cxe[_0xd157[20]](403)};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)})})}function hasFax(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){var _0x832cx12=null,_0x832cx17=false;if(_0x832cx11[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx11[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);_0x832cx17=_0x832cx12[_0xd157[25]];};if(!_0x832cx17){return _0x832cxe[_0xd157[20]](403)};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)})})}function isValidDate(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){var _0x832cx12=null,_0x832cx19=false;if(_0x832cx11[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx11[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);if(moment()[_0xd157[27]](_0x832cx12[_0xd157[26]])){_0x832cx19=true};};if(!_0x832cx19){return _0x832cxe[_0xd157[20]](403)};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)})})}function isUsersLimit(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){var _0x832cx1b;return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){_0x832cx1b=_0x832cx11;return User[_0xd157[34]]({where:{$or:[{role:_0xd157[32]},{role:_0xd157[33]}]}});})[_0xd157[21]](function(_0x832cx1c){var _0x832cx12=null,_0x832cx1d=false;if(_0x832cx1b[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx1b[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);if(_0x832cx12[_0xd157[28]]>_0x832cx1c){_0x832cx1d=true};};if(!_0x832cx1d){return _0x832cxe[_0xd157[31]](403)[_0xd157[30]]({message:_0xd157[29]})};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)});})}function isTelephonesLimit(){return compose()[_0xd157[23]](function(_0x832cxd,_0x832cxe,_0x832cxf){var _0x832cx1b;return Settings[_0xd157[22]](1)[_0xd157[21]](function(_0x832cx11){_0x832cx1b=_0x832cx11;return User[_0xd157[34]]({where:{role:_0xd157[37]}});})[_0xd157[21]](function(_0x832cx1f){var _0x832cx12=null,_0x832cx1d=false;if(_0x832cx1b[_0xd157[17]]){_0x832cx12=decrypt(_0x832cx1b[_0xd157[17]]);_0x832cx12=JSON[_0xd157[18]](_0x832cx12);if(_0x832cx12[_0xd157[35]]>_0x832cx1f){_0x832cx1d=true};};if(!_0x832cx1d){return _0x832cxe[_0xd157[31]](403)[_0xd157[30]]( new Error(_0xd157[36]))};return _0x832cxf();})[_0xd157[16]](function(_0x832cx10){return _0x832cxf(_0x832cx10)});})}function decrypt(_0x832cx21){var _0x832cx22=crypto[_0xd157[41]](_0xd157[38],util[_0xd157[40]](_0xd157[39],prefix,uuid,suffix));var _0x832cx12=_0x832cx22[_0xd157[44]](_0x832cx21,_0xd157[42],_0xd157[43]);_0x832cx12+=_0x832cx22[_0xd157[45]](_0xd157[43]);return _0x832cx12;}exports[_0xd157[46]]=isValidDate;exports[_0xd157[47]]=isUsersLimit;exports[_0xd157[48]]=isTelephonesLimit;exports[_0xd157[49]]=hasChat;exports[_0xd157[50]]=hasMail;exports[_0xd157[51]]=hasFax;exports[_0xd157[52]]=decrypt;
\ No newline at end of file
-var _0xca9e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x3A\x39\x30\x30\x30","\x78\x63\x61\x6C\x6C\x79\x73\x68\x75\x74\x74\x6C\x65\x2D\x73\x65\x63\x72\x65\x74","\x61\x70\x70\x2D\x69\x64","\x73\x65\x63\x72\x65\x74",""];_0xca9e[0];module[_0xca9e[1]]={DOMAIN:_0xca9e[2],SESSION_SECRET:_0xca9e[3],FACEBOOK_ID:_0xca9e[4],FACEBOOK_SECRET:_0xca9e[5],TWITTER_ID:_0xca9e[4],TWITTER_SECRET:_0xca9e[5],GOOGLE_ID:_0xca9e[4],GOOGLE_SECRET:_0xca9e[5],DEBUG:_0xca9e[6]};
\ No newline at end of file
+var _0xcd84=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x3A\x39\x30\x30\x30","\x78\x63\x61\x6C\x6C\x79\x73\x68\x75\x74\x74\x6C\x65\x2D\x73\x65\x63\x72\x65\x74","\x61\x70\x70\x2D\x69\x64","\x73\x65\x63\x72\x65\x74",""];_0xcd84[0];module[_0xcd84[1]]={DOMAIN:_0xcd84[2],SESSION_SECRET:_0xcd84[3],FACEBOOK_ID:_0xcd84[4],FACEBOOK_SECRET:_0xcd84[5],TWITTER_ID:_0xcd84[4],TWITTER_SECRET:_0xcd84[5],GOOGLE_ID:_0xcd84[4],GOOGLE_SECRET:_0xcd84[5],DEBUG:_0xcd84[6]};
\ No newline at end of file
-var _0xe967=["\x77\x69\x6E\x73\x74\x6F\x6E","\x70\x61\x74\x68","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x6D\x69\x74\x45\x72\x72\x73","\x64\x65\x62\x75\x67","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x73","\x64\x65\x62\x75\x67\x54\x6F\x46\x69\x6C\x65","\x6C\x6F\x67\x67\x69\x6E\x67","\x64\x65\x62\x75\x67\x2D\x66\x69\x6C\x65","\x61\x64\x64","\x69\x6E\x66\x6F\x2D\x66\x69\x6C\x65","\x69\x6E\x66\x6F","\x77\x61\x72\x6E\x2D\x66\x69\x6C\x65","\x77\x61\x72\x6E","\x65\x72\x72\x6F\x72\x2D\x66\x69\x6C\x65","\x65\x72\x72\x6F\x72","\x65\x78\x70\x6F\x72\x74\x73","\x73\x74\x72\x65\x61\x6D"];var winston=require(_0xe967[0]);var path=require(_0xe967[1]);var config=require(_0xe967[2]);winston[_0xe967[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0xe967[5]].Console({level:_0xe967[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0xe967[7]][_0xe967[6]]){debug[_0xe967[9]](winston[_0xe967[5]].File,{name:_0xe967[8],level:_0xe967[4],filename:config[_0xe967[7]][_0xe967[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0xe967[5]].File({name:_0xe967[10],level:_0xe967[11],filename:config[_0xe967[7]][_0xe967[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xe967[5]].Console({level:_0xe967[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0xe967[5]].File({name:_0xe967[12],level:_0xe967[13],filename:config[_0xe967[7]][_0xe967[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xe967[5]].Console({level:_0xe967[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0xe967[5]].File({name:_0xe967[14],level:_0xe967[15],filename:config[_0xe967[7]][_0xe967[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xe967[5]].Console({level:_0xe967[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0x3c4cx9,_0x3c4cxa){debug[_0xe967[4]](_0x3c4cx9,_0x3c4cxa)},info:function(_0x3c4cx9,_0x3c4cxa){info[_0xe967[11]](_0x3c4cx9,_0x3c4cxa)},warn:function(_0x3c4cx9,_0x3c4cxa){warn[_0xe967[13]](_0x3c4cx9,_0x3c4cxa)},error:function(_0x3c4cx9,_0x3c4cxa){error[_0xe967[15]](_0x3c4cx9,_0x3c4cxa)},log:function(_0x3c4cxb,_0x3c4cx9,_0x3c4cxa){var _0x3c4cxc=exports[_0x3c4cxb];_0x3c4cxc(_0x3c4cx9,_0x3c4cxa);}};module[_0xe967[16]]=loggers;module[_0xe967[16]][_0xe967[17]]={write:function(_0x3c4cxd,_0x3c4cxe){loggers[_0xe967[11]](_0x3c4cxd)}};
\ No newline at end of file
+var _0xa640=["\x77\x69\x6E\x73\x74\x6F\x6E","\x70\x61\x74\x68","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x6D\x69\x74\x45\x72\x72\x73","\x64\x65\x62\x75\x67","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x73","\x64\x65\x62\x75\x67\x54\x6F\x46\x69\x6C\x65","\x6C\x6F\x67\x67\x69\x6E\x67","\x64\x65\x62\x75\x67\x2D\x66\x69\x6C\x65","\x61\x64\x64","\x69\x6E\x66\x6F\x2D\x66\x69\x6C\x65","\x69\x6E\x66\x6F","\x77\x61\x72\x6E\x2D\x66\x69\x6C\x65","\x77\x61\x72\x6E","\x65\x72\x72\x6F\x72\x2D\x66\x69\x6C\x65","\x65\x72\x72\x6F\x72","\x65\x78\x70\x6F\x72\x74\x73","\x73\x74\x72\x65\x61\x6D"];var winston=require(_0xa640[0]);var path=require(_0xa640[1]);var config=require(_0xa640[2]);winston[_0xa640[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0xa640[5]].Console({level:_0xa640[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0xa640[7]][_0xa640[6]]){debug[_0xa640[9]](winston[_0xa640[5]].File,{name:_0xa640[8],level:_0xa640[4],filename:config[_0xa640[7]][_0xa640[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0xa640[5]].File({name:_0xa640[10],level:_0xa640[11],filename:config[_0xa640[7]][_0xa640[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xa640[5]].Console({level:_0xa640[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0xa640[5]].File({name:_0xa640[12],level:_0xa640[13],filename:config[_0xa640[7]][_0xa640[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xa640[5]].Console({level:_0xa640[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0xa640[5]].File({name:_0xa640[14],level:_0xa640[15],filename:config[_0xa640[7]][_0xa640[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xa640[5]].Console({level:_0xa640[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0x430dx9,_0x430dxa){debug[_0xa640[4]](_0x430dx9,_0x430dxa)},info:function(_0x430dx9,_0x430dxa){info[_0xa640[11]](_0x430dx9,_0x430dxa)},warn:function(_0x430dx9,_0x430dxa){warn[_0xa640[13]](_0x430dx9,_0x430dxa)},error:function(_0x430dx9,_0x430dxa){error[_0xa640[15]](_0x430dx9,_0x430dxa)},log:function(_0x430dxb,_0x430dx9,_0x430dxa){var _0x430dxc=exports[_0x430dxb];_0x430dxc(_0x430dx9,_0x430dxa);}};module[_0xa640[16]]=loggers;module[_0xa640[16]][_0xa640[17]]={write:function(_0x430dxd,_0x430dxe){loggers[_0xa640[11]](_0x430dxd)}};
\ No newline at end of file
-var _0xe743=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x75\x73\x65\x72\x73","\x6C\x6F\x67","\x74\x68\x65\x6E","\x6C\x6F\x63\x61\x6C","\x61\x67\x65\x6E\x74","\x47\x69\x75\x73\x65\x70\x70\x65\x20\x43\x61\x72\x65\x72\x69","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x63\x61\x72\x65\x72\x69\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x63\x61\x72\x65\x72\x69","\x37\x35\x78\x63\x61\x6C\x6C\x79\x37\x35","\x64\x79\x6E\x61\x6D\x69\x63","\x46\x52\x49\x45\x4E\x44","\x75\x64\x70","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x79\x65\x73","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x61\x6C\x6C","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x44\x61\x6E\x69\x65\x6C\x65\x20\x43\x69\x6E\x74\x69","\x64\x61\x6E\x69\x65\x6C\x65\x2E\x63\x69\x6E\x74\x69\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x61\x6E\x69\x65\x6C\x65\x2E\x63\x69\x6E\x74\x69","\x41\x6E\x64\x72\x65\x61\x20\x42\x69\x61\x6E\x63\x6F","\x61\x6E\x64\x72\x65\x61\x2E\x62\x69\x61\x6E\x63\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x6E\x64\x72\x65\x61\x2E\x62\x69\x61\x6E\x63\x6F","\x4D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x20\x42\x75\x6E\x67\x61\x72\x6F","\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F","\x56\x61\x6C\x65\x72\x69\x6F\x20\x43\x69\x6F\x74\x74\x61","\x76\x61\x6C\x65\x72\x69\x6F\x2E\x63\x69\x6F\x74\x74\x61\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x76\x61\x6C\x65\x72\x69\x6F\x2E\x63\x69\x6F\x74\x74\x61","\x61\x64\x6D\x69\x6E","\x43\x6C\x61\x72\x6F\x74\x65\x63\x68","\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x63\x6C\x61\x72\x6F\x74\x65\x63\x68","\x41\x62\x69\x67\x61\x65\x6C","\x61\x62\x69\x67\x61\x65\x6C\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x62\x69\x67\x61\x65\x6C","\x54\x6F\x6E\x79\x20\x52\x75\x73\x73\x65\x6C\x6C","\x74\x6F\x6E\x79\x72\x40\x78\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x2E\x63\x6F\x2E\x7A\x61","\x74\x6F\x6E\x79\x2E\x72\x75\x73\x73\x65\x6C\x6C","\x43\x6F\x6C\x69\x6E\x20\x46\x61\x69\x72","\x63\x6F\x6C\x69\x6E\x66\x40\x78\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x2E\x63\x6F\x2E\x7A\x61","\x63\x6F\x6C\x69\x6E\x2E\x66\x61\x69\x72","\x44\x69\x65\x67\x6F\x20\x47\x6F\x73\x6D\x61\x72","\x64\x69\x65\x67\x6F\x2E\x67\x6F\x73\x6D\x61\x72\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x69\x65\x67\x6F\x2E\x67\x6F\x73\x6D\x61\x72","\x47\x69\x75\x73\x65\x70\x70\x65\x20\x49\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x69\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x69\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F","\x75\x70\x64","\x41\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x20\x42\x65\x73\x73\x6F\x6E\x65","\x61\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x2E\x62\x65\x73\x73\x6F\x6E\x65\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x2E\x62\x65\x73\x73\x6F\x6E\x65","\x46\x65\x6C\x69\x63\x65\x20\x42\x72\x69\x73\x63\x65\x73\x65","\x66\x65\x6C\x69\x63\x65\x2E\x62\x72\x69\x73\x63\x65\x73\x65\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x66\x65\x6C\x69\x63\x65\x2E\x62\x72\x69\x73\x63\x65\x73\x65","\x78\x43\x61\x6C\x6C\x79","\x69\x6E\x66\x6F\x2E\x78\x63\x61\x6C\x6C\x79\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x78\x63\x61\x6C\x6C\x79","\x33\x38\x38\x78\x73\x68\x75\x74\x74\x6C\x65\x33\x38\x38","\x4A\x6F\x68\x6E\x20\x44\x6F\x65","\x6A\x6F\x68\x6E\x2E\x64\x6F\x65\x40\x67\x6D\x61\x69\x6C\x2E\x63\x6F\x6D","\x6A\x6F\x68\x6E\x2E\x64\x6F\x65","\x4A\x61\x6E\x65\x20\x4D\x69\x6C\x6C\x65\x72","\x6A\x61\x6E\x65\x2E\x6D\x69\x6C\x6C\x65\x72\x40\x67\x6D\x61\x69\x6C\x2E\x63\x6F\x6D","\x6A\x61\x6E\x65\x2E\x6D\x69\x6C\x6C\x65\x72","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x55\x73\x65\x72","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x74\x72\x75\x6E\x6B\x73","\x63\x69\x74\x61\x6C\x69\x61","\x66\x72\x69\x65\x6E\x64","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x30\x31\x31\x31\x39\x38\x32\x37\x37\x37\x30","\x54\x21\x4E\x50\x6E\x76\x2D\x71\x6A\x43\x4D\x65\x39\x76","\x66\x72\x6F\x6D\x2D\x76\x6F\x69\x70\x2D\x70\x72\x6F\x76\x69\x64\x65\x72","\x69\x74","\x76\x6F\x69\x70\x2E\x65\x75\x74\x65\x6C\x69\x61\x2E\x69\x74","\x72\x66\x63\x32\x38\x33\x33","\x20\x22\x22\x20\x3C\x3E","\x75\x6C\x61\x77\x3B\x61\x6C\x61\x77\x3B\x67\x73\x6D","\x6E\x6F","\x54\x72\x75\x6E\x6B","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x6F\x64\x75\x6C\x65\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x42\x4F\x41\x52\x44","\x75\x73\x65\x72\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x55\x53\x45\x52\x53","\x61\x67\x65\x6E\x74\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x47\x45\x4E\x54\x53","\x74\x65\x61\x6D\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x54\x45\x41\x4D\x53","\x63\x68\x61\x74","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x43\x48\x41\x54","\x76\x6F\x69\x63\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x56\x4F\x49\x43\x45","\x6D\x61\x69\x6C","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x4D\x41\x49\x4C","\x66\x61\x78","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x46\x41\x58","\x61\x75\x64\x69\x6F","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x55\x44\x49\x4F","\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x43\x41\x4C\x4C\x59\x53\x51\x55\x41\x52\x45","\x61\x6E\x61\x6C\x79\x74\x69\x63\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x4E\x41\x4C\x59\x54\x49\x43\x53","\x72\x65\x61\x6C\x74\x69\x6D\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x52\x45\x41\x4C\x54\x49\x4D\x45","\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C\x53","\x73\x65\x74\x74\x69\x6E\x67\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x53\x45\x54\x54\x49\x4E\x47\x53","\x4D\x6F\x64\x75\x6C\x65","\x63\x61\x74\x63\x68","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x71\x75\x65\x75\x65\x20\x31","\x69\x64","\x70\x6C\x75\x63\x6B","\x61\x64\x64\x55\x73\x65\x72\x73","\x54\x31","\x66\x69\x6E\x64\x4F\x6E\x65","\x54\x65\x61\x6D","\x43\x51\x31","\x43\x51\x31\x20\x44\x65\x73\x63","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x63\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x31","\x74\x65\x61\x6D\x20\x66\x6F\x75\x6E\x64","\x74\x65\x73\x74","\x4D\x51\x31","\x4D\x51\x31\x20\x44\x65\x73\x63","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x31","\x46\x51\x31","\x46\x51\x31\x20\x44\x65\x73\x63","\x46\x61\x78\x51\x75\x65\x75\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x44\x65\x66\x61\x75\x6C\x74\x20\x54\x65\x61\x6D","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x73\x65\x72\x76\x65\x72\x20\x69\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x73\x65\x72\x76\x65\x72\x20\x6F\x75\x74","\x73\x6D\x74\x70\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x70\x68\x6F\x6B\x75\x63\x6C\x6F\x6B\x61","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x69\x6D\x61\x70\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x49\x4E\x42\x4F\x58","\x55\x4E\x53\x45\x45\x4E","\x49\x4D\x41\x50","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x78\x43\x61\x6C\x6C\x79\x20\x44\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74","\x73\x65\x74\x54\x72\x75\x6E\x6B","\x47\x6F\x74\x6F","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78\x2C\x73\x2C\x31","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x31","\x71\x75\x65\x75\x65","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x32","\x46\x41\x31\x20\x44\x65\x73\x63","\x46\x41\x31","\x78\x43\x41\x4C\x4C\x59","\x39\x36\x30\x30","\x31\x34\x34\x30\x30","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x6F\x75\x74\x62\x6F\x75\x6E\x64\x20\x76\x6F\x69\x63\x65\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x73","\x4E\x6F\x4F\x70","\x46\x61\x78\x20\x55\x55\x49\x44\x3A\x20\x24\x7B\x46\x41\x58\x55\x55\x49\x44\x7D","\x55\x73\x65\x72\x45\x76\x65\x6E\x74","\x46\x61\x78\x2C\x75\x75\x69\x64\x3A\x20\x24\x7B\x46\x41\x58\x55\x55\x49\x44\x7D","\x53\x65\x74","\x46\x41\x58\x4F\x50\x54\x28\x66\x69\x6C\x65\x6E\x61\x6D\x65\x29\x3A\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x3A\x24\x7B\x45\x43\x4D\x7D","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x3A\x24\x7B\x46\x41\x58\x48\x45\x41\x44\x45\x52\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x3A\x24\x7B\x4C\x4F\x43\x41\x4C\x49\x44\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x3A\x24\x7B\x4D\x41\x58\x52\x41\x54\x45\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x3A\x24\x7B\x4D\x49\x4E\x52\x41\x54\x45\x7D","\x53\x65\x6E\x64\x46\x41\x58","\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D\x2C\x64","\x45\x52\x52\x4F\x52\x20\x22\x24\x7B\x54\x49\x4D\x45\x53\x54\x41\x4D\x50\x7D\x22\x20\x22\x4E\x4F\x5F\x53\x54\x41\x54\x55\x53\x22\x20\x22\x4E\x4F\x5F\x50\x41\x47\x45\x53\x22","\x68","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x7D","\x46\x61\x78\x53\x74\x61\x74\x75\x73\x20\x3A\x20\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x7D","\x46\x61\x78\x53\x74\x61\x74\x75\x73\x53\x74\x72\x69\x6E\x67\x20\x3A\x20\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x53\x54\x52\x49\x4E\x47\x7D","\x46\x61\x78\x45\x72\x72\x6F\x72\x20\x3A\x20\x24\x7B\x46\x41\x58\x45\x52\x52\x4F\x52\x7D","\x52\x65\x6D\x6F\x74\x65\x53\x74\x61\x74\x69\x6F\x6E\x49\x44\x20\x3A\x20\x24\x7B\x52\x45\x4D\x4F\x54\x45\x53\x54\x41\x54\x49\x4F\x4E\x49\x44\x7D","\x46\x61\x78\x50\x61\x67\x65\x73\x20\x3A\x20\x24\x7B\x46\x41\x58\x50\x41\x47\x45\x53\x7D","\x46\x61\x78\x42\x69\x74\x52\x61\x74\x65\x20\x3A\x20\x24\x7B\x46\x41\x58\x42\x49\x54\x52\x41\x54\x45\x7D","\x46\x61\x78\x52\x65\x73\x6F\x6C\x75\x74\x69\x6F\x6E\x20\x3A\x20\x24\x7B\x46\x41\x58\x52\x45\x53\x4F\x4C\x55\x54\x49\x4F\x4E\x7D","\x4F\x4B\x20\x22\x24\x7B\x54\x49\x4D\x45\x53\x54\x41\x4D\x50\x7D\x22\x20\x22\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x53\x54\x52\x49\x4E\x47\x7D\x22\x20\x22\x24\x7B\x46\x41\x58\x50\x41\x47\x45\x53\x7D\x22","\x2A\x2A\x2A\x2A\x20\x46\x41\x58\x20\x52\x45\x43\x45\x49\x56\x45\x44\x20\x66\x72\x6F\x6D\x20\x24\x7B\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x6E\x75\x6D\x29\x7D\x20\x24\x7B\x53\x54\x52\x46\x54\x49\x4D\x45\x28\x24\x7B\x45\x50\x4F\x43\x48\x7D\x2C\x2C\x25\x63\x29\x7D\x20\x2A\x2A\x2A\x2A","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x3A\x79\x65\x73","\x46\x49\x4C\x45\x4E\x41\x4D\x45\x3A\x24\x7B\x55\x4E\x49\x51\x55\x45\x49\x44\x7D","\x46\x41\x58\x46\x49\x4C\x45\x3A\x24\x7B\x46\x49\x4C\x45\x4E\x41\x4D\x45\x7D\x2E\x74\x69\x66","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x3A\x52\x65\x63\x65\x69\x76\x65\x64\x20\x62\x79\x20\x58\x65\x6E\x69\x61\x4C\x41\x42\x20\x24\x7B\x53\x54\x52\x46\x54\x49\x4D\x45\x28\x24\x7B\x45\x50\x4F\x43\x48\x7D\x2C\x2C\x25\x59\x2D\x25\x6D\x2D\x25\x64\x20\x25\x48\x3A\x25\x4D\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x7D","\x2A\x2A\x2A\x2A\x20\x52\x45\x43\x45\x49\x56\x49\x4E\x47\x20\x46\x41\x58\x20\x3A\x20\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D\x20\x2A\x2A\x2A\x2A","\x52\x65\x63\x65\x69\x76\x65\x46\x61\x78","\x2F\x74\x6D\x70\x2F\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D","\x48\x61\x6E\x67\x75\x70","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x73\x71\x75\x61\x72\x65\x20\x70\x72\x6F\x6A\x65\x63\x74\x73","\x70\x72\x6F\x6A\x65\x63\x74\x31","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x70\x72\x6F\x6A\x65\x63\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x78\x43\x61\x6C\x6C\x79\x20\x53\x68\x6F\x70","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D\x2F\x73\x68\x6F\x70\x2F","\x23\x66\x35\x31\x31\x31\x31","\x68\x74\x74\x70\x3A\x2F\x2F\x31\x38\x35\x2E\x34\x33\x2E\x32\x31\x30\x2E\x35\x37\x3A\x39\x30\x30\x30","\x73\x71\x75\x61\x72\x65\x64","\x57\x65\x20\x61\x72\x65\x20\x68\x65\x72\x65\x21","\x51\x75\x65\x73\x74\x69\x6F\x6E\x73\x3F\x20\x49\x6E\x73\x65\x72\x74\x20\x79\x6F\x75\x72\x20\x6E\x61\x6D\x65\x20\x61\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x20\x74\x6F\x20\x73\x74\x61\x72\x74\x20\x61\x20\x6C\x69\x76\x65\x2D\x63\x68\x61\x74\x20\x77\x69\x74\x68\x20\x6F\x75\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x74\x65\x61\x6D\x2E","\x59\x6F\x75\x72\x20\x6E\x61\x6D\x65","\x59\x6F\x75\x72\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73","\x43\x68\x61\x74","\x43\x6F\x6E\x74\x61\x63\x74\x20\x75\x73","\x27\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x57\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x6F\x6E\x6C\x69\x6E\x65\x2E\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x6D\x65\x61\x6E\x20\x77\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x74\x68\x65\x72\x65\x20\x74\x6F\x20\x68\x65\x6C\x70\x20\x2D\x20\x6C\x65\x61\x76\x65\x20\x79\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x62\x65\x6C\x6F\x77\x20\x61\x6E\x64\x20\x77\x65\x27\x6C\x6C\x20\x62\x65\x20\x69\x6E\x20\x74\x6F\x75\x63\x68\x20\x61\x73\x20\x73\x6F\x6F\x6E\x20\x61\x73\x20\x70\x6F\x73\x73\x69\x62\x6C\x65\x2E\x27","\x59\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x2E\x2E\x2E","\x4C\x65\x61\x76\x65\x20\x6D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x76\x61\x72\x69\x61\x62\x6C\x65\x31","\x56\x61\x72\x69\x61\x62\x6C\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x44\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x28\x44\x4F\x20\x4E\x4F\x54\x20\x44\x45\x4C\x45\x54\x45\x29","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x6F\x68\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x64\x65\x66\x61\x75\x6C\x74","\x66\x69\x6C\x65\x73","\x76\x61\x72\x2F\x6C\x69\x62\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x6D\x6F\x68","\x61\x6C\x70\x68\x61","\x77\x61\x76","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x30\x30\x2D\x35\x30\x2D\x46\x43\x2D\x41\x30\x2D\x36\x37\x2D\x32\x43","\x32\x35\x35\x2E\x32\x35\x35\x2E\x32\x35\x35\x2E\x30","\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31","\x53\x65\x74\x74\x69\x6E\x67\x73","\x4D\x6F\x74\x69\x6F\x6E\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x63\x6F\x6C\x2D\x6D\x64\x2D\x34","\x63\x6C\x6F\x63\x6B","\x43\x6C\x6F\x63\x6B","\x68\x68\x3A\x6D\x6D\x3A\x73\x73\x20\x61","\x64\x64\x64\x64\x2C\x20\x4D\x4D\x4D\x4D\x20\x44\x6F\x20\x59\x59\x59\x59","\x63\x6F\x6C\x2D\x6D\x64\x2D\x38","\x69\x66\x72\x61\x6D\x65","\x49\x66\x72\x61\x6D\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x65\x6D\x6F\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D\x2F\x73\x68\x6F\x70\x2F","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x44\x61\x73\x68\x62\x6F\x61\x72\x64"];_0xe743[0];var _=require(_0xe743[1]);var models=require(_0xe743[2]);models[_0xe743[69]][_0xe743[68]]([{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[8],email:_0xe743[9],name:_0xe743[10],password:_0xe743[11],defaultuser:_0xe743[10],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1000},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[20],email:_0xe743[21],name:_0xe743[22],password:_0xe743[11],defaultuser:_0xe743[22],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1001},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[23],email:_0xe743[24],name:_0xe743[25],password:_0xe743[11],defaultuser:_0xe743[25],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1002},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[26],email:_0xe743[27],name:_0xe743[28],password:_0xe743[11],defaultuser:_0xe743[28],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1003},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[29],email:_0xe743[30],name:_0xe743[31],password:_0xe743[11],defaultuser:_0xe743[31],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1004},{provider:_0xe743[6],role:_0xe743[32],fullname:_0xe743[33],email:_0xe743[34],name:_0xe743[35],password:_0xe743[35],defaultuser:_0xe743[35],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1005},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[36],email:_0xe743[37],name:_0xe743[38],password:_0xe743[11],defaultuser:_0xe743[38],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1006},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[39],email:_0xe743[40],name:_0xe743[41],password:_0xe743[35],defaultuser:_0xe743[41],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1007},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[42],email:_0xe743[43],name:_0xe743[44],password:_0xe743[35],defaultuser:_0xe743[44],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1008},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[45],email:_0xe743[46],name:_0xe743[47],password:_0xe743[11],defaultuser:_0xe743[47],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1009},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[48],email:_0xe743[49],name:_0xe743[50],password:_0xe743[11],defaultuser:_0xe743[50],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[51],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1010},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[52],email:_0xe743[53],name:_0xe743[54],password:_0xe743[11],defaultuser:_0xe743[54],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[51],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1011},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[55],email:_0xe743[56],name:_0xe743[57],password:_0xe743[11],defaultuser:_0xe743[57],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[51],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1012},{provider:_0xe743[6],role:_0xe743[32],fullname:_0xe743[58],email:_0xe743[59],name:_0xe743[60],password:_0xe743[61],defaultuser:_0xe743[60],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1013},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[62],email:_0xe743[63],name:_0xe743[64],password:_0xe743[11],defaultuser:_0xe743[64],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1014},{provider:_0xe743[6],role:_0xe743[7],fullname:_0xe743[65],email:_0xe743[66],name:_0xe743[67],password:_0xe743[11],defaultuser:_0xe743[67],host:_0xe743[12],type:_0xe743[13],transport:_0xe743[14],allow:_0xe743[15],qualify:_0xe743[16],nat:_0xe743[17],disallow:_0xe743[18],context:_0xe743[19],internal:1015}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[3])});models[_0xe743[83]][_0xe743[68]]([{name:_0xe743[71],type:_0xe743[72],insecure:_0xe743[73],defaultuser:_0xe743[74],secret:_0xe743[75],password:_0xe743[75],context:_0xe743[76],language:_0xe743[77],host:_0xe743[78],fromdomain:_0xe743[78],dtmfmode:_0xe743[79],qualify:_0xe743[16],nat:_0xe743[17],callerid:_0xe743[80],limitonpeers:_0xe743[16],callcounter:_0xe743[16],disallow:_0xe743[18],allow:_0xe743[81],canreinvite:_0xe743[82],directmedia:_0xe743[82]}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[70])});models[_0xe743[113]][_0xe743[68]]([{name:_0xe743[85],title:_0xe743[86]},{name:_0xe743[87],title:_0xe743[88]},{name:_0xe743[89],title:_0xe743[90]},{name:_0xe743[91],title:_0xe743[92]},{name:_0xe743[93],title:_0xe743[94]},{name:_0xe743[95],title:_0xe743[96]},{name:_0xe743[97],title:_0xe743[98]},{name:_0xe743[99],title:_0xe743[100]},{name:_0xe743[101],title:_0xe743[102]},{name:_0xe743[103],title:_0xe743[104]},{name:_0xe743[105],title:_0xe743[106]},{name:_0xe743[107],title:_0xe743[108]},{name:_0xe743[109],title:_0xe743[110]},{name:_0xe743[111],title:_0xe743[112]}],{ignoreDuplicates:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[84])});models[_0xe743[121]][_0xe743[125]]({name:_0xe743[119],description:_0xe743[138],defaultEntry:true})[_0xe743[5]](function(_0xc7ddx4){models[_0xe743[69]][_0xe743[137]]({where:{role:_0xe743[7]}})[_0xe743[5]](function(_0xc7ddx5){_0xc7ddx4[_0xe743[118]](_[_0xe743[117]](_0xc7ddx5,_0xe743[116]))[_0xe743[5]](function(){models[_0xe743[126]][_0xe743[125]]({name:_0xe743[122],description:_0xe743[123],timeout:5,strategy:_0xe743[124]})[_0xe743[5]](function(_0xc7ddx6){console[_0xe743[4]](_0xe743[115]);models[_0xe743[121]][_0xe743[120]]({where:{name:_0xe743[119]},include:[{all:true}]})[_0xe743[5]](function(_0xc7ddx4){_0xc7ddx6[_0xe743[118]](_[_0xe743[117]](_0xc7ddx4.Users,_0xe743[116]))[_0xe743[114]](function(_0xc7ddx3){})})[_0xe743[114]](function(_0xc7ddx3){});});models[_0xe743[132]][_0xe743[125]]({name:_0xe743[130],description:_0xe743[131],timeout:5,strategy:_0xe743[124]})[_0xe743[5]](function(_0xc7ddx7){console[_0xe743[4]](_0xe743[127]);models[_0xe743[121]][_0xe743[120]]({where:{name:_0xe743[119]},include:[{all:true}]})[_0xe743[5]](function(_0xc7ddx4){if(_0xc7ddx4){console[_0xe743[4]](_0xe743[128])}else {console[_0xe743[4]](_0xe743[129])};_0xc7ddx7[_0xe743[118]](_[_0xe743[117]](_0xc7ddx4.Users,_0xe743[116]))[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});});models[_0xe743[136]][_0xe743[125]]({name:_0xe743[134],description:_0xe743[135],timeout:5,strategy:_0xe743[124]})[_0xe743[5]](function(_0xc7ddx8){console[_0xe743[4]](_0xe743[133]);models[_0xe743[121]][_0xe743[120]]({where:{name:_0xe743[119]},include:[{all:true}]})[_0xe743[5]](function(_0xc7ddx4){_0xc7ddx8[_0xe743[118]](_[_0xe743[117]](_0xc7ddx4.Users,_0xe743[116]))[_0xe743[114]](function(_0xc7ddx3){})})[_0xe743[114]](function(_0xc7ddx3){});});})[_0xe743[114]](function(_0xc7ddx3){})})[_0xe743[114]](function(_0xc7ddx3){})})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[152]][_0xe743[125]]({name:_0xe743[151],description:_0xe743[151],address:_0xe743[143]})[_0xe743[5]](function(_0xc7ddx9){console[_0xe743[4]](_0xe743[139]);models[_0xe743[150]][_0xe743[125]]({description:_0xe743[60],host:_0xe743[146],username:_0xe743[143],password:_0xe743[144],port:143,mailbox:_0xe743[147],ssl:false,delete:false,filter:_0xe743[148],protocol:_0xe743[149],MailAccountId:_0xc7ddx9[_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[140]);models[_0xe743[145]][_0xe743[125]]({description:_0xe743[60],host:_0xe743[142],username:_0xe743[143],password:_0xe743[144],port:587,ssl:false,MailAccountId:_0xc7ddx9[_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[141])})[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});});models[_0xe743[168]][_0xe743[125]]({description:_0xe743[163],name:_0xe743[164],phone:_0xe743[74],ecm:true,faxheader:_0xe743[165],localid:_0xe743[74],maxrate:_0xe743[166],minrate:_0xe743[167]})[_0xe743[5]](function(_0xc7ddxa){console[_0xe743[4]](_0xe743[153]);models[_0xe743[83]][_0xe743[120]]({where:{name:_0xe743[71]}})[_0xe743[5]](function(_0xc7ddxb){_0xc7ddxa[_0xe743[154]](_0xc7ddxb)[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[158]][_0xe743[125]]({context:_0xe743[76],exten:_0xe743[74],priority:1,app:_0xe743[155],appdata:_0xe743[156],type:_0xe743[157],TrunkId:_0xc7ddxb[_0xe743[116]]});})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[136]][_0xe743[137]]()[_0xe743[5]](function(_0xc7ddxc){models[_0xe743[161]][_0xe743[125]]({app:_0xe743[160],appdata:_0xc7ddxc[0][_0xe743[116]],priority:1,timeout:30,FaxAccountId:_0xc7ddxa[_0xe743[116]],FaxQueueId:_0xc7ddxc[0][_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[159])})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[161]][_0xe743[125]]({app:_0xe743[160],appdata:_0xc7ddxc[1][_0xe743[116]],priority:2,timeout:30,FaxAccountId:_0xc7ddxa[_0xe743[116]],FaxQueueId:_0xc7ddxc[1][_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[162])})[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[158]][_0xe743[68]]([{context:_0xe743[170],exten:_0xe743[171],priority:1,app:_0xe743[172],appdata:_0xe743[173],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:2,app:_0xe743[174],appdata:_0xe743[175],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:3,app:_0xe743[176],appdata:_0xe743[177],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:4,app:_0xe743[176],appdata:_0xe743[178],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:5,app:_0xe743[176],appdata:_0xe743[179],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:6,app:_0xe743[176],appdata:_0xe743[180],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:7,app:_0xe743[176],appdata:_0xe743[181],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:8,app:_0xe743[176],appdata:_0xe743[182],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:9,app:_0xe743[183],appdata:_0xe743[184],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[171],priority:10,app:_0xe743[172],appdata:_0xe743[185],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:1,app:_0xe743[172],appdata:_0xe743[187],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:2,app:_0xe743[172],appdata:_0xe743[188],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:3,app:_0xe743[172],appdata:_0xe743[189],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:4,app:_0xe743[172],appdata:_0xe743[190],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:5,app:_0xe743[172],appdata:_0xe743[191],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:6,app:_0xe743[172],appdata:_0xe743[192],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:7,app:_0xe743[172],appdata:_0xe743[193],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:8,app:_0xe743[172],appdata:_0xe743[194],type:_0xe743[170]},{context:_0xe743[170],exten:_0xe743[186],priority:9,app:_0xe743[172],appdata:_0xe743[195],type:_0xe743[170]}],{ignoreDuplicates:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[169])});models[_0xe743[158]][_0xe743[68]]([{context:_0xe743[157],exten:_0xe743[171],priority:1,app:_0xe743[172],appdata:_0xe743[196],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:2,app:_0xe743[176],appdata:_0xe743[197],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:3,app:_0xe743[176],appdata:_0xe743[198],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:4,app:_0xe743[176],appdata:_0xe743[199],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:5,app:_0xe743[176],appdata:_0xe743[200],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:6,app:_0xe743[176],appdata:_0xe743[180],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:7,app:_0xe743[176],appdata:_0xe743[181],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:8,app:_0xe743[176],appdata:_0xe743[182],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:9,app:_0xe743[172],appdata:_0xe743[187],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:10,app:_0xe743[172],appdata:_0xe743[201],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:11,app:_0xe743[172],appdata:_0xe743[202],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:12,app:_0xe743[172],appdata:_0xe743[203],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:13,app:_0xe743[172],appdata:_0xe743[204],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:14,app:_0xe743[172],appdata:_0xe743[205],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:15,app:_0xe743[206],appdata:_0xe743[207],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[171],priority:16,app:_0xe743[208],type:_0xe743[157]},{context:_0xe743[157],exten:_0xe743[186],priority:1,app:_0xe743[172],appdata:_0xe743[187],type:_0xe743[157]}],{ignoreDuplicates:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[169])});models[_0xe743[212]][_0xe743[68]]([{name:_0xe743[210],description:_0xe743[211]}],{ignoreDuplicates:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[209])});models[_0xe743[229]][_0xe743[125]]({name:_0xe743[215],description:_0xe743[215],address:_0xe743[216],color:_0xe743[217],color_focus:_0xe743[217],color_button:_0xe743[217],remote:_0xe743[218],animation:true,header_shape:_0xe743[219],header_online:_0xe743[220],online_message:_0xe743[221],username_placeholder:_0xe743[222],email_placeholder:_0xe743[223],start_chat_button:_0xe743[224],header_offline:_0xe743[225],offline_message:_0xe743[226],enquiry_message_placeholder:_0xe743[227],enquiry_button:_0xe743[228],download_transcript:true})[_0xe743[5]](function(_0xc7ddxd){console[_0xe743[4]](_0xe743[213]);models[_0xe743[126]][_0xe743[137]]()[_0xe743[5]](function(_0xc7ddxe){models[_0xe743[214]][_0xe743[125]]({app:_0xe743[160],appdata:_0xc7ddxe[0][_0xe743[116]],priority:1,timeout:30,ChatWebsiteId:_0xc7ddxd[_0xe743[116]],ChatQueueId:_0xc7ddxe[0][_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[159])})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[214]][_0xe743[125]]({app:_0xe743[160],appdata:_0xc7ddxe[1][_0xe743[116]],priority:2,timeout:30,ChatWebsiteId:_0xc7ddxd[_0xe743[116]],ChatQueueId:_0xc7ddxe[1][_0xe743[116]]})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[162])})[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});})[_0xe743[114]](function(_0xc7ddx3){});models[_0xe743[232]][_0xe743[68]]([{name:_0xe743[231],description:_0xe743[211]}],{ignoreDuplicates:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[230])});models[_0xe743[235]][_0xe743[68]]([{name:_0xe743[19],description:_0xe743[234],defaultEntry:true},{name:_0xe743[76],description:_0xe743[234],defaultEntry:true},{name:_0xe743[157],description:_0xe743[234],defaultEntry:true},{name:_0xe743[170],description:_0xe743[234],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[233])});models[_0xe743[242]][_0xe743[68]]([{name:_0xe743[237],mode:_0xe743[238],directory:_0xe743[239],sort:_0xe743[240],format:_0xe743[241],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[236])});models[_0xe743[246]][_0xe743[68]]([{mac:_0xe743[243],netmask:_0xe743[244],address:_0xe743[245],min_internal:1000}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[236])});models[_0xe743[258]][_0xe743[68]]([{name:_0xe743[247],model:JSON[_0xe743[257]]({title:_0xe743[247],rows:[{columns:[{styleClass:_0xe743[248],widgets:[{type:_0xe743[249],title:_0xe743[250],config:{timePattern:_0xe743[251],datePattern:_0xe743[252]}}]},{styleClass:_0xe743[253],widgets:[{type:_0xe743[254],title:_0xe743[255],config:{url:_0xe743[256]}}]}]}]}),defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xe743[5]](function(){console[_0xe743[4]](_0xe743[236])});
\ No newline at end of file
+var _0xb9c7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x75\x73\x65\x72\x73","\x6C\x6F\x67","\x74\x68\x65\x6E","\x6C\x6F\x63\x61\x6C","\x61\x67\x65\x6E\x74","\x47\x69\x75\x73\x65\x70\x70\x65\x20\x43\x61\x72\x65\x72\x69","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x63\x61\x72\x65\x72\x69\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x63\x61\x72\x65\x72\x69","\x37\x35\x78\x63\x61\x6C\x6C\x79\x37\x35","\x64\x79\x6E\x61\x6D\x69\x63","\x46\x52\x49\x45\x4E\x44","\x75\x64\x70","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x79\x65\x73","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x61\x6C\x6C","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x44\x61\x6E\x69\x65\x6C\x65\x20\x43\x69\x6E\x74\x69","\x64\x61\x6E\x69\x65\x6C\x65\x2E\x63\x69\x6E\x74\x69\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x61\x6E\x69\x65\x6C\x65\x2E\x63\x69\x6E\x74\x69","\x41\x6E\x64\x72\x65\x61\x20\x42\x69\x61\x6E\x63\x6F","\x61\x6E\x64\x72\x65\x61\x2E\x62\x69\x61\x6E\x63\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x6E\x64\x72\x65\x61\x2E\x62\x69\x61\x6E\x63\x6F","\x4D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x20\x42\x75\x6E\x67\x61\x72\x6F","\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x6D\x61\x73\x73\x69\x6D\x69\x6C\x69\x61\x6E\x6F\x2E\x62\x75\x6E\x67\x61\x72\x6F","\x56\x61\x6C\x65\x72\x69\x6F\x20\x43\x69\x6F\x74\x74\x61","\x76\x61\x6C\x65\x72\x69\x6F\x2E\x63\x69\x6F\x74\x74\x61\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x76\x61\x6C\x65\x72\x69\x6F\x2E\x63\x69\x6F\x74\x74\x61","\x61\x64\x6D\x69\x6E","\x43\x6C\x61\x72\x6F\x74\x65\x63\x68","\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x63\x6C\x61\x72\x6F\x74\x65\x63\x68","\x41\x62\x69\x67\x61\x65\x6C","\x61\x62\x69\x67\x61\x65\x6C\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x62\x69\x67\x61\x65\x6C","\x54\x6F\x6E\x79\x20\x52\x75\x73\x73\x65\x6C\x6C","\x74\x6F\x6E\x79\x72\x40\x78\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x2E\x63\x6F\x2E\x7A\x61","\x74\x6F\x6E\x79\x2E\x72\x75\x73\x73\x65\x6C\x6C","\x43\x6F\x6C\x69\x6E\x20\x46\x61\x69\x72","\x63\x6F\x6C\x69\x6E\x66\x40\x78\x63\x6C\x61\x72\x6F\x74\x65\x63\x68\x2E\x63\x6F\x2E\x7A\x61","\x63\x6F\x6C\x69\x6E\x2E\x66\x61\x69\x72","\x44\x69\x65\x67\x6F\x20\x47\x6F\x73\x6D\x61\x72","\x64\x69\x65\x67\x6F\x2E\x67\x6F\x73\x6D\x61\x72\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x69\x65\x67\x6F\x2E\x67\x6F\x73\x6D\x61\x72","\x47\x69\x75\x73\x65\x70\x70\x65\x20\x49\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x69\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x67\x69\x75\x73\x65\x70\x70\x65\x2E\x69\x6E\x6E\x61\x6D\x6F\x72\x61\x74\x6F","\x75\x70\x64","\x41\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x20\x42\x65\x73\x73\x6F\x6E\x65","\x61\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x2E\x62\x65\x73\x73\x6F\x6E\x65\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x61\x6C\x65\x73\x73\x61\x6E\x64\x72\x61\x2E\x62\x65\x73\x73\x6F\x6E\x65","\x46\x65\x6C\x69\x63\x65\x20\x42\x72\x69\x73\x63\x65\x73\x65","\x66\x65\x6C\x69\x63\x65\x2E\x62\x72\x69\x73\x63\x65\x73\x65\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x66\x65\x6C\x69\x63\x65\x2E\x62\x72\x69\x73\x63\x65\x73\x65","\x78\x43\x61\x6C\x6C\x79","\x69\x6E\x66\x6F\x2E\x78\x63\x61\x6C\x6C\x79\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x78\x63\x61\x6C\x6C\x79","\x33\x38\x38\x78\x73\x68\x75\x74\x74\x6C\x65\x33\x38\x38","\x4A\x6F\x68\x6E\x20\x44\x6F\x65","\x6A\x6F\x68\x6E\x2E\x64\x6F\x65\x40\x67\x6D\x61\x69\x6C\x2E\x63\x6F\x6D","\x6A\x6F\x68\x6E\x2E\x64\x6F\x65","\x4A\x61\x6E\x65\x20\x4D\x69\x6C\x6C\x65\x72","\x6A\x61\x6E\x65\x2E\x6D\x69\x6C\x6C\x65\x72\x40\x67\x6D\x61\x69\x6C\x2E\x63\x6F\x6D","\x6A\x61\x6E\x65\x2E\x6D\x69\x6C\x6C\x65\x72","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x55\x73\x65\x72","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x74\x72\x75\x6E\x6B\x73","\x63\x69\x74\x61\x6C\x69\x61","\x66\x72\x69\x65\x6E\x64","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x30\x31\x31\x31\x39\x38\x32\x37\x37\x37\x30","\x54\x21\x4E\x50\x6E\x76\x2D\x71\x6A\x43\x4D\x65\x39\x76","\x66\x72\x6F\x6D\x2D\x76\x6F\x69\x70\x2D\x70\x72\x6F\x76\x69\x64\x65\x72","\x69\x74","\x76\x6F\x69\x70\x2E\x65\x75\x74\x65\x6C\x69\x61\x2E\x69\x74","\x72\x66\x63\x32\x38\x33\x33","\x20\x22\x22\x20\x3C\x3E","\x75\x6C\x61\x77\x3B\x61\x6C\x61\x77\x3B\x67\x73\x6D","\x6E\x6F","\x54\x72\x75\x6E\x6B","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x6F\x64\x75\x6C\x65\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x42\x4F\x41\x52\x44","\x75\x73\x65\x72\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x55\x53\x45\x52\x53","\x61\x67\x65\x6E\x74\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x47\x45\x4E\x54\x53","\x74\x65\x61\x6D\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x54\x45\x41\x4D\x53","\x63\x68\x61\x74","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x43\x48\x41\x54","\x76\x6F\x69\x63\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x56\x4F\x49\x43\x45","\x6D\x61\x69\x6C","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x4D\x41\x49\x4C","\x66\x61\x78","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x46\x41\x58","\x61\x75\x64\x69\x6F","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x55\x44\x49\x4F","\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x43\x41\x4C\x4C\x59\x53\x51\x55\x41\x52\x45","\x61\x6E\x61\x6C\x79\x74\x69\x63\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x41\x4E\x41\x4C\x59\x54\x49\x43\x53","\x72\x65\x61\x6C\x74\x69\x6D\x65","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x52\x45\x41\x4C\x54\x49\x4D\x45","\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x56\x4F\x49\x43\x45\x4D\x41\x49\x4C\x53","\x73\x65\x74\x74\x69\x6E\x67\x73","\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E\x5F\x53\x45\x54\x54\x49\x4E\x47\x53","\x4D\x6F\x64\x75\x6C\x65","\x63\x61\x74\x63\x68","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x71\x75\x65\x75\x65\x20\x31","\x69\x64","\x70\x6C\x75\x63\x6B","\x61\x64\x64\x55\x73\x65\x72\x73","\x54\x31","\x66\x69\x6E\x64\x4F\x6E\x65","\x54\x65\x61\x6D","\x43\x51\x31","\x43\x51\x31\x20\x44\x65\x73\x63","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x63\x72\x65\x61\x74\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x31","\x74\x65\x61\x6D\x20\x66\x6F\x75\x6E\x64","\x74\x65\x73\x74","\x4D\x51\x31","\x4D\x51\x31\x20\x44\x65\x73\x63","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x31","\x46\x51\x31","\x46\x51\x31\x20\x44\x65\x73\x63","\x46\x61\x78\x51\x75\x65\x75\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x44\x65\x66\x61\x75\x6C\x74\x20\x54\x65\x61\x6D","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x73\x65\x72\x76\x65\x72\x20\x69\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x61\x69\x6C\x20\x73\x65\x72\x76\x65\x72\x20\x6F\x75\x74","\x73\x6D\x74\x70\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x70\x68\x6F\x6B\x75\x63\x6C\x6F\x6B\x61","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x69\x6D\x61\x70\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x49\x4E\x42\x4F\x58","\x55\x4E\x53\x45\x45\x4E","\x49\x4D\x41\x50","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x78\x43\x61\x6C\x6C\x79\x20\x44\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74","\x73\x65\x74\x54\x72\x75\x6E\x6B","\x47\x6F\x74\x6F","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78\x2C\x73\x2C\x31","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x31","\x71\x75\x65\x75\x65","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x32","\x46\x41\x31\x20\x44\x65\x73\x63","\x46\x41\x31","\x78\x43\x41\x4C\x4C\x59","\x39\x36\x30\x30","\x31\x34\x34\x30\x30","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x66\x61\x78\x20\x6F\x75\x74\x62\x6F\x75\x6E\x64\x20\x76\x6F\x69\x63\x65\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x73","\x4E\x6F\x4F\x70","\x46\x61\x78\x20\x55\x55\x49\x44\x3A\x20\x24\x7B\x46\x41\x58\x55\x55\x49\x44\x7D","\x55\x73\x65\x72\x45\x76\x65\x6E\x74","\x46\x61\x78\x2C\x75\x75\x69\x64\x3A\x20\x24\x7B\x46\x41\x58\x55\x55\x49\x44\x7D","\x53\x65\x74","\x46\x41\x58\x4F\x50\x54\x28\x66\x69\x6C\x65\x6E\x61\x6D\x65\x29\x3A\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x3A\x24\x7B\x45\x43\x4D\x7D","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x3A\x24\x7B\x46\x41\x58\x48\x45\x41\x44\x45\x52\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x3A\x24\x7B\x4C\x4F\x43\x41\x4C\x49\x44\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x3A\x24\x7B\x4D\x41\x58\x52\x41\x54\x45\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x3A\x24\x7B\x4D\x49\x4E\x52\x41\x54\x45\x7D","\x53\x65\x6E\x64\x46\x41\x58","\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D\x2C\x64","\x45\x52\x52\x4F\x52\x20\x22\x24\x7B\x54\x49\x4D\x45\x53\x54\x41\x4D\x50\x7D\x22\x20\x22\x4E\x4F\x5F\x53\x54\x41\x54\x55\x53\x22\x20\x22\x4E\x4F\x5F\x50\x41\x47\x45\x53\x22","\x68","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x7D","\x46\x61\x78\x53\x74\x61\x74\x75\x73\x20\x3A\x20\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x7D","\x46\x61\x78\x53\x74\x61\x74\x75\x73\x53\x74\x72\x69\x6E\x67\x20\x3A\x20\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x53\x54\x52\x49\x4E\x47\x7D","\x46\x61\x78\x45\x72\x72\x6F\x72\x20\x3A\x20\x24\x7B\x46\x41\x58\x45\x52\x52\x4F\x52\x7D","\x52\x65\x6D\x6F\x74\x65\x53\x74\x61\x74\x69\x6F\x6E\x49\x44\x20\x3A\x20\x24\x7B\x52\x45\x4D\x4F\x54\x45\x53\x54\x41\x54\x49\x4F\x4E\x49\x44\x7D","\x46\x61\x78\x50\x61\x67\x65\x73\x20\x3A\x20\x24\x7B\x46\x41\x58\x50\x41\x47\x45\x53\x7D","\x46\x61\x78\x42\x69\x74\x52\x61\x74\x65\x20\x3A\x20\x24\x7B\x46\x41\x58\x42\x49\x54\x52\x41\x54\x45\x7D","\x46\x61\x78\x52\x65\x73\x6F\x6C\x75\x74\x69\x6F\x6E\x20\x3A\x20\x24\x7B\x46\x41\x58\x52\x45\x53\x4F\x4C\x55\x54\x49\x4F\x4E\x7D","\x4F\x4B\x20\x22\x24\x7B\x54\x49\x4D\x45\x53\x54\x41\x4D\x50\x7D\x22\x20\x22\x24\x7B\x46\x41\x58\x53\x54\x41\x54\x55\x53\x53\x54\x52\x49\x4E\x47\x7D\x22\x20\x22\x24\x7B\x46\x41\x58\x50\x41\x47\x45\x53\x7D\x22","\x2A\x2A\x2A\x2A\x20\x46\x41\x58\x20\x52\x45\x43\x45\x49\x56\x45\x44\x20\x66\x72\x6F\x6D\x20\x24\x7B\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x6E\x75\x6D\x29\x7D\x20\x24\x7B\x53\x54\x52\x46\x54\x49\x4D\x45\x28\x24\x7B\x45\x50\x4F\x43\x48\x7D\x2C\x2C\x25\x63\x29\x7D\x20\x2A\x2A\x2A\x2A","\x46\x41\x58\x4F\x50\x54\x28\x65\x63\x6D\x29\x3A\x79\x65\x73","\x46\x49\x4C\x45\x4E\x41\x4D\x45\x3A\x24\x7B\x55\x4E\x49\x51\x55\x45\x49\x44\x7D","\x46\x41\x58\x46\x49\x4C\x45\x3A\x24\x7B\x46\x49\x4C\x45\x4E\x41\x4D\x45\x7D\x2E\x74\x69\x66","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x3A\x52\x65\x63\x65\x69\x76\x65\x64\x20\x62\x79\x20\x58\x65\x6E\x69\x61\x4C\x41\x42\x20\x24\x7B\x53\x54\x52\x46\x54\x49\x4D\x45\x28\x24\x7B\x45\x50\x4F\x43\x48\x7D\x2C\x2C\x25\x59\x2D\x25\x6D\x2D\x25\x64\x20\x25\x48\x3A\x25\x4D\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6D\x61\x78\x72\x61\x74\x65\x29\x7D","\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x20\x3A\x20\x24\x7B\x46\x41\x58\x4F\x50\x54\x28\x6D\x69\x6E\x72\x61\x74\x65\x29\x7D","\x2A\x2A\x2A\x2A\x20\x52\x45\x43\x45\x49\x56\x49\x4E\x47\x20\x46\x41\x58\x20\x3A\x20\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D\x20\x2A\x2A\x2A\x2A","\x52\x65\x63\x65\x69\x76\x65\x46\x61\x78","\x2F\x74\x6D\x70\x2F\x24\x7B\x46\x41\x58\x46\x49\x4C\x45\x7D","\x48\x61\x6E\x67\x75\x70","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x73\x71\x75\x61\x72\x65\x20\x70\x72\x6F\x6A\x65\x63\x74\x73","\x70\x72\x6F\x6A\x65\x63\x74\x31","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x70\x72\x6F\x6A\x65\x63\x74","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x68\x61\x74\x20\x77\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x78\x43\x61\x6C\x6C\x79\x20\x53\x68\x6F\x70","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D\x2F\x73\x68\x6F\x70\x2F","\x23\x66\x35\x31\x31\x31\x31","\x68\x74\x74\x70\x3A\x2F\x2F\x31\x38\x35\x2E\x34\x33\x2E\x32\x31\x30\x2E\x35\x37\x3A\x39\x30\x30\x30","\x73\x71\x75\x61\x72\x65\x64","\x57\x65\x20\x61\x72\x65\x20\x68\x65\x72\x65\x21","\x51\x75\x65\x73\x74\x69\x6F\x6E\x73\x3F\x20\x49\x6E\x73\x65\x72\x74\x20\x79\x6F\x75\x72\x20\x6E\x61\x6D\x65\x20\x61\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x20\x74\x6F\x20\x73\x74\x61\x72\x74\x20\x61\x20\x6C\x69\x76\x65\x2D\x63\x68\x61\x74\x20\x77\x69\x74\x68\x20\x6F\x75\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x74\x65\x61\x6D\x2E","\x59\x6F\x75\x72\x20\x6E\x61\x6D\x65","\x59\x6F\x75\x72\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73","\x43\x68\x61\x74","\x43\x6F\x6E\x74\x61\x63\x74\x20\x75\x73","\x27\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x57\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x6F\x6E\x6C\x69\x6E\x65\x2E\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x6D\x65\x61\x6E\x20\x77\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x74\x68\x65\x72\x65\x20\x74\x6F\x20\x68\x65\x6C\x70\x20\x2D\x20\x6C\x65\x61\x76\x65\x20\x79\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x62\x65\x6C\x6F\x77\x20\x61\x6E\x64\x20\x77\x65\x27\x6C\x6C\x20\x62\x65\x20\x69\x6E\x20\x74\x6F\x75\x63\x68\x20\x61\x73\x20\x73\x6F\x6F\x6E\x20\x61\x73\x20\x70\x6F\x73\x73\x69\x62\x6C\x65\x2E\x27","\x59\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x2E\x2E\x2E","\x4C\x65\x61\x76\x65\x20\x6D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x76\x61\x72\x69\x61\x62\x6C\x65\x31","\x56\x61\x72\x69\x61\x62\x6C\x65","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x44\x65\x66\x61\x75\x6C\x74\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x28\x44\x4F\x20\x4E\x4F\x54\x20\x44\x45\x4C\x45\x54\x45\x29","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x6D\x6F\x68\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x64\x65\x66\x61\x75\x6C\x74","\x66\x69\x6C\x65\x73","\x76\x61\x72\x2F\x6C\x69\x62\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x6D\x6F\x68","\x61\x6C\x70\x68\x61","\x77\x61\x76","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x30\x30\x2D\x35\x30\x2D\x46\x43\x2D\x41\x30\x2D\x36\x37\x2D\x32\x43","\x32\x35\x35\x2E\x32\x35\x35\x2E\x32\x35\x35\x2E\x30","\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31","\x53\x65\x74\x74\x69\x6E\x67\x73","\x4D\x6F\x74\x69\x6F\x6E\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x63\x6F\x6C\x2D\x6D\x64\x2D\x34","\x63\x6C\x6F\x63\x6B","\x43\x6C\x6F\x63\x6B","\x68\x68\x3A\x6D\x6D\x3A\x73\x73\x20\x61","\x64\x64\x64\x64\x2C\x20\x4D\x4D\x4D\x4D\x20\x44\x6F\x20\x59\x59\x59\x59","\x63\x6F\x6C\x2D\x6D\x64\x2D\x38","\x69\x66\x72\x61\x6D\x65","\x49\x66\x72\x61\x6D\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x64\x65\x6D\x6F\x2E\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D\x2F\x73\x68\x6F\x70\x2F","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x46\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x5A\x65\x6E\x64\x65\x73\x6B","\x31\x2E\x30\x2E\x30","\x58\x65\x6E\x69\x61\x4C\x41\x42\x20\x73\x2E\x72\x2E\x6C\x2E","\x61\x73\x73\x65\x74\x73\x2F\x69\x6D\x61\x67\x65\x73\x2F\x6D\x65\x64\x69\x61\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x32\x2E\x70\x6E\x67","\x7A\x65\x6E\x64\x65\x73\x6B","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x5A\x65\x6E\x64\x65\x73\x6B","\x44\x65\x73\x6B\x2E\x63\x6F\x6D","\x61\x73\x73\x65\x74\x73\x2F\x69\x6D\x61\x67\x65\x73\x2F\x6D\x65\x64\x69\x61\x2F\x64\x65\x73\x6B\x32\x2E\x70\x6E\x67","\x64\x65\x73\x6B","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x44\x65\x73\x6B\x2E\x63\x6F\x6D","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x61\x73\x73\x65\x74\x73\x2F\x69\x6D\x61\x67\x65\x73\x2F\x6D\x65\x64\x69\x61\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x32\x2E\x70\x6E\x67","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x46\x72\x65\x73\x68\x64\x65\x73\x6B","\x61\x73\x73\x65\x74\x73\x2F\x69\x6D\x61\x67\x65\x73\x2F\x6D\x65\x64\x69\x61\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2E\x70\x6E\x67","\x66\x72\x65\x73\x68\x64\x65\x73\x6B","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x46\x72\x65\x73\x68\x64\x65\x73\x6B","\x53\x75\x67\x61\x72\x43\x52\x4D","\x61\x73\x73\x65\x74\x73\x2F\x69\x6D\x61\x67\x65\x73\x2F\x6D\x65\x64\x69\x61\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x32\x2E\x70\x6E\x67","\x73\x75\x67\x61\x72\x63\x72\x6D","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x20\x66\x6F\x72\x20\x53\x75\x67\x61\x72\x43\x52\x4D","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x5B\x7B\x22\x69\x64\x22\x3A\x22\x31\x22\x2C\x22\x70\x61\x72\x65\x6E\x74\x22\x3A\x22\x23\x22\x2C\x22\x74\x65\x78\x74\x22\x3A\x22\x4D\x6F\x74\x69\x6F\x6E\x20\x52\x65\x70\x6F\x72\x74\x73\x22\x2C\x22\x69\x63\x6F\x6E\x22\x3A\x22\x69\x63\x6F\x6E\x2D\x72\x6F\x63\x6B\x65\x74\x22\x2C\x22\x73\x74\x61\x74\x65\x22\x3A\x7B\x22\x73\x65\x6C\x65\x63\x74\x65\x64\x22\x3A\x74\x72\x75\x65\x2C\x22\x6F\x70\x65\x6E\x65\x64\x22\x3A\x74\x72\x75\x65\x7D\x7D\x2C\x7B\x22\x69\x64\x22\x3A\x22\x32\x22\x2C\x22\x70\x61\x72\x65\x6E\x74\x22\x3A\x22\x31\x22\x2C\x22\x74\x65\x78\x74\x22\x3A\x22\x42\x61\x73\x69\x63\x20\x4E\x6F\x64\x65\x22\x2C\x22\x73\x74\x61\x74\x65\x22\x3A\x7B\x22\x73\x65\x6C\x65\x63\x74\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x2C\x22\x6F\x70\x65\x6E\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x7D\x7D\x5D","\x5B\x7B\x22\x69\x64\x22\x3A\x22\x31\x22\x2C\x22\x74\x65\x78\x74\x22\x3A\x22\x43\x75\x73\x74\x6F\x6D\x20\x52\x65\x70\x6F\x72\x74\x73\x22\x2C\x22\x69\x63\x6F\x6E\x22\x3A\x22\x69\x63\x6F\x6E\x2D\x62\x6F\x6F\x6B\x2D\x6F\x70\x65\x6E\x22\x2C\x22\x6C\x69\x5F\x61\x74\x74\x72\x22\x3A\x7B\x22\x69\x64\x22\x3A\x22\x31\x22\x7D\x2C\x22\x61\x5F\x61\x74\x74\x72\x22\x3A\x7B\x22\x68\x72\x65\x66\x22\x3A\x22\x23\x22\x2C\x22\x69\x64\x22\x3A\x22\x31\x5F\x61\x6E\x63\x68\x6F\x72\x22\x7D\x2C\x22\x73\x74\x61\x74\x65\x22\x3A\x7B\x22\x6C\x6F\x61\x64\x65\x64\x22\x3A\x74\x72\x75\x65\x2C\x22\x6F\x70\x65\x6E\x65\x64\x22\x3A\x74\x72\x75\x65\x2C\x22\x73\x65\x6C\x65\x63\x74\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x2C\x22\x64\x69\x73\x61\x62\x6C\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x7D\x2C\x22\x64\x61\x74\x61\x22\x3A\x7B\x7D\x2C\x22\x70\x61\x72\x65\x6E\x74\x22\x3A\x22\x23\x22\x7D\x2C\x7B\x22\x69\x64\x22\x3A\x22\x32\x22\x2C\x22\x74\x65\x78\x74\x22\x3A\x22\x42\x61\x73\x69\x63\x20\x4E\x6F\x64\x65\x22\x2C\x22\x69\x63\x6F\x6E\x22\x3A\x74\x72\x75\x65\x2C\x22\x6C\x69\x5F\x61\x74\x74\x72\x22\x3A\x7B\x22\x69\x64\x22\x3A\x22\x32\x22\x7D\x2C\x22\x61\x5F\x61\x74\x74\x72\x22\x3A\x7B\x22\x68\x72\x65\x66\x22\x3A\x22\x23\x22\x2C\x22\x69\x64\x22\x3A\x22\x32\x5F\x61\x6E\x63\x68\x6F\x72\x22\x7D\x2C\x22\x73\x74\x61\x74\x65\x22\x3A\x7B\x22\x6C\x6F\x61\x64\x65\x64\x22\x3A\x74\x72\x75\x65\x2C\x22\x6F\x70\x65\x6E\x65\x64\x22\x3A\x74\x72\x75\x65\x2C\x22\x73\x65\x6C\x65\x63\x74\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x2C\x22\x64\x69\x73\x61\x62\x6C\x65\x64\x22\x3A\x66\x61\x6C\x73\x65\x7D\x2C\x22\x64\x61\x74\x61\x22\x3A\x7B\x7D\x2C\x22\x70\x61\x72\x65\x6E\x74\x22\x3A\x22\x31\x22\x7D\x5D","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65"];_0xb9c7[0];var _=require(_0xb9c7[1]);var models=require(_0xb9c7[2]);models[_0xb9c7[69]][_0xb9c7[68]]([{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[8],email:_0xb9c7[9],name:_0xb9c7[10],password:_0xb9c7[11],defaultuser:_0xb9c7[10],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1000},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[20],email:_0xb9c7[21],name:_0xb9c7[22],password:_0xb9c7[11],defaultuser:_0xb9c7[22],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1001},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[23],email:_0xb9c7[24],name:_0xb9c7[25],password:_0xb9c7[11],defaultuser:_0xb9c7[25],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1002},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[26],email:_0xb9c7[27],name:_0xb9c7[28],password:_0xb9c7[11],defaultuser:_0xb9c7[28],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1003},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[29],email:_0xb9c7[30],name:_0xb9c7[31],password:_0xb9c7[11],defaultuser:_0xb9c7[31],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1004},{provider:_0xb9c7[6],role:_0xb9c7[32],fullname:_0xb9c7[33],email:_0xb9c7[34],name:_0xb9c7[35],password:_0xb9c7[35],defaultuser:_0xb9c7[35],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1005},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[36],email:_0xb9c7[37],name:_0xb9c7[38],password:_0xb9c7[11],defaultuser:_0xb9c7[38],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1006},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[39],email:_0xb9c7[40],name:_0xb9c7[41],password:_0xb9c7[35],defaultuser:_0xb9c7[41],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1007},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[42],email:_0xb9c7[43],name:_0xb9c7[44],password:_0xb9c7[35],defaultuser:_0xb9c7[44],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1008},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[45],email:_0xb9c7[46],name:_0xb9c7[47],password:_0xb9c7[11],defaultuser:_0xb9c7[47],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1009},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[48],email:_0xb9c7[49],name:_0xb9c7[50],password:_0xb9c7[11],defaultuser:_0xb9c7[50],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[51],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1010},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[52],email:_0xb9c7[53],name:_0xb9c7[54],password:_0xb9c7[11],defaultuser:_0xb9c7[54],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[51],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1011},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[55],email:_0xb9c7[56],name:_0xb9c7[57],password:_0xb9c7[11],defaultuser:_0xb9c7[57],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[51],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1012},{provider:_0xb9c7[6],role:_0xb9c7[32],fullname:_0xb9c7[58],email:_0xb9c7[59],name:_0xb9c7[60],password:_0xb9c7[61],defaultuser:_0xb9c7[60],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1013},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[62],email:_0xb9c7[63],name:_0xb9c7[64],password:_0xb9c7[11],defaultuser:_0xb9c7[64],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1014},{provider:_0xb9c7[6],role:_0xb9c7[7],fullname:_0xb9c7[65],email:_0xb9c7[66],name:_0xb9c7[67],password:_0xb9c7[11],defaultuser:_0xb9c7[67],host:_0xb9c7[12],type:_0xb9c7[13],transport:_0xb9c7[14],allow:_0xb9c7[15],qualify:_0xb9c7[16],nat:_0xb9c7[17],disallow:_0xb9c7[18],context:_0xb9c7[19],internal:1015}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[3])});models[_0xb9c7[83]][_0xb9c7[68]]([{name:_0xb9c7[71],type:_0xb9c7[72],insecure:_0xb9c7[73],defaultuser:_0xb9c7[74],secret:_0xb9c7[75],password:_0xb9c7[75],context:_0xb9c7[76],language:_0xb9c7[77],host:_0xb9c7[78],fromdomain:_0xb9c7[78],dtmfmode:_0xb9c7[79],qualify:_0xb9c7[16],nat:_0xb9c7[17],callerid:_0xb9c7[80],limitonpeers:_0xb9c7[16],callcounter:_0xb9c7[16],disallow:_0xb9c7[18],allow:_0xb9c7[81],canreinvite:_0xb9c7[82],directmedia:_0xb9c7[82]}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[70])});models[_0xb9c7[113]][_0xb9c7[68]]([{name:_0xb9c7[85],title:_0xb9c7[86]},{name:_0xb9c7[87],title:_0xb9c7[88]},{name:_0xb9c7[89],title:_0xb9c7[90]},{name:_0xb9c7[91],title:_0xb9c7[92]},{name:_0xb9c7[93],title:_0xb9c7[94]},{name:_0xb9c7[95],title:_0xb9c7[96]},{name:_0xb9c7[97],title:_0xb9c7[98]},{name:_0xb9c7[99],title:_0xb9c7[100]},{name:_0xb9c7[101],title:_0xb9c7[102]},{name:_0xb9c7[103],title:_0xb9c7[104]},{name:_0xb9c7[105],title:_0xb9c7[106]},{name:_0xb9c7[107],title:_0xb9c7[108]},{name:_0xb9c7[109],title:_0xb9c7[110]},{name:_0xb9c7[111],title:_0xb9c7[112]}],{ignoreDuplicates:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[84])});models[_0xb9c7[121]][_0xb9c7[125]]({name:_0xb9c7[119],description:_0xb9c7[138],defaultEntry:true})[_0xb9c7[5]](function(_0x46aax4){models[_0xb9c7[69]][_0xb9c7[137]]({where:{role:_0xb9c7[7]}})[_0xb9c7[5]](function(_0x46aax5){_0x46aax4[_0xb9c7[118]](_[_0xb9c7[117]](_0x46aax5,_0xb9c7[116]))[_0xb9c7[5]](function(){models[_0xb9c7[126]][_0xb9c7[125]]({name:_0xb9c7[122],description:_0xb9c7[123],timeout:5,strategy:_0xb9c7[124]})[_0xb9c7[5]](function(_0x46aax6){console[_0xb9c7[4]](_0xb9c7[115]);models[_0xb9c7[121]][_0xb9c7[120]]({where:{name:_0xb9c7[119]},include:[{all:true}]})[_0xb9c7[5]](function(_0x46aax4){_0x46aax6[_0xb9c7[118]](_[_0xb9c7[117]](_0x46aax4.Users,_0xb9c7[116]))[_0xb9c7[114]](function(_0x46aax3){})})[_0xb9c7[114]](function(_0x46aax3){});});models[_0xb9c7[132]][_0xb9c7[125]]({name:_0xb9c7[130],description:_0xb9c7[131],timeout:5,strategy:_0xb9c7[124]})[_0xb9c7[5]](function(_0x46aax7){console[_0xb9c7[4]](_0xb9c7[127]);models[_0xb9c7[121]][_0xb9c7[120]]({where:{name:_0xb9c7[119]},include:[{all:true}]})[_0xb9c7[5]](function(_0x46aax4){if(_0x46aax4){console[_0xb9c7[4]](_0xb9c7[128])}else {console[_0xb9c7[4]](_0xb9c7[129])};_0x46aax7[_0xb9c7[118]](_[_0xb9c7[117]](_0x46aax4.Users,_0xb9c7[116]))[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});});models[_0xb9c7[136]][_0xb9c7[125]]({name:_0xb9c7[134],description:_0xb9c7[135],timeout:5,strategy:_0xb9c7[124]})[_0xb9c7[5]](function(_0x46aax8){console[_0xb9c7[4]](_0xb9c7[133]);models[_0xb9c7[121]][_0xb9c7[120]]({where:{name:_0xb9c7[119]},include:[{all:true}]})[_0xb9c7[5]](function(_0x46aax4){_0x46aax8[_0xb9c7[118]](_[_0xb9c7[117]](_0x46aax4.Users,_0xb9c7[116]))[_0xb9c7[114]](function(_0x46aax3){})})[_0xb9c7[114]](function(_0x46aax3){});});})[_0xb9c7[114]](function(_0x46aax3){})})[_0xb9c7[114]](function(_0x46aax3){})})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[152]][_0xb9c7[125]]({name:_0xb9c7[151],description:_0xb9c7[151],address:_0xb9c7[143]})[_0xb9c7[5]](function(_0x46aax9){console[_0xb9c7[4]](_0xb9c7[139]);models[_0xb9c7[150]][_0xb9c7[125]]({description:_0xb9c7[60],host:_0xb9c7[146],username:_0xb9c7[143],password:_0xb9c7[144],port:143,mailbox:_0xb9c7[147],ssl:false,delete:false,filter:_0xb9c7[148],protocol:_0xb9c7[149],MailAccountId:_0x46aax9[_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[140]);models[_0xb9c7[145]][_0xb9c7[125]]({description:_0xb9c7[60],host:_0xb9c7[142],username:_0xb9c7[143],password:_0xb9c7[144],port:587,ssl:false,MailAccountId:_0x46aax9[_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[141])})[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});});models[_0xb9c7[168]][_0xb9c7[125]]({description:_0xb9c7[163],name:_0xb9c7[164],phone:_0xb9c7[74],ecm:true,faxheader:_0xb9c7[165],localid:_0xb9c7[74],maxrate:_0xb9c7[166],minrate:_0xb9c7[167]})[_0xb9c7[5]](function(_0x46aaxa){console[_0xb9c7[4]](_0xb9c7[153]);models[_0xb9c7[83]][_0xb9c7[120]]({where:{name:_0xb9c7[71]}})[_0xb9c7[5]](function(_0x46aaxb){_0x46aaxa[_0xb9c7[154]](_0x46aaxb)[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[158]][_0xb9c7[125]]({context:_0xb9c7[76],exten:_0xb9c7[74],priority:1,app:_0xb9c7[155],appdata:_0xb9c7[156],type:_0xb9c7[157],TrunkId:_0x46aaxb[_0xb9c7[116]]});})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[136]][_0xb9c7[137]]()[_0xb9c7[5]](function(_0x46aaxc){models[_0xb9c7[161]][_0xb9c7[125]]({app:_0xb9c7[160],appdata:_0x46aaxc[0][_0xb9c7[116]],priority:1,timeout:30,FaxAccountId:_0x46aaxa[_0xb9c7[116]],FaxQueueId:_0x46aaxc[0][_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[159])})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[161]][_0xb9c7[125]]({app:_0xb9c7[160],appdata:_0x46aaxc[1][_0xb9c7[116]],priority:2,timeout:30,FaxAccountId:_0x46aaxa[_0xb9c7[116]],FaxQueueId:_0x46aaxc[1][_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[162])})[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[158]][_0xb9c7[68]]([{context:_0xb9c7[170],exten:_0xb9c7[171],priority:1,app:_0xb9c7[172],appdata:_0xb9c7[173],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:2,app:_0xb9c7[174],appdata:_0xb9c7[175],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:3,app:_0xb9c7[176],appdata:_0xb9c7[177],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:4,app:_0xb9c7[176],appdata:_0xb9c7[178],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:5,app:_0xb9c7[176],appdata:_0xb9c7[179],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:6,app:_0xb9c7[176],appdata:_0xb9c7[180],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:7,app:_0xb9c7[176],appdata:_0xb9c7[181],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:8,app:_0xb9c7[176],appdata:_0xb9c7[182],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:9,app:_0xb9c7[183],appdata:_0xb9c7[184],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[171],priority:10,app:_0xb9c7[172],appdata:_0xb9c7[185],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:1,app:_0xb9c7[172],appdata:_0xb9c7[187],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:2,app:_0xb9c7[172],appdata:_0xb9c7[188],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:3,app:_0xb9c7[172],appdata:_0xb9c7[189],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:4,app:_0xb9c7[172],appdata:_0xb9c7[190],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:5,app:_0xb9c7[172],appdata:_0xb9c7[191],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:6,app:_0xb9c7[172],appdata:_0xb9c7[192],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:7,app:_0xb9c7[172],appdata:_0xb9c7[193],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:8,app:_0xb9c7[172],appdata:_0xb9c7[194],type:_0xb9c7[170]},{context:_0xb9c7[170],exten:_0xb9c7[186],priority:9,app:_0xb9c7[172],appdata:_0xb9c7[195],type:_0xb9c7[170]}],{ignoreDuplicates:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[169])});models[_0xb9c7[158]][_0xb9c7[68]]([{context:_0xb9c7[157],exten:_0xb9c7[171],priority:1,app:_0xb9c7[172],appdata:_0xb9c7[196],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:2,app:_0xb9c7[176],appdata:_0xb9c7[197],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:3,app:_0xb9c7[176],appdata:_0xb9c7[198],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:4,app:_0xb9c7[176],appdata:_0xb9c7[199],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:5,app:_0xb9c7[176],appdata:_0xb9c7[200],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:6,app:_0xb9c7[176],appdata:_0xb9c7[180],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:7,app:_0xb9c7[176],appdata:_0xb9c7[181],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:8,app:_0xb9c7[176],appdata:_0xb9c7[182],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:9,app:_0xb9c7[172],appdata:_0xb9c7[187],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:10,app:_0xb9c7[172],appdata:_0xb9c7[201],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:11,app:_0xb9c7[172],appdata:_0xb9c7[202],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:12,app:_0xb9c7[172],appdata:_0xb9c7[203],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:13,app:_0xb9c7[172],appdata:_0xb9c7[204],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:14,app:_0xb9c7[172],appdata:_0xb9c7[205],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:15,app:_0xb9c7[206],appdata:_0xb9c7[207],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[171],priority:16,app:_0xb9c7[208],type:_0xb9c7[157]},{context:_0xb9c7[157],exten:_0xb9c7[186],priority:1,app:_0xb9c7[172],appdata:_0xb9c7[187],type:_0xb9c7[157]}],{ignoreDuplicates:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[169])});models[_0xb9c7[212]][_0xb9c7[68]]([{name:_0xb9c7[210],description:_0xb9c7[211]}],{ignoreDuplicates:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[209])});models[_0xb9c7[229]][_0xb9c7[125]]({name:_0xb9c7[215],description:_0xb9c7[215],address:_0xb9c7[216],color:_0xb9c7[217],color_focus:_0xb9c7[217],color_button:_0xb9c7[217],remote:_0xb9c7[218],animation:true,header_shape:_0xb9c7[219],header_online:_0xb9c7[220],online_message:_0xb9c7[221],username_placeholder:_0xb9c7[222],email_placeholder:_0xb9c7[223],start_chat_button:_0xb9c7[224],header_offline:_0xb9c7[225],offline_message:_0xb9c7[226],enquiry_message_placeholder:_0xb9c7[227],enquiry_button:_0xb9c7[228],download_transcript:true})[_0xb9c7[5]](function(_0x46aaxd){console[_0xb9c7[4]](_0xb9c7[213]);models[_0xb9c7[126]][_0xb9c7[137]]()[_0xb9c7[5]](function(_0x46aaxe){models[_0xb9c7[214]][_0xb9c7[125]]({app:_0xb9c7[160],appdata:_0x46aaxe[0][_0xb9c7[116]],priority:1,timeout:30,ChatWebsiteId:_0x46aaxd[_0xb9c7[116]],ChatQueueId:_0x46aaxe[0][_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[159])})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[214]][_0xb9c7[125]]({app:_0xb9c7[160],appdata:_0x46aaxe[1][_0xb9c7[116]],priority:2,timeout:30,ChatWebsiteId:_0x46aaxd[_0xb9c7[116]],ChatQueueId:_0x46aaxe[1][_0xb9c7[116]]})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[162])})[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});})[_0xb9c7[114]](function(_0x46aax3){});models[_0xb9c7[232]][_0xb9c7[68]]([{name:_0xb9c7[231],description:_0xb9c7[211]}],{ignoreDuplicates:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[230])});models[_0xb9c7[235]][_0xb9c7[68]]([{name:_0xb9c7[19],description:_0xb9c7[234],defaultEntry:true},{name:_0xb9c7[76],description:_0xb9c7[234],defaultEntry:true},{name:_0xb9c7[157],description:_0xb9c7[234],defaultEntry:true},{name:_0xb9c7[170],description:_0xb9c7[234],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[233])});models[_0xb9c7[242]][_0xb9c7[68]]([{name:_0xb9c7[237],mode:_0xb9c7[238],directory:_0xb9c7[239],sort:_0xb9c7[240],format:_0xb9c7[241],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[236])});models[_0xb9c7[246]][_0xb9c7[68]]([{mac:_0xb9c7[243],netmask:_0xb9c7[244],address:_0xb9c7[245],min_internal:1000}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[236])});models[_0xb9c7[258]][_0xb9c7[68]]([{name:_0xb9c7[247],model:JSON[_0xb9c7[257]]({title:_0xb9c7[247],rows:[{columns:[{styleClass:_0xb9c7[248],widgets:[{type:_0xb9c7[249],title:_0xb9c7[250],config:{timePattern:_0xb9c7[251],datePattern:_0xb9c7[252]}}]},{styleClass:_0xb9c7[253],widgets:[{type:_0xb9c7[254],title:_0xb9c7[255],config:{url:_0xb9c7[256]}}]}]}]}),defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[236])});models[_0xb9c7[282]][_0xb9c7[68]]([{name:_0xb9c7[260],version:_0xb9c7[261],active:false,author:_0xb9c7[262],logo:_0xb9c7[263],state:_0xb9c7[264],description:_0xb9c7[265]},{name:_0xb9c7[266],version:_0xb9c7[261],active:false,author:_0xb9c7[262],logo:_0xb9c7[267],state:_0xb9c7[268],description:_0xb9c7[269]},{name:_0xb9c7[270],version:_0xb9c7[261],active:false,author:_0xb9c7[262],logo:_0xb9c7[271],state:_0xb9c7[272],description:_0xb9c7[273]},{name:_0xb9c7[274],version:_0xb9c7[261],active:false,author:_0xb9c7[262],logo:_0xb9c7[275],state:_0xb9c7[276],description:_0xb9c7[277]},{name:_0xb9c7[278],version:_0xb9c7[261],active:false,author:_0xb9c7[262],logo:_0xb9c7[279],state:_0xb9c7[280],description:_0xb9c7[281]}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[259])});models[_0xb9c7[285]][_0xb9c7[68]]([{id:1,tree:_0xb9c7[283]},{id:2,tree:_0xb9c7[284]}],{ignoreDuplicates:true,individualHooks:true})[_0xb9c7[5]](function(){console[_0xb9c7[4]](_0xb9c7[259])});
\ No newline at end of file
-var _0x30d9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65","\x2E\x2F\x73\x6D\x74\x70","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x30d9[0];var _=require(_0x30d9[1]);var MailServerOut=require(_0x30d9[3])[_0x30d9[2]];module[_0x30d9[4]]={init:function(){MailServerOut[_0x30d9[7]](function(_0x98dcx3){require(_0x30d9[6])[_0x30d9[5]](_0x98dcx3)});return MailServerOut[_0x30d9[12]]()[_0x30d9[11]](function(_0x98dcx5){_0x98dcx5[_0x30d9[10]](function(_0x98dcx6){require(_0x30d9[6])[_0x30d9[5]](_0x98dcx6)})})[_0x30d9[9]](function(_0x98dcx4){console[_0x30d9[8]](_0x98dcx4)});}};
\ No newline at end of file
+var _0x9b25=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x63\x72\x65\x61\x74\x65","\x2E\x2F\x73\x6D\x74\x70","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x9b25[0];var _=require(_0x9b25[1]);var MailServerOut=require(_0x9b25[3])[_0x9b25[2]];module[_0x9b25[4]]={init:function(){MailServerOut[_0x9b25[7]](function(_0xae3cx3){require(_0x9b25[6])[_0x9b25[5]](_0xae3cx3)});return MailServerOut[_0x9b25[12]]()[_0x9b25[11]](function(_0xae3cx5){_0xae3cx5[_0x9b25[10]](function(_0xae3cx6){require(_0x9b25[6])[_0x9b25[5]](_0xae3cx6)})})[_0x9b25[9]](function(_0xae3cx4){console[_0x9b25[8]](_0xae3cx4)});}};
\ No newline at end of file
-var _0x9216=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x20\x53\x4D\x54\x50\x20\x43\x52\x45\x41\x54\x45","\x6C\x6F\x67","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x6F\x72\x74","\x75\x73\x65\x72","\x61\x75\x74\x68","\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x65\x72","\x20\x53\x4D\x54\x50\x20\x55\x50\x44\x41\x54\x45","\x5B\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x20\x53\x4D\x54\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x53\x45\x4E\x44\x49\x4E\x47","\x66\x72\x6F\x6D","\x6F\x6E\x53\x65\x6E\x64","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x53\x45\x4E\x54","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x74\x6F","\x63\x63","\x73\x75\x62\x6A\x65\x63\x74","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x70\x61\x74\x68","\x6D\x61\x70","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x73\x65\x74\x42\x63\x63","\x73\x65\x74\x43\x63","\x73\x65\x74\x54\x6F","\x73\x65\x74\x46\x72\x6F\x6D","\x61\x6C\x6C","\x62\x63\x63","\x3B","\x73\x70\x6C\x69\x74","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x69\x6E\x64\x4F\x6E\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x4F\x50\x45\x4E","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65"];_0x9216[0];var _=require(_0x9216[1]);var nodemailer=require(_0x9216[2]);var smtpTransport=require(_0x9216[3]);var Contact=require(_0x9216[5])[_0x9216[4]];var MailRoom=require(_0x9216[5])[_0x9216[6]];var MailMessage=require(_0x9216[5])[_0x9216[7]];var ContactEmail=require(_0x9216[5])[_0x9216[8]];var MailServerOut=require(_0x9216[5])[_0x9216[9]];module[_0x9216[10]]={create:function(_0xe497x9){var _0xe497xa;var _0xe497xb;function _0xe497xc(_0xe497x9){console[_0x9216[14]](_0x9216[11]+_0xe497x9[_0x9216[12]]+_0x9216[13]);_0xe497xb=_0xe497x9;_0xe497xa=nodemailer[_0x9216[19]](smtpTransport({host:_0xe497x9[_0x9216[15]],port:_0xe497x9[_0x9216[16]],secure:_0xe497x9[_0x9216[17]],debug:true,auth:{user:_0xe497x9[_0x9216[12]],pass:_0xe497x9[_0x9216[18]]}}));}function _0xe497xd(_0xe497x9){if(_0xe497xa[_0x9216[23]][_0x9216[22]][_0x9216[21]][_0x9216[20]]===_0xe497x9[_0x9216[12]]){console[_0x9216[14]](_0x9216[11]+_0xe497x9[_0x9216[12]]+_0x9216[24]);_0xe497xa=null;_0xe497xa=nodemailer[_0x9216[19]](smtpTransport({host:_0xe497x9[_0x9216[15]],port:_0xe497x9[_0x9216[16]],secure:_0xe497x9[_0x9216[17]],debug:true,auth:{user:_0xe497x9[_0x9216[12]],pass:_0xe497x9[_0x9216[18]]}}));}}function _0xe497xe(_0xe497x9){if(_0xe497xa[_0x9216[23]][_0x9216[22]][_0x9216[21]][_0x9216[20]]===_0xe497x9[_0x9216[12]]){console[_0x9216[14]](_0x9216[25]+_0xe497x9[_0x9216[12]]+_0x9216[26]);_0xe497xa=null;}}function _0xe497xf(_0xe497x10,_0xe497x11){if(_0xe497x10[_0x9216[28]](_0x9216[27])&&_0xe497x10[_0x9216[27]]===_0x9216[29]&&_0xe497xa[_0x9216[23]][_0x9216[22]][_0x9216[21]][_0x9216[20]]===_0xe497x10[_0x9216[30]]){console[_0x9216[14]](_0x9216[31],_0xe497x10[_0x9216[30]]);var _0xe497x12;var _0xe497x13=_0xe497x10;var _0xe497x14,_0xe497x15,_0xe497x16,_0xe497x17;if(_0xe497x13[_0x9216[32]]){return MailMessage[_0x9216[62]]({where:{messageId:_0xe497x13[_0x9216[32]]}})[_0x9216[37]](function(_0xe497x29){return _0xe497x29[_0x9216[61]]()})[_0x9216[37]](function(_0xe497x28){_0xe497x12=_0xe497x28;return _0xe497x28[_0x9216[60]](_0xe497x13,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null});})[_0x9216[37]](function(){return ContactEmail[_0x9216[56]]({where:{email:_0xe497x13[_0x9216[30]]},defaults:{email:_0xe497x13[_0x9216[30]]},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[59]](function(_0xe497x25,_0xe497x26){var _0xe497x20=[];var _0xe497x27=_0xe497x13[_0x9216[38]]?_0xe497x13[_0x9216[38]][_0x9216[55]](_0x9216[54]):[];_0xe497x14=_0xe497x25;_0xe497x27[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x23){var _0xe497x20=[];var _0xe497x24=_0xe497x13[_0x9216[39]]?_0xe497x13[_0x9216[39]][_0x9216[55]](_0x9216[54]):[];_0xe497x15=_[_0x9216[46]](_0xe497x23,function(_0xe497x1a){return _0xe497x1a[0]});_0xe497x24[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x1f){var _0xe497x20=[];var _0xe497x21=_0xe497x13[_0x9216[53]]?_0xe497x13[_0x9216[53]][_0x9216[55]](_0x9216[54]):[];_0xe497x16=_[_0x9216[46]](_0xe497x1f,function(_0xe497x1a){return _0xe497x1a[0]});_0xe497x21[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x1e){_0xe497x17=_[_0x9216[46]](_0xe497x1e,function(_0xe497x1a){return _0xe497x1a[0]});return ;})[_0x9216[37]](function(){return _0xe497x13[_0x9216[51]](_0xe497x14,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[50]](_0xe497x15,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[49]](_0xe497x16,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[48]](_0xe497x17,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){var _0xe497x19={status:_0xe497x13[_0x9216[27]],from:_0xe497x13[_0x9216[30]],to:_0xe497x13[_0x9216[38]],cc:_0xe497x13[_0x9216[39]],subject:_0xe497x13[_0x9216[40]],html:_0xe497x13[_0x9216[41]],text:_0xe497x13[_0x9216[42]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0xe497x13[_0x9216[43]]){_0xe497x19[_0x9216[44]]=_[_0x9216[46]](_0xe497x13.MailAttachments,function(_0xe497x1a){return {path:_0xe497x1a[_0x9216[45]]}})};return new Promise(function(_0xe497x1b,_0xe497x1c){_0xe497xa[_0x9216[47]](_0xe497x19,function(_0xe497x1d,_0xe497x18){if(_0xe497x1d){return _0xe497x1c(_0xe497x1d)}else {_0xe497x1b(_0xe497x18)}})});})[_0x9216[37]](function(_0xe497x18){return _0xe497x13[_0x9216[36]]({messageId:_0xe497x18[_0x9216[33]],status:_0x9216[34]},{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})}else {return MailRoom[_0x9216[56]]({where:{id:_0xe497x13[_0x9216[63]]},defaults:{subject:_0xe497x13[_0x9216[40]],from:_0xe497x13[_0x9216[30]],status:_0x9216[64],MailAccountId:_0xe497xb[_0x9216[65]]},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})[_0x9216[59]](function(_0xe497x28){_0xe497x12=_0xe497x28;return _0xe497x28[_0x9216[60]](_0xe497x13,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null});})[_0x9216[37]](function(){return ContactEmail[_0x9216[56]]({where:{email:_0xe497x13[_0x9216[30]]},defaults:{email:_0xe497x13[_0x9216[30]]},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[59]](function(_0xe497x25){var _0xe497x20=[];var _0xe497x27=_0xe497x13[_0x9216[38]]?_0xe497x13[_0x9216[38]][_0x9216[55]](_0x9216[54]):[];_0xe497x14=_0xe497x25;_0xe497x27[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x23){var _0xe497x20=[];var _0xe497x24=_0xe497x13[_0x9216[39]]?_0xe497x13[_0x9216[39]][_0x9216[55]](_0x9216[54]):[];_0xe497x15=_[_0x9216[46]](_0xe497x23,function(_0xe497x1a){return _0xe497x1a[0]});_0xe497x24[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x1f){var _0xe497x20=[];var _0xe497x21=_0xe497x13[_0x9216[53]]?_0xe497x13[_0x9216[53]][_0x9216[55]](_0x9216[54]):[];_0xe497x16=_[_0x9216[46]](_0xe497x1f,function(_0xe497x1a){return _0xe497x1a[0]});_0xe497x21[_0x9216[58]](function(_0xe497x22){_0xe497x20[_0x9216[57]](ContactEmail[_0x9216[56]]({where:{email:_0xe497x22},defaults:{email:_0xe497x22},transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null}))});return _0xe497x20;})[_0x9216[52]]()[_0x9216[37]](function(_0xe497x1e){_0xe497x17=_[_0x9216[46]](_0xe497x1e,function(_0xe497x1a){return _0xe497x1a[0]});return ;})[_0x9216[37]](function(){return _0xe497x13[_0x9216[51]](_0xe497x14,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[50]](_0xe497x15,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[49]](_0xe497x16,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){return _0xe497x13[_0x9216[48]](_0xe497x17,{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})[_0x9216[37]](function(){var _0xe497x19={status:_0xe497x13[_0x9216[27]],from:_0xe497x13[_0x9216[30]],to:_0xe497x13[_0x9216[38]],cc:_0xe497x13[_0x9216[39]],subject:_0xe497x13[_0x9216[40]],html:_0xe497x13[_0x9216[41]],text:_0xe497x13[_0x9216[42]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0xe497x13[_0x9216[43]]){_0xe497x19[_0x9216[44]]=_[_0x9216[46]](_0xe497x13.MailAttachments,function(_0xe497x1a){return {path:_0xe497x1a[_0x9216[45]]}})};return new Promise(function(_0xe497x1b,_0xe497x1c){_0xe497xa[_0x9216[47]](_0xe497x19,function(_0xe497x1d,_0xe497x18){if(_0xe497x1d){return _0xe497x1c(_0xe497x1d)}else {_0xe497x1b(_0xe497x18)}})});})[_0x9216[37]](function(_0xe497x18){return _0xe497x13[_0x9216[36]]({messageId:_0xe497x18[_0x9216[33]],status:_0x9216[34]},{transaction:_0xe497x11?_0xe497x11[_0x9216[35]]:null})})};}}_0xe497xc(_0xe497x9);MailServerOut[_0x9216[66]](function(_0xe497x9){_0xe497xd(_0xe497x9)});MailServerOut[_0x9216[67]](function(_0xe497x9){_0xe497xe(_0xe497x9)});MailMessage[_0x9216[68]](function(_0xe497x9,_0xe497x11){return _0xe497xf(_0xe497x9,_0xe497x11)});}};
\ No newline at end of file
+var _0xc15f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x20\x53\x4D\x54\x50\x20\x43\x52\x45\x41\x54\x45","\x6C\x6F\x67","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x6F\x72\x74","\x75\x73\x65\x72","\x61\x75\x74\x68","\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x65\x72","\x20\x53\x4D\x54\x50\x20\x55\x50\x44\x41\x54\x45","\x5B\x4D\x41\x49\x4C\x20\x2D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20","\x20\x53\x4D\x54\x50\x20\x44\x45\x53\x54\x52\x4F\x59","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x53\x45\x4E\x44\x49\x4E\x47","\x66\x72\x6F\x6D","\x6F\x6E\x53\x65\x6E\x64","\x69\x6E\x52\x65\x70\x6C\x79\x54\x6F","\x6D\x65\x73\x73\x61\x67\x65\x49\x64","\x53\x45\x4E\x54","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x74\x6F","\x63\x63","\x73\x75\x62\x6A\x65\x63\x74","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x70\x61\x74\x68","\x6D\x61\x70","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x73\x65\x74\x42\x63\x63","\x73\x65\x74\x43\x63","\x73\x65\x74\x54\x6F","\x73\x65\x74\x46\x72\x6F\x6D","\x61\x6C\x6C","\x62\x63\x63","\x3B","\x73\x70\x6C\x69\x74","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x73\x70\x72\x65\x61\x64","\x61\x64\x64\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x69\x6E\x64\x4F\x6E\x65","\x69\x6E\x66\x6F","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x4F\x50\x45\x4E","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65"];_0xc15f[0];var _=require(_0xc15f[1]);var Promise=require(_0xc15f[2]);var nodemailer=require(_0xc15f[3]);var smtpTransport=require(_0xc15f[4]);var Contact=require(_0xc15f[6])[_0xc15f[5]];var MailRoom=require(_0xc15f[6])[_0xc15f[7]];var MailMessage=require(_0xc15f[6])[_0xc15f[8]];var ContactEmail=require(_0xc15f[6])[_0xc15f[9]];var MailServerOut=require(_0xc15f[6])[_0xc15f[10]];module[_0xc15f[11]]={create:function(_0x65b3xa){var _0x65b3xb;var _0x65b3xc;function _0x65b3xd(_0x65b3xa){console[_0xc15f[15]](_0xc15f[12]+_0x65b3xa[_0xc15f[13]]+_0xc15f[14]);_0x65b3xc=_0x65b3xa;_0x65b3xb=nodemailer[_0xc15f[20]](smtpTransport({host:_0x65b3xa[_0xc15f[16]],port:_0x65b3xa[_0xc15f[17]],secure:_0x65b3xa[_0xc15f[18]],debug:true,auth:{user:_0x65b3xa[_0xc15f[13]],pass:_0x65b3xa[_0xc15f[19]]}}));}function _0x65b3xe(_0x65b3xa){if(_0x65b3xb[_0xc15f[24]][_0xc15f[23]][_0xc15f[22]][_0xc15f[21]]===_0x65b3xa[_0xc15f[13]]){console[_0xc15f[15]](_0xc15f[12]+_0x65b3xa[_0xc15f[13]]+_0xc15f[25]);_0x65b3xb=null;_0x65b3xb=nodemailer[_0xc15f[20]](smtpTransport({host:_0x65b3xa[_0xc15f[16]],port:_0x65b3xa[_0xc15f[17]],secure:_0x65b3xa[_0xc15f[18]],debug:true,auth:{user:_0x65b3xa[_0xc15f[13]],pass:_0x65b3xa[_0xc15f[19]]}}));}}function _0x65b3xf(_0x65b3xa){if(_0x65b3xb[_0xc15f[24]][_0xc15f[23]][_0xc15f[22]][_0xc15f[21]]===_0x65b3xa[_0xc15f[13]]){console[_0xc15f[15]](_0xc15f[26]+_0x65b3xa[_0xc15f[13]]+_0xc15f[27]);_0x65b3xb=null;}}function _0x65b3x10(_0x65b3x11,_0x65b3x12){if(_0x65b3x11[_0xc15f[29]](_0xc15f[28])&&_0x65b3x11[_0xc15f[28]]===_0xc15f[30]&&_0x65b3xb[_0xc15f[24]][_0xc15f[23]][_0xc15f[22]][_0xc15f[21]]===_0x65b3x11[_0xc15f[31]]){console[_0xc15f[15]](_0xc15f[32],_0x65b3x11[_0xc15f[31]]);var _0x65b3x13;var _0x65b3x14=_0x65b3x11;var _0x65b3x15,_0x65b3x16,_0x65b3x17,_0x65b3x18;if(_0x65b3x14[_0xc15f[33]]){return MailMessage[_0xc15f[63]]({where:{messageId:_0x65b3x14[_0xc15f[33]]}})[_0xc15f[38]](function(_0x65b3x27){return _0x65b3x27[_0xc15f[62]]()})[_0xc15f[38]](function(_0x65b3x26){_0x65b3x13=_0x65b3x26;return _0x65b3x26[_0xc15f[61]](_0x65b3x14,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null});})[_0xc15f[38]](function(){return ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x14[_0xc15f[31]]},defaults:{email:_0x65b3x14[_0xc15f[31]]},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[60]](function(_0x65b3x23,_0x65b3x24){var _0x65b3x1e=[];var _0x65b3x25=_0x65b3x14[_0xc15f[39]]?_0x65b3x14[_0xc15f[39]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x15=_0x65b3x23;_0x65b3x25[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x21){var _0x65b3x1e=[];var _0x65b3x22=_0x65b3x14[_0xc15f[40]]?_0x65b3x14[_0xc15f[40]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x16=_[_0xc15f[47]](_0x65b3x21,function(_0x65b3x1b){return _0x65b3x1b[0]});_0x65b3x22[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x1d){var _0x65b3x1e=[];var _0x65b3x1f=_0x65b3x14[_0xc15f[54]]?_0x65b3x14[_0xc15f[54]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x17=_[_0xc15f[47]](_0x65b3x1d,function(_0x65b3x1b){return _0x65b3x1b[0]});_0x65b3x1f[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x1c){_0x65b3x18=_[_0xc15f[47]](_0x65b3x1c,function(_0x65b3x1b){return _0x65b3x1b[0]});return ;})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[52]](_0x65b3x15,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[51]](_0x65b3x16,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[50]](_0x65b3x17,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[49]](_0x65b3x18,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){var _0x65b3x1a={status:_0x65b3x14[_0xc15f[28]],from:_0x65b3x14[_0xc15f[31]],to:_0x65b3x14[_0xc15f[39]],cc:_0x65b3x14[_0xc15f[40]],subject:_0x65b3x14[_0xc15f[41]],html:_0x65b3x14[_0xc15f[42]],text:_0x65b3x14[_0xc15f[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0x65b3x14[_0xc15f[44]]){_0x65b3x1a[_0xc15f[45]]=_[_0xc15f[47]](_0x65b3x14.MailAttachments,function(_0x65b3x1b){return {path:_0x65b3x1b[_0xc15f[46]]}})};return _0x65b3xb[_0xc15f[48]](_0x65b3x1a);})[_0xc15f[38]](function(_0x65b3x19){return _0x65b3x14[_0xc15f[37]]({messageId:_0x65b3x19[_0xc15f[34]],status:_0xc15f[35]},{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})}else {return MailRoom[_0xc15f[57]]({where:{id:_0x65b3x14[_0xc15f[65]]},defaults:{subject:_0x65b3x14[_0xc15f[41]],from:_0x65b3x14[_0xc15f[31]],status:_0xc15f[66],MailAccountId:_0x65b3xc[_0xc15f[67]]},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})[_0xc15f[60]](function(_0x65b3x26){_0x65b3x13=_0x65b3x26;return _0x65b3x26[_0xc15f[61]](_0x65b3x14,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null});})[_0xc15f[38]](function(){return ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x14[_0xc15f[31]]},defaults:{email:_0x65b3x14[_0xc15f[31]]},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[60]](function(_0x65b3x23){var _0x65b3x1e=[];var _0x65b3x25=_0x65b3x14[_0xc15f[39]]?_0x65b3x14[_0xc15f[39]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x15=_0x65b3x23;_0x65b3x25[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x21){var _0x65b3x1e=[];var _0x65b3x22=_0x65b3x14[_0xc15f[40]]?_0x65b3x14[_0xc15f[40]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x16=_[_0xc15f[47]](_0x65b3x21,function(_0x65b3x1b){return _0x65b3x1b[0]});_0x65b3x22[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x1d){var _0x65b3x1e=[];var _0x65b3x1f=_0x65b3x14[_0xc15f[54]]?_0x65b3x14[_0xc15f[54]][_0xc15f[56]](_0xc15f[55]):[];_0x65b3x17=_[_0xc15f[47]](_0x65b3x1d,function(_0x65b3x1b){return _0x65b3x1b[0]});_0x65b3x1f[_0xc15f[59]](function(_0x65b3x20){_0x65b3x1e[_0xc15f[58]](ContactEmail[_0xc15f[57]]({where:{email:_0x65b3x20},defaults:{email:_0x65b3x20},transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null}))});return _0x65b3x1e;})[_0xc15f[53]]()[_0xc15f[38]](function(_0x65b3x1c){_0x65b3x18=_[_0xc15f[47]](_0x65b3x1c,function(_0x65b3x1b){return _0x65b3x1b[0]});return ;})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[52]](_0x65b3x15,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[51]](_0x65b3x16,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[50]](_0x65b3x17,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){return _0x65b3x14[_0xc15f[49]](_0x65b3x18,{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null})})[_0xc15f[38]](function(){var _0x65b3x1a={status:_0x65b3x14[_0xc15f[28]],from:_0x65b3x14[_0xc15f[31]],to:_0x65b3x14[_0xc15f[39]],cc:_0x65b3x14[_0xc15f[40]],subject:_0x65b3x14[_0xc15f[41]],html:_0x65b3x14[_0xc15f[42]],text:_0x65b3x14[_0xc15f[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0x65b3x14[_0xc15f[44]]){_0x65b3x1a[_0xc15f[45]]=_[_0xc15f[47]](_0x65b3x14.MailAttachments,function(_0x65b3x1b){return {path:_0x65b3x1b[_0xc15f[46]]}})};return _0x65b3xb[_0xc15f[48]](_0x65b3x1a);})[_0xc15f[38]](function(_0x65b3x19){console[_0xc15f[15]](_0xc15f[64],_0x65b3x19);return _0x65b3x14[_0xc15f[37]]({messageId:_0x65b3x19[_0xc15f[34]],status:_0xc15f[35]},{transaction:_0x65b3x12?_0x65b3x12[_0xc15f[36]]:null});})};}}_0x65b3xd(_0x65b3xa);MailServerOut[_0xc15f[68]](function(_0x65b3xa){_0x65b3xe(_0x65b3xa)});MailServerOut[_0xc15f[69]](function(_0x65b3xa){_0x65b3xf(_0x65b3xa)});MailMessage[_0xc15f[70]](function(_0x65b3xa,_0x65b3x12){return _0x65b3x10(_0x65b3xa,_0x65b3x12)});}};
\ No newline at end of file
-var _0x20dc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x73\x65\x72\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x75\x73\x65\x72\x20\x6F\x66\x66\x6C\x69\x6E\x65","\x6E\x61\x6D\x65","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x61\x6E\x79\x6F\x6E\x65\x20\x75\x73\x65\x72\x73\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x75\x73\x65\x72\x20\x6F\x6E\x6C\x69\x6E\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x2F\x61\x67\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x79\x2F\x65\x6E\x71\x75\x69\x72\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x2F\x65\x76\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x2F\x6D\x6F\x64\x75\x6C\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x61\x67\x2F\x74\x61\x67\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x2F\x74\x65\x61\x6D\x2E\x73\x6F\x63\x6B\x65\x74\x2E\x6A\x73","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x2F\x74\x72\x69\x67\x67\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x2F\x74\x72\x75\x6E\x6B\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x2F\x75\x73\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x2F\x75\x70\x64\x61\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x2F\x75\x70\x6C\x6F\x61\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x65\x74\x72\x69\x63\x2F\x6D\x65\x74\x72\x69\x63\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x78\x63\x68\x61\x74\x74\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x69\x6E\x66\x6F","\x5B\x25\x73\x5D\x20\x25\x73","\x61\x64\x64\x72\x65\x73\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x61\x75\x74\x68\x6F\x72\x69\x7A\x65","\x73\x6F\x63\x6B\x65\x74\x69\x6F\x2D\x6A\x77\x74","\x75\x73\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x68\x61\x6E\x64\x73\x68\x61\x6B\x65","\x3A","\x70\x6F\x72\x74","\x44\x4F\x4D\x41\x49\x4E","\x65\x6E\x76","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x71\x75\x65\x72\x79","\x72\x6F\x6C\x65","\x73\x6F\x75\x72\x63\x65","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x5D\x20\x53\x4F\x43\x4B\x45\x54\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x5B\x25\x73\x5D\x20\x53\x4F\x43\x4B\x45\x54\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44"];_0x20dc[0];var moment=require(_0x20dc[1]);var config=require(_0x20dc[2]);var User=require(_0x20dc[4])[_0x20dc[3]];function onDisconnect(_0x6e2ax5){if(_0x6e2ax5[_0x20dc[5]]){return User[_0x20dc[14]](_0x6e2ax5[_0x20dc[5]])[_0x20dc[11]](function(_0x6e2ax7){if(_0x6e2ax7){return _0x6e2ax7[_0x20dc[12]]({online:false})}else {throw new Error(_0x20dc[13])}})[_0x20dc[11]](function(_0x6e2ax7){console[_0x20dc[10]](_0x20dc[8],_0x6e2ax7[_0x20dc[9]])})[_0x20dc[7]](function(_0x6e2ax6){console[_0x20dc[6]](_0x6e2ax6)})}else {console[_0x20dc[10]](_0x20dc[13])}}function onConnect(_0x6e2ax5){if(_0x6e2ax5[_0x20dc[5]]){return User[_0x20dc[14]](_0x6e2ax5[_0x20dc[5]])[_0x20dc[11]](function(_0x6e2ax7){if(_0x6e2ax7){return _0x6e2ax7[_0x20dc[12]]({online:true,lastLoginAt:moment()[_0x20dc[104]](_0x20dc[103])})}else {throw new Error(_0x20dc[13])}})[_0x20dc[11]](function(_0x6e2ax7){console[_0x20dc[10]](_0x20dc[15],_0x6e2ax7[_0x20dc[9]]);require(_0x20dc[17])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[18])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[19])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[20])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[21])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[22])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[23])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[24])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[25])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[26])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[27])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[28])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[29])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[30])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[31])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[32])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[33])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[34])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[35])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[36])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[37])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[38])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[39])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[40])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[41])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[42])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[43])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[44])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[45])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[46])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[47])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[48])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[49])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[50])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[51])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[52])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[53])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[54])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[55])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[56])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[57])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[58])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[59])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[60])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[61])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[62])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[63])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[64])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[65])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[66])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[67])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[68])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[69])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[70])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[71])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[72])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[73])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[74])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[75])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[76])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[77])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[78])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[79])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[80])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[81])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[82])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[83])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[84])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[85])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[86])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[87])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[88])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[89])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[90])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[91])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[92])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[93])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[94])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[95])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[96])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[97])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[98])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[99])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[100])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[101])[_0x20dc[16]](_0x6e2ax5);require(_0x20dc[102])[_0x20dc[16]](_0x6e2ax5);})[_0x20dc[7]](function(_0x6e2ax6){console[_0x20dc[6]](_0x6e2ax6)})}else {console[_0x20dc[10]](_0x20dc[13])};_0x6e2ax5[_0x20dc[109]](_0x20dc[105],function(_0x6e2ax9){console[_0x20dc[105]](_0x20dc[106],_0x6e2ax5[_0x20dc[107]],JSON[_0x20dc[108]](_0x6e2ax9,null,2))});}module[_0x20dc[110]]=function(_0x6e2axa){_0x6e2axa[_0x20dc[115]](require(_0x20dc[114])[_0x20dc[113]]({secret:config[_0x20dc[112]][_0x20dc[111]],handshake:true}));_0x6e2axa[_0x20dc[109]](_0x20dc[116],function(_0x6e2ax5){_0x6e2ax5[_0x20dc[107]]=_0x6e2ax5[_0x20dc[117]][_0x20dc[107]]!==null?_0x6e2ax5[_0x20dc[117]][_0x20dc[107]][_0x20dc[107]]+_0x20dc[118]+_0x6e2ax5[_0x20dc[117]][_0x20dc[107]][_0x20dc[119]]:process[_0x20dc[121]][_0x20dc[120]];_0x6e2ax5[_0x20dc[122]]= new Date();_0x6e2ax5[_0x20dc[5]]=_0x6e2ax5[_0x20dc[117]][_0x20dc[123]][_0x20dc[5]];_0x6e2ax5[_0x20dc[124]]=_0x6e2ax5[_0x20dc[117]][_0x20dc[123]][_0x20dc[124]];_0x6e2ax5[_0x20dc[9]]=_0x6e2ax5[_0x20dc[117]][_0x20dc[123]][_0x20dc[9]];_0x6e2ax5[_0x20dc[125]]=_0x6e2ax5[_0x20dc[117]][_0x20dc[123]][_0x20dc[125]];_0x6e2ax5[_0x20dc[109]](_0x20dc[126],function(){onDisconnect(_0x6e2ax5);console[_0x20dc[105]](_0x20dc[127],_0x6e2ax5[_0x20dc[117]][_0x20dc[107]]);});onConnect(_0x6e2ax5);console[_0x20dc[105]](_0x20dc[128],_0x6e2ax5[_0x20dc[117]][_0x20dc[107]]);});};
\ No newline at end of file
+var _0x8ed0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x75\x73\x65\x72\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x75\x73\x65\x72\x20\x6F\x66\x66\x6C\x69\x6E\x65","\x6E\x61\x6D\x65","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x61\x6E\x79\x6F\x6E\x65\x20\x75\x73\x65\x72\x73\x20\x66\x6F\x75\x6E\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x6F\x63\x6B\x65\x74\x3A\x20\x75\x73\x65\x72\x20\x6F\x6E\x6C\x69\x6E\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x2E\x2E\x2F\x61\x70\x69\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x2F\x61\x67\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69\x2F\x61\x6D\x69\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x79\x2F\x65\x6E\x71\x75\x69\x72\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2F\x63\x6F\x6D\x70\x61\x6E\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2F\x63\x6F\x6E\x74\x61\x63\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x2F\x65\x76\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x64\x75\x6C\x65\x2F\x6D\x6F\x64\x75\x6C\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x2F\x73\x65\x74\x74\x69\x6E\x67\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x61\x67\x2F\x74\x61\x67\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x2F\x74\x65\x61\x6D\x2E\x73\x6F\x63\x6B\x65\x74\x2E\x6A\x73","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x2F\x74\x72\x69\x67\x67\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x2F\x74\x72\x75\x6E\x6B\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x2F\x75\x73\x65\x72\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x2F\x75\x70\x64\x61\x74\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x2F\x75\x70\x6C\x6F\x61\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x6D\x65\x74\x72\x69\x63\x2F\x6D\x65\x74\x72\x69\x63\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79\x2F\x78\x63\x68\x61\x74\x74\x79\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x2E\x73\x6F\x63\x6B\x65\x74","\x2E\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x2E\x73\x6F\x63\x6B\x65\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x69\x6E\x66\x6F","\x5B\x25\x73\x5D\x20\x25\x73","\x61\x64\x64\x72\x65\x73\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x61\x75\x74\x68\x6F\x72\x69\x7A\x65","\x73\x6F\x63\x6B\x65\x74\x69\x6F\x2D\x6A\x77\x74","\x75\x73\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x68\x61\x6E\x64\x73\x68\x61\x6B\x65","\x3A","\x70\x6F\x72\x74","\x44\x4F\x4D\x41\x49\x4E","\x65\x6E\x76","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x71\x75\x65\x72\x79","\x72\x6F\x6C\x65","\x73\x6F\x75\x72\x63\x65","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x5B\x25\x73\x5D\x20\x53\x4F\x43\x4B\x45\x54\x20\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x5B\x25\x73\x5D\x20\x53\x4F\x43\x4B\x45\x54\x20\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44"];_0x8ed0[0];var moment=require(_0x8ed0[1]);var config=require(_0x8ed0[2]);var User=require(_0x8ed0[4])[_0x8ed0[3]];function onDisconnect(_0xdcc4x5){if(_0xdcc4x5[_0x8ed0[5]]){return User[_0x8ed0[14]](_0xdcc4x5[_0x8ed0[5]])[_0x8ed0[11]](function(_0xdcc4x7){if(_0xdcc4x7){return _0xdcc4x7[_0x8ed0[12]]({online:false})}else {throw new Error(_0x8ed0[13])}})[_0x8ed0[11]](function(_0xdcc4x7){console[_0x8ed0[10]](_0x8ed0[8],_0xdcc4x7[_0x8ed0[9]])})[_0x8ed0[7]](function(_0xdcc4x6){console[_0x8ed0[6]](_0xdcc4x6)})}else {console[_0x8ed0[10]](_0x8ed0[13])}}function onConnect(_0xdcc4x5){if(_0xdcc4x5[_0x8ed0[5]]){return User[_0x8ed0[14]](_0xdcc4x5[_0x8ed0[5]])[_0x8ed0[11]](function(_0xdcc4x7){if(_0xdcc4x7){return _0xdcc4x7[_0x8ed0[12]]({online:true,lastLoginAt:moment()[_0x8ed0[105]](_0x8ed0[104])})}else {throw new Error(_0x8ed0[13])}})[_0x8ed0[11]](function(_0xdcc4x7){console[_0x8ed0[10]](_0x8ed0[15],_0xdcc4x7[_0x8ed0[9]]);require(_0x8ed0[17])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[18])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[19])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[20])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[21])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[22])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[23])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[24])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[25])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[26])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[27])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[28])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[29])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[30])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[31])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[32])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[33])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[34])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[35])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[36])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[37])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[38])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[39])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[40])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[41])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[42])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[43])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[44])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[45])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[46])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[47])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[48])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[49])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[50])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[51])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[52])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[53])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[54])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[55])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[56])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[57])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[58])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[59])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[60])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[61])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[62])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[63])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[64])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[65])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[66])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[67])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[68])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[69])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[70])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[71])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[72])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[73])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[74])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[75])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[76])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[77])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[78])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[79])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[80])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[81])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[82])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[83])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[84])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[85])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[86])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[87])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[88])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[89])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[90])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[91])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[92])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[93])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[94])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[95])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[96])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[97])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[98])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[99])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[100])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[101])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[102])[_0x8ed0[16]](_0xdcc4x5);require(_0x8ed0[103])[_0x8ed0[16]](_0xdcc4x5);})[_0x8ed0[7]](function(_0xdcc4x6){console[_0x8ed0[6]](_0xdcc4x6)})}else {console[_0x8ed0[10]](_0x8ed0[13])};_0xdcc4x5[_0x8ed0[110]](_0x8ed0[106],function(_0xdcc4x9){console[_0x8ed0[106]](_0x8ed0[107],_0xdcc4x5[_0x8ed0[108]],JSON[_0x8ed0[109]](_0xdcc4x9,null,2))});}module[_0x8ed0[111]]=function(_0xdcc4xa){_0xdcc4xa[_0x8ed0[116]](require(_0x8ed0[115])[_0x8ed0[114]]({secret:config[_0x8ed0[113]][_0x8ed0[112]],handshake:true}));_0xdcc4xa[_0x8ed0[110]](_0x8ed0[117],function(_0xdcc4x5){_0xdcc4x5[_0x8ed0[108]]=_0xdcc4x5[_0x8ed0[118]][_0x8ed0[108]]!==null?_0xdcc4x5[_0x8ed0[118]][_0x8ed0[108]][_0x8ed0[108]]+_0x8ed0[119]+_0xdcc4x5[_0x8ed0[118]][_0x8ed0[108]][_0x8ed0[120]]:process[_0x8ed0[122]][_0x8ed0[121]];_0xdcc4x5[_0x8ed0[123]]= new Date();_0xdcc4x5[_0x8ed0[5]]=_0xdcc4x5[_0x8ed0[118]][_0x8ed0[124]][_0x8ed0[5]];_0xdcc4x5[_0x8ed0[125]]=_0xdcc4x5[_0x8ed0[118]][_0x8ed0[124]][_0x8ed0[125]];_0xdcc4x5[_0x8ed0[9]]=_0xdcc4x5[_0x8ed0[118]][_0x8ed0[124]][_0x8ed0[9]];_0xdcc4x5[_0x8ed0[126]]=_0xdcc4x5[_0x8ed0[118]][_0x8ed0[124]][_0x8ed0[126]];_0xdcc4x5[_0x8ed0[110]](_0x8ed0[127],function(){onDisconnect(_0xdcc4x5);console[_0x8ed0[106]](_0x8ed0[128],_0xdcc4x5[_0x8ed0[118]][_0x8ed0[108]]);});onConnect(_0xdcc4x5);console[_0x8ed0[106]](_0x8ed0[129],_0xdcc4x5[_0x8ed0[118]][_0x8ed0[108]]);});};
\ No newline at end of file
-var _0xd3f9=["\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x54\x72\x69\x67\x67\x65\x72\x20\x43\x68\x61\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x4D\x6F\x74\x69\x6F\x6E\x20\x53\x65\x72\x76\x69\x63\x65\x20\x53\x4D\x54\x50\x20\x6E\x6F\x74\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x64\x21","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67\x5F\x61\x64\x64\x72\x65\x73\x73","\x73\x75\x62\x6A\x65\x63\x74","\x68\x74\x6D\x6C","\x53\x45\x4E\x44\x49\x4E\x47","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x72\x65\x6E\x64\x65\x72","\x6F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x3A\x20","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67","\x67\x65\x74\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x20\x63\x61\x6E\x27\x74\x20\x73\x65\x6E\x64\x20\x6F\x66\x66\x6C\x69\x6E\x65\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x20\x76\x69\x61\x20\x6D\x61\x69\x6C","\x67\x65\x74\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xd3f9[0]);var Mustache=require(_0xd3f9[1]);var sequelize=require(_0xd3f9[3])[_0xd3f9[2]];var ChatEnquiry=require(_0xd3f9[3])[_0xd3f9[4]];var MailMessage=require(_0xd3f9[3])[_0xd3f9[5]];var MailServerOut=require(_0xd3f9[3])[_0xd3f9[6]];function Chat(){console[_0xd3f9[8]](_0xd3f9[7]);ChatEnquiry[_0xd3f9[27]](function(_0x29c3x8,_0x29c3x9){var _0x29c3xa=_0x29c3x8;var _0x29c3xb;var _0x29c3xc;var _0x29c3xd;return _0x29c3x8[_0xd3f9[26]]()[_0xd3f9[17]](function(_0x29c3x10){_0x29c3xb=_0x29c3x10;_0x29c3xa[_0xd3f9[22]]=_0x29c3xb[_0xd3f9[20]];if(_0x29c3xb&&_0x29c3xb[_0xd3f9[23]]&&_0x29c3xb[_0xd3f9[11]]){return _0x29c3xb[_0xd3f9[24]]()}else {throw new Error({message:_0xd3f9[25]})};})[_0xd3f9[17]](function(_0x29c3xf){_0x29c3xd=_0x29c3xf;if(_0x29c3xd){_0x29c3xd[_0xd3f9[13]]=Mustache[_0xd3f9[18]](_0x29c3xd[_0xd3f9[13]],_0x29c3xa);_0x29c3xd[_0xd3f9[12]]=Mustache[_0xd3f9[18]](_0x29c3xd[_0xd3f9[12]],_0x29c3xa);}else {throw new Error({message:_0xd3f9[19]+_0x29c3xb[_0xd3f9[20]]})};return MailServerOut[_0xd3f9[21]]({where:{service:true}});})[_0xd3f9[17]](function(_0x29c3xe){_0x29c3xc=_0x29c3xe;if(!_0x29c3xc){throw new Error(_0xd3f9[9])};return MailMessage[_0xd3f9[16]]({from:_0x29c3xc[_0xd3f9[10]],to:_0x29c3xb[_0xd3f9[11]],subject:_0x29c3xd[_0xd3f9[12]],html:_0x29c3xd[_0xd3f9[13]],status:_0xd3f9[14]},{transaction:_0x29c3x9?_0x29c3x9[_0xd3f9[15]]:null});});});}module[_0xd3f9[28]]=Chat;
\ No newline at end of file
+var _0xa60f=["\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x54\x72\x69\x67\x67\x65\x72\x20\x43\x68\x61\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x4D\x6F\x74\x69\x6F\x6E\x20\x53\x65\x72\x76\x69\x63\x65\x20\x53\x4D\x54\x50\x20\x6E\x6F\x74\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x64\x21","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67\x5F\x61\x64\x64\x72\x65\x73\x73","\x73\x75\x62\x6A\x65\x63\x74","\x68\x74\x6D\x6C","\x53\x45\x4E\x44\x49\x4E\x47","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x72\x65\x6E\x64\x65\x72","\x6F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x3A\x20","\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67","\x67\x65\x74\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x20\x63\x61\x6E\x27\x74\x20\x73\x65\x6E\x64\x20\x6F\x66\x66\x6C\x69\x6E\x65\x20\x6D\x65\x73\x73\x61\x67\x65\x73\x20\x76\x69\x61\x20\x6D\x61\x69\x6C","\x67\x65\x74\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xa60f[0]);var Mustache=require(_0xa60f[1]);var sequelize=require(_0xa60f[3])[_0xa60f[2]];var ChatEnquiry=require(_0xa60f[3])[_0xa60f[4]];var MailMessage=require(_0xa60f[3])[_0xa60f[5]];var MailServerOut=require(_0xa60f[3])[_0xa60f[6]];function Chat(){console[_0xa60f[8]](_0xa60f[7]);ChatEnquiry[_0xa60f[27]](function(_0x7f0ex8,_0x7f0ex9){var _0x7f0exa=_0x7f0ex8;var _0x7f0exb;var _0x7f0exc;var _0x7f0exd;return _0x7f0ex8[_0xa60f[26]]()[_0xa60f[17]](function(_0x7f0ex10){_0x7f0exb=_0x7f0ex10;_0x7f0exa[_0xa60f[22]]=_0x7f0exb[_0xa60f[20]];if(_0x7f0exb&&_0x7f0exb[_0xa60f[23]]&&_0x7f0exb[_0xa60f[11]]){return _0x7f0exb[_0xa60f[24]]()}else {throw new Error({message:_0xa60f[25]})};})[_0xa60f[17]](function(_0x7f0exf){_0x7f0exd=_0x7f0exf;if(_0x7f0exd){_0x7f0exd[_0xa60f[13]]=Mustache[_0xa60f[18]](_0x7f0exd[_0xa60f[13]],_0x7f0exa);_0x7f0exd[_0xa60f[12]]=Mustache[_0xa60f[18]](_0x7f0exd[_0xa60f[12]],_0x7f0exa);}else {throw new Error({message:_0xa60f[19]+_0x7f0exb[_0xa60f[20]]})};return MailServerOut[_0xa60f[21]]({where:{service:true}});})[_0xa60f[17]](function(_0x7f0exe){_0x7f0exc=_0x7f0exe;if(!_0x7f0exc){throw new Error(_0xa60f[9])};return MailMessage[_0xa60f[16]]({from:_0x7f0exc[_0xa60f[10]],to:_0x7f0exb[_0xa60f[11]],subject:_0x7f0exd[_0xa60f[12]],html:_0x7f0exd[_0xa60f[13]],status:_0xa60f[14]},{transaction:_0x7f0ex9?_0x7f0ex9[_0xa60f[15]]:null});});});}module[_0xa60f[28]]=Chat;
\ No newline at end of file
-var _0xaf46=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x43\x6D\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x69\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x50\x68\x6F\x6E\x65\x73","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x76\x6F\x69\x63\x65","\x45\x6D\x61\x69\x6C\x73","\x66\x72\x6F\x6D","\x6D\x61\x69\x6C","\x43\x4D\x20\x74\x72\x69\x67\x67\x65\x72\x65\x64\x20\x62\x79\x20","\x20\x63\x68\x61\x6E\x6E\x65\x6C\x2C\x20\x66\x69\x6E\x64\x69\x6E\x67\x20\x63\x6F\x6E\x74\x61\x63\x74\x2E\x2E\x2E","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x46\x6F\x75\x6E\x64\x20\x63\x6F\x6E\x74\x61\x63\x74\x2C\x20\x6F\x70\x65\x6E\x5F\x63\x6F\x6E\x74\x61\x63\x74\x20\x72\x6F\x77\x20\x69\x6E\x20\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x20\x74\x61\x62\x6C\x65\x2E\x2E\x2E","\x65\x76\x65\x6E\x74","\x6F\x70\x65\x6E\x43\x6F\x6E\x74\x61\x63\x74\x54\x61\x62","\x63\x6F\x6E\x74\x61\x63\x74\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x61\x70","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x43\x6F\x6E\x74\x61\x63\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x6E\x65\x77\x5F\x63\x6F\x6E\x74\x61\x63\x74\x20\x74\x61\x62\x20\x72\x6F\x77\x20\x69\x6E\x20\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x20\x74\x61\x62\x6C\x65\x2E\x2E\x2E","\x6E\x65\x77\x43\x6F\x6E\x74\x61\x63\x74\x54\x61\x62","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xaf46[0]);function Cm(){console[_0xaf46[2]](_0xaf46[1])}Cm[_0xaf46[4]][_0xaf46[3]]=function(_0xe074x3,_0xe074x4){manageContact(_0xe074x3,_0xe074x4)};function manageContact(_0xe074x3,_0xe074x4){var _0xe074x6=require(_0xaf46[6])[_0xaf46[5]];var _0xe074x7=require(_0xaf46[6])[_0xaf46[7]];var _0xe074x8=require(_0xaf46[6])[_0xaf46[8]];var _0xe074x9=require(_0xaf46[6])[_0xaf46[9]];delete _0xe074x3[_0xaf46[10]];_0xe074x3[_0xaf46[11]]=_0xaf46[12];var _0xe074xa={};switch(_0xe074x4){case _0xaf46[15]:_0xe074xa={model:_0xe074x7,as:_0xaf46[13],where:{phone:_0xe074x3[_0xaf46[14]]}};break ;;case _0xaf46[18]:_0xe074xa={model:_0xe074x8,as:_0xaf46[16],where:{email:_0xe074x3[_0xaf46[17]]}};break ;;default:;};console[_0xaf46[2]](_0xaf46[19]+_0xe074x4+_0xaf46[20]);_0xe074x6[_0xaf46[36]]({include:[_0xe074xa]})[_0xaf46[35]](function(_0xe074xc){if(_0xe074xc[_0xaf46[22]]){console[_0xaf46[2]](_0xaf46[23]);_0xe074x3[_0xaf46[24]]=_0xaf46[25];_0xe074x3[_0xaf46[26]]=JSON[_0xaf46[31]](_[_0xaf46[30]](_[_0xaf46[28]](_0xe074xc,_0xaf46[27]),function(_0xe074xd){return {id:_0xe074xd[_0xaf46[10]],name:_0xe074xd[_0xaf46[29]]}}));}else {console[_0xaf46[2]](_0xaf46[32]);_0xe074x3[_0xaf46[24]]=_0xaf46[33];};_0xe074x9[_0xaf46[34]](_0xe074x3)[_0xaf46[21]](function(_0xe074xb){console[_0xaf46[2]](_0xe074xb)});})[_0xaf46[21]](function(_0xe074xb){console[_0xaf46[2]](_0xe074xb)});}module[_0xaf46[37]]=Cm;
\ No newline at end of file
+var _0x5a19=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x43\x6D\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x43\x6F\x6E\x74\x61\x63\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x69\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x50\x68\x6F\x6E\x65\x73","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x76\x6F\x69\x63\x65","\x45\x6D\x61\x69\x6C\x73","\x66\x72\x6F\x6D","\x6D\x61\x69\x6C","\x43\x4D\x20\x74\x72\x69\x67\x67\x65\x72\x65\x64\x20\x62\x79\x20","\x20\x63\x68\x61\x6E\x6E\x65\x6C\x2C\x20\x66\x69\x6E\x64\x69\x6E\x67\x20\x63\x6F\x6E\x74\x61\x63\x74\x2E\x2E\x2E","\x63\x61\x74\x63\x68","\x6C\x65\x6E\x67\x74\x68","\x46\x6F\x75\x6E\x64\x20\x63\x6F\x6E\x74\x61\x63\x74\x2C\x20\x6F\x70\x65\x6E\x5F\x63\x6F\x6E\x74\x61\x63\x74\x20\x72\x6F\x77\x20\x69\x6E\x20\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x20\x74\x61\x62\x6C\x65\x2E\x2E\x2E","\x65\x76\x65\x6E\x74","\x6F\x70\x65\x6E\x43\x6F\x6E\x74\x61\x63\x74\x54\x61\x62","\x63\x6F\x6E\x74\x61\x63\x74\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6D\x61\x70","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x43\x6F\x6E\x74\x61\x63\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2C\x20\x6E\x65\x77\x5F\x63\x6F\x6E\x74\x61\x63\x74\x20\x74\x61\x62\x20\x72\x6F\x77\x20\x69\x6E\x20\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73\x20\x74\x61\x62\x6C\x65\x2E\x2E\x2E","\x6E\x65\x77\x43\x6F\x6E\x74\x61\x63\x74\x54\x61\x62","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0x5a19[0]);function Cm(){console[_0x5a19[2]](_0x5a19[1])}Cm[_0x5a19[4]][_0x5a19[3]]=function(_0x268dx3,_0x268dx4){manageContact(_0x268dx3,_0x268dx4)};function manageContact(_0x268dx3,_0x268dx4){var _0x268dx6=require(_0x5a19[6])[_0x5a19[5]];var _0x268dx7=require(_0x5a19[6])[_0x5a19[7]];var _0x268dx8=require(_0x5a19[6])[_0x5a19[8]];var _0x268dx9=require(_0x5a19[6])[_0x5a19[9]];delete _0x268dx3[_0x5a19[10]];_0x268dx3[_0x5a19[11]]=_0x5a19[12];var _0x268dxa={};switch(_0x268dx4){case _0x5a19[15]:_0x268dxa={model:_0x268dx7,as:_0x5a19[13],where:{phone:_0x268dx3[_0x5a19[14]]}};break ;;case _0x5a19[18]:_0x268dxa={model:_0x268dx8,as:_0x5a19[16],where:{email:_0x268dx3[_0x5a19[17]]}};break ;;default:;};console[_0x5a19[2]](_0x5a19[19]+_0x268dx4+_0x5a19[20]);_0x268dx6[_0x5a19[36]]({include:[_0x268dxa]})[_0x5a19[35]](function(_0x268dxc){if(_0x268dxc[_0x5a19[22]]){console[_0x5a19[2]](_0x5a19[23]);_0x268dx3[_0x5a19[24]]=_0x5a19[25];_0x268dx3[_0x5a19[26]]=JSON[_0x5a19[31]](_[_0x5a19[30]](_[_0x5a19[28]](_0x268dxc,_0x5a19[27]),function(_0x268dxd){return {id:_0x268dxd[_0x5a19[10]],name:_0x268dxd[_0x5a19[29]]}}));}else {console[_0x5a19[2]](_0x5a19[32]);_0x268dx3[_0x5a19[24]]=_0x5a19[33];};_0x268dx9[_0x5a19[34]](_0x268dx3)[_0x5a19[21]](function(_0x268dxb){console[_0x5a19[2]](_0x268dxb)});})[_0x5a19[21]](function(_0x268dxb){console[_0x5a19[2]](_0x268dxb)});}module[_0x5a19[37]]=Cm;
\ No newline at end of file
-var _0x5cf9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x76\x6F\x69\x63\x65","\x2E\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6D","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x76\x6F\x69\x63\x65","\x66\x69\x6C\x74\x65\x72","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x6D\x61\x69\x6C","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x74\x69\x6F\x6E\x20\x22","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x22","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x63\x6F\x6E\x74\x61\x63\x74\x4D\x61\x6E\x61\x67\x65\x72","\x64\x61\x74\x61","\x64\x61\x74\x61\x32","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x41\x66\x74\x65\x72\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x41\x66\x74\x65\x72\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x69\x64","\x72\x65\x6D\x6F\x76\x65","\x41\x66\x74\x65\x72\x20\x64\x65\x73\x74\x72\x6F\x79\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x69\x6E\x64\x65\x78\x4F\x66","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74"];_0x5cf9[0];var _=require(_0x5cf9[1]);var Util=require(_0x5cf9[2]);var Voice=require(_0x5cf9[3]);var Mail=require(_0x5cf9[4]);var Chat=require(_0x5cf9[5]);var Cm=require(_0x5cf9[6]);var Trigger=require(_0x5cf9[8])[_0x5cf9[7]];var ReportAgent=require(_0x5cf9[8])[_0x5cf9[9]];var MailMessage=require(_0x5cf9[8])[_0x5cf9[10]];module[_0x5cf9[11]]=function(){var _0x9631xa= new Util();var _0x9631xb= new Voice();var _0x9631xc= new Chat();var _0x9631xd= new Mail();var _0x9631xe= new Cm();Trigger[_0x5cf9[28]]()[_0x5cf9[27]](function(_0x9631x10){synchTriggers(_0x9631x10);console[_0x5cf9[16]](_0x5cf9[14],_0x9631x10[_0x5cf9[15]]);ReportAgent[_0x5cf9[21]](function(_0x9631x11){var _0x9631x12=_0x9631xa[_0x5cf9[19]](_0x9631x11,_[_0x5cf9[18]](_0x9631x10,{channel:_0x5cf9[17]}));console[_0x5cf9[16]](_0x5cf9[20],_0x9631x12[_0x5cf9[15]]);execActions(_0x9631x12,_0x9631x11,_0x5cf9[17],_0x9631xa,_0x9631xb,_0x9631xd,_0x9631xe);});ReportAgent[_0x5cf9[23]](function(_0x9631x11){var _0x9631x12=_0x9631xa[_0x5cf9[19]](_0x9631x11,_[_0x5cf9[18]](_0x9631x10,{channel:_0x5cf9[17]}));console[_0x5cf9[16]](_0x5cf9[22],_0x9631x12[_0x5cf9[15]]);execActions(_0x9631x12,_0x9631x11,_0x5cf9[17],_0x9631xa,_0x9631xb,_0x9631xd,_0x9631xe);});MailMessage[_0x5cf9[21]](function(_0x9631x11){if(_0x9631x11[_0x5cf9[24]]===_0x5cf9[25]){var _0x9631x12=_0x9631xa[_0x5cf9[19]](_0x9631x11,_[_0x5cf9[18]](_0x9631x10,{channel:_0x5cf9[26]}));execActions(_0x9631x12,_0x9631x11,_0x5cf9[26],_0x9631xa,_0x9631xb,_0x9631xd,_0x9631xe);}});})[_0x5cf9[13]](function(_0x9631xf){console[_0x5cf9[12]](_0x9631xf)});};function execActions(_0x9631x12,_0x9631x11,_0x9631x14,_0x9631xa,_0x9631xb,_0x9631xd,_0x9631xe){_0x9631x12[_0x5cf9[40]](function(_0x9631x15){console[_0x5cf9[16]](_0x5cf9[29]+_0x9631x15[_0x5cf9[31]][_0x5cf9[30]]+_0x5cf9[32]);switch(_0x9631x15[_0x5cf9[31]][_0x5cf9[30]]){case _0x5cf9[35]:_0x9631xe[_0x5cf9[34]](_0x9631x11[_0x5cf9[33]],_0x9631x14);break ;;case _0x5cf9[39]:_0x9631xd[_0x5cf9[38]](_0x9631x15[_0x5cf9[36]],_0x9631x15[_0x5cf9[37]]);break ;;default:;};})}function synchTriggers(_0x9631x10){Trigger[_0x5cf9[21]](function(_0x9631x11){updateCollection(_0x9631x10,_0x9631x11);console[_0x5cf9[16]](_0x5cf9[41],_0x9631x10[_0x5cf9[15]]);});Trigger[_0x5cf9[23]](function(_0x9631x11){updateCollection(_0x9631x10,_0x9631x11);console[_0x5cf9[16]](_0x5cf9[42],_0x9631x10[_0x5cf9[15]]);});Trigger[_0x5cf9[46]](function(_0x9631x11){_[_0x5cf9[44]](_0x9631x10,{id:_0x9631x11[_0x5cf9[43]]});console[_0x5cf9[16]](_0x5cf9[45],_0x9631x10[_0x5cf9[15]]);});}function updateCollection(_0x9631x18,_0x9631x11){var _0x9631x19=_[_0x5cf9[47]](_0x9631x18,{id:_0x9631x11[_0x5cf9[43]]});var _0x9631x1a=_0x9631x18[_0x5cf9[48]](_0x9631x19);if(_0x9631x19){_[_0x5cf9[49]](_0x9631x18[_0x9631x1a],_0x9631x11)}else {_0x9631x18[_0x5cf9[50]](_0x9631x11)};}
\ No newline at end of file
+var _0x1255=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x76\x6F\x69\x63\x65","\x2E\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6D","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x76\x6F\x69\x63\x65","\x66\x69\x6C\x74\x65\x72","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x6D\x61\x69\x6C","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x74\x69\x6F\x6E\x20\x22","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x22","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x63\x6F\x6E\x74\x61\x63\x74\x4D\x61\x6E\x61\x67\x65\x72","\x64\x61\x74\x61","\x64\x61\x74\x61\x32","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\x41\x66\x74\x65\x72\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x41\x66\x74\x65\x72\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x69\x64","\x72\x65\x6D\x6F\x76\x65","\x41\x66\x74\x65\x72\x20\x64\x65\x73\x74\x72\x6F\x79\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64","\x69\x6E\x64\x65\x78\x4F\x66","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74"];_0x1255[0];var _=require(_0x1255[1]);var Util=require(_0x1255[2]);var Voice=require(_0x1255[3]);var Mail=require(_0x1255[4]);var Chat=require(_0x1255[5]);var Cm=require(_0x1255[6]);var Trigger=require(_0x1255[8])[_0x1255[7]];var ReportAgent=require(_0x1255[8])[_0x1255[9]];var MailMessage=require(_0x1255[8])[_0x1255[10]];module[_0x1255[11]]=function(){var _0x206axa= new Util();var _0x206axb= new Voice();var _0x206axc= new Chat();var _0x206axd= new Mail();var _0x206axe= new Cm();Trigger[_0x1255[28]]()[_0x1255[27]](function(_0x206ax10){synchTriggers(_0x206ax10);console[_0x1255[16]](_0x1255[14],_0x206ax10[_0x1255[15]]);ReportAgent[_0x1255[21]](function(_0x206ax11){var _0x206ax12=_0x206axa[_0x1255[19]](_0x206ax11,_[_0x1255[18]](_0x206ax10,{channel:_0x1255[17]}));console[_0x1255[16]](_0x1255[20],_0x206ax12[_0x1255[15]]);execActions(_0x206ax12,_0x206ax11,_0x1255[17],_0x206axa,_0x206axb,_0x206axd,_0x206axe);});ReportAgent[_0x1255[23]](function(_0x206ax11){var _0x206ax12=_0x206axa[_0x1255[19]](_0x206ax11,_[_0x1255[18]](_0x206ax10,{channel:_0x1255[17]}));console[_0x1255[16]](_0x1255[22],_0x206ax12[_0x1255[15]]);execActions(_0x206ax12,_0x206ax11,_0x1255[17],_0x206axa,_0x206axb,_0x206axd,_0x206axe);});MailMessage[_0x1255[21]](function(_0x206ax11){if(_0x206ax11[_0x1255[24]]===_0x1255[25]){var _0x206ax12=_0x206axa[_0x1255[19]](_0x206ax11,_[_0x1255[18]](_0x206ax10,{channel:_0x1255[26]}));execActions(_0x206ax12,_0x206ax11,_0x1255[26],_0x206axa,_0x206axb,_0x206axd,_0x206axe);}});})[_0x1255[13]](function(_0x206axf){console[_0x1255[12]](_0x206axf)});};function execActions(_0x206ax12,_0x206ax11,_0x206ax14,_0x206axa,_0x206axb,_0x206axd,_0x206axe){_0x206ax12[_0x1255[40]](function(_0x206ax15){console[_0x1255[16]](_0x1255[29]+_0x206ax15[_0x1255[31]][_0x1255[30]]+_0x1255[32]);switch(_0x206ax15[_0x1255[31]][_0x1255[30]]){case _0x1255[35]:_0x206axe[_0x1255[34]](_0x206ax11[_0x1255[33]],_0x206ax14);break ;;case _0x1255[39]:_0x206axd[_0x1255[38]](_0x206ax15[_0x1255[36]],_0x206ax15[_0x1255[37]]);break ;;default:;};})}function synchTriggers(_0x206ax10){Trigger[_0x1255[21]](function(_0x206ax11){updateCollection(_0x206ax10,_0x206ax11);console[_0x1255[16]](_0x1255[41],_0x206ax10[_0x1255[15]]);});Trigger[_0x1255[23]](function(_0x206ax11){updateCollection(_0x206ax10,_0x206ax11);console[_0x1255[16]](_0x1255[42],_0x206ax10[_0x1255[15]]);});Trigger[_0x1255[46]](function(_0x206ax11){_[_0x1255[44]](_0x206ax10,{id:_0x206ax11[_0x1255[43]]});console[_0x1255[16]](_0x1255[45],_0x206ax10[_0x1255[15]]);});}function updateCollection(_0x206ax18,_0x206ax11){var _0x206ax19=_[_0x1255[47]](_0x206ax18,{id:_0x206ax11[_0x1255[43]]});var _0x206ax1a=_0x206ax18[_0x1255[48]](_0x206ax19);if(_0x206ax19){_[_0x1255[49]](_0x206ax18[_0x206ax1a],_0x206ax11)}else {_0x206ax18[_0x1255[50]](_0x206ax11)};}
\ No newline at end of file
-var _0xc72f=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x4D\x61\x69\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x69\x6E\x73\x74\x61\x6E\x63\x65\x73","\x2E\x2E\x2F\x73\x6D\x74\x70","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64","\x73\x65\x6E\x64","\x73\x6D\x74\x70","\x74\x68\x65\x6E","\x53\x45\x4E\x44\x49\x4E\x47","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x74\x6F","\x63\x63","","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xc72f[0]);function Mail(){console[_0xc72f[2]](_0xc72f[1])}Mail[_0xc72f[4]][_0xc72f[3]]=function(_0x9199x3){sendTemplate(_0x9199x3)};function sendTemplate(_0x9199x3,_0x9199x5){var _0x9199x6=require(_0xc72f[6])[_0xc72f[5]];var _0x9199x7=require(_0xc72f[6])[_0xc72f[7]];var _0x9199x8=require(_0xc72f[6])[_0xc72f[8]];var _0x9199x9=require(_0xc72f[10])[_0xc72f[9]];_0x9199x7[_0xc72f[25]](_0x9199x3,{include:[{all:true}]})[_0xc72f[15]](function(_0x9199xa){_0x9199x8[_0xc72f[24]]({status:_0xc72f[16],subject:_0x9199xa[_0xc72f[17]],from:_0x9199xa[_0xc72f[18]],to:_0x9199xa[_0xc72f[19]],cc:_0x9199xa[_0xc72f[20]]||_0xc72f[21],html:_0x9199xa[_0xc72f[22]]||null,text:_0x9199xa[_0xc72f[23]]||null})[_0xc72f[15]](function(_0x9199xc){var _0x9199xd=_[_0xc72f[12]](_0x9199x9,{user:_0x9199x5});if(_0x9199xd){_0x9199xd[_0xc72f[14]][_0xc72f[13]](_0x9199xc)};})[_0xc72f[11]](function(_0x9199xb){console[_0xc72f[2]](_0x9199xb)})});}module[_0xc72f[26]]=Mail;
\ No newline at end of file
+var _0xae56=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x4D\x61\x69\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x69\x6E\x73\x74\x61\x6E\x63\x65\x73","\x2E\x2E\x2F\x73\x6D\x74\x70","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64","\x73\x65\x6E\x64","\x73\x6D\x74\x70","\x74\x68\x65\x6E","\x53\x45\x4E\x44\x49\x4E\x47","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x74\x6F","\x63\x63","","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xae56[0]);function Mail(){console[_0xae56[2]](_0xae56[1])}Mail[_0xae56[4]][_0xae56[3]]=function(_0x6b72x3){sendTemplate(_0x6b72x3)};function sendTemplate(_0x6b72x3,_0x6b72x5){var _0x6b72x6=require(_0xae56[6])[_0xae56[5]];var _0x6b72x7=require(_0xae56[6])[_0xae56[7]];var _0x6b72x8=require(_0xae56[6])[_0xae56[8]];var _0x6b72x9=require(_0xae56[10])[_0xae56[9]];_0x6b72x7[_0xae56[25]](_0x6b72x3,{include:[{all:true}]})[_0xae56[15]](function(_0x6b72xa){_0x6b72x8[_0xae56[24]]({status:_0xae56[16],subject:_0x6b72xa[_0xae56[17]],from:_0x6b72xa[_0xae56[18]],to:_0x6b72xa[_0xae56[19]],cc:_0x6b72xa[_0xae56[20]]||_0xae56[21],html:_0x6b72xa[_0xae56[22]]||null,text:_0x6b72xa[_0xae56[23]]||null})[_0xae56[15]](function(_0x6b72xc){var _0x6b72xd=_[_0xae56[12]](_0x6b72x9,{user:_0x6b72x5});if(_0x6b72xd){_0x6b72xd[_0xae56[14]][_0xae56[13]](_0x6b72xc)};})[_0xae56[11]](function(_0x6b72xb){console[_0xae56[2]](_0x6b72xb)})});}module[_0xae56[26]]=Mail;
\ No newline at end of file
-var _0xf2a0=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x55\x74\x69\x6C\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x66\x72\x6F\x6D","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x3B","\x73\x70\x6C\x69\x74","\x63\x63","\x74\x6F","\x73\x74\x61\x74\x75\x73","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x6F\x70","\x62\x6F\x6F\x6C\x65\x61\x6E","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x72\x65\x73\x75\x6C\x74\x73","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x73\x75\x62\x47\x72\x6F\x75\x70\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6C\x65\x6E\x67\x74\x68","\x41\x4E\x44","\x72\x65\x64\x75\x63\x65","\x63\x6F\x6E\x63\x61\x74","\x66\x69\x6E\x61\x6C\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x73","\x61\x63\x74\x69\x6F\x6E\x73","\x6A\x6F\x69\x6E","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x64\x61\x74\x61","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x3D","\x3C\x3E","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xf2a0[0]);function Util(){console[_0xf2a0[2]](_0xf2a0[1])}Util[_0xf2a0[4]][_0xf2a0[3]]=function(_0xd9bex3,_0xd9bex4){var _0xd9bex5=[];_0xd9bex3[_0xf2a0[6]][_0xf2a0[5]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[5]]?_0xd9bex3[_0xf2a0[6]][_0xf2a0[5]][_0xf2a0[8]](_0xf2a0[7]):[];_0xd9bex3[_0xf2a0[6]][_0xf2a0[9]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[9]]?_0xd9bex3[_0xf2a0[6]][_0xf2a0[9]][_0xf2a0[8]](_0xf2a0[7]):[];_0xd9bex3[_0xf2a0[6]][_0xf2a0[10]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[10]]?_0xd9bex3[_0xf2a0[6]][_0xf2a0[10]][_0xf2a0[8]](_0xf2a0[7]):[];_0xd9bex4[_0xf2a0[20]](function(_0xd9bex6){if(_0xd9bex6[_0xf2a0[11]]){var _0xd9bex7={op:null,results:[],subGroups:[]};var _0xd9bex8=JSON[_0xf2a0[14]](_0xd9bex6[_0xf2a0[13]])[_0xf2a0[12]];_0xd9bex7[_0xf2a0[15]]=_0xd9bex8[_0xf2a0[16]];_0xd9bex8[_0xf2a0[21]][_0xf2a0[20]](function(_0xd9bex9){if(_0xd9bex9[_0xf2a0[17]]){_0xd9bex7[_0xf2a0[19]][_0xf2a0[18]](checkCondition(_0xd9bex9,_0xd9bex3[_0xf2a0[6]]))}else {if(_0xd9bex9[_0xf2a0[12]]){var _0xd9bexa=[];_0xd9bex9[_0xf2a0[12]][_0xf2a0[21]][_0xf2a0[20]](function(_0xd9bexb){_0xd9bexa[_0xf2a0[18]](checkCondition(_0xd9bexb,_0xd9bex3[_0xf2a0[6]]))});_0xd9bex7[_0xf2a0[22]][_0xf2a0[18]]({op:_0xd9bex9[_0xf2a0[12]][_0xf2a0[16]],results:_0xd9bexa});}}});console[_0xf2a0[2]](JSON[_0xf2a0[23]](_0xd9bex7));var _0xd9bexa=[],_0xd9bexc=[];_0xd9bex7[_0xf2a0[22]][_0xf2a0[20]](function(_0xd9bexd){_0xd9bexa[_0xf2a0[18]](_[_0xf2a0[26]](_0xd9bexd[_0xf2a0[19]][_0xf2a0[24]]?_0xd9bexd[_0xf2a0[19]]:[true],function(_0xd9bexe,_0xd9bexf){if(_0xd9bexd[_0xf2a0[15]]===_0xf2a0[25]){return _0xd9bexe&&_0xd9bexf}else {return _0xd9bexe||_0xd9bexf}}))});_0xd9bexc=_0xd9bex7[_0xf2a0[19]][_0xf2a0[27]](_0xd9bexa);var _0xd9bex10=_[_0xf2a0[26]](_0xd9bexc[_0xf2a0[24]]?_0xd9bexc:[true],function(_0xd9bexe,_0xd9bexf){if(_0xd9bex7[_0xf2a0[15]]===_0xf2a0[25]){return _0xd9bexe&&_0xd9bexf}else {return _0xd9bexe||_0xd9bexf}});console[_0xf2a0[2]](_0xf2a0[28],_0xd9bex10);if(_0xd9bex10){var _0xd9bex11=JSON[_0xf2a0[14]](_0xd9bex6[_0xf2a0[29]])[_0xf2a0[12]];_0xd9bex5=_0xd9bex5[_0xf2a0[27]](_0xd9bex11[_0xf2a0[21]]);};}});_0xd9bex3[_0xf2a0[6]][_0xf2a0[5]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[5]][_0xf2a0[30]](_0xf2a0[7]);_0xd9bex3[_0xf2a0[6]][_0xf2a0[9]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[9]][_0xf2a0[30]](_0xf2a0[7]);_0xd9bex3[_0xf2a0[6]][_0xf2a0[10]]=_0xd9bex3[_0xf2a0[6]][_0xf2a0[10]][_0xf2a0[30]](_0xf2a0[7]);return _0xd9bex5;};function checkCondition(_0xd9bex9,_0xd9bex3){var _0xd9bex13;switch(_0xd9bex9[_0xf2a0[17]]){case _0xf2a0[35]:_0xd9bex13=_[_0xf2a0[34]](_0xd9bex3[_0xd9bex9[_0xf2a0[32]][_0xf2a0[31]]],_0xd9bex9[_0xf2a0[33]]);break ;;case _0xf2a0[36]:_0xd9bex13=!_[_0xf2a0[34]](_0xd9bex3[_0xd9bex9[_0xf2a0[32]][_0xf2a0[31]]],_0xd9bex9[_0xf2a0[33]]);break ;;default:;};return _0xd9bex13;}module[_0xf2a0[37]]=Util;
\ No newline at end of file
+var _0xd384=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x55\x74\x69\x6C\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x66\x72\x6F\x6D","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x3B","\x73\x70\x6C\x69\x74","\x63\x63","\x74\x6F","\x73\x74\x61\x74\x75\x73","\x67\x72\x6F\x75\x70","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x70\x61\x72\x73\x65","\x6F\x70","\x62\x6F\x6F\x6C\x65\x61\x6E","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x70\x75\x73\x68","\x72\x65\x73\x75\x6C\x74\x73","\x66\x6F\x72\x45\x61\x63\x68","\x72\x75\x6C\x65\x73","\x73\x75\x62\x47\x72\x6F\x75\x70\x73","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6C\x65\x6E\x67\x74\x68","\x41\x4E\x44","\x72\x65\x64\x75\x63\x65","\x63\x6F\x6E\x63\x61\x74","\x66\x69\x6E\x61\x6C\x20\x72\x65\x73\x75\x6C\x74\x20\x69\x73","\x61\x63\x74\x69\x6F\x6E\x73","\x6A\x6F\x69\x6E","\x76\x61\x6C\x75\x65","\x66\x69\x65\x6C\x64","\x64\x61\x74\x61","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x3D","\x3C\x3E","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xd384[0]);function Util(){console[_0xd384[2]](_0xd384[1])}Util[_0xd384[4]][_0xd384[3]]=function(_0x9b94x3,_0x9b94x4){var _0x9b94x5=[];_0x9b94x3[_0xd384[6]][_0xd384[5]]=_0x9b94x3[_0xd384[6]][_0xd384[5]]?_0x9b94x3[_0xd384[6]][_0xd384[5]][_0xd384[8]](_0xd384[7]):[];_0x9b94x3[_0xd384[6]][_0xd384[9]]=_0x9b94x3[_0xd384[6]][_0xd384[9]]?_0x9b94x3[_0xd384[6]][_0xd384[9]][_0xd384[8]](_0xd384[7]):[];_0x9b94x3[_0xd384[6]][_0xd384[10]]=_0x9b94x3[_0xd384[6]][_0xd384[10]]?_0x9b94x3[_0xd384[6]][_0xd384[10]][_0xd384[8]](_0xd384[7]):[];_0x9b94x4[_0xd384[20]](function(_0x9b94x6){if(_0x9b94x6[_0xd384[11]]){var _0x9b94x7={op:null,results:[],subGroups:[]};var _0x9b94x8=JSON[_0xd384[14]](_0x9b94x6[_0xd384[13]])[_0xd384[12]];_0x9b94x7[_0xd384[15]]=_0x9b94x8[_0xd384[16]];_0x9b94x8[_0xd384[21]][_0xd384[20]](function(_0x9b94x9){if(_0x9b94x9[_0xd384[17]]){_0x9b94x7[_0xd384[19]][_0xd384[18]](checkCondition(_0x9b94x9,_0x9b94x3[_0xd384[6]]))}else {if(_0x9b94x9[_0xd384[12]]){var _0x9b94xa=[];_0x9b94x9[_0xd384[12]][_0xd384[21]][_0xd384[20]](function(_0x9b94xb){_0x9b94xa[_0xd384[18]](checkCondition(_0x9b94xb,_0x9b94x3[_0xd384[6]]))});_0x9b94x7[_0xd384[22]][_0xd384[18]]({op:_0x9b94x9[_0xd384[12]][_0xd384[16]],results:_0x9b94xa});}}});console[_0xd384[2]](JSON[_0xd384[23]](_0x9b94x7));var _0x9b94xa=[],_0x9b94xc=[];_0x9b94x7[_0xd384[22]][_0xd384[20]](function(_0x9b94xd){_0x9b94xa[_0xd384[18]](_[_0xd384[26]](_0x9b94xd[_0xd384[19]][_0xd384[24]]?_0x9b94xd[_0xd384[19]]:[true],function(_0x9b94xe,_0x9b94xf){if(_0x9b94xd[_0xd384[15]]===_0xd384[25]){return _0x9b94xe&&_0x9b94xf}else {return _0x9b94xe||_0x9b94xf}}))});_0x9b94xc=_0x9b94x7[_0xd384[19]][_0xd384[27]](_0x9b94xa);var _0x9b94x10=_[_0xd384[26]](_0x9b94xc[_0xd384[24]]?_0x9b94xc:[true],function(_0x9b94xe,_0x9b94xf){if(_0x9b94x7[_0xd384[15]]===_0xd384[25]){return _0x9b94xe&&_0x9b94xf}else {return _0x9b94xe||_0x9b94xf}});console[_0xd384[2]](_0xd384[28],_0x9b94x10);if(_0x9b94x10){var _0x9b94x11=JSON[_0xd384[14]](_0x9b94x6[_0xd384[29]])[_0xd384[12]];_0x9b94x5=_0x9b94x5[_0xd384[27]](_0x9b94x11[_0xd384[21]]);};}});_0x9b94x3[_0xd384[6]][_0xd384[5]]=_0x9b94x3[_0xd384[6]][_0xd384[5]][_0xd384[30]](_0xd384[7]);_0x9b94x3[_0xd384[6]][_0xd384[9]]=_0x9b94x3[_0xd384[6]][_0xd384[9]][_0xd384[30]](_0xd384[7]);_0x9b94x3[_0xd384[6]][_0xd384[10]]=_0x9b94x3[_0xd384[6]][_0xd384[10]][_0xd384[30]](_0xd384[7]);return _0x9b94x5;};function checkCondition(_0x9b94x9,_0x9b94x3){var _0x9b94x13;switch(_0x9b94x9[_0xd384[17]]){case _0xd384[35]:_0x9b94x13=_[_0xd384[34]](_0x9b94x3[_0x9b94x9[_0xd384[32]][_0xd384[31]]],_0x9b94x9[_0xd384[33]]);break ;;case _0xd384[36]:_0x9b94x13=!_[_0xd384[34]](_0x9b94x3[_0x9b94x9[_0xd384[32]][_0xd384[31]]],_0x9b94x9[_0xd384[33]]);break ;;default:;};return _0x9b94x13;}module[_0xd384[37]]=Util;
\ No newline at end of file
-var _0x7748=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x56\x6F\x69\x63\x65\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0x7748[0]);function Voice(){console[_0x7748[2]](_0x7748[1])}module[_0x7748[3]]=Voice;
\ No newline at end of file
+var _0x36e3=["\x6C\x6F\x64\x61\x73\x68","\x54\x72\x69\x67\x67\x65\x72\x20\x56\x6F\x69\x63\x65\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0x36e3[0]);function Voice(){console[_0x36e3[2]](_0x36e3[1])}module[_0x36e3[3]]=Voice;
\ No newline at end of file
-var _0x383d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x45\x58\x54\x45\x52\x4E\x41\x4C\x20\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E","\x6C\x6F\x67"];_0x383d[0];module[_0x383d[1]]=function(_0xb210x1,_0xb210x2){console[_0x383d[3]](_0x383d[2])};
\ No newline at end of file
+var _0x2d22=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x45\x58\x54\x45\x52\x4E\x41\x4C\x20\x41\x50\x50\x4C\x49\x43\x41\x54\x49\x4F\x4E","\x6C\x6F\x67"];_0x2d22[0];module[_0x2d22[1]]=function(_0xc3fcx1,_0xc3fcx2){console[_0x2d22[3]](_0x2d22[2])};
\ No newline at end of file
-var _0x8ffb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x74\x65\x73\x74\x41\x74\x74\x72","\x53\x54\x52\x49\x4E\x47","\x61\x64\x64\x43\x6F\x6C\x75\x6D\x6E","\x72\x65\x6D\x6F\x76\x65\x43\x6F\x6C\x75\x6D\x6E"];_0x8ffb[0];module[_0x8ffb[1]]={up:function(_0x4989x1,_0x4989x2){return _0x4989x1[_0x8ffb[5]](_0x8ffb[2],_0x8ffb[3],{type:_0x4989x2[_0x8ffb[4]]})},down:function(_0x4989x1,_0x4989x2){return _0x4989x1[_0x8ffb[6]](_0x8ffb[2],_0x8ffb[3])}};
\ No newline at end of file
+var _0x821c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x74\x65\x73\x74\x41\x74\x74\x72","\x53\x54\x52\x49\x4E\x47","\x61\x64\x64\x43\x6F\x6C\x75\x6D\x6E","\x72\x65\x6D\x6F\x76\x65\x43\x6F\x6C\x75\x6D\x6E"];_0x821c[0];module[_0x821c[1]]={up:function(_0x6d1dx1,_0x6d1dx2){return _0x6d1dx1[_0x821c[5]](_0x821c[2],_0x821c[3],{type:_0x6d1dx2[_0x821c[4]]})},down:function(_0x6d1dx1,_0x6d1dx2){return _0x6d1dx1[_0x821c[6]](_0x821c[2],_0x821c[3])}};
\ No newline at end of file
-var _0x5aa0=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x41\x73\x74\x65\x72\x69\x73\x6B\x4D\x61\x6E\x61\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x61\x73\x74\x65\x72\x69\x73\x6B\x5F\x6D\x61\x6E\x61\x67\x65\x72","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x5aa0[0]);module[_0x5aa0[1]]=function(_0xf53bx2,_0xf53bx3){var _0xf53bx4=_0xf53bx2[_0x5aa0[6]](_0x5aa0[2],{address:_0xf53bx3[_0x5aa0[3]],port:_0xf53bx3[_0x5aa0[4]],username:_0xf53bx3[_0x5aa0[3]],password:_0xf53bx3[_0x5aa0[3]]},{tableName:_0x5aa0[5]});return _0xf53bx4;};
\ No newline at end of file
+var _0xc4df=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x41\x73\x74\x65\x72\x69\x73\x6B\x4D\x61\x6E\x61\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x61\x73\x74\x65\x72\x69\x73\x6B\x5F\x6D\x61\x6E\x61\x67\x65\x72","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xc4df[0]);module[_0xc4df[1]]=function(_0xe62fx2,_0xe62fx3){var _0xe62fx4=_0xe62fx2[_0xc4df[6]](_0xc4df[2],{address:_0xe62fx3[_0xc4df[3]],port:_0xe62fx3[_0xc4df[4]],username:_0xe62fx3[_0xc4df[3]],password:_0xe62fx3[_0xc4df[3]]},{tableName:_0xc4df[5]});return _0xe62fx4;};
\ No newline at end of file
-var _0xc0e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x6D\x69","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x61\x73\x74\x65\x72\x69\x73\x6B\x5F\x6D\x61\x6E\x61\x67\x65\x72\x5F\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xc0e0[0];module[_0xc0e0[1]]=function(_0x83f1x1,_0x83f1x2){var _0x83f1x3=_0x83f1x1[_0xc0e0[7]](_0xc0e0[2],{actionid:_0x83f1x2[_0xc0e0[3]],action:_0x83f1x2[_0xc0e0[3]],response:_0x83f1x2[_0xc0e0[3]],message:_0x83f1x2[_0xc0e0[3]],data:_0x83f1x2[_0xc0e0[4]]},{tableName:_0xc0e0[5],associate:function(_0x83f1x4){_0x83f1x3[_0xc0e0[6]](_0x83f1x4.User)}});return _0x83f1x3;};
\ No newline at end of file
+var _0x8733=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x6D\x69","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x61\x73\x74\x65\x72\x69\x73\x6B\x5F\x6D\x61\x6E\x61\x67\x65\x72\x5F\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x8733[0];module[_0x8733[1]]=function(_0x1c2fx1,_0x1c2fx2){var _0x1c2fx3=_0x1c2fx1[_0x8733[7]](_0x8733[2],{actionid:_0x1c2fx2[_0x8733[3]],action:_0x1c2fx2[_0x8733[3]],response:_0x1c2fx2[_0x8733[3]],message:_0x1c2fx2[_0x8733[3]],data:_0x1c2fx2[_0x8733[4]]},{tableName:_0x8733[5],associate:function(_0x1c2fx4){_0x1c2fx3[_0x8733[6]](_0x1c2fx4.User)}});return _0x1c2fx3;};
\ No newline at end of file
-var _0x1b63=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x43\x6F\x6E\x74\x61\x63\x74","\x53\x54\x52\x49\x4E\x47","\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0x1b63[0];module[_0x1b63[1]]=function(_0xb414x1,_0xb414x2){var _0xb414x3=_0xb414x1[_0x1b63[5]](_0x1b63[2],{status:{type:_0xb414x2[_0x1b63[3]]}},{tableName:_0x1b63[4]});return _0xb414x3;};
\ No newline at end of file
+var _0xee50=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x43\x6F\x6E\x74\x61\x63\x74","\x53\x54\x52\x49\x4E\x47","\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xee50[0];module[_0xee50[1]]=function(_0x7034x1,_0x7034x2){var _0x7034x3=_0x7034x1[_0xee50[5]](_0xee50[2],{status:{type:_0x7034x2[_0xee50[3]]}},{tableName:_0xee50[4]});return _0x7034x3;};
\ No newline at end of file
-var _0xf515=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x50\x72\x6F\x63\x65\x73\x73","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x5F\x70\x72\x6F\x63\x65\x73\x73\x65\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x43\x6F\x6E\x74\x61\x63\x74","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xf515[0];module[_0xf515[1]]=function(_0xf143x1,_0xf143x2){var _0xf143x3=_0xf143x1[_0xf515[9]](_0xf515[2],{name:{type:_0xf143x2[_0xf515[3]],unique:true},description:{type:_0xf143x2[_0xf515[3]]},context:{type:_0xf143x2[_0xf515[3]]},extension:{type:_0xf143x2[_0xf515[3]]},priority:{type:_0xf143x2[_0xf515[4]]},callerid:{type:_0xf143x2[_0xf515[3]]},waittime:{type:_0xf143x2[_0xf515[4]]},maxretry:{type:_0xf143x2[_0xf515[4]]},retrytime:{type:_0xf143x2[_0xf515[4]]},prefix:{type:_0xf143x2[_0xf515[3]]},maxcall:{type:_0xf143x2[_0xf515[4]]},enable:{type:_0xf143x2[_0xf515[5]],defaultValue:true}},{tableName:_0xf515[6],associate:function(_0xf143x4){_0xf143x3[_0xf515[8]](_0xf143x4.Contact,{through:_0xf143x4[_0xf515[7]]})}});return _0xf143x3;};
\ No newline at end of file
+var _0xf866=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x50\x72\x6F\x63\x65\x73\x73","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x61\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x5F\x70\x72\x6F\x63\x65\x73\x73\x65\x73","\x41\x75\x74\x6F\x64\x69\x61\x6C\x65\x72\x43\x6F\x6E\x74\x61\x63\x74","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xf866[0];module[_0xf866[1]]=function(_0x8b8fx1,_0x8b8fx2){var _0x8b8fx3=_0x8b8fx1[_0xf866[9]](_0xf866[2],{name:{type:_0x8b8fx2[_0xf866[3]],unique:true},description:{type:_0x8b8fx2[_0xf866[3]]},context:{type:_0x8b8fx2[_0xf866[3]]},extension:{type:_0x8b8fx2[_0xf866[3]]},priority:{type:_0x8b8fx2[_0xf866[4]]},callerid:{type:_0x8b8fx2[_0xf866[3]]},waittime:{type:_0x8b8fx2[_0xf866[4]]},maxretry:{type:_0x8b8fx2[_0xf866[4]]},retrytime:{type:_0x8b8fx2[_0xf866[4]]},prefix:{type:_0x8b8fx2[_0xf866[3]]},maxcall:{type:_0x8b8fx2[_0xf866[4]]},enable:{type:_0x8b8fx2[_0xf866[5]],defaultValue:true}},{tableName:_0xf866[6],associate:function(_0x8b8fx4){_0x8b8fx3[_0xf866[8]](_0x8b8fx4.Contact,{through:_0x8b8fx4[_0xf866[7]]})}});return _0x8b8fx3;};
\ No newline at end of file
-var _0x3bce=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3bce[0]);module[_0x3bce[1]]=function(_0xdd6fx2,_0xdd6fx3){var _0xdd6fx4=_0xdd6fx2[_0x3bce[7]](_0x3bce[2],{name:_0xdd6fx3[_0x3bce[3]],channel:_0xdd6fx3[_0x3bce[3]],description:_0xdd6fx3[_0x3bce[3]],conditions:_0xdd6fx3[_0x3bce[4]],actions:_0xdd6fx3[_0x3bce[4]],status:{type:_0xdd6fx3[_0x3bce[5]],defaultValue:false}},{tableName:_0x3bce[6]});return _0xdd6fx4;};
\ No newline at end of file
+var _0x9234=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x9234[0]);module[_0x9234[1]]=function(_0xf95fx2,_0xf95fx3){var _0xf95fx4=_0xf95fx2[_0x9234[7]](_0x9234[2],{name:_0xf95fx3[_0x9234[3]],channel:_0xf95fx3[_0x9234[3]],description:_0xf95fx3[_0x9234[3]],conditions:_0xf95fx3[_0x9234[4]],actions:_0xf95fx3[_0x9234[4]],status:{type:_0xf95fx3[_0x9234[5]],defaultValue:false}},{tableName:_0x9234[6]});return _0xf95fx4;};
\ No newline at end of file
-var _0x5483=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x5483[0]);module[_0x5483[1]]=function(_0x9f62x2,_0x9f62x3){var _0x9f62x4=_0x9f62x2[_0x5483[7]](_0x5483[2],{condition:{type:_0x9f62x3[_0x5483[3]]},attribute:{type:_0x9f62x3[_0x5483[3]]}},{tableName:_0x5483[4],associate:function(_0x9f62x5){_0x9f62x4[_0x5483[6]](_0x9f62x5.MailBusinessAutomation,{onDelete:_0x5483[5]});_0x9f62x4[_0x5483[6]](_0x9f62x5.FaxBusinessAutomation,{onDelete:_0x5483[5]});}});return _0x9f62x4;};
\ No newline at end of file
+var _0x6ea3=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x63\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x6ea3[0]);module[_0x6ea3[1]]=function(_0x4d92x2,_0x4d92x3){var _0x4d92x4=_0x4d92x2[_0x6ea3[7]](_0x6ea3[2],{condition:{type:_0x4d92x3[_0x6ea3[3]]},attribute:{type:_0x4d92x3[_0x6ea3[3]]}},{tableName:_0x6ea3[4],associate:function(_0x4d92x5){_0x4d92x4[_0x6ea3[6]](_0x4d92x5.MailBusinessAutomation,{onDelete:_0x6ea3[5]});_0x4d92x4[_0x6ea3[6]](_0x4d92x5.FaxBusinessAutomation,{onDelete:_0x6ea3[5]});}});return _0x4d92x4;};
\ No newline at end of file
-var _0x39b1=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x6F\x72","\x61\x6E\x64","\x53\x54\x52\x49\x4E\x47","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x39b1[0]);module[_0x39b1[1]]=function(_0xde6dx2,_0xde6dx3){var _0xde6dx4=_0xde6dx2[_0x39b1[9]](_0x39b1[2],{type:{type:_0xde6dx3.ENUM(_0x39b1[3],_0x39b1[4])},condition:{type:_0xde6dx3[_0x39b1[5]]},operator:{type:_0xde6dx3[_0x39b1[5]]},attribute:{type:_0xde6dx3[_0x39b1[5]]}},{tableName:_0x39b1[6],associate:function(_0xde6dx5){_0xde6dx4[_0x39b1[8]](_0xde6dx5.MailBusinessAutomation,{onDelete:_0x39b1[7]});_0xde6dx4[_0x39b1[8]](_0xde6dx5.FaxBusinessAutomation,{onDelete:_0x39b1[7]});}});return _0xde6dx4;};
\ No newline at end of file
+var _0xd49a=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x42\x75\x73\x69\x6E\x65\x73\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x6F\x72","\x61\x6E\x64","\x53\x54\x52\x49\x4E\x47","\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xd49a[0]);module[_0xd49a[1]]=function(_0x1593x2,_0x1593x3){var _0x1593x4=_0x1593x2[_0xd49a[9]](_0xd49a[2],{type:{type:_0x1593x3.ENUM(_0xd49a[3],_0xd49a[4])},condition:{type:_0x1593x3[_0xd49a[5]]},operator:{type:_0x1593x3[_0xd49a[5]]},attribute:{type:_0x1593x3[_0xd49a[5]]}},{tableName:_0xd49a[6],associate:function(_0x1593x5){_0x1593x4[_0xd49a[8]](_0x1593x5.MailBusinessAutomation,{onDelete:_0xd49a[7]});_0x1593x4[_0xd49a[8]](_0x1593x5.FaxBusinessAutomation,{onDelete:_0xd49a[7]});}});return _0x1593x4;};
\ No newline at end of file
-var _0x5b26=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x6E\x6E\x65\x6C","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x75\x73\x65\x64","\x64\x6F\x6E\x65","\x66\x69\x6E\x64","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x5b26[0]]=function(_0xbe43x1,_0xbe43x2){var _0xbe43x3=_0xbe43x1[_0x5b26[9]](_0x5b26[1],{name:{type:_0xbe43x2[_0x5b26[2]],validate:{isUnique:function(_0xbe43x4,_0xbe43x5){_0xbe43x3[_0x5b26[5]]({where:{name:_0xbe43x4}})[_0x5b26[4]](function(_0xbe43x6,_0xbe43x7){if(_0xbe43x6){_0xbe43x5(_0xbe43x6)};if(_0xbe43x7){_0xbe43x5({message:_0x5b26[3]})};_0xbe43x5();})}}},title:_0xbe43x2[_0x5b26[2]],link:_0xbe43x2[_0x5b26[2]],icon:_0xbe43x2[_0x5b26[2]],position:_0xbe43x2[_0x5b26[2]]},{tableName:_0x5b26[6],associate:function(_0xbe43x8){_0xbe43x3[_0x5b26[8]](_0xbe43x8.User,{through:_0x5b26[7]})}});return _0xbe43x3;};
\ No newline at end of file
+var _0xa828=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x6E\x6E\x65\x6C","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65\x20\x61\x6C\x72\x65\x61\x64\x79\x20\x75\x73\x65\x64","\x64\x6F\x6E\x65","\x66\x69\x6E\x64","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0xa828[0]]=function(_0x27d6x1,_0x27d6x2){var _0x27d6x3=_0x27d6x1[_0xa828[9]](_0xa828[1],{name:{type:_0x27d6x2[_0xa828[2]],validate:{isUnique:function(_0x27d6x4,_0x27d6x5){_0x27d6x3[_0xa828[5]]({where:{name:_0x27d6x4}})[_0xa828[4]](function(_0x27d6x6,_0x27d6x7){if(_0x27d6x6){_0x27d6x5(_0x27d6x6)};if(_0x27d6x7){_0x27d6x5({message:_0xa828[3]})};_0x27d6x5();})}}},title:_0x27d6x2[_0xa828[2]],link:_0x27d6x2[_0xa828[2]],icon:_0x27d6x2[_0xa828[2]],position:_0x27d6x2[_0xa828[2]]},{tableName:_0xa828[6],associate:function(_0x27d6x8){_0x27d6x3[_0xa828[8]](_0x27d6x8.User,{through:_0xa828[7]})}});return _0x27d6x3;};
\ No newline at end of file
-var _0x9347=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x9347[0];module[_0x9347[1]]=function(_0x34f8x1,_0x34f8x2){var _0x34f8x3=_0x34f8x1[_0x9347[9]](_0x9347[2],{app:{type:_0x34f8x2.ENUM(_0x9347[3],_0x9347[4])},priority:{type:_0x34f8x2[_0x9347[5]]},timeout:{type:_0x34f8x2[_0x9347[5]]},interval:{type:_0x34f8x2[_0x9347[6]]}},{tableName:_0x9347[7],associate:function(_0x34f8x4){_0x34f8x3[_0x9347[8]](_0x34f8x4.ChatWebsite);_0x34f8x3[_0x9347[8]](_0x34f8x4.Interval);_0x34f8x3[_0x9347[8]](_0x34f8x4.ChatQueue);_0x34f8x3[_0x9347[8]](_0x34f8x4.User);}});return _0x34f8x3;};
\ No newline at end of file
+var _0x83c7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x83c7[0];module[_0x83c7[1]]=function(_0x9709x1,_0x9709x2){var _0x9709x3=_0x9709x1[_0x83c7[9]](_0x83c7[2],{app:{type:_0x9709x2.ENUM(_0x83c7[3],_0x83c7[4])},priority:{type:_0x9709x2[_0x83c7[5]]},timeout:{type:_0x9709x2[_0x83c7[5]]},interval:{type:_0x9709x2[_0x83c7[6]]}},{tableName:_0x83c7[7],associate:function(_0x9709x4){_0x9709x3[_0x83c7[8]](_0x9709x4.ChatWebsite);_0x9709x3[_0x83c7[8]](_0x9709x4.Interval);_0x9709x3[_0x83c7[8]](_0x9709x4.ChatQueue);_0x9709x3[_0x83c7[8]](_0x9709x4.User);}});return _0x9709x3;};
\ No newline at end of file
-var _0x7d78=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x69\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x7d78[0];module[_0x7d78[1]]=function(_0x81d5x1,_0x81d5x2){var _0x81d5x3=_0x81d5x1[_0x7d78[8]](_0x7d78[2],{username:_0x81d5x2[_0x7d78[3]],email:_0x81d5x2[_0x7d78[3]],text:_0x81d5x2[_0x7d78[4]],read:{type:_0x81d5x2[_0x7d78[5]],defaultValue:false}},{tableName:_0x7d78[6],associate:function(_0x81d5x4){_0x81d5x3[_0x7d78[7]](_0x81d5x4.ChatWebsite);_0x81d5x3[_0x7d78[7]](_0x81d5x4.ChatVisitor);}});return _0x81d5x3;};
\ No newline at end of file
+var _0x15a8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x69\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x15a8[0];module[_0x15a8[1]]=function(_0xb33fx1,_0xb33fx2){var _0xb33fx3=_0xb33fx1[_0x15a8[8]](_0x15a8[2],{username:_0xb33fx2[_0x15a8[3]],email:_0xb33fx2[_0x15a8[3]],text:_0xb33fx2[_0x15a8[4]],read:{type:_0xb33fx2[_0x15a8[5]],defaultValue:false}},{tableName:_0x15a8[6],associate:function(_0xb33fx4){_0xb33fx3[_0x15a8[7]](_0xb33fx4.ChatWebsite);_0xb33fx3[_0x15a8[7]](_0xb33fx4.ChatVisitor);}});return _0xb33fx3;};
\ No newline at end of file
-var _0xb21e=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x54\x45\x58\x54","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xb21e[0]);module[_0xb21e[1]]=function(_0x387dx2,_0x387dx3){var _0x387dx4=_0x387dx2[_0xb21e[6]](_0xb21e[2],{body:{type:_0x387dx3[_0xb21e[3]],notNull:true,notEmpty:true}},{tableName:_0xb21e[4],associate:function(_0x387dx5){_0x387dx4[_0xb21e[5]](_0x387dx5.ChatRoom);_0x387dx4[_0xb21e[5]](_0x387dx5.ChatVisitor);_0x387dx4[_0xb21e[5]](_0x387dx5.User);}});return _0x387dx4;};
\ No newline at end of file
+var _0x3351=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x4D\x65\x73\x73\x61\x67\x65","\x54\x45\x58\x54","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3351[0]);module[_0x3351[1]]=function(_0xc847x2,_0xc847x3){var _0xc847x4=_0xc847x2[_0x3351[6]](_0x3351[2],{body:{type:_0xc847x3[_0x3351[3]],notNull:true,notEmpty:true}},{tableName:_0x3351[4],associate:function(_0xc847x5){_0xc847x4[_0x3351[5]](_0xc847x5.ChatRoom);_0xc847x4[_0x3351[5]](_0xc847x5.ChatVisitor);_0xc847x4[_0x3351[5]](_0xc847x5.User);}});return _0xc847x4;};
\ No newline at end of file
-var _0x68ac=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x68ac[0];module[_0x68ac[1]]=function(_0xa1c5x1,_0xa1c5x2){var _0xa1c5x3=_0xa1c5x1[_0x68ac[10]](_0x68ac[2],{name:{type:_0xa1c5x2[_0x68ac[3]],unique:true},description:{type:_0xa1c5x2[_0x68ac[3]]},timeout:{type:_0xa1c5x2[_0x68ac[4]]},strategy:{type:_0xa1c5x2.ENUM(_0x68ac[5],_0x68ac[6])}},{tableName:_0x68ac[7],associate:function(_0xa1c5x4){_0xa1c5x3[_0x68ac[9]](_0xa1c5x4.User,{through:_0xa1c5x4[_0x68ac[8]]})}});return _0xa1c5x3;};
\ No newline at end of file
+var _0x3fc6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x3fc6[0];module[_0x3fc6[1]]=function(_0xe2dbx1,_0xe2dbx2){var _0xe2dbx3=_0xe2dbx1[_0x3fc6[10]](_0x3fc6[2],{name:{type:_0xe2dbx2[_0x3fc6[3]],unique:true},description:{type:_0xe2dbx2[_0x3fc6[3]]},timeout:{type:_0xe2dbx2[_0x3fc6[4]]},strategy:{type:_0xe2dbx2.ENUM(_0x3fc6[5],_0x3fc6[6])}},{tableName:_0x3fc6[7],associate:function(_0xe2dbx4){_0xe2dbx3[_0x3fc6[9]](_0xe2dbx4.User,{through:_0xe2dbx4[_0x3fc6[8]]})}});return _0xe2dbx3;};
\ No newline at end of file
-var _0xec42=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x70\x65\x6E\x64\x69\x6E\x67","\x6F\x70\x65\x6E","\x63\x6C\x6F\x73\x65","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xec42[0]);module[_0xec42[1]]=function(_0xfd26x2,_0xfd26x3){var _0xfd26x4=_0xfd26x2[_0xec42[14]](_0xec42[2],{type:_0xfd26x3.ENUM(_0xec42[3],_0xec42[4]),name:_0xfd26x3[_0xec42[5]],token:{type:_0xfd26x3[_0xec42[5]],unique:true},status:{type:_0xfd26x3.ENUM(_0xec42[6],_0xec42[7],_0xec42[8]),defaultValue:_0xec42[6]}},{tableName:_0xec42[9],associate:function(_0xfd26x5){_0xfd26x4[_0xec42[10]](_0xfd26x5.ChatMessage);_0xfd26x4[_0xec42[11]](_0xfd26x5.ChatVisitor);_0xfd26x4[_0xec42[11]](_0xfd26x5.ChatWebsite);_0xfd26x4[_0xec42[13]](_0xfd26x5.User,{through:_0xfd26x5[_0xec42[12]]});}});return _0xfd26x4;};
\ No newline at end of file
+var _0xe46c=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x70\x65\x6E\x64\x69\x6E\x67","\x6F\x70\x65\x6E","\x63\x6C\x6F\x73\x65","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xe46c[0]);module[_0xe46c[1]]=function(_0x4500x2,_0x4500x3){var _0x4500x4=_0x4500x2[_0xe46c[14]](_0xe46c[2],{type:_0x4500x3.ENUM(_0xe46c[3],_0xe46c[4]),name:_0x4500x3[_0xe46c[5]],token:{type:_0x4500x3[_0xe46c[5]],unique:true},status:{type:_0x4500x3.ENUM(_0xe46c[6],_0xe46c[7],_0xe46c[8]),defaultValue:_0xe46c[6]}},{tableName:_0xe46c[9],associate:function(_0x4500x5){_0x4500x4[_0xe46c[10]](_0x4500x5.ChatMessage);_0x4500x4[_0xe46c[11]](_0x4500x5.ChatVisitor);_0x4500x4[_0xe46c[11]](_0x4500x5.ChatWebsite);_0x4500x4[_0xe46c[13]](_0x4500x5.User,{through:_0x4500x5[_0xe46c[12]]});}});return _0x4500x4;};
\ No newline at end of file
-var _0x84e8=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x53\x54\x52\x49\x4E\x47","\x77\x65\x62\x63\x68\x61\x74","\x65\x6E\x71\x75\x69\x72\x79","\x70\x65\x6E\x64\x69\x6E\x67","\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x65\x72\x76\x65\x64","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x84e8[0]);module[_0x84e8[1]]=function(_0x6153x2,_0x6153x3){var _0x6153x4=_0x6153x2[_0x84e8[12]](_0x84e8[2],{fullname:_0x6153x3[_0x84e8[3]],email:_0x6153x3[_0x84e8[3]],remote_address:_0x6153x3[_0x84e8[3]],user_agent:_0x6153x3[_0x84e8[3]],visitor_language:_0x6153x3[_0x84e8[3]],referer:_0x6153x3[_0x84e8[3]],browser:_0x6153x3[_0x84e8[3]],engine:_0x6153x3[_0x84e8[3]],os:_0x6153x3[_0x84e8[3]],device:_0x6153x3[_0x84e8[3]],country:_0x6153x3[_0x84e8[3]],region:_0x6153x3[_0x84e8[3]],city:_0x6153x3[_0x84e8[3]],latitude:_0x6153x3[_0x84e8[3]],longitude:_0x6153x3[_0x84e8[3]],origin:_0x6153x3.ENUM(_0x84e8[4],_0x84e8[5]),status:{type:_0x6153x3.ENUM(_0x84e8[6],_0x84e8[7],_0x84e8[8]),defaultValue:_0x84e8[6]}},{tableName:_0x84e8[9],associate:function(_0x6153x5){_0x6153x4[_0x84e8[10]](_0x6153x5.ChatMessage);_0x6153x4[_0x84e8[10]](_0x6153x5.ChatRoom);_0x6153x4[_0x84e8[11]](_0x6153x5.ChatWebsite);}});return _0x6153x4;};
\ No newline at end of file
+var _0x9cfc=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x53\x54\x52\x49\x4E\x47","\x77\x65\x62\x63\x68\x61\x74","\x65\x6E\x71\x75\x69\x72\x79","\x70\x65\x6E\x64\x69\x6E\x67","\x75\x6E\x73\x65\x72\x76\x65\x64","\x73\x65\x72\x76\x65\x64","\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x9cfc[0]);module[_0x9cfc[1]]=function(_0x3debx2,_0x3debx3){var _0x3debx4=_0x3debx2[_0x9cfc[12]](_0x9cfc[2],{fullname:_0x3debx3[_0x9cfc[3]],email:_0x3debx3[_0x9cfc[3]],remote_address:_0x3debx3[_0x9cfc[3]],user_agent:_0x3debx3[_0x9cfc[3]],visitor_language:_0x3debx3[_0x9cfc[3]],referer:_0x3debx3[_0x9cfc[3]],browser:_0x3debx3[_0x9cfc[3]],engine:_0x3debx3[_0x9cfc[3]],os:_0x3debx3[_0x9cfc[3]],device:_0x3debx3[_0x9cfc[3]],country:_0x3debx3[_0x9cfc[3]],region:_0x3debx3[_0x9cfc[3]],city:_0x3debx3[_0x9cfc[3]],latitude:_0x3debx3[_0x9cfc[3]],longitude:_0x3debx3[_0x9cfc[3]],origin:_0x3debx3.ENUM(_0x9cfc[4],_0x9cfc[5]),status:{type:_0x3debx3.ENUM(_0x9cfc[6],_0x9cfc[7],_0x9cfc[8]),defaultValue:_0x9cfc[6]}},{tableName:_0x9cfc[9],associate:function(_0x3debx5){_0x3debx4[_0x9cfc[10]](_0x3debx5.ChatMessage);_0x3debx4[_0x9cfc[10]](_0x3debx5.ChatRoom);_0x3debx4[_0x9cfc[11]](_0x3debx5.ChatWebsite);}});return _0x3debx4;};
\ No newline at end of file
-var _0x30e0=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x53\x54\x52\x49\x4E\x47","\x23\x30\x30\x30\x30\x38\x30","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x6F\x75\x6E\x64\x65\x64","\x73\x71\x75\x61\x72\x65\x64","\x57\x65\x20\x61\x72\x65\x20\x68\x65\x72\x65\x21","\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x51\x75\x65\x73\x74\x69\x6F\x6E\x73\x3F\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x6E\x73\x65\x72\x74\x20\x79\x6F\x75\x72\x20\x6E\x61\x6D\x65\x20\x61\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x20\x74\x6F\x20\x73\x74\x61\x72\x74\x20\x61\x20\x6C\x69\x76\x65\x2D\x63\x68\x61\x74\x20\x77\x69\x74\x68\x20\x6F\x75\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x74\x65\x61\x6D\x2E","\x59\x6F\x75\x72\x20\x6E\x61\x6D\x65","\x59\x6F\x75\x72\x20\x65\x2D\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73","\x43\x68\x61\x74","\x43\x6F\x6E\x74\x61\x63\x74\x20\x75\x73","\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x57\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x6F\x6E\x6C\x69\x6E\x65\x2E\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x6D\x65\x61\x6E\x20\x77\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x74\x68\x65\x72\x65\x20\x74\x6F\x20\x68\x65\x6C\x70\x20\x2D\x20\x6C\x65\x61\x76\x65\x20\x79\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x62\x65\x6C\x6F\x77\x20\x61\x6E\x64\x20\x77\x65\x27\x6C\x6C\x20\x62\x65\x20\x69\x6E\x20\x74\x6F\x75\x63\x68\x20\x61\x73\x20\x73\x6F\x6F\x6E\x20\x61\x73\x20\x70\x6F\x73\x73\x69\x62\x6C\x65\x2E","\x59\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x2E\x2E\x2E","\x4C\x65\x61\x76\x65\x20\x6D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x73","\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x30e0[0]);module[_0x30e0[1]]=function(_0x370cx2,_0x370cx3){var _0x370cx4=_0x370cx2[_0x30e0[21]](_0x30e0[2],{name:_0x370cx3[_0x30e0[3]],address:{type:_0x370cx3[_0x30e0[3]],unique:true},description:_0x370cx3[_0x30e0[3]],color:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[4]},color_focus:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[4]},color_button:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[4]},remote:_0x370cx3[_0x30e0[3]],animation:{type:_0x370cx3[_0x30e0[5]],defaultValue:true},header_shape:{type:_0x370cx3.ENUM(_0x30e0[6],_0x30e0[7]),defaultValue:_0x30e0[6]},header_online:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[8]},online_message:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[9]},username_placeholder:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[10]},email_placeholder:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[11]},start_chat_button:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[12]},header_offline:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[13]},offline_message:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[14]},enquiry_message_placeholder:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[15]},enquiry_button:{type:_0x370cx3[_0x30e0[3]],defaultValue:_0x30e0[16]},download_transcript:{type:_0x370cx3[_0x30e0[5]],defaultValue:true},enquiry_forwarding:{type:_0x370cx3[_0x30e0[5]],defaultValue:false},enquiry_forwarding_address:{type:_0x370cx3[_0x30e0[3]]}},{tableName:_0x30e0[17],associate:function(_0x370cx5){_0x370cx4[_0x30e0[19]](_0x370cx5.MailTemplate,{as:_0x30e0[18]});_0x370cx4[_0x30e0[20]](_0x370cx5.ChatRoom);_0x370cx4[_0x30e0[20]](_0x370cx5.ChatApplication);}});return _0x370cx4;};
\ No newline at end of file
+var _0x3323=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x53\x54\x52\x49\x4E\x47","\x23\x30\x30\x30\x30\x38\x30","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x6F\x75\x6E\x64\x65\x64","\x73\x71\x75\x61\x72\x65\x64","\x57\x65\x20\x61\x72\x65\x20\x68\x65\x72\x65\x21","\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x51\x75\x65\x73\x74\x69\x6F\x6E\x73\x3F\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x6E\x73\x65\x72\x74\x20\x79\x6F\x75\x72\x20\x6E\x61\x6D\x65\x20\x61\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73\x20\x74\x6F\x20\x73\x74\x61\x72\x74\x20\x61\x20\x6C\x69\x76\x65\x2D\x63\x68\x61\x74\x20\x77\x69\x74\x68\x20\x6F\x75\x72\x20\x73\x75\x70\x70\x6F\x72\x74\x20\x74\x65\x61\x6D\x2E","\x59\x6F\x75\x72\x20\x6E\x61\x6D\x65","\x59\x6F\x75\x72\x20\x65\x2D\x6D\x61\x69\x6C\x20\x61\x64\x64\x72\x65\x73\x73","\x43\x68\x61\x74","\x43\x6F\x6E\x74\x61\x63\x74\x20\x75\x73","\x3C\x73\x74\x72\x6F\x6E\x67\x3E\x57\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x6F\x6E\x6C\x69\x6E\x65\x2E\x3C\x2F\x73\x74\x72\x6F\x6E\x67\x3E\x3C\x62\x72\x20\x2F\x3E\x49\x74\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x6D\x65\x61\x6E\x20\x77\x65\x27\x72\x65\x20\x6E\x6F\x74\x20\x74\x68\x65\x72\x65\x20\x74\x6F\x20\x68\x65\x6C\x70\x20\x2D\x20\x6C\x65\x61\x76\x65\x20\x79\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x62\x65\x6C\x6F\x77\x20\x61\x6E\x64\x20\x77\x65\x27\x6C\x6C\x20\x62\x65\x20\x69\x6E\x20\x74\x6F\x75\x63\x68\x20\x61\x73\x20\x73\x6F\x6F\x6E\x20\x61\x73\x20\x70\x6F\x73\x73\x69\x62\x6C\x65\x2E","\x59\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x2E\x2E\x2E","\x4C\x65\x61\x76\x65\x20\x6D\x65\x73\x73\x61\x67\x65","\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65\x73","\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3323[0]);module[_0x3323[1]]=function(_0xcfa8x2,_0xcfa8x3){var _0xcfa8x4=_0xcfa8x2[_0x3323[21]](_0x3323[2],{name:_0xcfa8x3[_0x3323[3]],address:{type:_0xcfa8x3[_0x3323[3]],unique:true},description:_0xcfa8x3[_0x3323[3]],color:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[4]},color_focus:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[4]},color_button:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[4]},remote:_0xcfa8x3[_0x3323[3]],animation:{type:_0xcfa8x3[_0x3323[5]],defaultValue:true},header_shape:{type:_0xcfa8x3.ENUM(_0x3323[6],_0x3323[7]),defaultValue:_0x3323[6]},header_online:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[8]},online_message:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[9]},username_placeholder:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[10]},email_placeholder:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[11]},start_chat_button:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[12]},header_offline:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[13]},offline_message:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[14]},enquiry_message_placeholder:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[15]},enquiry_button:{type:_0xcfa8x3[_0x3323[3]],defaultValue:_0x3323[16]},download_transcript:{type:_0xcfa8x3[_0x3323[5]],defaultValue:true},enquiry_forwarding:{type:_0xcfa8x3[_0x3323[5]],defaultValue:false},enquiry_forwarding_address:{type:_0xcfa8x3[_0x3323[3]]}},{tableName:_0x3323[17],associate:function(_0xcfa8x5){_0xcfa8x4[_0x3323[19]](_0xcfa8x5.MailTemplate,{as:_0x3323[18]});_0xcfa8x4[_0x3323[20]](_0xcfa8x5.ChatRoom);_0xcfa8x4[_0x3323[20]](_0xcfa8x5.ChatApplication);}});return _0xcfa8x4;};
\ No newline at end of file
-var _0x944e=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6D\x70\x61\x6E\x79","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x43\x6F\x6E\x74\x61\x63\x74\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x944e[0]]=function(_0xb884x1,_0xb884x2){var _0xb884x3=_0xb884x1[_0x944e[6]](_0x944e[1],{name:{type:_0xb884x2[_0x944e[2]],unique:true},street:_0xb884x2[_0x944e[2]],postalCode:_0xb884x2[_0x944e[2]],city:_0xb884x2[_0x944e[2]],country:_0xb884x2[_0x944e[2]],sStreet:_0xb884x2[_0x944e[2]],sPostalCode:_0xb884x2[_0x944e[2]],sCity:_0xb884x2[_0x944e[2]],sCountry:_0xb884x2[_0x944e[2]]},{tableName:_0x944e[3],associate:function(_0xb884x4){_0xb884x3[_0x944e[5]](_0xb884x4.Contact,{as:_0x944e[4]})}});return _0xb884x3;};
\ No newline at end of file
+var _0x4299=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6D\x70\x61\x6E\x79","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x43\x6F\x6E\x74\x61\x63\x74\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x4299[0]]=function(_0xb40bx1,_0xb40bx2){var _0xb40bx3=_0xb40bx1[_0x4299[6]](_0x4299[1],{name:{type:_0xb40bx2[_0x4299[2]],unique:true},street:_0xb40bx2[_0x4299[2]],postalCode:_0xb40bx2[_0x4299[2]],city:_0xb40bx2[_0x4299[2]],country:_0xb40bx2[_0x4299[2]],sStreet:_0xb40bx2[_0x4299[2]],sPostalCode:_0xb40bx2[_0x4299[2]],sCity:_0xb40bx2[_0x4299[2]],sCountry:_0xb40bx2[_0x4299[2]]},{tableName:_0x4299[3],associate:function(_0xb40bx4){_0xb40bx3[_0x4299[5]](_0xb40bx4.Contact,{as:_0x4299[4]})}});return _0xb40bx3;};
\ No newline at end of file
-var _0xcb00=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x70\x68\x6F\x6E\x65\x73","\x50\x68\x6F\x6E\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x65\x6D\x61\x69\x6C\x73","\x45\x6D\x61\x69\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0xcb00[0]]=function(_0x3e5ax1,_0x3e5ax2){var _0x3e5ax3=_0x3e5ax1[_0xcb00[12]](_0xcb00[1],{fullname:{type:_0x3e5ax2[_0xcb00[2]],validate:{notEmpty:true}},tags:_0x3e5ax2[_0xcb00[2]],street:_0x3e5ax2[_0xcb00[2]],postalCode:_0x3e5ax2[_0xcb00[2]],city:_0x3e5ax2[_0xcb00[2]],country:_0x3e5ax2[_0xcb00[2]],dateOfBirth:_0x3e5ax2[_0xcb00[2]],description:_0x3e5ax2[_0xcb00[2]]},{tableName:_0xcb00[3],associate:function(_0x3e5ax4){_0x3e5ax3[_0xcb00[6]](_0x3e5ax4.ContactPhone,{through:_0xcb00[4],as:_0xcb00[5]});_0x3e5ax3[_0xcb00[6]](_0x3e5ax4.ContactEmail,{through:_0xcb00[7],as:_0xcb00[8]});_0x3e5ax3[_0xcb00[6]](_0x3e5ax4.CustomField,{through:_0x3e5ax4[_0xcb00[9]],as:_0xcb00[10]});_0x3e5ax3[_0xcb00[11]](_0x3e5ax4.Company);_0x3e5ax3[_0xcb00[11]](_0x3e5ax4.User);}});return _0x3e5ax3;};
\ No newline at end of file
+var _0x6bbe=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x70\x68\x6F\x6E\x65\x73","\x50\x68\x6F\x6E\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x65\x6D\x61\x69\x6C\x73","\x45\x6D\x61\x69\x6C\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0x6bbe[0]]=function(_0xea20x1,_0xea20x2){var _0xea20x3=_0xea20x1[_0x6bbe[12]](_0x6bbe[1],{fullname:{type:_0xea20x2[_0x6bbe[2]],validate:{notEmpty:true}},tags:_0xea20x2[_0x6bbe[2]],street:_0xea20x2[_0x6bbe[2]],postalCode:_0xea20x2[_0x6bbe[2]],city:_0xea20x2[_0x6bbe[2]],country:_0xea20x2[_0x6bbe[2]],dateOfBirth:_0xea20x2[_0x6bbe[2]],description:_0xea20x2[_0x6bbe[2]]},{tableName:_0x6bbe[3],associate:function(_0xea20x4){_0xea20x3[_0x6bbe[6]](_0xea20x4.ContactPhone,{through:_0x6bbe[4],as:_0x6bbe[5]});_0xea20x3[_0x6bbe[6]](_0xea20x4.ContactEmail,{through:_0x6bbe[7],as:_0x6bbe[8]});_0xea20x3[_0x6bbe[6]](_0xea20x4.CustomField,{through:_0xea20x4[_0x6bbe[9]],as:_0x6bbe[10]});_0xea20x3[_0x6bbe[11]](_0xea20x4.Company);_0xea20x3[_0x6bbe[11]](_0xea20x4.User);}});return _0xea20x3;};
\ No newline at end of file
-var _0xfc8a=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x65\x6D\x61\x69\x6C\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x65\x6D\x61\x69\x6C\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x66\x72\x6F\x6D","\x68\x61\x73\x4D\x61\x6E\x79","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x74\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0xfc8a[0]]=function(_0xa168x1,_0xa168x2){var _0xa168x3=_0xa168x1[_0xfc8a[11]](_0xfc8a[1],{email:{type:_0xa168x2[_0xfc8a[2]],primaryKey:true}},{tableName:_0xfc8a[3],associate:function(_0xa168x4){_0xa168x3[_0xfc8a[5]](_0xa168x4.Contact,{through:_0xfc8a[4]});_0xa168x3[_0xfc8a[8]](_0xa168x4.ReportMailSession,{as:_0xfc8a[6],foreignKey:_0xfc8a[7],constraints:false});_0xa168x3[_0xfc8a[8]](_0xa168x4.ReportMailSession,{as:_0xfc8a[9],foreignKey:_0xfc8a[10],constraints:false});}});return _0xa168x3;};
\ No newline at end of file
+var _0x3caa=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x65\x6D\x61\x69\x6C\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x65\x6D\x61\x69\x6C\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x66\x72\x6F\x6D","\x68\x61\x73\x4D\x61\x6E\x79","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x74\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0x3caa[0]]=function(_0xa14ex1,_0xa14ex2){var _0xa14ex3=_0xa14ex1[_0x3caa[11]](_0x3caa[1],{email:{type:_0xa14ex2[_0x3caa[2]],primaryKey:true}},{tableName:_0x3caa[3],associate:function(_0xa14ex4){_0xa14ex3[_0x3caa[5]](_0xa14ex4.Contact,{through:_0x3caa[4]});_0xa14ex3[_0x3caa[8]](_0xa14ex4.ReportMailSession,{as:_0x3caa[6],foreignKey:_0x3caa[7],constraints:false});_0xa14ex3[_0x3caa[8]](_0xa14ex4.ReportMailSession,{as:_0x3caa[9],foreignKey:_0x3caa[10],constraints:false});}});return _0xa14ex3;};
\ No newline at end of file
-var _0x8913=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x8913[0]);module[_0x8913[1]]=function(_0x90a4x2,_0x90a4x3){var _0x90a4x4=_0x90a4x2[_0x8913[5]](_0x8913[2],{value:_0x90a4x3[_0x8913[3]]},{tableName:_0x8913[4]});return _0x90a4x4;};
\ No newline at end of file
+var _0x8545=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x8545[0]);module[_0x8545[1]]=function(_0x17e5x2,_0x17e5x3){var _0x17e5x4=_0x17e5x2[_0x8545[5]](_0x8545[2],{value:_0x17e5x3[_0x8545[3]]},{tableName:_0x8545[4]});return _0x17e5x4;};
\ No newline at end of file
-var _0xc6b1=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x70\x68\x6F\x6E\x65\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x70\x68\x6F\x6E\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];module[_0xc6b1[0]]=function(_0xe81ax1,_0xe81ax2){var _0xe81ax3=_0xe81ax1[_0xc6b1[11]](_0xc6b1[1],{phone:{type:_0xe81ax2[_0xc6b1[2]],primaryKey:true}},{tableName:_0xc6b1[3],associate:function(_0xe81ax4){_0xe81ax3[_0xc6b1[5]](_0xe81ax4.Contact,{through:_0xc6b1[4]});_0xe81ax3[_0xc6b1[8]](_0xe81ax4.ReportCall,{as:_0xc6b1[6],foreignKey:_0xc6b1[7],constraints:false});_0xe81ax3[_0xc6b1[8]](_0xe81ax4.ReportCall,{as:_0xc6b1[9],foreignKey:_0xc6b1[10],constraints:false});}});return _0xe81ax3;};
\ No newline at end of file
+var _0x620c=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x70\x68\x6F\x6E\x65\x73","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x68\x61\x73\x5F\x70\x68\x6F\x6E\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];module[_0x620c[0]]=function(_0xc915x1,_0xc915x2){var _0xc915x3=_0xc915x1[_0x620c[11]](_0x620c[1],{phone:{type:_0xc915x2[_0x620c[2]],primaryKey:true}},{tableName:_0x620c[3],associate:function(_0xc915x4){_0xc915x3[_0x620c[5]](_0xc915x4.Contact,{through:_0x620c[4]});_0xc915x3[_0x620c[8]](_0xc915x4.ReportCall,{as:_0x620c[6],foreignKey:_0x620c[7],constraints:false});_0xc915x3[_0x620c[8]](_0xc915x4.ReportCall,{as:_0x620c[9],foreignKey:_0x620c[10],constraints:false});}});return _0xc915x3;};
\ No newline at end of file
-var _0x4c82=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x4c82[0]]=function(_0x9fe0x1,_0x9fe0x2){var _0x9fe0x3=_0x9fe0x1[_0x4c82[7]](_0x4c82[1],{name:{type:_0x9fe0x2[_0x4c82[2]],unique:true},type:_0x9fe0x2[_0x4c82[2]],active:{type:_0x9fe0x2[_0x4c82[3]],defaultValue:true},values:_0x9fe0x2[_0x4c82[2]]},{tableName:_0x4c82[4],associate:function(_0x9fe0x4){_0x9fe0x3[_0x4c82[6]](_0x9fe0x4.Contact,{through:_0x9fe0x4[_0x4c82[5]]})}});return _0x9fe0x3;};
\ No newline at end of file
+var _0x91c6=["\x65\x78\x70\x6F\x72\x74\x73","\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x6F\x6E\x74\x61\x63\x74\x5F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x43\x6F\x6E\x74\x61\x63\x74\x48\x61\x73\x43\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x91c6[0]]=function(_0x8950x1,_0x8950x2){var _0x8950x3=_0x8950x1[_0x91c6[7]](_0x91c6[1],{name:{type:_0x8950x2[_0x91c6[2]],unique:true},type:_0x8950x2[_0x91c6[2]],active:{type:_0x8950x2[_0x91c6[3]],defaultValue:true},values:_0x8950x2[_0x91c6[2]]},{tableName:_0x91c6[4],associate:function(_0x8950x4){_0x8950x3[_0x91c6[6]](_0x8950x4.Contact,{through:_0x8950x4[_0x91c6[5]]})}});return _0x8950x3;};
\ No newline at end of file
-var _0xd60e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x53\x54\x52\x49\x4E\x47","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xd60e[0];module[_0xd60e[1]]=function(_0xe35dx1,_0xe35dx2){var _0xe35dx3=_0xe35dx1[_0xd60e[5]](_0xd60e[2],{name:_0xe35dx2[_0xd60e[3]],description:_0xe35dx2[_0xd60e[3]],parent:_0xe35dx2[_0xd60e[3]]},{tableName:_0xd60e[4]});return _0xe35dx3;};
\ No newline at end of file
+var _0xe756=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x43\x75\x73\x74\x6F\x6D\x52\x65\x70\x6F\x72\x74","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74\x73","\x46\x69\x65\x6C\x64\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xe756[0];module[_0xe756[1]]=function(_0xabeax1,_0xabeax2){var _0xabeax3=_0xabeax1[_0xe756[9]](_0xe756[2],{name:_0xabeax2[_0xe756[3]],description:_0xabeax2[_0xe756[3]],parent:_0xabeax2[_0xe756[3]],table:_0xabeax2[_0xe756[3]],conditions:_0xabeax2[_0xe756[4]]},{tableName:_0xe756[5],associate:function(_0xabeax4){_0xabeax3[_0xe756[8]](_0xabeax4.ReportField,{as:_0xe756[6],onDelete:_0xe756[7]})}});return _0xabeax3;};
\ No newline at end of file
-var _0x65b5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x34\x2D\x38","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x64\x65\x66\x69\x6E\x65"];_0x65b5[0];module[_0x65b5[1]]=function(_0xc1d2x1,_0xc1d2x2){var _0xc1d2x3=_0xc1d2x1[_0x65b5[8]](_0x65b5[2],{name:{type:_0xc1d2x2[_0x65b5[3]],unique:true},description:{type:_0xc1d2x2[_0x65b5[3]]},model:{type:_0xc1d2x2[_0x65b5[4]]},collapsible:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},editable:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},maximizable:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},structure:{type:_0xc1d2x2.STRING(32),defaultValue:_0x65b5[6]},enableconfirmdelete:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},defaultEntry:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:0},admin:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},user:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},agent:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true},visible:{type:_0xc1d2x2[_0x65b5[5]],defaultValue:true}},{tableName:_0x65b5[7]});return _0xc1d2x3;};
\ No newline at end of file
+var _0x5670=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x34\x2D\x38","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x64\x65\x66\x69\x6E\x65"];_0x5670[0];module[_0x5670[1]]=function(_0x24bdx1,_0x24bdx2){var _0x24bdx3=_0x24bdx1[_0x5670[8]](_0x5670[2],{name:{type:_0x24bdx2[_0x5670[3]],unique:true},description:{type:_0x24bdx2[_0x5670[3]]},model:{type:_0x24bdx2[_0x5670[4]]},collapsible:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},editable:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},maximizable:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},structure:{type:_0x24bdx2.STRING(32),defaultValue:_0x5670[6]},enableconfirmdelete:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},defaultEntry:{type:_0x24bdx2[_0x5670[5]],defaultValue:0},admin:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},user:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},agent:{type:_0x24bdx2[_0x5670[5]],defaultValue:true},visible:{type:_0x24bdx2[_0x5670[5]],defaultValue:true}},{tableName:_0x5670[7]});return _0x24bdx3;};
\ No newline at end of file
-var _0xbffd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xbffd[0];module[_0xbffd[1]]=function(_0xb923x1,_0xb923x2){var _0xb923x3=_0xb923x1[_0xbffd[5]](_0xbffd[2],{name:_0xb923x2[_0xbffd[3]],description:_0xb923x2[_0xbffd[3]],parent:_0xb923x2[_0xbffd[3]]},{tableName:_0xbffd[4]});return _0xb923x3;};
\ No newline at end of file
+var _0x9fd9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x66\x61\x75\x6C\x74\x52\x65\x70\x6F\x72\x74","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74\x73","\x46\x69\x65\x6C\x64\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x9fd9[0];module[_0x9fd9[1]]=function(_0x84e4x1,_0x84e4x2){var _0x84e4x3=_0x84e4x1[_0x9fd9[9]](_0x9fd9[2],{name:_0x84e4x2[_0x9fd9[3]],description:_0x84e4x2[_0x9fd9[3]],parent:_0x84e4x2[_0x9fd9[3]],table:_0x84e4x2[_0x9fd9[3]],conditions:_0x84e4x2[_0x9fd9[4]]},{tableName:_0x9fd9[5],associate:function(_0x84e4x4){_0x84e4x3[_0x9fd9[8]](_0x84e4x4.ReportField,{as:_0x9fd9[6],onDelete:_0x9fd9[7]})}});return _0x84e4x3;};
\ No newline at end of file
-var _0x612b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x62\x61\x73\x69\x63","\x6F\x61\x75\x74\x68","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x612b[0];module[_0x612b[1]]=function(_0xbf23x1,_0xbf23x2){var _0xbf23x3=_0xbf23x1[_0x612b[9]](_0x612b[2],{name:_0xbf23x2[_0x612b[3]],description:_0xbf23x2[_0x612b[3]],username:{type:_0xbf23x2[_0x612b[3]],unique:true},remoteUri:{type:_0xbf23x2[_0x612b[3]],unique:true},authType:{type:_0xbf23x2.ENUM(_0x612b[4],_0x612b[5]),defaultValue:_0x612b[4]},password:_0xbf23x2[_0x612b[3]],consumerKey:_0xbf23x2[_0x612b[3]],consumerSecret:_0xbf23x2[_0x612b[3]],token:_0xbf23x2[_0x612b[3]],tokenSecret:_0xbf23x2[_0x612b[3]]},{tableName:_0x612b[6],associate:function(_0xbf23x4){_0xbf23x3[_0x612b[8]](_0xbf23x4.DeskConfiguration,{foreignKey:_0x612b[7]})}});return _0xbf23x3;};
\ No newline at end of file
+var _0x8e9c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x62\x61\x73\x69\x63","\x6F\x61\x75\x74\x68","\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x8e9c[0];module[_0x8e9c[1]]=function(_0x267bx1,_0x267bx2){var _0x267bx3=_0x267bx1[_0x8e9c[9]](_0x8e9c[2],{name:_0x267bx2[_0x8e9c[3]],description:_0x267bx2[_0x8e9c[3]],username:{type:_0x267bx2[_0x8e9c[3]],unique:true},remoteUri:{type:_0x267bx2[_0x8e9c[3]],unique:true},authType:{type:_0x267bx2.ENUM(_0x8e9c[4],_0x8e9c[5]),defaultValue:_0x8e9c[4]},password:_0x267bx2[_0x8e9c[3]],consumerKey:_0x267bx2[_0x8e9c[3]],consumerSecret:_0x267bx2[_0x8e9c[3]],token:_0x267bx2[_0x8e9c[3]],tokenSecret:_0x267bx2[_0x8e9c[3]]},{tableName:_0x8e9c[6],associate:function(_0x267bx4){_0x267bx3[_0x8e9c[8]](_0x267bx4.DeskConfiguration,{foreignKey:_0x8e9c[7]})}});return _0x267bx3;};
\ No newline at end of file
-var _0x6625=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x6625[0];module[_0x6625[1]]=function(_0x7df0x1,_0x7df0x2){return _0x7df0x1[_0x6625[14]](_0x6625[2],{name:_0x7df0x2[_0x6625[3]],description:_0x7df0x2[_0x6625[3]]},{tableName:_0x6625[4],associate:function(_0x7df0x3){_0x7df0x3[_0x6625[2]][_0x6625[6]](_0x7df0x3.DeskAccount,{foreignKey:_0x6625[5]});_0x7df0x3[_0x6625[2]][_0x6625[9]](_0x7df0x3.DeskField,{as:_0x6625[7],foreignKey:_0x6625[8]});_0x7df0x3[_0x6625[2]][_0x6625[9]](_0x7df0x3.DeskField,{as:_0x6625[10],foreignKey:_0x6625[11]});_0x7df0x3[_0x6625[2]][_0x6625[9]](_0x7df0x3.DeskField,{as:_0x6625[12],foreignKey:_0x6625[13]});}})};
\ No newline at end of file
+var _0xf6df=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0xf6df[0];module[_0xf6df[1]]=function(_0xb025x1,_0xb025x2){return _0xb025x1[_0xf6df[14]](_0xf6df[2],{name:_0xb025x2[_0xf6df[3]],description:_0xb025x2[_0xf6df[3]]},{tableName:_0xf6df[4],associate:function(_0xb025x3){_0xb025x3[_0xf6df[2]][_0xf6df[6]](_0xb025x3.DeskAccount,{foreignKey:_0xf6df[5]});_0xb025x3[_0xf6df[2]][_0xf6df[9]](_0xb025x3.DeskField,{as:_0xf6df[7],foreignKey:_0xf6df[8]});_0xb025x3[_0xf6df[2]][_0xf6df[9]](_0xb025x3.DeskField,{as:_0xf6df[10],foreignKey:_0xf6df[11]});_0xb025x3[_0xf6df[2]][_0xf6df[9]](_0xb025x3.DeskField,{as:_0xf6df[12],foreignKey:_0xf6df[13]});}})};
\ No newline at end of file
-var _0xd6f1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xd6f1[0];module[_0xd6f1[1]]=function(_0xf15bx1,_0xf15bx2){return _0xf15bx1[_0xd6f1[10]](_0xd6f1[2],{type:{type:_0xf15bx2.ENUM(_0xd6f1[3],_0xd6f1[4],_0xd6f1[5]),defaultValue:_0xd6f1[3]},content:_0xf15bx2[_0xd6f1[6]],key:_0xf15bx2[_0xd6f1[6]],keyType:{type:_0xf15bx2.ENUM(_0xd6f1[3],_0xd6f1[4])},keyContent:_0xf15bx2[_0xd6f1[6]],idField:_0xf15bx2[_0xd6f1[6]],customField:{type:_0xf15bx2[_0xd6f1[7]],defaultValue:true}},{tableName:_0xd6f1[8],associate:function(_0xf15bx3){_0xf15bx3[_0xd6f1[2]][_0xd6f1[9]](_0xf15bx3.Variable)}})};
\ No newline at end of file
+var _0x67c7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x44\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x67c7[0];module[_0x67c7[1]]=function(_0xcbdax1,_0xcbdax2){return _0xcbdax1[_0x67c7[10]](_0x67c7[2],{type:{type:_0xcbdax2.ENUM(_0x67c7[3],_0x67c7[4],_0x67c7[5]),defaultValue:_0x67c7[3]},content:_0xcbdax2[_0x67c7[6]],key:_0xcbdax2[_0x67c7[6]],keyType:{type:_0xcbdax2.ENUM(_0x67c7[3],_0x67c7[4])},keyContent:_0xcbdax2[_0x67c7[6]],idField:_0xcbdax2[_0x67c7[6]],customField:{type:_0xcbdax2[_0x67c7[7]],defaultValue:true}},{tableName:_0x67c7[8],associate:function(_0xcbdax3){_0xcbdax3[_0x67c7[2]][_0x67c7[9]](_0xcbdax3.Variable)}})};
\ No newline at end of file
-var _0x1978=["\x65\x78\x70\x6F\x72\x74\x73","\x45\x76\x65\x6E\x74","\x49\x4E\x43\x4F\x4D\x49\x4E\x47","\x4F\x55\x54\x47\x4F\x49\x4E\x47","\x41\x54\x54\x45\x4D\x50\x54","\x41\x53\x53\x49\x47\x4E\x45\x44","\x55\x4E\x41\x53\x53\x49\x47\x4E\x45\x44","\x4D\x41\x49\x4C","\x43\x48\x41\x54","\x46\x41\x58","\x56\x4F\x49\x43\x45","\x49\x4E\x54\x45\x47\x45\x52","\x65\x76\x65\x6E\x74\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0x1978[0]]=function(_0x80afx1,_0x80afx2){var _0x80afx3=_0x80afx1[_0x1978[14]](_0x1978[1],{name:{type:_0x80afx2.ENUM(_0x1978[2],_0x1978[3],_0x1978[4],_0x1978[5],_0x1978[6])},channel:{type:_0x80afx2.ENUM(_0x1978[7],_0x1978[8],_0x1978[9],_0x1978[10])},timeout:{type:_0x80afx2[_0x1978[11]]},holdtime:{type:_0x80afx2[_0x1978[11]]}},{tableName:_0x1978[12],associate:function(_0x80afx4){_0x80afx3[_0x1978[13]](_0x80afx4.User);_0x80afx3[_0x1978[13]](_0x80afx4.MailRoom);_0x80afx3[_0x1978[13]](_0x80afx4.MailMessage);_0x80afx3[_0x1978[13]](_0x80afx4.MailQueue);_0x80afx3[_0x1978[13]](_0x80afx4.MailAccount);_0x80afx3[_0x1978[13]](_0x80afx4.MailApplication);_0x80afx3[_0x1978[13]](_0x80afx4.FaxRoom);_0x80afx3[_0x1978[13]](_0x80afx4.FaxQueue);_0x80afx3[_0x1978[13]](_0x80afx4.FaxAccount);_0x80afx3[_0x1978[13]](_0x80afx4.FaxApplication);_0x80afx3[_0x1978[13]](_0x80afx4.ChatRoom);_0x80afx3[_0x1978[13]](_0x80afx4.ChatQueue);_0x80afx3[_0x1978[13]](_0x80afx4.ChatWebsite);_0x80afx3[_0x1978[13]](_0x80afx4.ChatApplication);}});return _0x80afx3;};
\ No newline at end of file
+var _0x22d6=["\x65\x78\x70\x6F\x72\x74\x73","\x45\x76\x65\x6E\x74","\x49\x4E\x43\x4F\x4D\x49\x4E\x47","\x4F\x55\x54\x47\x4F\x49\x4E\x47","\x41\x54\x54\x45\x4D\x50\x54","\x41\x53\x53\x49\x47\x4E\x45\x44","\x55\x4E\x41\x53\x53\x49\x47\x4E\x45\x44","\x4D\x41\x49\x4C","\x43\x48\x41\x54","\x46\x41\x58","\x56\x4F\x49\x43\x45","\x49\x4E\x54\x45\x47\x45\x52","\x65\x76\x65\x6E\x74\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0x22d6[0]]=function(_0x30c4x1,_0x30c4x2){var _0x30c4x3=_0x30c4x1[_0x22d6[14]](_0x22d6[1],{name:{type:_0x30c4x2.ENUM(_0x22d6[2],_0x22d6[3],_0x22d6[4],_0x22d6[5],_0x22d6[6])},channel:{type:_0x30c4x2.ENUM(_0x22d6[7],_0x22d6[8],_0x22d6[9],_0x22d6[10])},timeout:{type:_0x30c4x2[_0x22d6[11]]},holdtime:{type:_0x30c4x2[_0x22d6[11]]}},{tableName:_0x22d6[12],associate:function(_0x30c4x4){_0x30c4x3[_0x22d6[13]](_0x30c4x4.User);_0x30c4x3[_0x22d6[13]](_0x30c4x4.MailRoom);_0x30c4x3[_0x22d6[13]](_0x30c4x4.MailMessage);_0x30c4x3[_0x22d6[13]](_0x30c4x4.MailQueue);_0x30c4x3[_0x22d6[13]](_0x30c4x4.MailAccount);_0x30c4x3[_0x22d6[13]](_0x30c4x4.MailApplication);_0x30c4x3[_0x22d6[13]](_0x30c4x4.FaxRoom);_0x30c4x3[_0x22d6[13]](_0x30c4x4.FaxQueue);_0x30c4x3[_0x22d6[13]](_0x30c4x4.FaxAccount);_0x30c4x3[_0x22d6[13]](_0x30c4x4.FaxApplication);_0x30c4x3[_0x22d6[13]](_0x30c4x4.ChatRoom);_0x30c4x3[_0x22d6[13]](_0x30c4x4.ChatQueue);_0x30c4x3[_0x22d6[13]](_0x30c4x4.ChatWebsite);_0x30c4x3[_0x22d6[13]](_0x30c4x4.ChatApplication);}});return _0x30c4x3;};
\ No newline at end of file
-var _0x3e5c=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x39\x36\x30\x30","\x31\x34\x34\x30\x30","\x33\x33\x36\x30\x30","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3e5c[0]);module[_0x3e5c[1]]=function(_0xcf98x2,_0xcf98x3){var _0xcf98x4=_0xcf98x2[_0x3e5c[11]](_0x3e5c[2],{description:_0xcf98x3[_0x3e5c[3]],name:_0xcf98x3[_0x3e5c[3]],phone:{type:_0xcf98x3[_0x3e5c[3]],unique:true},ecm:{type:_0xcf98x3[_0x3e5c[4]],defaultValue:false},faxheader:_0xcf98x3[_0x3e5c[3]],localid:_0xcf98x3[_0x3e5c[3]],maxrate:{type:_0xcf98x3.ENUM(_0x3e5c[5],_0x3e5c[6],_0x3e5c[7]),defaultValue:_0x3e5c[7]},minrate:{type:_0xcf98x3.ENUM(_0x3e5c[5],_0x3e5c[6],_0x3e5c[7]),defaultValue:_0x3e5c[5]}},{tableName:_0x3e5c[8],associate:function(_0xcf98x5){_0xcf98x4[_0x3e5c[9]](_0xcf98x5.Trunk);_0xcf98x4[_0x3e5c[10]](_0xcf98x5.FaxRoom);_0xcf98x4[_0x3e5c[10]](_0xcf98x5.FaxApplication);}});return _0xcf98x4;};
\ No newline at end of file
+var _0xe3aa=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x39\x36\x30\x30","\x31\x34\x34\x30\x30","\x33\x33\x36\x30\x30","\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xe3aa[0]);module[_0xe3aa[1]]=function(_0x6ccax2,_0x6ccax3){var _0x6ccax4=_0x6ccax2[_0xe3aa[11]](_0xe3aa[2],{description:_0x6ccax3[_0xe3aa[3]],name:_0x6ccax3[_0xe3aa[3]],phone:{type:_0x6ccax3[_0xe3aa[3]],unique:true},ecm:{type:_0x6ccax3[_0xe3aa[4]],defaultValue:false},faxheader:_0x6ccax3[_0xe3aa[3]],localid:_0x6ccax3[_0xe3aa[3]],maxrate:{type:_0x6ccax3.ENUM(_0xe3aa[5],_0xe3aa[6],_0xe3aa[7]),defaultValue:_0xe3aa[7]},minrate:{type:_0x6ccax3.ENUM(_0xe3aa[5],_0xe3aa[6],_0xe3aa[7]),defaultValue:_0xe3aa[5]}},{tableName:_0xe3aa[8],associate:function(_0x6ccax5){_0x6ccax4[_0xe3aa[9]](_0x6ccax5.Trunk);_0x6ccax4[_0xe3aa[10]](_0x6ccax5.FaxRoom);_0x6ccax4[_0xe3aa[10]](_0x6ccax5.FaxApplication);}});return _0x6ccax4;};
\ No newline at end of file
-var _0x32c4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x2A\x7C\x2A\x7C\x2A\x7C\x2A","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x32c4[0];module[_0x32c4[1]]=function(_0x8abdx1,_0x8abdx2){var _0x8abdx3=_0x8abdx1[_0x32c4[10]](_0x32c4[2],{app:{type:_0x8abdx2.ENUM(_0x32c4[3],_0x32c4[4])},appdata:{type:_0x8abdx2[_0x32c4[5]]},priority:{type:_0x8abdx2[_0x32c4[5]]},timeout:{type:_0x8abdx2[_0x32c4[5]]},interval:{type:_0x8abdx2[_0x32c4[6]],defaultValue:_0x32c4[7]}},{tableName:_0x32c4[8],associate:function(_0x8abdx4){_0x8abdx3[_0x32c4[9]](_0x8abdx4.FaxAccount);_0x8abdx3[_0x32c4[9]](_0x8abdx4.FaxQueue);_0x8abdx3[_0x32c4[9]](_0x8abdx4.User);}});return _0x8abdx3;};
\ No newline at end of file
+var _0x1b74=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x2A\x7C\x2A\x7C\x2A\x7C\x2A","\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x1b74[0];module[_0x1b74[1]]=function(_0x77bdx1,_0x77bdx2){var _0x77bdx3=_0x77bdx1[_0x1b74[10]](_0x1b74[2],{app:{type:_0x77bdx2.ENUM(_0x1b74[3],_0x1b74[4])},appdata:{type:_0x77bdx2[_0x1b74[5]]},priority:{type:_0x77bdx2[_0x1b74[5]]},timeout:{type:_0x77bdx2[_0x1b74[5]]},interval:{type:_0x77bdx2[_0x1b74[6]],defaultValue:_0x1b74[7]}},{tableName:_0x1b74[8],associate:function(_0x77bdx4){_0x77bdx3[_0x1b74[9]](_0x77bdx4.FaxAccount);_0x77bdx3[_0x1b74[9]](_0x77bdx4.FaxQueue);_0x77bdx3[_0x1b74[9]](_0x77bdx4.User);}});return _0x77bdx3;};
\ No newline at end of file
-var _0xf187=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x49\x4E\x54\x45\x47\x45\x52","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf187[0]);module[_0xf187[1]]=function(_0x44e7x2,_0x44e7x3){var _0x44e7x4=_0x44e7x2[_0xf187[8]](_0xf187[2],{name:{type:_0x44e7x3[_0xf187[3]]},description:{type:_0x44e7x3[_0xf187[3]]},status:{type:_0x44e7x3[_0xf187[4]],defaultValue:false},jobId:{type:_0x44e7x3[_0xf187[5]]}},{tableName:_0xf187[6],associate:function(_0x44e7x5){_0x44e7x4[_0xf187[7]](_0x44e7x5.BusinessAction);_0x44e7x4[_0xf187[7]](_0x44e7x5.BusinessCondition);}});return _0x44e7x4;};
\ No newline at end of file
+var _0x1efb=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x49\x4E\x54\x45\x47\x45\x52","\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x1efb[0]);module[_0x1efb[1]]=function(_0xe251x2,_0xe251x3){var _0xe251x4=_0xe251x2[_0x1efb[8]](_0x1efb[2],{name:{type:_0xe251x3[_0x1efb[3]]},description:{type:_0xe251x3[_0x1efb[3]]},status:{type:_0xe251x3[_0x1efb[4]],defaultValue:false},jobId:{type:_0xe251x3[_0x1efb[5]]}},{tableName:_0x1efb[6],associate:function(_0xe251x5){_0xe251x4[_0x1efb[7]](_0xe251x5.BusinessAction);_0xe251x4[_0x1efb[7]](_0xe251x5.BusinessCondition);}});return _0xe251x4;};
\ No newline at end of file
-var _0xf91b=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x52\x45\x43\x45\x49\x56\x45\x44","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x53\x45\x4E\x54","\x46\x41\x49\x4C\x45\x44","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x46\x72\x6F\x6D","\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf91b[0]);module[_0xf91b[1]]=function(_0x9f79x2,_0x9f79x3){var _0x9f79x4=_0x9f79x2[_0xf91b[16]](_0xf91b[2],{actionid:_0x9f79x3[_0xf91b[3]],channel:_0x9f79x3[_0xf91b[3]],channelstate:_0x9f79x3[_0xf91b[4]],channelstatedesc:_0x9f79x3[_0xf91b[3]],calleridnum:_0x9f79x3[_0xf91b[3]],calleridname:_0x9f79x3[_0xf91b[3]],connectedlinenum:_0x9f79x3[_0xf91b[3]],connectedlinename:_0x9f79x3[_0xf91b[3]],status:{type:_0x9f79x3.ENUM(_0xf91b[5],_0xf91b[6],_0xf91b[7],_0xf91b[8],_0xf91b[9]),allowNull:true},read:{type:_0x9f79x3[_0xf91b[10]],defaultValue:false},favorite:{type:_0x9f79x3[_0xf91b[10]],defaultValue:false},language:_0x9f79x3[_0xf91b[3]],accountcode:_0x9f79x3[_0xf91b[3]],context:_0x9f79x3[_0xf91b[3]],exten:_0x9f79x3[_0xf91b[3]],priority:_0x9f79x3[_0xf91b[4]],uniqueid:_0x9f79x3[_0xf91b[3]],localstationid:_0x9f79x3[_0xf91b[3]],remotestationid:_0x9f79x3[_0xf91b[3]],pagestransferred:_0x9f79x3[_0xf91b[4]],resolution:_0x9f79x3[_0xf91b[3]],transferrate:_0x9f79x3[_0xf91b[3]],filename:_0x9f79x3[_0xf91b[3]],filenamePDF:_0x9f79x3[_0xf91b[3]],operation:_0x9f79x3[_0xf91b[3]],uuid:_0x9f79x3[_0xf91b[3]],laststatus:_0x9f79x3[_0xf91b[3]],error:_0x9f79x3[_0xf91b[3]],body:_0x9f79x3[_0xf91b[11]]},{tableName:_0xf91b[12],associate:function(_0x9f79x5){_0x9f79x4[_0xf91b[13]](_0x9f79x5.FaxRoom);_0x9f79x4[_0xf91b[13]](_0x9f79x5.Contact,{as:_0xf91b[14]});_0x9f79x4[_0xf91b[13]](_0x9f79x5.Contact,{as:_0xf91b[15]});}});return _0x9f79x4;};
\ No newline at end of file
+var _0x2579=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x52\x45\x43\x45\x49\x56\x45\x44","\x4E\x4F\x54\x20\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x53\x45\x4E\x54","\x46\x41\x49\x4C\x45\x44","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x46\x72\x6F\x6D","\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x2579[0]);module[_0x2579[1]]=function(_0x6a9bx2,_0x6a9bx3){var _0x6a9bx4=_0x6a9bx2[_0x2579[16]](_0x2579[2],{actionid:_0x6a9bx3[_0x2579[3]],channel:_0x6a9bx3[_0x2579[3]],channelstate:_0x6a9bx3[_0x2579[4]],channelstatedesc:_0x6a9bx3[_0x2579[3]],calleridnum:_0x6a9bx3[_0x2579[3]],calleridname:_0x6a9bx3[_0x2579[3]],connectedlinenum:_0x6a9bx3[_0x2579[3]],connectedlinename:_0x6a9bx3[_0x2579[3]],status:{type:_0x6a9bx3.ENUM(_0x2579[5],_0x2579[6],_0x2579[7],_0x2579[8],_0x2579[9]),allowNull:true},read:{type:_0x6a9bx3[_0x2579[10]],defaultValue:false},favorite:{type:_0x6a9bx3[_0x2579[10]],defaultValue:false},language:_0x6a9bx3[_0x2579[3]],accountcode:_0x6a9bx3[_0x2579[3]],context:_0x6a9bx3[_0x2579[3]],exten:_0x6a9bx3[_0x2579[3]],priority:_0x6a9bx3[_0x2579[4]],uniqueid:_0x6a9bx3[_0x2579[3]],localstationid:_0x6a9bx3[_0x2579[3]],remotestationid:_0x6a9bx3[_0x2579[3]],pagestransferred:_0x6a9bx3[_0x2579[4]],resolution:_0x6a9bx3[_0x2579[3]],transferrate:_0x6a9bx3[_0x2579[3]],filename:_0x6a9bx3[_0x2579[3]],filenamePDF:_0x6a9bx3[_0x2579[3]],operation:_0x6a9bx3[_0x2579[3]],uuid:_0x6a9bx3[_0x2579[3]],laststatus:_0x6a9bx3[_0x2579[3]],error:_0x6a9bx3[_0x2579[3]],body:_0x6a9bx3[_0x2579[11]]},{tableName:_0x2579[12],associate:function(_0x6a9bx5){_0x6a9bx4[_0x2579[13]](_0x6a9bx5.FaxRoom);_0x6a9bx4[_0x2579[13]](_0x6a9bx5.Contact,{as:_0x2579[14]});_0x6a9bx4[_0x2579[13]](_0x6a9bx5.Contact,{as:_0x2579[15]});}});return _0x6a9bx4;};
\ No newline at end of file
-var _0x8184=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x8184[0];module[_0x8184[1]]=function(_0x3b2ex1,_0x3b2ex2){var _0x3b2ex3=_0x3b2ex1[_0x8184[10]](_0x8184[2],{name:{type:_0x3b2ex2[_0x8184[3]],unique:true},description:{type:_0x3b2ex2[_0x8184[3]]},timeout:{type:_0x3b2ex2[_0x8184[4]]},strategy:{type:_0x3b2ex2.ENUM(_0x8184[5],_0x8184[6])}},{tableName:_0x8184[7],associate:function(_0x3b2ex4){_0x3b2ex3[_0x8184[9]](_0x3b2ex4.User,{hooks:true,through:_0x3b2ex4[_0x8184[8]]})}});return _0x3b2ex3;};
\ No newline at end of file
+var _0xc60b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xc60b[0];module[_0xc60b[1]]=function(_0xb17fx1,_0xb17fx2){var _0xb17fx3=_0xb17fx1[_0xc60b[10]](_0xc60b[2],{name:{type:_0xb17fx2[_0xc60b[3]],unique:true},description:{type:_0xb17fx2[_0xc60b[3]]},timeout:{type:_0xb17fx2[_0xc60b[4]]},strategy:{type:_0xb17fx2.ENUM(_0xc60b[5],_0xc60b[6])}},{tableName:_0xc60b[7],associate:function(_0xb17fx4){_0xb17fx3[_0xc60b[9]](_0xb17fx4.User,{hooks:true,through:_0xb17fx4[_0xc60b[8]]})}});return _0xb17fx3;};
\ No newline at end of file
-var _0xd977=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x53\x54\x52\x49\x4E\x47","\x4E\x45\x57","\x4F\x50\x45\x4E","\x50\x45\x4E\x44\x49\x4E\x47","\x53\x4F\x4C\x56\x45\x44","\x43\x4C\x4F\x53\x45\x44","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xd977[0]);module[_0xd977[1]]=function(_0x7784x2,_0x7784x3){var _0x7784x4=_0x7784x2[_0xd977[12]](_0xd977[2],{roomId:_0x7784x3[_0xd977[3]],from:_0x7784x3[_0xd977[3]],status:_0x7784x3.ENUM(_0xd977[4],_0xd977[5],_0xd977[6],_0xd977[7],_0xd977[8])},{tableName:_0xd977[9],associate:function(_0x7784x5){_0x7784x4[_0xd977[10]](_0x7784x5.FaxMessage);_0x7784x4[_0xd977[11]](_0x7784x5.FaxAccount);_0x7784x4[_0xd977[11]](_0x7784x5.User);}});return _0x7784x4;};
\ No newline at end of file
+var _0x8064=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x53\x54\x52\x49\x4E\x47","\x4E\x45\x57","\x4F\x50\x45\x4E","\x50\x45\x4E\x44\x49\x4E\x47","\x53\x4F\x4C\x56\x45\x44","\x43\x4C\x4F\x53\x45\x44","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x8064[0]);module[_0x8064[1]]=function(_0x16a0x2,_0x16a0x3){var _0x16a0x4=_0x16a0x2[_0x8064[12]](_0x8064[2],{roomId:_0x16a0x3[_0x8064[3]],from:_0x16a0x3[_0x8064[3]],status:_0x16a0x3.ENUM(_0x8064[4],_0x8064[5],_0x8064[6],_0x8064[7],_0x8064[8])},{tableName:_0x8064[9],associate:function(_0x16a0x5){_0x16a0x4[_0x8064[10]](_0x16a0x5.FaxMessage);_0x16a0x4[_0x8064[11]](_0x16a0x5.FaxAccount);_0x16a0x4[_0x8064[11]](_0x16a0x5.User);}});return _0x16a0x4;};
\ No newline at end of file
-var _0xf2bc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xf2bc[0];module[_0xf2bc[1]]=function(_0x9067x1,_0x9067x2){return _0x9067x1[_0xf2bc[7]](_0xf2bc[2],{name:_0x9067x2[_0xf2bc[3]],description:_0x9067x2[_0xf2bc[3]],username:{type:_0x9067x2[_0xf2bc[3]],unique:true},remoteUri:{type:_0x9067x2[_0xf2bc[3]],unique:true},apiKey:_0x9067x2[_0xf2bc[3]]},{tableName:_0xf2bc[4],associate:function(_0x9067x3){_0x9067x3[_0xf2bc[2]][_0xf2bc[6]](_0x9067x3.FreshdeskConfiguration,{foreignKey:_0xf2bc[5]})}})};
\ No newline at end of file
+var _0xfac5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xfac5[0];module[_0xfac5[1]]=function(_0xca85x1,_0xca85x2){return _0xca85x1[_0xfac5[7]](_0xfac5[2],{name:_0xca85x2[_0xfac5[3]],description:_0xca85x2[_0xfac5[3]],username:{type:_0xca85x2[_0xfac5[3]],unique:true},remoteUri:{type:_0xca85x2[_0xfac5[3]],unique:true},apiKey:_0xca85x2[_0xfac5[3]]},{tableName:_0xfac5[4],associate:function(_0xca85x3){_0xca85x3[_0xfac5[2]][_0xfac5[6]](_0xca85x3.FreshdeskConfiguration,{foreignKey:_0xfac5[5]})}})};
\ No newline at end of file
-var _0xaf46=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0xaf46[0];module[_0xaf46[1]]=function(_0xd688x1,_0xd688x2){return _0xd688x1[_0xaf46[14]](_0xaf46[2],{name:_0xd688x2[_0xaf46[3]],description:_0xd688x2[_0xaf46[3]]},{tableName:_0xaf46[4],associate:function(_0xd688x3){_0xd688x3[_0xaf46[2]][_0xaf46[6]](_0xd688x3.FreshdeskAccount,{foreignKey:_0xaf46[5]});_0xd688x3[_0xaf46[2]][_0xaf46[9]](_0xd688x3.FreshdeskField,{as:_0xaf46[7],foreignKey:_0xaf46[8]});_0xd688x3[_0xaf46[2]][_0xaf46[9]](_0xd688x3.FreshdeskField,{as:_0xaf46[10],foreignKey:_0xaf46[11]});_0xd688x3[_0xaf46[2]][_0xaf46[9]](_0xd688x3.FreshdeskField,{as:_0xaf46[12],foreignKey:_0xaf46[13]});}})};
\ No newline at end of file
+var _0x60f7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x60f7[0];module[_0x60f7[1]]=function(_0x4108x1,_0x4108x2){return _0x4108x1[_0x60f7[14]](_0x60f7[2],{name:_0x4108x2[_0x60f7[3]],description:_0x4108x2[_0x60f7[3]]},{tableName:_0x60f7[4],associate:function(_0x4108x3){_0x4108x3[_0x60f7[2]][_0x60f7[6]](_0x4108x3.FreshdeskAccount,{foreignKey:_0x60f7[5]});_0x4108x3[_0x60f7[2]][_0x60f7[9]](_0x4108x3.FreshdeskField,{as:_0x60f7[7],foreignKey:_0x60f7[8]});_0x4108x3[_0x60f7[2]][_0x60f7[9]](_0x4108x3.FreshdeskField,{as:_0x60f7[10],foreignKey:_0x60f7[11]});_0x4108x3[_0x60f7[2]][_0x60f7[9]](_0x4108x3.FreshdeskField,{as:_0x60f7[12],foreignKey:_0x60f7[13]});}})};
\ No newline at end of file
-var _0x6e32=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x6e32[0];module[_0x6e32[1]]=function(_0x3db0x1,_0x3db0x2){return _0x3db0x1[_0x6e32[10]](_0x6e32[2],{type:{type:_0x3db0x2.ENUM(_0x6e32[3],_0x6e32[4],_0x6e32[5]),defaultValue:_0x6e32[3]},content:_0x3db0x2[_0x6e32[6]],key:_0x3db0x2[_0x6e32[6]],keyType:{type:_0x3db0x2.ENUM(_0x6e32[3],_0x6e32[4])},keyContent:_0x3db0x2[_0x6e32[6]],idField:_0x3db0x2[_0x6e32[6]],customField:{type:_0x3db0x2[_0x6e32[7]],defaultValue:true}},{tableName:_0x6e32[8],associate:function(_0x3db0x3){_0x3db0x3[_0x6e32[2]][_0x6e32[9]](_0x3db0x3.Variable)}})};
\ No newline at end of file
+var _0x2880=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x46\x72\x65\x73\x68\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x2880[0];module[_0x2880[1]]=function(_0x3d4fx1,_0x3d4fx2){return _0x3d4fx1[_0x2880[10]](_0x2880[2],{type:{type:_0x3d4fx2.ENUM(_0x2880[3],_0x2880[4],_0x2880[5]),defaultValue:_0x2880[3]},content:_0x3d4fx2[_0x2880[6]],key:_0x3d4fx2[_0x2880[6]],keyType:{type:_0x3d4fx2.ENUM(_0x2880[3],_0x2880[4])},keyContent:_0x3d4fx2[_0x2880[6]],idField:_0x3d4fx2[_0x2880[6]],customField:{type:_0x3d4fx2[_0x2880[7]],defaultValue:true}},{tableName:_0x2880[8],associate:function(_0x3d4fx3){_0x3d4fx3[_0x2880[2]][_0x2880[9]](_0x3d4fx3.Variable)}})};
\ No newline at end of file
-var _0x8700=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x8700[0]]=function(_0x64f4x1,_0x64f4x2){var _0x64f4x3=_0x64f4x1[_0x8700[7]](_0x8700[1],{uniqueid:_0x64f4x2[_0x8700[2]],calleridnum:_0x64f4x2[_0x8700[2]],calleridname:_0x64f4x2[_0x8700[2]],queue:_0x64f4x2[_0x8700[2]],interface:_0x64f4x2[_0x8700[2]],membername:_0x64f4x2[_0x8700[2]],agentcalledAt:_0x64f4x2[_0x8700[3]],agentconnectAt:_0x64f4x2[_0x8700[3]],holdtime:_0x64f4x2[_0x8700[4]],agentcomplete:{type:_0x64f4x2[_0x8700[5]],defaultValue:false},agentcompleteAt:_0x64f4x2[_0x8700[3]],talktime:_0x64f4x2[_0x8700[4]],agentacw:{type:_0x64f4x2[_0x8700[5]],defaultValue:false},acwtime:_0x64f4x2[_0x8700[4]],reason:_0x64f4x2[_0x8700[2]],agentringnoanswer:{type:_0x64f4x2[_0x8700[5]],defaultValue:false},agentringnoanswerAt:_0x64f4x2[_0x8700[3]],agentdump:{type:_0x64f4x2[_0x8700[5]],defaultValue:false},agentdumpAt:_0x64f4x2[_0x8700[3]],channel:_0x64f4x2[_0x8700[2]],channelstate:_0x64f4x2[_0x8700[4]],channelstatedesc:_0x64f4x2[_0x8700[2]],connectedlinenum:_0x64f4x2[_0x8700[2]],connectedlinename:_0x64f4x2[_0x8700[2]],language:_0x64f4x2[_0x8700[2]],accountcode:_0x64f4x2[_0x8700[2]],context:_0x64f4x2[_0x8700[2]],exten:_0x64f4x2[_0x8700[2]],priority:_0x64f4x2[_0x8700[2]],destchannel:_0x64f4x2[_0x8700[2]],destchannelstate:_0x64f4x2[_0x8700[4]],destchannelstatedesc:_0x64f4x2[_0x8700[2]],destcalleridnum:_0x64f4x2[_0x8700[2]],destcalleridname:_0x64f4x2[_0x8700[2]],destconnectedlinenum:_0x64f4x2[_0x8700[2]],destconnectedlinename:_0x64f4x2[_0x8700[2]],destlanguage:_0x64f4x2[_0x8700[2]],destaccountcode:_0x64f4x2[_0x8700[2]],destcontext:_0x64f4x2[_0x8700[2]],destexten:_0x64f4x2[_0x8700[2]],destpriority:_0x64f4x2[_0x8700[2]],destuniqueid:_0x64f4x2[_0x8700[2]]},{tableName:_0x8700[6]});_0x64f4x3[_0x8700[9]](_0x8700[8]);return _0x64f4x3;};
\ No newline at end of file
+var _0x81ca=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x81ca[0]]=function(_0x6d4cx1,_0x6d4cx2){var _0x6d4cx3=_0x6d4cx1[_0x81ca[7]](_0x81ca[1],{uniqueid:_0x6d4cx2[_0x81ca[2]],calleridnum:_0x6d4cx2[_0x81ca[2]],calleridname:_0x6d4cx2[_0x81ca[2]],queue:_0x6d4cx2[_0x81ca[2]],interface:_0x6d4cx2[_0x81ca[2]],membername:_0x6d4cx2[_0x81ca[2]],agentcalledAt:_0x6d4cx2[_0x81ca[3]],agentconnectAt:_0x6d4cx2[_0x81ca[3]],holdtime:_0x6d4cx2[_0x81ca[4]],agentcomplete:{type:_0x6d4cx2[_0x81ca[5]],defaultValue:false},agentcompleteAt:_0x6d4cx2[_0x81ca[3]],talktime:_0x6d4cx2[_0x81ca[4]],agentacw:{type:_0x6d4cx2[_0x81ca[5]],defaultValue:false},acwtime:_0x6d4cx2[_0x81ca[4]],reason:_0x6d4cx2[_0x81ca[2]],agentringnoanswer:{type:_0x6d4cx2[_0x81ca[5]],defaultValue:false},agentringnoanswerAt:_0x6d4cx2[_0x81ca[3]],agentdump:{type:_0x6d4cx2[_0x81ca[5]],defaultValue:false},agentdumpAt:_0x6d4cx2[_0x81ca[3]],channel:_0x6d4cx2[_0x81ca[2]],channelstate:_0x6d4cx2[_0x81ca[4]],channelstatedesc:_0x6d4cx2[_0x81ca[2]],connectedlinenum:_0x6d4cx2[_0x81ca[2]],connectedlinename:_0x6d4cx2[_0x81ca[2]],language:_0x6d4cx2[_0x81ca[2]],accountcode:_0x6d4cx2[_0x81ca[2]],context:_0x6d4cx2[_0x81ca[2]],exten:_0x6d4cx2[_0x81ca[2]],priority:_0x6d4cx2[_0x81ca[2]],destchannel:_0x6d4cx2[_0x81ca[2]],destchannelstate:_0x6d4cx2[_0x81ca[4]],destchannelstatedesc:_0x6d4cx2[_0x81ca[2]],destcalleridnum:_0x6d4cx2[_0x81ca[2]],destcalleridname:_0x6d4cx2[_0x81ca[2]],destconnectedlinenum:_0x6d4cx2[_0x81ca[2]],destconnectedlinename:_0x6d4cx2[_0x81ca[2]],destlanguage:_0x6d4cx2[_0x81ca[2]],destaccountcode:_0x6d4cx2[_0x81ca[2]],destcontext:_0x6d4cx2[_0x81ca[2]],destexten:_0x6d4cx2[_0x81ca[2]],destpriority:_0x6d4cx2[_0x81ca[2]],destuniqueid:_0x6d4cx2[_0x81ca[2]]},{tableName:_0x81ca[6]});_0x6d4cx3[_0x81ca[9]](_0x81ca[8]);return _0x6d4cx3;};
\ No newline at end of file
-var _0x2fa5=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x48\x69\x73\x74\x6F\x72\x79\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x48\x69\x73\x74\x6F\x72\x79\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x2fa5[0]]=function(_0x5c91x1,_0x5c91x2){var _0x5c91x3=_0x5c91x1[_0x2fa5[13]](_0x2fa5[1],{accountcode:_0x5c91x2[_0x2fa5[2]],source:_0x5c91x2[_0x2fa5[2]],destination:_0x5c91x2[_0x2fa5[2]],destinationcontext:_0x5c91x2[_0x2fa5[2]],callerid:_0x5c91x2[_0x2fa5[2]],channel:_0x5c91x2[_0x2fa5[2]],destinationchannel:_0x5c91x2[_0x2fa5[2]],lastapplication:_0x5c91x2[_0x2fa5[2]],lastdata:_0x5c91x2[_0x2fa5[2]],starttime:_0x5c91x2[_0x2fa5[3]],answertime:{type:_0x5c91x2[_0x2fa5[3]],set:function(_0x5c91x4){if(_0x5c91x4!==_0x2fa5[4]){this[_0x2fa5[6]](_0x2fa5[5],_0x5c91x4)}else {this[_0x2fa5[6]](_0x2fa5[5],null)}}},endtime:_0x5c91x2[_0x2fa5[3]],duration:_0x5c91x2[_0x2fa5[7]],billableseconds:_0x5c91x2[_0x2fa5[7]],disposition:_0x5c91x2[_0x2fa5[2]],amaflags:_0x5c91x2[_0x2fa5[2]],uniqueid:{type:_0x5c91x2[_0x2fa5[2]],primaryKey:true},userfield:_0x5c91x2[_0x2fa5[2]]},{tableName:_0x2fa5[8],associate:function(_0x5c91x5){_0x5c91x3[_0x2fa5[11]](_0x5c91x5.ReportQueueHistory,{as:_0x2fa5[9],foreignKey:_0x2fa5[10],constraints:false});_0x5c91x3[_0x2fa5[11]](_0x5c91x5.ReportAgentHistory,{as:_0x2fa5[12],foreignKey:_0x2fa5[10],constraints:false});}});_0x5c91x3[_0x2fa5[15]](_0x2fa5[14]);return _0x5c91x3;};
\ No newline at end of file
+var _0xa4d0=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x48\x69\x73\x74\x6F\x72\x79\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x48\x69\x73\x74\x6F\x72\x79\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xa4d0[0]]=function(_0x8277x1,_0x8277x2){var _0x8277x3=_0x8277x1[_0xa4d0[13]](_0xa4d0[1],{accountcode:_0x8277x2[_0xa4d0[2]],source:_0x8277x2[_0xa4d0[2]],destination:_0x8277x2[_0xa4d0[2]],destinationcontext:_0x8277x2[_0xa4d0[2]],callerid:_0x8277x2[_0xa4d0[2]],channel:_0x8277x2[_0xa4d0[2]],destinationchannel:_0x8277x2[_0xa4d0[2]],lastapplication:_0x8277x2[_0xa4d0[2]],lastdata:_0x8277x2[_0xa4d0[2]],starttime:_0x8277x2[_0xa4d0[3]],answertime:{type:_0x8277x2[_0xa4d0[3]],set:function(_0x8277x4){if(_0x8277x4!==_0xa4d0[4]){this[_0xa4d0[6]](_0xa4d0[5],_0x8277x4)}else {this[_0xa4d0[6]](_0xa4d0[5],null)}}},endtime:_0x8277x2[_0xa4d0[3]],duration:_0x8277x2[_0xa4d0[7]],billableseconds:_0x8277x2[_0xa4d0[7]],disposition:_0x8277x2[_0xa4d0[2]],amaflags:_0x8277x2[_0xa4d0[2]],uniqueid:{type:_0x8277x2[_0xa4d0[2]],primaryKey:true},userfield:_0x8277x2[_0xa4d0[2]]},{tableName:_0xa4d0[8],associate:function(_0x8277x5){_0x8277x3[_0xa4d0[11]](_0x8277x5.ReportQueueHistory,{as:_0xa4d0[9],foreignKey:_0xa4d0[10],constraints:false});_0x8277x3[_0xa4d0[11]](_0x8277x5.ReportAgentHistory,{as:_0xa4d0[12],foreignKey:_0xa4d0[10],constraints:false});}});_0x8277x3[_0xa4d0[15]](_0xa4d0[14]);return _0x8277x3;};
\ No newline at end of file
-var _0x6c9a=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x6c9a[0]]=function(_0x80ddx1,_0x80ddx2){var _0x80ddx3=_0x80ddx1[_0x6c9a[5]](_0x6c9a[1],{channel:_0x80ddx2[_0x6c9a[2]],channelstate:_0x80ddx2[_0x6c9a[3]],channelstatedesc:_0x80ddx2[_0x6c9a[2]],calleridnum:_0x80ddx2[_0x6c9a[2]],calleridname:_0x80ddx2[_0x6c9a[2]],connectedlinenum:_0x80ddx2[_0x6c9a[2]],connectedlinename:_0x80ddx2[_0x6c9a[2]],language:_0x80ddx2[_0x6c9a[2]],accountcode:_0x80ddx2[_0x6c9a[2]],context:_0x80ddx2[_0x6c9a[2]],exten:_0x80ddx2[_0x6c9a[2]],priority:_0x80ddx2[_0x6c9a[3]],uniqueid:_0x80ddx2[_0x6c9a[2]],destchannel:_0x80ddx2[_0x6c9a[2]],destchannelstate:_0x80ddx2[_0x6c9a[3]],destchannelstatedesc:_0x80ddx2[_0x6c9a[2]],destcalleridnum:_0x80ddx2[_0x6c9a[2]],destcalleridname:_0x80ddx2[_0x6c9a[2]],destconnectedlinenum:_0x80ddx2[_0x6c9a[2]],destconnectedlinename:_0x80ddx2[_0x6c9a[2]],destlanguage:_0x80ddx2[_0x6c9a[2]],destaccountcode:_0x80ddx2[_0x6c9a[2]],destcontext:_0x80ddx2[_0x6c9a[2]],destexten:_0x80ddx2[_0x6c9a[2]],destpriority:_0x80ddx2[_0x6c9a[3]],destuniqueid:_0x80ddx2[_0x6c9a[2]],dialstring:_0x80ddx2[_0x6c9a[2]],dialstatus:_0x80ddx2[_0x6c9a[2]]},{tableName:_0x6c9a[4]});_0x80ddx3[_0x6c9a[7]](_0x6c9a[6]);return _0x80ddx3;};
\ No newline at end of file
+var _0xdac3=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xdac3[0]]=function(_0xb44bx1,_0xb44bx2){var _0xb44bx3=_0xb44bx1[_0xdac3[5]](_0xdac3[1],{channel:_0xb44bx2[_0xdac3[2]],channelstate:_0xb44bx2[_0xdac3[3]],channelstatedesc:_0xb44bx2[_0xdac3[2]],calleridnum:_0xb44bx2[_0xdac3[2]],calleridname:_0xb44bx2[_0xdac3[2]],connectedlinenum:_0xb44bx2[_0xdac3[2]],connectedlinename:_0xb44bx2[_0xdac3[2]],language:_0xb44bx2[_0xdac3[2]],accountcode:_0xb44bx2[_0xdac3[2]],context:_0xb44bx2[_0xdac3[2]],exten:_0xb44bx2[_0xdac3[2]],priority:_0xb44bx2[_0xdac3[3]],uniqueid:_0xb44bx2[_0xdac3[2]],destchannel:_0xb44bx2[_0xdac3[2]],destchannelstate:_0xb44bx2[_0xdac3[3]],destchannelstatedesc:_0xb44bx2[_0xdac3[2]],destcalleridnum:_0xb44bx2[_0xdac3[2]],destcalleridname:_0xb44bx2[_0xdac3[2]],destconnectedlinenum:_0xb44bx2[_0xdac3[2]],destconnectedlinename:_0xb44bx2[_0xdac3[2]],destlanguage:_0xb44bx2[_0xdac3[2]],destaccountcode:_0xb44bx2[_0xdac3[2]],destcontext:_0xb44bx2[_0xdac3[2]],destexten:_0xb44bx2[_0xdac3[2]],destpriority:_0xb44bx2[_0xdac3[3]],destuniqueid:_0xb44bx2[_0xdac3[2]],dialstring:_0xb44bx2[_0xdac3[2]],dialstatus:_0xb44bx2[_0xdac3[2]]},{tableName:_0xdac3[4]});_0xb44bx3[_0xdac3[7]](_0xdac3[6]);return _0xb44bx3;};
\ No newline at end of file
-var _0x19a5=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x19a5[0]]=function(_0x78e0x1,_0x78e0x2){var _0x78e0x3=_0x78e0x1[_0x19a5[12]](_0x19a5[1],{integration:_0x78e0x2[_0x19a5[2]],event:_0x78e0x2[_0x19a5[2]],contacts:_0x78e0x2[_0x19a5[2]],uniqueid:_0x78e0x2[_0x19a5[2]],calleridnum:_0x78e0x2[_0x19a5[2]],calleridname:_0x78e0x2[_0x19a5[2]],queue:_0x78e0x2[_0x19a5[2]],interface:_0x78e0x2[_0x19a5[2]],membername:_0x78e0x2[_0x19a5[2]],agentcalledAt:_0x78e0x2[_0x19a5[3]],agentconnectAt:_0x78e0x2[_0x19a5[3]],holdtime:_0x78e0x2[_0x19a5[4]],agentcomplete:{type:_0x78e0x2[_0x19a5[5]],defaultValue:false},agentcompleteAt:_0x78e0x2[_0x19a5[3]],talktime:_0x78e0x2[_0x19a5[4]],agentacw:{type:_0x78e0x2[_0x19a5[5]],defaultValue:false},acwtime:_0x78e0x2[_0x19a5[4]],reason:_0x78e0x2[_0x19a5[2]],agentringnoanswer:{type:_0x78e0x2[_0x19a5[5]],defaultValue:false},agentringnoanswerAt:_0x78e0x2[_0x19a5[3]],agentdump:{type:_0x78e0x2[_0x19a5[5]],defaultValue:false},agentdumpAt:_0x78e0x2[_0x19a5[3]],lastevent:_0x78e0x2[_0x19a5[2]],channel:_0x78e0x2[_0x19a5[2]],channelstate:_0x78e0x2[_0x19a5[4]],channelstatedesc:_0x78e0x2[_0x19a5[2]],connectedlinenum:_0x78e0x2[_0x19a5[2]],connectedlinename:_0x78e0x2[_0x19a5[2]],language:_0x78e0x2[_0x19a5[2]],accountcode:_0x78e0x2[_0x19a5[2]],context:_0x78e0x2[_0x19a5[2]],exten:_0x78e0x2[_0x19a5[2]],priority:_0x78e0x2[_0x19a5[2]],destchannel:_0x78e0x2[_0x19a5[2]],destchannelstate:_0x78e0x2[_0x19a5[4]],destchannelstatedesc:_0x78e0x2[_0x19a5[2]],destcalleridnum:_0x78e0x2[_0x19a5[2]],destcalleridname:_0x78e0x2[_0x19a5[2]],destconnectedlinenum:_0x78e0x2[_0x19a5[2]],destconnectedlinename:_0x78e0x2[_0x19a5[2]],destlanguage:_0x78e0x2[_0x19a5[2]],destaccountcode:_0x78e0x2[_0x19a5[2]],destcontext:_0x78e0x2[_0x19a5[2]],destexten:_0x78e0x2[_0x19a5[2]],destpriority:_0x78e0x2[_0x19a5[2]],destuniqueid:_0x78e0x2[_0x19a5[2]],messageId:_0x78e0x2[_0x19a5[2]],inReplyTo:_0x78e0x2[_0x19a5[2]],subject:_0x78e0x2[_0x19a5[2]],from:_0x78e0x2[_0x19a5[2]],to:_0x78e0x2[_0x19a5[2]],cc:_0x78e0x2[_0x19a5[2]],attachment:_0x78e0x2[_0x19a5[6]],html:_0x78e0x2[_0x19a5[6]],text:_0x78e0x2[_0x19a5[6]],status:{type:_0x78e0x2.ENUM(_0x19a5[7],_0x19a5[8],_0x19a5[9],_0x19a5[10])}},{tableName:_0x19a5[11]});_0x78e0x3[_0x19a5[14]](_0x19a5[13]);return _0x78e0x3;};
\ No newline at end of file
+var _0xe3bc=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xe3bc[0]]=function(_0x1444x1,_0x1444x2){var _0x1444x3=_0x1444x1[_0xe3bc[12]](_0xe3bc[1],{integration:_0x1444x2[_0xe3bc[2]],event:_0x1444x2[_0xe3bc[2]],contacts:_0x1444x2[_0xe3bc[2]],uniqueid:_0x1444x2[_0xe3bc[2]],calleridnum:_0x1444x2[_0xe3bc[2]],calleridname:_0x1444x2[_0xe3bc[2]],queue:_0x1444x2[_0xe3bc[2]],interface:_0x1444x2[_0xe3bc[2]],membername:_0x1444x2[_0xe3bc[2]],agentcalledAt:_0x1444x2[_0xe3bc[3]],agentconnectAt:_0x1444x2[_0xe3bc[3]],holdtime:_0x1444x2[_0xe3bc[4]],agentcomplete:{type:_0x1444x2[_0xe3bc[5]],defaultValue:false},agentcompleteAt:_0x1444x2[_0xe3bc[3]],talktime:_0x1444x2[_0xe3bc[4]],agentacw:{type:_0x1444x2[_0xe3bc[5]],defaultValue:false},acwtime:_0x1444x2[_0xe3bc[4]],reason:_0x1444x2[_0xe3bc[2]],agentringnoanswer:{type:_0x1444x2[_0xe3bc[5]],defaultValue:false},agentringnoanswerAt:_0x1444x2[_0xe3bc[3]],agentdump:{type:_0x1444x2[_0xe3bc[5]],defaultValue:false},agentdumpAt:_0x1444x2[_0xe3bc[3]],lastevent:_0x1444x2[_0xe3bc[2]],channel:_0x1444x2[_0xe3bc[2]],channelstate:_0x1444x2[_0xe3bc[4]],channelstatedesc:_0x1444x2[_0xe3bc[2]],connectedlinenum:_0x1444x2[_0xe3bc[2]],connectedlinename:_0x1444x2[_0xe3bc[2]],language:_0x1444x2[_0xe3bc[2]],accountcode:_0x1444x2[_0xe3bc[2]],context:_0x1444x2[_0xe3bc[2]],exten:_0x1444x2[_0xe3bc[2]],priority:_0x1444x2[_0xe3bc[2]],destchannel:_0x1444x2[_0xe3bc[2]],destchannelstate:_0x1444x2[_0xe3bc[4]],destchannelstatedesc:_0x1444x2[_0xe3bc[2]],destcalleridnum:_0x1444x2[_0xe3bc[2]],destcalleridname:_0x1444x2[_0xe3bc[2]],destconnectedlinenum:_0x1444x2[_0xe3bc[2]],destconnectedlinename:_0x1444x2[_0xe3bc[2]],destlanguage:_0x1444x2[_0xe3bc[2]],destaccountcode:_0x1444x2[_0xe3bc[2]],destcontext:_0x1444x2[_0xe3bc[2]],destexten:_0x1444x2[_0xe3bc[2]],destpriority:_0x1444x2[_0xe3bc[2]],destuniqueid:_0x1444x2[_0xe3bc[2]],messageId:_0x1444x2[_0xe3bc[2]],inReplyTo:_0x1444x2[_0xe3bc[2]],subject:_0x1444x2[_0xe3bc[2]],from:_0x1444x2[_0xe3bc[2]],to:_0x1444x2[_0xe3bc[2]],cc:_0x1444x2[_0xe3bc[2]],attachment:_0x1444x2[_0xe3bc[6]],html:_0x1444x2[_0xe3bc[6]],text:_0x1444x2[_0xe3bc[6]],status:{type:_0x1444x2.ENUM(_0xe3bc[7],_0xe3bc[8],_0xe3bc[9],_0xe3bc[10])}},{tableName:_0xe3bc[11]});_0x1444x3[_0xe3bc[14]](_0xe3bc[13]);return _0x1444x3;};
\ No newline at end of file
-var _0x89cf=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];var moment=require(_0x89cf[0]);module[_0x89cf[1]]=function(_0xae57x2,_0xae57x3){var _0xae57x4=_0xae57x2[_0x89cf[8]](_0x89cf[2],{uniqueid:{type:_0xae57x3[_0x89cf[3]]},subject:_0xae57x3[_0x89cf[4]],from:_0xae57x3[_0x89cf[4]],cc:_0xae57x3[_0x89cf[4]],attachment:_0xae57x3[_0x89cf[5]],accountname:_0xae57x3[_0x89cf[4]],accountaddress:_0xae57x3[_0x89cf[4]],fullname:_0xae57x3[_0x89cf[4]],membername:_0xae57x3[_0x89cf[4]],mailqueuename:_0xae57x3[_0x89cf[4]],mailjoinAt:_0xae57x3[_0x89cf[6]],mailleaveAt:_0xae57x3[_0x89cf[6]],mailunmanagedAt:_0xae57x3[_0x89cf[6]]},{tableName:_0x89cf[7]});_0xae57x4[_0x89cf[10]](_0x89cf[9]);return _0xae57x4;};
\ No newline at end of file
+var _0x6b72=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];var moment=require(_0x6b72[0]);module[_0x6b72[1]]=function(_0x36c0x2,_0x36c0x3){var _0x36c0x4=_0x36c0x2[_0x6b72[8]](_0x6b72[2],{uniqueid:{type:_0x36c0x3[_0x6b72[3]]},subject:_0x36c0x3[_0x6b72[4]],from:_0x36c0x3[_0x6b72[4]],cc:_0x36c0x3[_0x6b72[4]],attachment:_0x36c0x3[_0x6b72[5]],accountname:_0x36c0x3[_0x6b72[4]],accountaddress:_0x36c0x3[_0x6b72[4]],fullname:_0x36c0x3[_0x6b72[4]],membername:_0x36c0x3[_0x6b72[4]],mailqueuename:_0x36c0x3[_0x6b72[4]],mailjoinAt:_0x36c0x3[_0x6b72[6]],mailleaveAt:_0x36c0x3[_0x6b72[6]],mailunmanagedAt:_0x36c0x3[_0x6b72[6]]},{tableName:_0x6b72[7]});_0x36c0x4[_0x6b72[10]](_0x6b72[9]);return _0x36c0x4;};
\ No newline at end of file
-var _0x8ca4=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x8ca4[0]]=function(_0x65acx1,_0x65acx2){var _0x65acx3=_0x65acx1[_0x8ca4[6]](_0x8ca4[1],{stateinterface:_0x65acx2[_0x8ca4[2]],queue:_0x65acx2[_0x8ca4[2]],membername:_0x65acx2[_0x8ca4[2]],interface:_0x65acx2[_0x8ca4[2]],state:_0x65acx2[_0x8ca4[3]],statedesc:_0x65acx2[_0x8ca4[2]],enterdate:_0x65acx2[_0x8ca4[4]],exitdate:_0x65acx2[_0x8ca4[4]],reason:_0x65acx2[_0x8ca4[2]]},{tableName:_0x8ca4[5]});_0x65acx3[_0x8ca4[8]](_0x8ca4[7]);return _0x65acx3;};
\ No newline at end of file
+var _0x9bdb=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0x9bdb[0]]=function(_0xd9f2x1,_0xd9f2x2){var _0xd9f2x3=_0xd9f2x1[_0x9bdb[6]](_0x9bdb[1],{stateinterface:_0xd9f2x2[_0x9bdb[2]],queue:_0xd9f2x2[_0x9bdb[2]],membername:_0xd9f2x2[_0x9bdb[2]],interface:_0xd9f2x2[_0x9bdb[2]],state:_0xd9f2x2[_0x9bdb[3]],statedesc:_0xd9f2x2[_0x9bdb[2]],enterdate:_0xd9f2x2[_0x9bdb[4]],exitdate:_0xd9f2x2[_0x9bdb[4]],reason:_0xd9f2x2[_0x9bdb[2]]},{tableName:_0x9bdb[5]});_0xd9f2x3[_0x9bdb[8]](_0x9bdb[7]);return _0xd9f2x3;};
\ No newline at end of file
-var _0xa6f1=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xa6f1[0]]=function(_0x8f86x1,_0x8f86x2){var _0x8f86x3=_0x8f86x1[_0xa6f1[7]](_0xa6f1[1],{uniqueid:_0x8f86x2[_0xa6f1[2]],calleridnum:_0x8f86x2[_0xa6f1[2]],calleridname:_0x8f86x2[_0xa6f1[2]],queue:_0x8f86x2[_0xa6f1[2]],queuecallerjoinAt:_0x8f86x2[_0xa6f1[3]],queuecallerleaveAt:_0x8f86x2[_0xa6f1[3]],position:_0x8f86x2[_0xa6f1[4]],count:_0x8f86x2[_0xa6f1[4]],queuecallerabandon:{type:_0x8f86x2[_0xa6f1[5]],defaultValue:false},queuecallerabandonAt:_0x8f86x2[_0xa6f1[3]],queuecallercompleteAt:_0x8f86x2[_0xa6f1[3]],originalposition:_0x8f86x2[_0xa6f1[4]],channel:_0x8f86x2[_0xa6f1[2]],channelstate:_0x8f86x2[_0xa6f1[4]],channelstatedesc:_0x8f86x2[_0xa6f1[2]],connectedlinenum:_0x8f86x2[_0xa6f1[2]],connectedlinename:_0x8f86x2[_0xa6f1[2]],language:_0x8f86x2[_0xa6f1[2]],accountcode:_0x8f86x2[_0xa6f1[2]],context:_0x8f86x2[_0xa6f1[2]],exten:_0x8f86x2[_0xa6f1[2]],priority:_0x8f86x2[_0xa6f1[2]]},{tableName:_0xa6f1[6]});_0x8f86x3[_0xa6f1[9]](_0xa6f1[8]);return _0x8f86x3;};
\ No newline at end of file
+var _0xb743=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x64\x65\x66\x69\x6E\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65"];module[_0xb743[0]]=function(_0x6110x1,_0x6110x2){var _0x6110x3=_0x6110x1[_0xb743[7]](_0xb743[1],{uniqueid:_0x6110x2[_0xb743[2]],calleridnum:_0x6110x2[_0xb743[2]],calleridname:_0x6110x2[_0xb743[2]],queue:_0x6110x2[_0xb743[2]],queuecallerjoinAt:_0x6110x2[_0xb743[3]],queuecallerleaveAt:_0x6110x2[_0xb743[3]],position:_0x6110x2[_0xb743[4]],count:_0x6110x2[_0xb743[4]],queuecallerabandon:{type:_0x6110x2[_0xb743[5]],defaultValue:false},queuecallerabandonAt:_0x6110x2[_0xb743[3]],queuecallercompleteAt:_0x6110x2[_0xb743[3]],originalposition:_0x6110x2[_0xb743[4]],channel:_0x6110x2[_0xb743[2]],channelstate:_0x6110x2[_0xb743[4]],channelstatedesc:_0x6110x2[_0xb743[2]],connectedlinenum:_0x6110x2[_0xb743[2]],connectedlinename:_0x6110x2[_0xb743[2]],language:_0x6110x2[_0xb743[2]],accountcode:_0x6110x2[_0xb743[2]],context:_0x6110x2[_0xb743[2]],exten:_0x6110x2[_0xb743[2]],priority:_0x6110x2[_0xb743[2]]},{tableName:_0xb743[6]});_0x6110x3[_0xb743[9]](_0xb743[8]);return _0x6110x3;};
\ No newline at end of file
-var _0xc029=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x70\x61\x74\x68","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x6D\x6F\x6D\x65\x6E\x74","\x63\x6F\x6E\x66\x69\x67","\x50\x72\x6F\x6D\x69\x73\x65","\x64\x61\x74\x61\x62\x61\x73\x65","\x64\x62","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x6D\x79\x73\x71\x6C","\x5A","\x66\x6F\x72\x6D\x61\x74","\x6A\x6F\x69\x6E","\x69\x6D\x70\x6F\x72\x74","\x6E\x61\x6D\x65","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x46\x69\x6C\x65","\x6C\x73\x74\x61\x74\x53\x79\x6E\x63","\x2E","\x69\x6E\x64\x65\x78\x4F\x66","\x2E\x73\x70\x65\x63\x2E","\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x66\x69\x6C\x74\x65\x72","\x72\x65\x61\x64\x64\x69\x72\x53\x79\x6E\x63","\x61\x73\x73\x6F\x63\x69\x61\x74\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6F\x70\x74\x69\x6F\x6E\x73","\x6B\x65\x79\x73","\x68\x69\x73\x74\x6F\x72\x79","\x64\x62\x5F\x68\x69\x73\x74\x6F\x72\x79","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x66\x72\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x74\x6F","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xc029[0];var fs=require(_0xc029[1]);var path=require(_0xc029[2]);var config=require(_0xc029[3]);var Sequelize=require(_0xc029[4]);var moment=require(_0xc029[5]);Sequelize[_0xc029[7]][_0xc029[6]]({warnings:{wForgottenReturn:false}});var sequelize= new Sequelize(config[_0xc029[9]][_0xc029[8]],config[_0xc029[9]][_0xc029[10]],config[_0xc029[9]][_0xc029[11]],{host:config[_0xc029[9]][_0xc029[12]],dialect:_0xc029[13],timezone:moment()[_0xc029[15]](_0xc029[14]),logging:false});var db={};fs[_0xc029[27]](__dirname)[_0xc029[26]](function(_0x63bdx8){return (fs[_0xc029[21]](path[_0xc029[16]](__dirname,_0x63bdx8))[_0xc029[20]]())&&(_0x63bdx8[_0xc029[23]](_0xc029[22])!==0)&&(_0x63bdx8[_0xc029[23]](_0xc029[24])=== -1)&&(_0x63bdx8!==_0xc029[25])})[_0xc029[19]](function(_0x63bdx8){var _0x63bdx9=sequelize[_0xc029[17]](path[_0xc029[16]](__dirname,_0x63bdx8));db[_0x63bdx9[_0xc029[18]]]=_0x63bdx9;});Object[_0xc029[31]](db)[_0xc029[19]](function(_0x63bdxa){if(db[_0x63bdxa][_0xc029[30]][_0xc029[29]](_0xc029[28])){db[_0x63bdxa][_0xc029[30]][_0xc029[28]](db)}});db[_0xc029[32]]={};var sequelize_history= new Sequelize(config[_0xc029[33]][_0xc029[8]],config[_0xc029[33]][_0xc029[10]],config[_0xc029[33]][_0xc029[11]],{host:config[_0xc029[33]][_0xc029[12]],dialect:_0xc029[13],timezone:moment()[_0xc029[15]](_0xc029[14]),logging:false});fs[_0xc029[27]](path[_0xc029[16]](__dirname,_0xc029[32]))[_0xc029[26]](function(_0x63bdx8){return (fs[_0xc029[21]](path[_0xc029[16]](__dirname,_0xc029[32],_0x63bdx8))[_0xc029[20]]())&&(_0x63bdx8[_0xc029[23]](_0xc029[22])!==0)&&(_0x63bdx8[_0xc029[23]](_0xc029[24])=== -1)&&(_0x63bdx8!==_0xc029[25])})[_0xc029[19]](function(_0x63bdx8){var _0x63bdx9=sequelize_history[_0xc029[17]](path[_0xc029[16]](__dirname,_0xc029[32],_0x63bdx8));db[_0xc029[32]][_0x63bdx9[_0xc029[18]]]=_0x63bdx9;});Object[_0xc029[31]](db[_0xc029[32]])[_0xc029[19]](function(_0x63bdxa){if(db[_0xc029[32]][_0x63bdxa][_0xc029[30]][_0xc029[29]](_0xc029[28])){db[_0xc029[32]][_0x63bdxa][_0xc029[30]][_0xc029[28]](db[_0xc029[32]])}});db[_0xc029[37]][_0xc029[36]](db[_0xc029[32]].ReportCallHistory,{as:_0xc029[34],foreignKey:_0xc029[35],constraints:false});db[_0xc029[37]][_0xc029[36]](db[_0xc029[32]].ReportCallHistory,{as:_0xc029[38],foreignKey:_0xc029[39],constraints:false});db[_0xc029[42]][_0xc029[36]](db[_0xc029[32]].ReportMailSessionHistory,{as:_0xc029[40],foreignKey:_0xc029[41],constraints:false});db[_0xc029[42]][_0xc029[36]](db[_0xc029[32]].ReportMailSessionHistory,{as:_0xc029[43],foreignKey:_0xc029[44],constraints:false});db[_0xc029[4]]=sequelize;db[_0xc029[45]]=sequelize_history;db[_0xc029[46]]=Sequelize;module[_0xc029[47]]=db;
\ No newline at end of file
+var _0x9db0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x66\x73","\x70\x61\x74\x68","\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x6D\x6F\x6D\x65\x6E\x74","\x63\x6F\x6E\x66\x69\x67","\x50\x72\x6F\x6D\x69\x73\x65","\x64\x61\x74\x61\x62\x61\x73\x65","\x64\x62","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x68\x6F\x73\x74","\x6D\x79\x73\x71\x6C","\x5A","\x66\x6F\x72\x6D\x61\x74","\x6A\x6F\x69\x6E","\x69\x6D\x70\x6F\x72\x74","\x6E\x61\x6D\x65","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x46\x69\x6C\x65","\x6C\x73\x74\x61\x74\x53\x79\x6E\x63","\x2E","\x69\x6E\x64\x65\x78\x4F\x66","\x2E\x73\x70\x65\x63\x2E","\x69\x6E\x64\x65\x78\x2E\x6A\x73","\x66\x69\x6C\x74\x65\x72","\x72\x65\x61\x64\x64\x69\x72\x53\x79\x6E\x63","\x61\x73\x73\x6F\x63\x69\x61\x74\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6F\x70\x74\x69\x6F\x6E\x73","\x6B\x65\x79\x73","\x68\x69\x73\x74\x6F\x72\x79","\x64\x62\x5F\x68\x69\x73\x74\x6F\x72\x79","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x43\x6F\x6E\x74\x61\x63\x74\x50\x68\x6F\x6E\x65","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x48\x69\x73\x74\x6F\x72\x79\x49\x6E\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x66\x72\x6F\x6D","\x43\x6F\x6E\x74\x61\x63\x74\x45\x6D\x61\x69\x6C","\x48\x69\x73\x74\x6F\x72\x79\x4F\x75\x74\x62\x6F\x75\x6E\x64\x4D\x65\x73\x73\x61\x67\x65\x73","\x74\x6F","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x68\x69\x73\x74\x6F\x72\x79","\x53\x65\x71\x75\x65\x6C\x69\x7A\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x9db0[0];var fs=require(_0x9db0[1]);var path=require(_0x9db0[2]);var config=require(_0x9db0[3]);var Sequelize=require(_0x9db0[4]);var moment=require(_0x9db0[5]);Sequelize[_0x9db0[7]][_0x9db0[6]]({warnings:{wForgottenReturn:false}});var sequelize= new Sequelize(config[_0x9db0[9]][_0x9db0[8]],config[_0x9db0[9]][_0x9db0[10]],config[_0x9db0[9]][_0x9db0[11]],{host:config[_0x9db0[9]][_0x9db0[12]],dialect:_0x9db0[13],timezone:moment()[_0x9db0[15]](_0x9db0[14]),logging:false});var db={};fs[_0x9db0[27]](__dirname)[_0x9db0[26]](function(_0xf9e7x8){return (fs[_0x9db0[21]](path[_0x9db0[16]](__dirname,_0xf9e7x8))[_0x9db0[20]]())&&(_0xf9e7x8[_0x9db0[23]](_0x9db0[22])!==0)&&(_0xf9e7x8[_0x9db0[23]](_0x9db0[24])=== -1)&&(_0xf9e7x8!==_0x9db0[25])})[_0x9db0[19]](function(_0xf9e7x8){var _0xf9e7x9=sequelize[_0x9db0[17]](path[_0x9db0[16]](__dirname,_0xf9e7x8));db[_0xf9e7x9[_0x9db0[18]]]=_0xf9e7x9;});Object[_0x9db0[31]](db)[_0x9db0[19]](function(_0xf9e7xa){if(db[_0xf9e7xa][_0x9db0[30]][_0x9db0[29]](_0x9db0[28])){db[_0xf9e7xa][_0x9db0[30]][_0x9db0[28]](db)}});db[_0x9db0[32]]={};var sequelize_history= new Sequelize(config[_0x9db0[33]][_0x9db0[8]],config[_0x9db0[33]][_0x9db0[10]],config[_0x9db0[33]][_0x9db0[11]],{host:config[_0x9db0[33]][_0x9db0[12]],dialect:_0x9db0[13],timezone:moment()[_0x9db0[15]](_0x9db0[14]),logging:false});fs[_0x9db0[27]](path[_0x9db0[16]](__dirname,_0x9db0[32]))[_0x9db0[26]](function(_0xf9e7x8){return (fs[_0x9db0[21]](path[_0x9db0[16]](__dirname,_0x9db0[32],_0xf9e7x8))[_0x9db0[20]]())&&(_0xf9e7x8[_0x9db0[23]](_0x9db0[22])!==0)&&(_0xf9e7x8[_0x9db0[23]](_0x9db0[24])=== -1)&&(_0xf9e7x8!==_0x9db0[25])})[_0x9db0[19]](function(_0xf9e7x8){var _0xf9e7x9=sequelize_history[_0x9db0[17]](path[_0x9db0[16]](__dirname,_0x9db0[32],_0xf9e7x8));db[_0x9db0[32]][_0xf9e7x9[_0x9db0[18]]]=_0xf9e7x9;});Object[_0x9db0[31]](db[_0x9db0[32]])[_0x9db0[19]](function(_0xf9e7xa){if(db[_0x9db0[32]][_0xf9e7xa][_0x9db0[30]][_0x9db0[29]](_0x9db0[28])){db[_0x9db0[32]][_0xf9e7xa][_0x9db0[30]][_0x9db0[28]](db[_0x9db0[32]])}});db[_0x9db0[37]][_0x9db0[36]](db[_0x9db0[32]].ReportCallHistory,{as:_0x9db0[34],foreignKey:_0x9db0[35],constraints:false});db[_0x9db0[37]][_0x9db0[36]](db[_0x9db0[32]].ReportCallHistory,{as:_0x9db0[38],foreignKey:_0x9db0[39],constraints:false});db[_0x9db0[42]][_0x9db0[36]](db[_0x9db0[32]].ReportMailSessionHistory,{as:_0x9db0[40],foreignKey:_0x9db0[41],constraints:false});db[_0x9db0[42]][_0x9db0[36]](db[_0x9db0[32]].ReportMailSessionHistory,{as:_0x9db0[43],foreignKey:_0x9db0[44],constraints:false});db[_0x9db0[4]]=sequelize;db[_0x9db0[45]]=sequelize_history;db[_0x9db0[46]]=Sequelize;module[_0x9db0[47]]=db;
\ No newline at end of file
-var _0x8055=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x75\x6E\x69\x71\x75\x65\x5F\x6E\x61\x6D\x65\x5F\x61\x6E\x64\x5F\x76\x65\x72\x73\x69\x6F\x6E","\x61\x70\x70\x2E\x6A\x73","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];_0x8055[0];module[_0x8055[1]]=function(_0xdaeax1,_0xdaeax2){var _0xdaeax3=_0xdaeax1[_0x8055[9]](_0x8055[2],{name:{type:_0xdaeax2[_0x8055[3]],allowNull:false,unique:_0x8055[4],validate:{notEmpty:true}},version:{type:_0xdaeax2[_0x8055[3]],allowNull:false,unique:_0x8055[4],validate:{notEmpty:true}},main:{type:_0xdaeax2[_0x8055[3]],defaultValue:_0x8055[5]},filename:{type:_0xdaeax2[_0x8055[3]]},path:{type:_0xdaeax2[_0x8055[3]]},type:{type:_0xdaeax2[_0x8055[3]]},size:{type:_0xdaeax2[_0x8055[6]]},active:{type:_0xdaeax2[_0x8055[7]],defaultValue:false},author:_0xdaeax2[_0x8055[3]],logo:_0xdaeax2[_0x8055[3]],state:_0xdaeax2[_0x8055[3]],description:_0xdaeax2[_0x8055[3]]},{tableName:_0x8055[8]});return _0xdaeax3;};
\ No newline at end of file
+var _0xe426=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x75\x6E\x69\x71\x75\x65\x5F\x6E\x61\x6D\x65\x5F\x61\x6E\x64\x5F\x76\x65\x72\x73\x69\x6F\x6E","\x61\x70\x70\x2E\x6A\x73","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];_0xe426[0];module[_0xe426[1]]=function(_0xe71bx1,_0xe71bx2){var _0xe71bx3=_0xe71bx1[_0xe426[9]](_0xe426[2],{name:{type:_0xe71bx2[_0xe426[3]],allowNull:false,unique:_0xe426[4],validate:{notEmpty:true}},version:{type:_0xe71bx2[_0xe426[3]],allowNull:false,unique:_0xe426[4],validate:{notEmpty:true}},main:{type:_0xe71bx2[_0xe426[3]],defaultValue:_0xe426[5]},filename:{type:_0xe71bx2[_0xe426[3]]},path:{type:_0xe71bx2[_0xe426[3]]},type:{type:_0xe71bx2[_0xe426[3]]},size:{type:_0xe71bx2[_0xe426[6]]},active:{type:_0xe71bx2[_0xe426[7]],defaultValue:false},author:_0xe71bx2[_0xe426[3]],logo:_0xe71bx2[_0xe426[3]],state:_0xe71bx2[_0xe426[3]],description:_0xe71bx2[_0xe426[3]]},{tableName:_0xe426[8]});return _0xe71bx3;};
\ No newline at end of file
-var _0x89c6=["\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x53\x65\x74","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x44\x69\x61\x6C","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x4E\x6F\x4F\x70","\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x6E\x73\x77\x65\x72","","\x51\x75\x65\x75\x65","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x51\x75\x65\x75\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x50\x6C\x61\x79\x62\x61\x63\x6B","\x25\x73\x2C\x25\x73","\x50\x6C\x61\x79\x62\x61\x63\x6B\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x47\x49","\x61\x67\x69\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x41\x47\x49\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x47\x6F\x74\x6F","\x25\x73\x2C\x25\x73\x2C\x25\x64","\x47\x6F\x74\x6F\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x48\x61\x6E\x67\x75\x70","\x25\x73","\x48\x61\x6E\x67\x75\x70\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x25\x73\x3D\x25\x73","\x53\x65\x74\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x63\x75\x73\x74\x6F\x6D","\x43\x75\x73\x74\x6F\x6D\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65\x5F\x69\x6E\x74\x65\x72\x76\x61\x6C\x69\x64","\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x3F","\x73\x70\x6C\x69\x74","\x61\x70\x70\x64\x61\x74\x61","\x25\x73\x3F\x25\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x6E\x6F\x74\x20\x79\x65\x74\x20\x64\x65\x6C\x65\x74\x65\x64","\x62\x65\x66\x6F\x72\x65\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x63\x72\x65\x61\x74\x65\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x61\x70\x70\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73\x20\x66\x6F\x75\x6E\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x49\x64","\x75\x6E\x69\x71","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x20\x62\x65\x66\x6F\x72\x65\x20\x64\x65\x73\x74\x72\x6F\x79\x2E\x2E","\x44\x65\x73\x74\x72\x6F\x79\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x72\x6F\x77\x73\x2E\x2E\x2E","\x44\x65\x73\x74\x72\x6F\x79\x65\x64\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x66\x69\x6C\x74\x65\x72","\x46\x69\x6E\x64\x69\x6E\x67\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x46\x6F\x75\x6E\x64\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x2C\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x72\x6F\x77\x73\x2E\x2E\x2E","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x61\x70\x70\x2E\x2E","\x61\x70\x70","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x63\x75\x73\x74\x6F\x6D\x41\x70\x70","\x50\x52\x49\x4F\x52\x49\x54\x59","\x25\x73\x25\x73\x25\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x73\x70\x6C\x69\x63\x65","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65\x46\x72\x6F\x6D\x41\x72\x72\x61\x79","\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x69\x64","\x75\x6E\x73\x68\x69\x66\x74","\x72\x65\x74\x75\x72\x6E\x65\x64\x20\x70\x72\x69\x6F\x72\x69\x74\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x54\x48\x45\x20\x45\x4E\x44","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x49\x44","\x72\x65\x6D\x6F\x76\x65","\x74\x79\x70\x65","\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x70\x70\x47\x72\x6F\x75\x70","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x74\x72\x75\x6E\x6B","\x54\x72\x75\x6E\x6B\x49\x64","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x61\x70\x70\x5F\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x69\x6D\x65\x6F\x75\x74","\x75\x72\x6C","\x2C","\x72\x65\x70\x6C\x61\x63\x65","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x61\x75\x64\x69\x6F\x66\x69\x6C\x65","\x71\x75\x65\x75\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x61\x6C\x74\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x6C\x74\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x6C\x74\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x63\x61\x75\x73\x65\x63\x6F\x64\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\x6D\x61\x69\x6C\x62\x6F\x78"];var util=require(_0x89c6[0]);var _=require(_0x89c6[1]);var Applications={Dial:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[4],appdata:_0x89c6[5]},{app:_0x89c6[6],appdata:_0x89c6[7],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[9]}],Queue:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[10],appdata:_0x89c6[11]},{app:_0x89c6[12],appdata:_0x89c6[13],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[14]}],Playback:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[15],appdata:_0x89c6[16],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[17]}],AGI:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[18],appdata:_0x89c6[19],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[20]}],Goto:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[21],appdata:_0x89c6[22],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[23]}],Hangup:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[24],appdata:_0x89c6[25],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[26]}],Set:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[4],appdata:_0x89c6[27],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[28]}],custom:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[29],appdata:_0x89c6[25],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[30]}],Voicemail:[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[31],appdata:_0x89c6[25],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[32]}]};module[_0x89c6[33]]=function(_0x10e3x4,_0x10e3x5){var _0x10e3x6=_0x10e3x4[_0x89c6[62]](_0x89c6[34],{name:{type:_0x10e3x5[_0x89c6[35]],unique:_0x89c6[36]},interval:{type:_0x10e3x5[_0x89c6[35]],allowNull:true},IntervalId:{type:_0x10e3x5.INTEGER(11),unique:_0x89c6[36]}},{tableName:_0x89c6[37],associate:function(_0x10e3x7){_0x10e3x6[_0x89c6[40]](_0x10e3x7.Interval,{as:_0x89c6[38],onDelete:_0x89c6[39]});_0x10e3x6[_0x89c6[40]](_0x10e3x7.VoiceExtension,{as:_0x89c6[41]});_0x10e3x6[_0x89c6[40]](_0x10e3x7.MailApplication,{as:_0x89c6[42]});_0x10e3x6[_0x89c6[40]](_0x10e3x7.MailApplication,{as:_0x89c6[43]});_0x10e3x6[_0x89c6[57]](function(_0x10e3x8){if(_0x10e3x8[_0x89c6[44]]!==null){_0x10e3x8[_0x89c6[56]]()[_0x89c6[55]](function(_0x10e3xa){var _0x10e3xb;var _0x10e3xc;_0x10e3xa[_0x89c6[54]](function(_0x10e3xd){_0x10e3xc=_0x10e3xd[_0x89c6[49]][_0x89c6[48]](_0x89c6[47]);_0x10e3xd[_0x89c6[49]]=util[_0x89c6[52]](_0x89c6[50],_0x10e3x8[_0x89c6[51]],_0x10e3xc[1]);_0x10e3xd[_0x89c6[51]]=_0x10e3x8[_0x89c6[51]];_0x10e3xd[_0x89c6[53]]()[_0x89c6[46]](function(_0x10e3x9){console[_0x89c6[45]](_0x10e3x9)});});})[_0x89c6[46]](function(_0x10e3x9){console[_0x89c6[45]](_0x10e3x9)})}});_0x10e3x6[_0x89c6[59]](function(_0x10e3x8){console[_0x89c6[45]](_0x89c6[58]);if(_0x10e3x8[_0x89c6[44]]!==null){_0x10e3xe(_0x10e3x8,_0x10e3x7)};});_0x10e3x6[_0x89c6[61]](function(_0x10e3x8){console[_0x89c6[45]](_0x89c6[60]);if(_0x10e3x8[_0x89c6[44]]!==null){_0x10e3xe(_0x10e3x8,_0x10e3x7,true)};});}});function _0x10e3xe(_0x10e3xf,_0x10e3x7,_0x10e3x10){console[_0x89c6[45]](_0x89c6[63]);_0x10e3x7[_0x89c6[92]][_0x89c6[94]]({where:{IntervalId:_0x10e3xf[_0x89c6[44]]}})[_0x89c6[55]](function(_0x10e3x11){if(_0x10e3x11&&_0x10e3x11[_0x89c6[64]]>0){console[_0x89c6[45]](_0x89c6[65]);var _0x10e3x12=_[_0x89c6[69]](_[_0x89c6[67]](_[_0x89c6[67]](_0x10e3x11,_0x89c6[66]),_0x89c6[68]),true);_0x10e3x7[_0x89c6[92]][_0x89c6[94]]({where:{VoiceExtensionId:_0x10e3x12,isApp:true}})[_0x89c6[55]](function(_0x10e3xa){console[_0x89c6[45]](_0x89c6[70]);return _0x10e3x4[_0x89c6[96]](function(_0x10e3x13){console[_0x89c6[45]](_0x89c6[71]);return _0x10e3x7[_0x89c6[92]][_0x89c6[95]]({where:{VoiceExtensionId:_0x10e3x12}},{transaction:_0x10e3x13})[_0x89c6[55]](function(){console[_0x89c6[45]](_0x89c6[72]);_0x10e3xa=_[_0x89c6[67]](_0x10e3xa,_0x89c6[66]);var _0x10e3x14=_[_0x89c6[73]](_[_0x89c6[67]](_0x10e3xa,_0x89c6[44]),function(_0x10e3x15){return _0x10e3x15!==null});console[_0x89c6[45]](_0x89c6[74]);_0x10e3x6[_0x89c6[94]]({where:{IntervalId:_0x10e3x14,id:{$ne:_0x10e3x10?null:_0x10e3xf[_0x89c6[88]]}}})[_0x89c6[55]](function(_0x10e3x16){console[_0x89c6[45]](_0x89c6[75]);var _0x10e3x17;_0x10e3x12[_0x89c6[54]](function(_0x10e3x18){_0x10e3x17=_[_0x89c6[73]](_0x10e3xa,function(_0x10e3x15){return _0x10e3x15[_0x89c6[68]]==_0x10e3x18});var _0x10e3x19=2;var _0x10e3x8;_0x10e3x17[_0x89c6[54]](function(_0x10e3x1a){console[_0x89c6[45]](_0x89c6[76]);var _0x10e3x1b=_[_0x89c6[78]](Applications[_0x10e3x1a[_0x89c6[77]]]);if(!_0x10e3x1b||_0x10e3x1a[_0x89c6[79]]){_0x10e3x1b=[{app:_0x89c6[2],appdata:_0x89c6[3]},{app:_0x89c6[29],appdata:_0x89c6[25],isApp:true},{app:_0x89c6[8],appdata:_0x89c6[30]}]};console[_0x89c6[45]](_0x89c6[80]);console[_0x89c6[45]](_0x10e3x19);var _0x10e3x1c=util[_0x89c6[52]](_0x89c6[81],_0x10e3x1a[_0x89c6[82]],_0x10e3x1a[_0x89c6[83]],_0x10e3x19);_0x10e3x1a[_0x89c6[51]]=_0x10e3x1a[_0x89c6[51]]||_0x89c6[84];var _0x10e3x1d=_[_0x89c6[73]](_0x10e3x16,function(_0x10e3x15){return (_0x10e3x15[_0x89c6[44]]==_0x10e3x1a[_0x89c6[44]])});if(_0x10e3x1d&&_0x10e3x1d[_0x89c6[64]]>0){_0x10e3x1b[_0x89c6[85]](0,1);_0x10e3x1d[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x1b[_0x89c6[89]]({app:_0x89c6[86],appdata:_0x10e3x15[_0x89c6[51]]+_0x89c6[87],IntervalId:_0x10e3x15[_0x89c6[88]],isInterval:true,interval:_0x10e3x15[_0x89c6[51]]})});};_0x10e3x19=appCreate(_0x10e3x1b,_0x10e3x1a,_0x10e3x1c,_0x10e3x1d||[],_0x10e3x19);console[_0x89c6[45]](_0x89c6[90]);console[_0x89c6[45]](_0x10e3x19);_0x10e3x7[_0x89c6[92]][_0x89c6[91]](_0x10e3x1b);});});console[_0x89c6[45]](_0x89c6[93]);});});})[_0x89c6[46]](function(_0x10e3x9){console[_0x89c6[45]](_0x10e3x9)});})[_0x89c6[46]](function(_0x10e3x9){console[_0x89c6[45]](_0x10e3x9)});}})[_0x89c6[46]](function(_0x10e3x9){console[_0x89c6[45]](_0x10e3x9)});}return _0x10e3x6;};function appCreate(_0x10e3x1b,_0x10e3xd,_0x10e3x1c,_0x10e3x16,_0x10e3x19){var _0x10e3x20=_0x10e3x16[_0x89c6[64]];if(_0x10e3xd[_0x89c6[79]]){_0x10e3xd[_0x89c6[77]]=_0x89c6[29]};switch(_0x10e3xd[_0x89c6[77]]){case _0x89c6[6]:if(!_0x10e3xd[_0x89c6[97]]){_[_0x89c6[98]](_0x10e3x1b,{app:_0x89c6[4]})};_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[6]:if(_0x10e3xd[_0x89c6[99]]===_0x89c6[102]){_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[103]]=_0x10e3xd[_0x89c6[103]];_0x10e3x15[_0x89c6[104]]=_0x10e3xd[_0x89c6[104]];_0x10e3x15[_0x89c6[105]]=_0x10e3xd[_0x89c6[105]]||0;_0x10e3x15[_0x89c6[97]]=_0x10e3xd[_0x89c6[97]]||null;}else {_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[106]]=_0x10e3xd[_0x89c6[106]];_0x10e3x15[_0x89c6[107]]=_0x10e3xd[_0x89c6[107]]||_0x89c6[11];_0x10e3x15[_0x89c6[108]]=_0x10e3xd[_0x89c6[108]]||_0x89c6[11];_0x10e3x15[_0x89c6[109]]=_0x10e3xd[_0x89c6[109]]||_0x89c6[11];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[106]],_0x10e3x15[_0x89c6[108]],_0x10e3x15[_0x89c6[107]]?_0x10e3x15[_0x89c6[107]][_0x89c6[111]](_0x89c6[110],_0x89c6[11]):_0x89c6[11],_0x10e3x15[_0x89c6[109]]);};break ;;case _0x89c6[4]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[97]]);break ;;case _0x89c6[8]:if(_0x10e3xd[_0x89c6[99]]===_0x89c6[102]){_0x10e3x15[_0x89c6[49]]=_0x89c6[112]};break ;;default:;};});break ;;case _0x89c6[12]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[12]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[107]]=_0x10e3xd[_0x89c6[107]]||_0x89c6[11];_0x10e3x15[_0x89c6[113]]=_0x10e3xd[_0x89c6[113]]||_0x89c6[11];_0x10e3x15[_0x89c6[114]]=_0x10e3xd[_0x89c6[114]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[106]]=_0x10e3xd[_0x89c6[106]];_0x10e3x15[_0x89c6[107]]=_0x10e3xd[_0x89c6[107]];_0x10e3x15[_0x89c6[108]]=_0x10e3xd[_0x89c6[108]]||_0x89c6[11];_0x10e3x15[_0x89c6[109]]=_0x10e3xd[_0x89c6[109]]||_0x89c6[11];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[114]],_0x10e3x15[_0x89c6[107]]?_0x10e3x15[_0x89c6[107]][_0x89c6[111]](_0x89c6[110],_0x89c6[11]):_0x89c6[11],_0x10e3x15[_0x89c6[109]],_0x10e3x15[_0x89c6[113]],_0x10e3x15[_0x89c6[108]]);break ;;default:;};});break ;;case _0x89c6[15]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[15]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[113]]=_0x10e3xd[_0x89c6[113]]||_0x89c6[11];_0x10e3x15[_0x89c6[107]]=_0x10e3xd[_0x89c6[107]]||_0x89c6[11];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[113]],_0x10e3x15[_0x89c6[107]]?_0x10e3x15[_0x89c6[107]][_0x89c6[111]](_0x89c6[110],_0x89c6[11]):_0x89c6[11]);break ;;default:;};});break ;;case _0x89c6[18]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[18]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[115]]=_0x10e3xd[_0x89c6[115]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[115]]);break ;;default:;};});break ;;case _0x89c6[21]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[21]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[116]]=_0x10e3xd[_0x89c6[116]];_0x10e3x15[_0x89c6[117]]=_0x10e3xd[_0x89c6[117]];_0x10e3x15[_0x89c6[118]]=_0x10e3xd[_0x89c6[118]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[118]],_0x10e3x15[_0x89c6[117]],_0x10e3x15[_0x89c6[116]]);break ;;default:;};});break ;;case _0x89c6[24]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[24]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[119]]=_0x10e3xd[_0x89c6[119]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[119]]);break ;;default:;};});break ;;case _0x89c6[4]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[4]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[120]]=_0x10e3xd[_0x89c6[120]];_0x10e3x15[_0x89c6[121]]=_0x10e3xd[_0x89c6[121]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[120]],_0x10e3x15[_0x89c6[121]]);break ;;default:;};});break ;;case _0x89c6[29]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[29]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[77]]=_0x10e3x15[_0x89c6[79]]=_0x10e3xd[_0x89c6[79]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[49]]);break ;;default:;};});break ;;case _0x89c6[31]:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[31]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[122]]=_0x10e3xd[_0x89c6[122]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[122]]);break ;;default:;};});break ;;default:_0x10e3x1b[_0x89c6[54]](function(_0x10e3x15,_0x10e3x1e){_0x10e3x15[_0x89c6[83]]=_0x10e3xd[_0x89c6[83]];_0x10e3x15[_0x89c6[99]]=_0x10e3xd[_0x89c6[99]];_0x10e3x15[_0x89c6[82]]=_0x10e3xd[_0x89c6[82]];_0x10e3x15[_0x89c6[68]]=_0x10e3xd[_0x89c6[68]];_0x10e3x15[_0x89c6[100]]=_0x10e3x19?_0x10e3x19++:_0x10e3xd[_0x89c6[100]]++;_0x10e3x15[_0x89c6[101]]=_0x10e3x1c;switch(_0x10e3x15[_0x89c6[77]]){case _0x89c6[2]:_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[44]]?_0x89c6[84]:_0x10e3xd[_0x89c6[51]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+1,_0x10e3x15[_0x89c6[82]],(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[86]:_0x10e3x15[_0x89c6[77]]=_0x89c6[2];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3x15[_0x89c6[82]],_0x10e3x15[_0x89c6[100]]+_0x10e3x20-_0x10e3x1e,_0x10e3x15[_0x89c6[82]],(_0x10e3x1e+1)<_0x10e3x20?(_0x10e3x15[_0x89c6[100]]+1):(_0x10e3x15[_0x89c6[100]]+2));break ;;case _0x89c6[29]:_0x10e3x15[_0x89c6[44]]=_0x10e3xd[_0x89c6[44]];_0x10e3x15[_0x89c6[51]]=_0x10e3xd[_0x89c6[51]];_0x10e3x15[_0x89c6[77]]=_0x10e3x15[_0x89c6[79]]=_0x10e3xd[_0x89c6[79]];_0x10e3x15[_0x89c6[49]]=util[_0x89c6[52]](_0x10e3x15[_0x89c6[49]],_0x10e3xd[_0x89c6[49]]);break ;;default:;};});;};if(_0x10e3x19){return _0x10e3x19};}
\ No newline at end of file
+var _0xb65f=["\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65","\x25\x73\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x53\x65\x74","\x43\x41\x4C\x4C\x45\x52\x49\x44\x28\x61\x6C\x6C\x29\x3D\x25\x73","\x44\x69\x61\x6C","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x4E\x6F\x4F\x70","\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x6E\x73\x77\x65\x72","","\x51\x75\x65\x75\x65","\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73\x2C\x25\x73","\x51\x75\x65\x75\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x50\x6C\x61\x79\x62\x61\x63\x6B","\x25\x73\x2C\x25\x73","\x50\x6C\x61\x79\x62\x61\x63\x6B\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x41\x47\x49","\x61\x67\x69\x3A\x2F\x2F\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31\x2F\x73\x71\x75\x61\x72\x65\x2C\x25\x73","\x41\x47\x49\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x47\x6F\x74\x6F","\x25\x73\x2C\x25\x73\x2C\x25\x64","\x47\x6F\x74\x6F\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x48\x61\x6E\x67\x75\x70","\x25\x73","\x48\x61\x6E\x67\x75\x70\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x25\x73\x3D\x25\x73","\x53\x65\x74\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x63\x75\x73\x74\x6F\x6D","\x43\x75\x73\x74\x6F\x6D\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65\x5F\x69\x6E\x74\x65\x72\x76\x61\x6C\x69\x64","\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x49\x6E\x74\x65\x72\x76\x61\x6C\x49\x64","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x3F","\x73\x70\x6C\x69\x74","\x61\x70\x70\x64\x61\x74\x61","\x25\x73\x3F\x25\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x6E\x6F\x74\x20\x79\x65\x74\x20\x64\x65\x6C\x65\x74\x65\x64","\x62\x65\x66\x6F\x72\x65\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x72\x76\x61\x6C\x20\x63\x72\x65\x61\x74\x65\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x61\x70\x70\x73\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73\x20\x66\x6F\x75\x6E\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x6C\x75\x63\x6B","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x49\x64","\x75\x6E\x69\x71","\x53\x74\x61\x72\x74\x69\x6E\x67\x20\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E\x20\x62\x65\x66\x6F\x72\x65\x20\x64\x65\x73\x74\x72\x6F\x79\x2E\x2E","\x44\x65\x73\x74\x72\x6F\x79\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x72\x6F\x77\x73\x2E\x2E\x2E","\x44\x65\x73\x74\x72\x6F\x79\x65\x64\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x66\x69\x6C\x74\x65\x72","\x46\x69\x6E\x64\x69\x6E\x67\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x46\x6F\x75\x6E\x64\x20\x69\x6E\x74\x65\x72\x76\x61\x6C\x73\x2C\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x72\x6F\x77\x73\x2E\x2E\x2E","\x43\x72\x65\x61\x74\x69\x6E\x67\x20\x61\x70\x70\x2E\x2E","\x61\x70\x70","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x63\x75\x73\x74\x6F\x6D\x41\x70\x70","\x50\x52\x49\x4F\x52\x49\x54\x59","\x25\x73\x25\x73\x25\x73","\x63\x6F\x6E\x74\x65\x78\x74","\x65\x78\x74\x65\x6E","\x2A\x2C\x2A\x2C\x2A\x2C\x2A","\x73\x70\x6C\x69\x63\x65","\x47\x6F\x74\x6F\x49\x66\x54\x69\x6D\x65\x46\x72\x6F\x6D\x41\x72\x72\x61\x79","\x3F\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73\x3A\x25\x73\x2C\x24\x7B\x45\x58\x54\x45\x4E\x7D\x2C\x25\x73","\x69\x64","\x75\x6E\x73\x68\x69\x66\x74","\x72\x65\x74\x75\x72\x6E\x65\x64\x20\x70\x72\x69\x6F\x72\x69\x74\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x54\x48\x45\x20\x45\x4E\x44","\x66\x69\x6E\x64\x41\x6C\x6C","\x64\x65\x73\x74\x72\x6F\x79","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x49\x44","\x72\x65\x6D\x6F\x76\x65","\x74\x79\x70\x65","\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x70\x70\x47\x72\x6F\x75\x70","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x74\x72\x75\x6E\x6B","\x54\x72\x75\x6E\x6B\x49\x64","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x61\x70\x70\x5F\x6F\x70\x74\x69\x6F\x6E\x73","\x74\x69\x6D\x65\x6F\x75\x74","\x75\x72\x6C","\x2C","\x72\x65\x70\x6C\x61\x63\x65","\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x44\x69\x61\x6C\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x45\x6E\x64","\x61\x75\x64\x69\x6F\x66\x69\x6C\x65","\x71\x75\x65\x75\x65","\x70\x72\x6F\x6A\x65\x63\x74","\x61\x6C\x74\x5F\x70\x72\x69\x6F\x72\x69\x74\x79","\x61\x6C\x74\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x61\x6C\x74\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x63\x61\x75\x73\x65\x63\x6F\x64\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x6C\x75\x65","\x6D\x61\x69\x6C\x62\x6F\x78"];var util=require(_0xb65f[0]);var _=require(_0xb65f[1]);var Applications={Dial:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[4],appdata:_0xb65f[5]},{app:_0xb65f[6],appdata:_0xb65f[7],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[9]}],Queue:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[10],appdata:_0xb65f[11]},{app:_0xb65f[12],appdata:_0xb65f[13],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[14]}],Playback:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[15],appdata:_0xb65f[16],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[17]}],AGI:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[18],appdata:_0xb65f[19],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[20]}],Goto:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[21],appdata:_0xb65f[22],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[23]}],Hangup:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[24],appdata:_0xb65f[25],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[26]}],Set:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[4],appdata:_0xb65f[27],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[28]}],custom:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[29],appdata:_0xb65f[25],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[30]}],Voicemail:[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[31],appdata:_0xb65f[25],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[32]}]};module[_0xb65f[33]]=function(_0xc84cx4,_0xc84cx5){var _0xc84cx6=_0xc84cx4[_0xb65f[62]](_0xb65f[34],{name:{type:_0xc84cx5[_0xb65f[35]],unique:_0xb65f[36]},interval:{type:_0xc84cx5[_0xb65f[35]],allowNull:true},IntervalId:{type:_0xc84cx5.INTEGER(11),unique:_0xb65f[36]}},{tableName:_0xb65f[37],associate:function(_0xc84cx7){_0xc84cx6[_0xb65f[40]](_0xc84cx7.Interval,{as:_0xb65f[38],onDelete:_0xb65f[39]});_0xc84cx6[_0xb65f[40]](_0xc84cx7.VoiceExtension,{as:_0xb65f[41]});_0xc84cx6[_0xb65f[40]](_0xc84cx7.MailApplication,{as:_0xb65f[42]});_0xc84cx6[_0xb65f[40]](_0xc84cx7.MailApplication,{as:_0xb65f[43]});_0xc84cx6[_0xb65f[57]](function(_0xc84cx8){if(_0xc84cx8[_0xb65f[44]]!==null){_0xc84cx8[_0xb65f[56]]()[_0xb65f[55]](function(_0xc84cxa){var _0xc84cxb;var _0xc84cxc;_0xc84cxa[_0xb65f[54]](function(_0xc84cxd){_0xc84cxc=_0xc84cxd[_0xb65f[49]][_0xb65f[48]](_0xb65f[47]);_0xc84cxd[_0xb65f[49]]=util[_0xb65f[52]](_0xb65f[50],_0xc84cx8[_0xb65f[51]],_0xc84cxc[1]);_0xc84cxd[_0xb65f[51]]=_0xc84cx8[_0xb65f[51]];_0xc84cxd[_0xb65f[53]]()[_0xb65f[46]](function(_0xc84cx9){console[_0xb65f[45]](_0xc84cx9)});});})[_0xb65f[46]](function(_0xc84cx9){console[_0xb65f[45]](_0xc84cx9)})}});_0xc84cx6[_0xb65f[59]](function(_0xc84cx8){console[_0xb65f[45]](_0xb65f[58]);if(_0xc84cx8[_0xb65f[44]]!==null){_0xc84cxe(_0xc84cx8,_0xc84cx7)};});_0xc84cx6[_0xb65f[61]](function(_0xc84cx8){console[_0xb65f[45]](_0xb65f[60]);if(_0xc84cx8[_0xb65f[44]]!==null){_0xc84cxe(_0xc84cx8,_0xc84cx7,true)};});}});function _0xc84cxe(_0xc84cxf,_0xc84cx7,_0xc84cx10){console[_0xb65f[45]](_0xb65f[63]);_0xc84cx7[_0xb65f[92]][_0xb65f[94]]({where:{IntervalId:_0xc84cxf[_0xb65f[44]]}})[_0xb65f[55]](function(_0xc84cx11){if(_0xc84cx11&&_0xc84cx11[_0xb65f[64]]>0){console[_0xb65f[45]](_0xb65f[65]);var _0xc84cx12=_[_0xb65f[69]](_[_0xb65f[67]](_[_0xb65f[67]](_0xc84cx11,_0xb65f[66]),_0xb65f[68]),true);_0xc84cx7[_0xb65f[92]][_0xb65f[94]]({where:{VoiceExtensionId:_0xc84cx12,isApp:true}})[_0xb65f[55]](function(_0xc84cxa){console[_0xb65f[45]](_0xb65f[70]);return _0xc84cx4[_0xb65f[96]](function(_0xc84cx13){console[_0xb65f[45]](_0xb65f[71]);return _0xc84cx7[_0xb65f[92]][_0xb65f[95]]({where:{VoiceExtensionId:_0xc84cx12}},{transaction:_0xc84cx13})[_0xb65f[55]](function(){console[_0xb65f[45]](_0xb65f[72]);_0xc84cxa=_[_0xb65f[67]](_0xc84cxa,_0xb65f[66]);var _0xc84cx14=_[_0xb65f[73]](_[_0xb65f[67]](_0xc84cxa,_0xb65f[44]),function(_0xc84cx15){return _0xc84cx15!==null});console[_0xb65f[45]](_0xb65f[74]);_0xc84cx6[_0xb65f[94]]({where:{IntervalId:_0xc84cx14,id:{$ne:_0xc84cx10?null:_0xc84cxf[_0xb65f[88]]}}})[_0xb65f[55]](function(_0xc84cx16){console[_0xb65f[45]](_0xb65f[75]);var _0xc84cx17;_0xc84cx12[_0xb65f[54]](function(_0xc84cx18){_0xc84cx17=_[_0xb65f[73]](_0xc84cxa,function(_0xc84cx15){return _0xc84cx15[_0xb65f[68]]==_0xc84cx18});var _0xc84cx19=2;var _0xc84cx8;_0xc84cx17[_0xb65f[54]](function(_0xc84cx1a){console[_0xb65f[45]](_0xb65f[76]);var _0xc84cx1b=_[_0xb65f[78]](Applications[_0xc84cx1a[_0xb65f[77]]]);if(!_0xc84cx1b||_0xc84cx1a[_0xb65f[79]]){_0xc84cx1b=[{app:_0xb65f[2],appdata:_0xb65f[3]},{app:_0xb65f[29],appdata:_0xb65f[25],isApp:true},{app:_0xb65f[8],appdata:_0xb65f[30]}]};console[_0xb65f[45]](_0xb65f[80]);console[_0xb65f[45]](_0xc84cx19);var _0xc84cx1c=util[_0xb65f[52]](_0xb65f[81],_0xc84cx1a[_0xb65f[82]],_0xc84cx1a[_0xb65f[83]],_0xc84cx19);_0xc84cx1a[_0xb65f[51]]=_0xc84cx1a[_0xb65f[51]]||_0xb65f[84];var _0xc84cx1d=_[_0xb65f[73]](_0xc84cx16,function(_0xc84cx15){return (_0xc84cx15[_0xb65f[44]]==_0xc84cx1a[_0xb65f[44]])});if(_0xc84cx1d&&_0xc84cx1d[_0xb65f[64]]>0){_0xc84cx1b[_0xb65f[85]](0,1);_0xc84cx1d[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx1b[_0xb65f[89]]({app:_0xb65f[86],appdata:_0xc84cx15[_0xb65f[51]]+_0xb65f[87],IntervalId:_0xc84cx15[_0xb65f[88]],isInterval:true,interval:_0xc84cx15[_0xb65f[51]]})});};_0xc84cx19=appCreate(_0xc84cx1b,_0xc84cx1a,_0xc84cx1c,_0xc84cx1d||[],_0xc84cx19);console[_0xb65f[45]](_0xb65f[90]);console[_0xb65f[45]](_0xc84cx19);_0xc84cx7[_0xb65f[92]][_0xb65f[91]](_0xc84cx1b);});});console[_0xb65f[45]](_0xb65f[93]);});});})[_0xb65f[46]](function(_0xc84cx9){console[_0xb65f[45]](_0xc84cx9)});})[_0xb65f[46]](function(_0xc84cx9){console[_0xb65f[45]](_0xc84cx9)});}})[_0xb65f[46]](function(_0xc84cx9){console[_0xb65f[45]](_0xc84cx9)});}return _0xc84cx6;};function appCreate(_0xc84cx1b,_0xc84cxd,_0xc84cx1c,_0xc84cx16,_0xc84cx19){var _0xc84cx20=_0xc84cx16[_0xb65f[64]];if(_0xc84cxd[_0xb65f[79]]){_0xc84cxd[_0xb65f[77]]=_0xb65f[29]};switch(_0xc84cxd[_0xb65f[77]]){case _0xb65f[6]:if(!_0xc84cxd[_0xb65f[97]]){_[_0xb65f[98]](_0xc84cx1b,{app:_0xb65f[4]})};_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[6]:if(_0xc84cxd[_0xb65f[99]]===_0xb65f[102]){_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[103]]=_0xc84cxd[_0xb65f[103]];_0xc84cx15[_0xb65f[104]]=_0xc84cxd[_0xb65f[104]];_0xc84cx15[_0xb65f[105]]=_0xc84cxd[_0xb65f[105]]||0;_0xc84cx15[_0xb65f[97]]=_0xc84cxd[_0xb65f[97]]||null;}else {_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[106]]=_0xc84cxd[_0xb65f[106]];_0xc84cx15[_0xb65f[107]]=_0xc84cxd[_0xb65f[107]]||_0xb65f[11];_0xc84cx15[_0xb65f[108]]=_0xc84cxd[_0xb65f[108]]||_0xb65f[11];_0xc84cx15[_0xb65f[109]]=_0xc84cxd[_0xb65f[109]]||_0xb65f[11];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[106]],_0xc84cx15[_0xb65f[108]],_0xc84cx15[_0xb65f[107]]?_0xc84cx15[_0xb65f[107]][_0xb65f[111]](_0xb65f[110],_0xb65f[11]):_0xb65f[11],_0xc84cx15[_0xb65f[109]]);};break ;;case _0xb65f[4]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[97]]);break ;;case _0xb65f[8]:if(_0xc84cxd[_0xb65f[99]]===_0xb65f[102]){_0xc84cx15[_0xb65f[49]]=_0xb65f[112]};break ;;default:;};});break ;;case _0xb65f[12]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[12]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[107]]=_0xc84cxd[_0xb65f[107]]||_0xb65f[11];_0xc84cx15[_0xb65f[113]]=_0xc84cxd[_0xb65f[113]]||_0xb65f[11];_0xc84cx15[_0xb65f[114]]=_0xc84cxd[_0xb65f[114]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[106]]=_0xc84cxd[_0xb65f[106]];_0xc84cx15[_0xb65f[107]]=_0xc84cxd[_0xb65f[107]];_0xc84cx15[_0xb65f[108]]=_0xc84cxd[_0xb65f[108]]||_0xb65f[11];_0xc84cx15[_0xb65f[109]]=_0xc84cxd[_0xb65f[109]]||_0xb65f[11];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[114]],_0xc84cx15[_0xb65f[107]]?_0xc84cx15[_0xb65f[107]][_0xb65f[111]](_0xb65f[110],_0xb65f[11]):_0xb65f[11],_0xc84cx15[_0xb65f[109]],_0xc84cx15[_0xb65f[113]],_0xc84cx15[_0xb65f[108]]);break ;;default:;};});break ;;case _0xb65f[15]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[15]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[113]]=_0xc84cxd[_0xb65f[113]]||_0xb65f[11];_0xc84cx15[_0xb65f[107]]=_0xc84cxd[_0xb65f[107]]||_0xb65f[11];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[113]],_0xc84cx15[_0xb65f[107]]?_0xc84cx15[_0xb65f[107]][_0xb65f[111]](_0xb65f[110],_0xb65f[11]):_0xb65f[11]);break ;;default:;};});break ;;case _0xb65f[18]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[18]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[115]]=_0xc84cxd[_0xb65f[115]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[115]]);break ;;default:;};});break ;;case _0xb65f[21]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[21]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[116]]=_0xc84cxd[_0xb65f[116]];_0xc84cx15[_0xb65f[117]]=_0xc84cxd[_0xb65f[117]];_0xc84cx15[_0xb65f[118]]=_0xc84cxd[_0xb65f[118]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[118]],_0xc84cx15[_0xb65f[117]],_0xc84cx15[_0xb65f[116]]);break ;;default:;};});break ;;case _0xb65f[24]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[24]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[119]]=_0xc84cxd[_0xb65f[119]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[119]]);break ;;default:;};});break ;;case _0xb65f[4]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[4]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[120]]=_0xc84cxd[_0xb65f[120]];_0xc84cx15[_0xb65f[121]]=_0xc84cxd[_0xb65f[121]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[120]],_0xc84cx15[_0xb65f[121]]);break ;;default:;};});break ;;case _0xb65f[29]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[29]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[77]]=_0xc84cx15[_0xb65f[79]]=_0xc84cxd[_0xb65f[79]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[49]]);break ;;default:;};});break ;;case _0xb65f[31]:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[31]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[122]]=_0xc84cxd[_0xb65f[122]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[122]]);break ;;default:;};});break ;;default:_0xc84cx1b[_0xb65f[54]](function(_0xc84cx15,_0xc84cx1e){_0xc84cx15[_0xb65f[83]]=_0xc84cxd[_0xb65f[83]];_0xc84cx15[_0xb65f[99]]=_0xc84cxd[_0xb65f[99]];_0xc84cx15[_0xb65f[82]]=_0xc84cxd[_0xb65f[82]];_0xc84cx15[_0xb65f[68]]=_0xc84cxd[_0xb65f[68]];_0xc84cx15[_0xb65f[100]]=_0xc84cx19?_0xc84cx19++:_0xc84cxd[_0xb65f[100]]++;_0xc84cx15[_0xb65f[101]]=_0xc84cx1c;switch(_0xc84cx15[_0xb65f[77]]){case _0xb65f[2]:_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[44]]?_0xb65f[84]:_0xc84cxd[_0xb65f[51]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+1,_0xc84cx15[_0xb65f[82]],(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[86]:_0xc84cx15[_0xb65f[77]]=_0xb65f[2];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cx15[_0xb65f[82]],_0xc84cx15[_0xb65f[100]]+_0xc84cx20-_0xc84cx1e,_0xc84cx15[_0xb65f[82]],(_0xc84cx1e+1)<_0xc84cx20?(_0xc84cx15[_0xb65f[100]]+1):(_0xc84cx15[_0xb65f[100]]+2));break ;;case _0xb65f[29]:_0xc84cx15[_0xb65f[44]]=_0xc84cxd[_0xb65f[44]];_0xc84cx15[_0xb65f[51]]=_0xc84cxd[_0xb65f[51]];_0xc84cx15[_0xb65f[77]]=_0xc84cx15[_0xb65f[79]]=_0xc84cxd[_0xb65f[79]];_0xc84cx15[_0xb65f[49]]=util[_0xb65f[52]](_0xc84cx15[_0xb65f[49]],_0xc84cxd[_0xb65f[49]]);break ;;default:;};});;};if(_0xc84cx19){return _0xc84cx19};}
\ No newline at end of file
-var _0xa818=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4F\x6E\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xa818[0]]=function(_0x85a2x1,_0x85a2x2){var _0x85a2x3=_0x85a2x1[_0xa818[7]](_0xa818[1],{description:_0x85a2x2[_0xa818[2]],name:{type:_0x85a2x2[_0xa818[2]],unique:true},address:_0x85a2x2[_0xa818[2]]},{tableName:_0xa818[3],associate:function(_0x85a2x4){_0x85a2x3[_0xa818[4]](_0x85a2x4.MailRoom);_0x85a2x3[_0xa818[4]](_0x85a2x4.MailTemplate);_0x85a2x3[_0xa818[4]](_0x85a2x4.MailApplication);_0x85a2x3[_0xa818[6]](_0x85a2x4.MailServerIn,{onDelete:_0xa818[5],hooks:true});_0x85a2x3[_0xa818[6]](_0x85a2x4.MailServerOut,{onDelete:_0xa818[5],hooks:true});}});return _0x85a2x3;};
\ No newline at end of file
+var _0xa242=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4F\x6E\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xa242[0]]=function(_0xbda5x1,_0xbda5x2){var _0xbda5x3=_0xbda5x1[_0xa242[7]](_0xa242[1],{description:_0xbda5x2[_0xa242[2]],name:{type:_0xbda5x2[_0xa242[2]],unique:true},address:_0xbda5x2[_0xa242[2]]},{tableName:_0xa242[3],associate:function(_0xbda5x4){_0xbda5x3[_0xa242[4]](_0xbda5x4.MailRoom);_0xbda5x3[_0xa242[4]](_0xbda5x4.MailTemplate);_0xbda5x3[_0xa242[4]](_0xbda5x4.MailApplication);_0xbda5x3[_0xa242[6]](_0xbda5x4.MailServerIn,{onDelete:_0xa242[5],hooks:true});_0xbda5x3[_0xa242[6]](_0xbda5x4.MailServerOut,{onDelete:_0xa242[5],hooks:true});}});return _0xbda5x3;};
\ No newline at end of file
-var _0x51a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x51a6[0];module[_0x51a6[1]]=function(_0xb97ex1,_0xb97ex2){var _0xb97ex3=_0xb97ex1[_0x51a6[9]](_0x51a6[2],{app:{type:_0xb97ex2.ENUM(_0x51a6[3],_0x51a6[4])},priority:{type:_0xb97ex2[_0x51a6[5]]},timeout:{type:_0xb97ex2[_0x51a6[5]]},interval:{type:_0xb97ex2[_0x51a6[6]]}},{tableName:_0x51a6[7],associate:function(_0xb97ex4){_0xb97ex3[_0x51a6[8]](_0xb97ex4.MailAccount);_0xb97ex3[_0x51a6[8]](_0xb97ex4.Interval);_0xb97ex3[_0x51a6[8]](_0xb97ex4.MailQueue);_0xb97ex3[_0x51a6[8]](_0xb97ex4.User);}});return _0xb97ex3;};
\ No newline at end of file
+var _0xe204=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xe204[0];module[_0xe204[1]]=function(_0xb4bcx1,_0xb4bcx2){var _0xb4bcx3=_0xb4bcx1[_0xe204[9]](_0xe204[2],{app:{type:_0xb4bcx2.ENUM(_0xe204[3],_0xe204[4])},priority:{type:_0xb4bcx2[_0xe204[5]]},timeout:{type:_0xb4bcx2[_0xe204[5]]},interval:{type:_0xb4bcx2[_0xe204[6]]}},{tableName:_0xe204[7],associate:function(_0xb4bcx4){_0xb4bcx3[_0xe204[8]](_0xb4bcx4.MailAccount);_0xb4bcx3[_0xe204[8]](_0xb4bcx4.Interval);_0xb4bcx3[_0xe204[8]](_0xb4bcx4.MailQueue);_0xb4bcx3[_0xe204[8]](_0xb4bcx4.User);}});return _0xb4bcx3;};
\ No newline at end of file
-var _0x5536=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x5536[0]);module[_0x5536[1]]=function(_0x256ex2,_0x256ex3){var _0x256ex4=_0x256ex2[_0x5536[6]](_0x5536[2],{contentDisposition:_0x256ex3[_0x5536[3]],fileName:_0x256ex3[_0x5536[3]],path:_0x256ex3[_0x5536[3]],contentType:_0x256ex3[_0x5536[3]],transferEncoding:_0x256ex3[_0x5536[3]],generatedFileName:_0x256ex3[_0x5536[3]],contentId:_0x256ex3[_0x5536[3]],checksum:_0x256ex3[_0x5536[3]],length:_0x256ex3[_0x5536[4]]},{tableName:_0x5536[5]});return _0x256ex4;};
\ No newline at end of file
+var _0x9147=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x9147[0]);module[_0x9147[1]]=function(_0xf801x2,_0xf801x3){var _0xf801x4=_0xf801x2[_0x9147[6]](_0x9147[2],{contentDisposition:_0xf801x3[_0x9147[3]],fileName:_0xf801x3[_0x9147[3]],path:_0xf801x3[_0x9147[3]],contentType:_0xf801x3[_0x9147[3]],transferEncoding:_0xf801x3[_0x9147[3]],generatedFileName:_0xf801x3[_0x9147[3]],contentId:_0xf801x3[_0x9147[3]],checksum:_0xf801x3[_0x9147[3]],length:_0xf801x3[_0x9147[4]]},{tableName:_0x9147[5]});return _0xf801x4;};
\ No newline at end of file
-var _0xf267=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x6D\x61\x69\x6C\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf267[0]);module[_0xf267[1]]=function(_0x3a0dx2,_0x3a0dx3){var _0x3a0dx4=_0x3a0dx2[_0xf267[7]](_0xf267[2],{name:_0x3a0dx3[_0xf267[3]],description:_0x3a0dx3[_0xf267[3]],conditions:_0x3a0dx3[_0xf267[4]],actions:_0x3a0dx3[_0xf267[4]],status:{type:_0x3a0dx3[_0xf267[5]],defaultValue:false}},{tableName:_0xf267[6]});return _0x3a0dx4;};
\ No newline at end of file
+var _0xacb9=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x6D\x61\x69\x6C\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xacb9[0]);module[_0xacb9[1]]=function(_0x5ebdx2,_0x5ebdx3){var _0x5ebdx4=_0x5ebdx2[_0xacb9[7]](_0xacb9[2],{name:_0x5ebdx3[_0xacb9[3]],description:_0x5ebdx3[_0xacb9[3]],conditions:_0x5ebdx3[_0xacb9[4]],actions:_0x5ebdx3[_0xacb9[4]],status:{type:_0x5ebdx3[_0xacb9[5]],defaultValue:false}},{tableName:_0xacb9[6]});return _0x5ebdx4;};
\ No newline at end of file
-var _0x1902=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x49\x4E\x54\x45\x47\x45\x52","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x1902[0]);module[_0x1902[1]]=function(_0xe3f0x2,_0xe3f0x3){var _0xe3f0x4=_0xe3f0x2[_0x1902[8]](_0x1902[2],{name:{type:_0xe3f0x3[_0x1902[3]]},description:{type:_0xe3f0x3[_0x1902[3]]},status:{type:_0xe3f0x3[_0x1902[4]],defaultValue:false},jobId:{type:_0xe3f0x3[_0x1902[5]]}},{tableName:_0x1902[6],associate:function(_0xe3f0x5){_0xe3f0x4[_0x1902[7]](_0xe3f0x5.BusinessAction);_0xe3f0x4[_0x1902[7]](_0xe3f0x5.BusinessCondition);}});return _0xe3f0x4;};
\ No newline at end of file
+var _0x13a0=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x42\x75\x73\x69\x6E\x65\x73\x73\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x49\x4E\x54\x45\x47\x45\x52","\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x13a0[0]);module[_0x13a0[1]]=function(_0x927fx2,_0x927fx3){var _0x927fx4=_0x927fx2[_0x13a0[8]](_0x13a0[2],{name:{type:_0x927fx3[_0x13a0[3]]},description:{type:_0x927fx3[_0x13a0[3]]},status:{type:_0x927fx3[_0x13a0[4]],defaultValue:false},jobId:{type:_0x927fx3[_0x13a0[5]]}},{tableName:_0x13a0[6],associate:function(_0x927fx5){_0x927fx4[_0x13a0[7]](_0x927fx5.BusinessAction);_0x927fx4[_0x13a0[7]](_0x927fx5.BusinessCondition);}});return _0x927fx4;};
\ No newline at end of file
-var _0x438c=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x46\x72\x6F\x6D","\x54\x6F","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x74\x6F","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x43\x63","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x63\x63","\x42\x63\x63","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x62\x63\x63","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x438c[0]);module[_0x438c[1]]=function(_0xc72cx2,_0xc72cx3){var _0xc72cx4=_0xc72cx2[_0x438c[21]](_0x438c[2],{messageId:_0xc72cx3[_0x438c[3]],inReplyTo:_0xc72cx3[_0x438c[3]],subject:_0xc72cx3[_0x438c[3]],from:_0xc72cx3[_0x438c[3]],to:_0xc72cx3[_0x438c[3]],cc:_0xc72cx3[_0x438c[3]],bcc:_0xc72cx3[_0x438c[3]],attachment:_0xc72cx3[_0x438c[4]],html:_0xc72cx3[_0x438c[4]],text:_0xc72cx3[_0x438c[4]],reason:_0xc72cx3[_0x438c[4]],status:{type:_0xc72cx3.ENUM(_0x438c[5],_0x438c[6],_0x438c[7],_0x438c[8])}},{tableName:_0x438c[9],associate:function(_0xc72cx5){_0xc72cx4[_0x438c[10]](_0xc72cx5.MailRoom);_0xc72cx4[_0x438c[10]](_0xc72cx5.ContactEmail,{as:_0x438c[11]});_0xc72cx4[_0x438c[15]](_0xc72cx5.ContactEmail,{as:_0x438c[12],through:_0x438c[13],onDelete:_0x438c[14]});_0xc72cx4[_0x438c[15]](_0xc72cx5.ContactEmail,{as:_0x438c[16],through:_0x438c[17],onDelete:_0x438c[14]});_0xc72cx4[_0x438c[15]](_0xc72cx5.ContactEmail,{as:_0x438c[18],through:_0x438c[19],onDelete:_0x438c[14]});_0xc72cx4[_0x438c[20]](_0xc72cx5.MailAttachment);}});return _0xc72cx4;};
\ No newline at end of file
+var _0xf074=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x46\x72\x6F\x6D","\x54\x6F","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x74\x6F","\x63\x61\x73\x63\x61\x64\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x43\x63","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x63\x63","\x42\x63\x63","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x61\x73\x5F\x62\x63\x63","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf074[0]);module[_0xf074[1]]=function(_0xa47cx2,_0xa47cx3){var _0xa47cx4=_0xa47cx2[_0xf074[21]](_0xf074[2],{messageId:_0xa47cx3[_0xf074[3]],inReplyTo:_0xa47cx3[_0xf074[3]],subject:_0xa47cx3[_0xf074[3]],from:_0xa47cx3[_0xf074[3]],to:_0xa47cx3[_0xf074[3]],cc:_0xa47cx3[_0xf074[3]],bcc:_0xa47cx3[_0xf074[3]],attachment:_0xa47cx3[_0xf074[4]],html:_0xa47cx3[_0xf074[4]],text:_0xa47cx3[_0xf074[4]],reason:_0xa47cx3[_0xf074[4]],status:{type:_0xa47cx3.ENUM(_0xf074[5],_0xf074[6],_0xf074[7],_0xf074[8])}},{tableName:_0xf074[9],associate:function(_0xa47cx5){_0xa47cx4[_0xf074[10]](_0xa47cx5.MailRoom);_0xa47cx4[_0xf074[10]](_0xa47cx5.ContactEmail,{as:_0xf074[11]});_0xa47cx4[_0xf074[15]](_0xa47cx5.ContactEmail,{as:_0xf074[12],through:_0xf074[13],onDelete:_0xf074[14]});_0xa47cx4[_0xf074[15]](_0xa47cx5.ContactEmail,{as:_0xf074[16],through:_0xf074[17],onDelete:_0xf074[14]});_0xa47cx4[_0xf074[15]](_0xa47cx5.ContactEmail,{as:_0xf074[18],through:_0xf074[19],onDelete:_0xf074[14]});_0xa47cx4[_0xf074[20]](_0xa47cx5.MailAttachment);}});return _0xa47cx4;};
\ No newline at end of file
-var _0x1ac4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x1ac4[0];module[_0x1ac4[1]]=function(_0xe761x1,_0xe761x2){var _0xe761x3=_0xe761x1[_0x1ac4[10]](_0x1ac4[2],{name:{type:_0xe761x2[_0x1ac4[3]],unique:true},description:{type:_0xe761x2[_0x1ac4[3]]},timeout:{type:_0xe761x2[_0x1ac4[4]]},strategy:{type:_0xe761x2.ENUM(_0x1ac4[5],_0x1ac4[6])}},{tableName:_0x1ac4[7],associate:function(_0xe761x4){_0xe761x3[_0x1ac4[9]](_0xe761x4.User,{through:_0xe761x4[_0x1ac4[8]]})}});return _0xe761x3;};
\ No newline at end of file
+var _0xf9e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xf9e0[0];module[_0xf9e0[1]]=function(_0x3431x1,_0x3431x2){var _0x3431x3=_0x3431x1[_0xf9e0[10]](_0xf9e0[2],{name:{type:_0x3431x2[_0xf9e0[3]],unique:true},description:{type:_0x3431x2[_0xf9e0[3]]},timeout:{type:_0x3431x2[_0xf9e0[4]]},strategy:{type:_0x3431x2.ENUM(_0xf9e0[5],_0xf9e0[6])}},{tableName:_0xf9e0[7],associate:function(_0x3431x4){_0x3431x3[_0xf9e0[9]](_0x3431x4.User,{through:_0x3431x4[_0xf9e0[8]]})}});return _0x3431x3;};
\ No newline at end of file
-var _0x35d8=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x4E\x45\x57","\x4F\x50\x45\x4E","\x43\x4C\x4F\x53\x45\x44","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x53\x74\x61\x74\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0x35d8[0]]=function(_0xa322x1,_0xa322x2){var _0xa322x3=_0xa322x1[_0x35d8[11]](_0x35d8[1],{subject:_0xa322x2[_0x35d8[2]],from:_0xa322x2[_0x35d8[2]],attachment:{type:_0xa322x2[_0x35d8[3]],defaultValue:false},status:{type:_0xa322x2.ENUM(_0x35d8[4],_0x35d8[5],_0x35d8[6]),defaultValue:_0x35d8[4]}},{tableName:_0x35d8[7],associate:function(_0xa322x4){_0xa322x3[_0x35d8[8]](_0xa322x4.MailMessage);_0xa322x3[_0x35d8[8]](_0xa322x4.MailRoomStatus,{as:_0x35d8[9]});_0xa322x3[_0x35d8[10]](_0xa322x4.MailAccount);_0xa322x3[_0x35d8[10]](_0xa322x4.User);}});return _0xa322x3;};
\ No newline at end of file
+var _0xe712=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x4E\x45\x57","\x4F\x50\x45\x4E","\x43\x4C\x4F\x53\x45\x44","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x53\x74\x61\x74\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];module[_0xe712[0]]=function(_0x27bdx1,_0x27bdx2){var _0x27bdx3=_0x27bdx1[_0xe712[11]](_0xe712[1],{subject:_0x27bdx2[_0xe712[2]],from:_0x27bdx2[_0xe712[2]],attachment:{type:_0x27bdx2[_0xe712[3]],defaultValue:false},status:{type:_0x27bdx2.ENUM(_0xe712[4],_0xe712[5],_0xe712[6]),defaultValue:_0xe712[4]}},{tableName:_0xe712[7],associate:function(_0x27bdx4){_0x27bdx3[_0xe712[8]](_0x27bdx4.MailMessage);_0x27bdx3[_0xe712[8]](_0x27bdx4.MailRoomStatus,{as:_0xe712[9]});_0x27bdx3[_0xe712[10]](_0x27bdx4.MailAccount);_0x27bdx3[_0xe712[10]](_0x27bdx4.User);}});return _0x27bdx3;};
\ No newline at end of file
-var _0xaf66=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x41\x53\x53\x49\x47\x4E\x45\x44","\x52\x45\x50\x4C\x49\x45\x44","\x41\x52\x43\x48\x49\x56\x45\x44","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x5F\x73\x74\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];module[_0xaf66[0]]=function(_0x83a8x1,_0x83a8x2){var _0x83a8x3=_0x83a8x1[_0xaf66[7]](_0xaf66[1],{status:_0x83a8x2.ENUM(_0xaf66[2],_0xaf66[3],_0xaf66[4],_0xaf66[5])},{tableName:_0xaf66[6]});return _0x83a8x3;};
\ No newline at end of file
+var _0x1cca=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x41\x53\x53\x49\x47\x4E\x45\x44","\x52\x45\x50\x4C\x49\x45\x44","\x41\x52\x43\x48\x49\x56\x45\x44","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x5F\x73\x74\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x1cca[0]]=function(_0xb8e7x1,_0xb8e7x2){var _0xb8e7x3=_0xb8e7x1[_0x1cca[7]](_0x1cca[1],{status:_0xb8e7x2.ENUM(_0x1cca[2],_0x1cca[3],_0x1cca[4],_0x1cca[5])},{tableName:_0x1cca[6]});return _0xb8e7x3;};
\ No newline at end of file
-var _0x419a=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x55\x4E\x53\x45\x45\x4E","\x49\x4D\x41\x50","\x50\x4F\x50\x33","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x45\x52\x52\x4F\x52","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x73\x5F\x69\x6E","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x419a[0]);module[_0x419a[1]]=function(_0xc799x2,_0xc799x3){var _0xc799x4=_0xc799x2[_0x419a[14]](_0x419a[2],{description:_0xc799x3[_0x419a[3]],host:_0xc799x3[_0x419a[3]],username:_0xc799x3[_0x419a[3]],password:_0xc799x3[_0x419a[3]],port:_0xc799x3[_0x419a[4]],mailbox:_0xc799x3[_0x419a[3]],ssl:{type:_0xc799x3[_0x419a[5]],defaultValue:false},delete:{type:_0xc799x3[_0x419a[5]],defaultValue:false},filter:{type:_0xc799x3.ENUM(_0x419a[6]),defaultValue:_0x419a[6]},protocol:{type:_0xc799x3.ENUM(_0x419a[7],_0x419a[8]),defaultValue:_0x419a[7]},state:{type:_0xc799x3.ENUM(_0x419a[9],_0x419a[10],_0x419a[11],_0x419a[12]),defaultValue:_0x419a[12]}},{tableName:_0x419a[13]});return _0xc799x4;};
\ No newline at end of file
+var _0x52ff=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x49\x6E","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x55\x4E\x53\x45\x45\x4E","\x49\x4D\x41\x50","\x50\x4F\x50\x33","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x45\x52\x52\x4F\x52","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x73\x5F\x69\x6E","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x52ff[0]);module[_0x52ff[1]]=function(_0x2155x2,_0x2155x3){var _0x2155x4=_0x2155x2[_0x52ff[14]](_0x52ff[2],{description:_0x2155x3[_0x52ff[3]],host:_0x2155x3[_0x52ff[3]],username:_0x2155x3[_0x52ff[3]],password:_0x2155x3[_0x52ff[3]],port:_0x2155x3[_0x52ff[4]],mailbox:_0x2155x3[_0x52ff[3]],ssl:{type:_0x2155x3[_0x52ff[5]],defaultValue:false},delete:{type:_0x2155x3[_0x52ff[5]],defaultValue:false},filter:{type:_0x2155x3.ENUM(_0x52ff[6]),defaultValue:_0x52ff[6]},protocol:{type:_0x2155x3.ENUM(_0x52ff[7],_0x52ff[8]),defaultValue:_0x52ff[7]},state:{type:_0x2155x3.ENUM(_0x52ff[9],_0x52ff[10],_0x52ff[11],_0x52ff[12]),defaultValue:_0x52ff[12]}},{tableName:_0x52ff[13]});return _0x2155x4;};
\ No newline at end of file
-var _0x496b=["\x63\x72\x79\x70\x74\x6F","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x45\x52\x52\x4F\x52","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x73\x5F\x6F\x75\x74","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x496b[0]);var smtpTransport=require(_0x496b[1]);var nodemailer=require(_0x496b[2]);module[_0x496b[3]]=function(_0x6162x4,_0x6162x5){var _0x6162x6=_0x6162x4[_0x496b[13]](_0x496b[4],{description:_0x6162x5[_0x496b[5]],host:_0x6162x5[_0x496b[5]],username:_0x6162x5[_0x496b[5]],password:_0x6162x5[_0x496b[5]],port:_0x6162x5[_0x496b[6]],ssl:{type:_0x6162x5[_0x496b[7]],defaultValue:false},service:{type:_0x6162x5[_0x496b[7]],defaultValue:false},state:{type:_0x6162x5.ENUM(_0x496b[8],_0x496b[9],_0x496b[10],_0x496b[11]),defaultValue:_0x496b[11]}},{tableName:_0x496b[12]});return _0x6162x6;};
\ No newline at end of file
+var _0x5618=["\x63\x72\x79\x70\x74\x6F","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x44\x49\x53\x43\x4F\x4E\x4E\x45\x43\x54\x45\x44","\x45\x52\x52\x4F\x52","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x73\x5F\x6F\x75\x74","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x5618[0]);var smtpTransport=require(_0x5618[1]);var nodemailer=require(_0x5618[2]);module[_0x5618[3]]=function(_0xf50cx4,_0xf50cx5){var _0xf50cx6=_0xf50cx4[_0x5618[13]](_0x5618[4],{description:_0xf50cx5[_0x5618[5]],host:_0xf50cx5[_0x5618[5]],username:_0xf50cx5[_0x5618[5]],password:_0xf50cx5[_0x5618[5]],port:_0xf50cx5[_0x5618[6]],ssl:{type:_0xf50cx5[_0x5618[7]],defaultValue:false},service:{type:_0xf50cx5[_0x5618[7]],defaultValue:false},state:{type:_0xf50cx5.ENUM(_0x5618[8],_0x5618[9],_0x5618[10],_0x5618[11]),defaultValue:_0x5618[11]}},{tableName:_0x5618[12]});return _0xf50cx6;};
\ No newline at end of file
-var _0x4126=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x4126[0]);module[_0x4126[1]]=function(_0xebe4x2,_0xebe4x3){var _0xebe4x4=_0xebe4x2[_0x4126[6]](_0x4126[2],{name:_0xebe4x3[_0x4126[3]],description:_0xebe4x3[_0x4126[3]],subject:_0xebe4x3[_0x4126[3]],from:_0xebe4x3[_0x4126[3]],to:_0xebe4x3[_0x4126[3]],cc:_0xebe4x3[_0x4126[3]],attachment:_0xebe4x3[_0x4126[4]],html:_0xebe4x3[_0x4126[4]],text:_0xebe4x3[_0x4126[4]]},{tableName:_0x4126[5]});return _0xebe4x4;};
\ No newline at end of file
+var _0xbcb0=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x54\x65\x6D\x70\x6C\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xbcb0[0]);module[_0xbcb0[1]]=function(_0x7629x2,_0x7629x3){var _0x7629x4=_0x7629x2[_0xbcb0[6]](_0xbcb0[2],{name:_0x7629x3[_0xbcb0[3]],description:_0x7629x3[_0xbcb0[3]],subject:_0x7629x3[_0xbcb0[3]],from:_0x7629x3[_0xbcb0[3]],to:_0x7629x3[_0xbcb0[3]],cc:_0x7629x3[_0xbcb0[3]],attachment:_0x7629x3[_0xbcb0[4]],html:_0x7629x3[_0xbcb0[4]],text:_0x7629x3[_0xbcb0[4]]},{tableName:_0xbcb0[5]});return _0x7629x4;};
\ No newline at end of file
-var _0x826c=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x54\x72\x69\x67\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x6D\x61\x69\x6C\x5F\x74\x72\x69\x67\x67\x65\x72\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x826c[0]);module[_0x826c[1]]=function(_0x1793x2,_0x1793x3){var _0x1793x4=_0x1793x2[_0x826c[7]](_0x826c[2],{name:_0x1793x3[_0x826c[3]],description:_0x1793x3[_0x826c[3]],conditions:_0x1793x3[_0x826c[4]],actions:_0x1793x3[_0x826c[4]],status:{type:_0x1793x3[_0x826c[5]],defaultValue:false}},{tableName:_0x826c[6]});return _0x1793x4;};
\ No newline at end of file
+var _0xf6a2=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x61\x69\x6C\x54\x72\x69\x67\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x6D\x61\x69\x6C\x5F\x74\x72\x69\x67\x67\x65\x72\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf6a2[0]);module[_0xf6a2[1]]=function(_0x3ef2x2,_0x3ef2x3){var _0x3ef2x4=_0x3ef2x2[_0xf6a2[7]](_0xf6a2[2],{name:_0x3ef2x3[_0xf6a2[3]],description:_0x3ef2x3[_0xf6a2[3]],conditions:_0x3ef2x3[_0xf6a2[4]],actions:_0x3ef2x3[_0xf6a2[4]],status:{type:_0x3ef2x3[_0xf6a2[5]],defaultValue:false}},{tableName:_0xf6a2[6]});return _0x3ef2x4;};
\ No newline at end of file
-var _0x8599=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x65\x74\x72\x69\x63","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6D\x65\x74\x72\x69\x63\x73","\x64\x65\x66\x69\x6E\x65"];_0x8599[0];module[_0x8599[1]]=function(_0x5d23x1,_0x5d23x2){var _0x5d23x3=_0x5d23x1[_0x8599[6]](_0x8599[2],{name:{type:_0x5d23x2[_0x8599[3]],unique:true,validate:{notEmpty:true}},metric:_0x5d23x2[_0x8599[4]],description:_0x5d23x2[_0x8599[3]]},{tableName:_0x8599[5]});return _0x5d23x3;};
\ No newline at end of file
+var _0x27b8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x65\x74\x72\x69\x63","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6D\x65\x74\x72\x69\x63\x73","\x64\x65\x66\x69\x6E\x65"];_0x27b8[0];module[_0x27b8[1]]=function(_0x878fx1,_0x878fx2){var _0x878fx3=_0x878fx1[_0x27b8[6]](_0x27b8[2],{name:{type:_0x878fx2[_0x27b8[3]],unique:true,validate:{notEmpty:true}},table:_0x878fx2[_0x27b8[3]],metric:_0x878fx2[_0x27b8[4]],description:_0x878fx2[_0x27b8[3]]},{tableName:_0x27b8[5]});return _0x878fx3;};
\ No newline at end of file
-var _0xaa71=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x6F\x64\x75\x6C\x65","\x53\x54\x52\x49\x4E\x47","\x6D\x6F\x64\x75\x6C\x65\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0xaa71[0]]=function(_0xd82ex1,_0xd82ex2){var _0xd82ex3=_0xd82ex1[_0xaa71[6]](_0xaa71[1],{name:{type:_0xd82ex2[_0xaa71[2]],unique:true,allowNull:false,validate:{notEmpty:true}},title:_0xd82ex2[_0xaa71[2]]},{tableName:_0xaa71[3],associate:function(_0xd82ex4){_0xd82ex3[_0xaa71[5]](_0xd82ex4.User,{through:_0xaa71[4]})}});return _0xd82ex3;};
\ No newline at end of file
+var _0x6442=["\x65\x78\x70\x6F\x72\x74\x73","\x4D\x6F\x64\x75\x6C\x65","\x53\x54\x52\x49\x4E\x47","\x6D\x6F\x64\x75\x6C\x65\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];module[_0x6442[0]]=function(_0xd0f9x1,_0xd0f9x2){var _0xd0f9x3=_0xd0f9x1[_0x6442[6]](_0x6442[1],{name:{type:_0xd0f9x2[_0x6442[2]],unique:true,allowNull:false,validate:{notEmpty:true}},title:_0xd0f9x2[_0x6442[2]]},{tableName:_0x6442[3],associate:function(_0xd0f9x4){_0xd0f9x3[_0x6442[5]](_0xd0f9x4.User,{through:_0x6442[4]})}});return _0xd0f9x3;};
\ No newline at end of file
-var _0x60d3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x45\x4E\x55\x4D","\x68\x61\x6E\x67\x75\x70","\x69\x6E\x63\x6F\x6D\x69\x6E\x67","\x61\x63\x74\x69\x76\x65","\x53\x54\x52\x49\x4E\x47","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x41\x64\x6D\x69\x6E","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x55\x73\x65\x72","\x64\x65\x66\x69\x6E\x65"];_0x60d3[0];module[_0x60d3[1]]=function(_0xde3bx1,_0xde3bx2){var _0xde3bx3=_0xde3bx1[_0x60d3[12]](_0x60d3[2],{action:{type:_0xde3bx2[_0x60d3[3]],values:[_0x60d3[4]],allowNull:false},state:{type:_0xde3bx2[_0x60d3[3]],values:[_0x60d3[5],_0x60d3[6]]},phone:{type:_0xde3bx2[_0x60d3[7]]}},{tableName:_0x60d3[8],associate:function(_0xde3bx4){_0xde3bx3[_0x60d3[10]](_0xde3bx4.User,{as:_0x60d3[9]});_0xde3bx3[_0x60d3[10]](_0xde3bx4.User,{as:_0x60d3[11]});}});return _0xde3bx3;};
\ No newline at end of file
+var _0xbf87=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x4D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x45\x4E\x55\x4D","\x68\x61\x6E\x67\x75\x70","\x69\x6E\x63\x6F\x6D\x69\x6E\x67","\x61\x63\x74\x69\x76\x65","\x53\x54\x52\x49\x4E\x47","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x41\x64\x6D\x69\x6E","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x55\x73\x65\x72","\x64\x65\x66\x69\x6E\x65"];_0xbf87[0];module[_0xbf87[1]]=function(_0xe3a4x1,_0xe3a4x2){var _0xe3a4x3=_0xe3a4x1[_0xbf87[12]](_0xbf87[2],{action:{type:_0xe3a4x2[_0xbf87[3]],values:[_0xbf87[4]],allowNull:false},state:{type:_0xe3a4x2[_0xbf87[3]],values:[_0xbf87[5],_0xbf87[6]]},phone:{type:_0xe3a4x2[_0xbf87[7]]}},{tableName:_0xbf87[8],associate:function(_0xe3a4x4){_0xe3a4x3[_0xbf87[10]](_0xe3a4x4.User,{as:_0xbf87[9]});_0xe3a4x3[_0xbf87[10]](_0xe3a4x4.User,{as:_0xbf87[11]});}});return _0xe3a4x3;};
\ No newline at end of file
-var _0xa3ff=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0xa3ff[0]]=function(_0xe0bax1,_0xe0bax2){var _0xe0bax3=_0xe0bax1[_0xa3ff[9]](_0xa3ff[1],{uniqueid:_0xe0bax2[_0xa3ff[2]],calleridnum:_0xe0bax2[_0xa3ff[2]],calleridname:_0xe0bax2[_0xa3ff[2]],queue:_0xe0bax2[_0xa3ff[2]],interface:_0xe0bax2[_0xa3ff[2]],membername:_0xe0bax2[_0xa3ff[2]],agentcalledAt:_0xe0bax2[_0xa3ff[3]],agentconnectAt:_0xe0bax2[_0xa3ff[3]],holdtime:_0xe0bax2[_0xa3ff[4]],agentcomplete:{type:_0xe0bax2[_0xa3ff[5]],defaultValue:false},agentcompleteAt:_0xe0bax2[_0xa3ff[3]],talktime:_0xe0bax2[_0xa3ff[4]],agentacw:{type:_0xe0bax2[_0xa3ff[5]],defaultValue:false},acwtime:_0xe0bax2[_0xa3ff[4]],reason:_0xe0bax2[_0xa3ff[2]],agentringnoanswer:{type:_0xe0bax2[_0xa3ff[5]],defaultValue:false},agentringnoanswerAt:_0xe0bax2[_0xa3ff[3]],agentdump:{type:_0xe0bax2[_0xa3ff[5]],defaultValue:false},agentdumpAt:_0xe0bax2[_0xa3ff[3]],lastevent:_0xe0bax2[_0xa3ff[2]],channel:_0xe0bax2[_0xa3ff[2]],channelstate:_0xe0bax2[_0xa3ff[4]],channelstatedesc:_0xe0bax2[_0xa3ff[2]],connectedlinenum:_0xe0bax2[_0xa3ff[2]],connectedlinename:_0xe0bax2[_0xa3ff[2]],language:_0xe0bax2[_0xa3ff[2]],accountcode:_0xe0bax2[_0xa3ff[2]],context:_0xe0bax2[_0xa3ff[2]],exten:_0xe0bax2[_0xa3ff[2]],priority:_0xe0bax2[_0xa3ff[2]],destchannel:_0xe0bax2[_0xa3ff[2]],destchannelstate:_0xe0bax2[_0xa3ff[4]],destchannelstatedesc:_0xe0bax2[_0xa3ff[2]],destcalleridnum:_0xe0bax2[_0xa3ff[2]],destcalleridname:_0xe0bax2[_0xa3ff[2]],destconnectedlinenum:_0xe0bax2[_0xa3ff[2]],destconnectedlinename:_0xe0bax2[_0xa3ff[2]],destlanguage:_0xe0bax2[_0xa3ff[2]],destaccountcode:_0xe0bax2[_0xa3ff[2]],destcontext:_0xe0bax2[_0xa3ff[2]],destexten:_0xe0bax2[_0xa3ff[2]],destpriority:_0xe0bax2[_0xa3ff[2]],destuniqueid:_0xe0bax2[_0xa3ff[2]]},{tableName:_0xa3ff[6],indexes:[{fields:[_0xa3ff[7],_0xa3ff[8]]}]});return _0xe0bax3;};
\ No newline at end of file
+var _0x6f8e=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0x6f8e[0]]=function(_0xaa72x1,_0xaa72x2){var _0xaa72x3=_0xaa72x1[_0x6f8e[9]](_0x6f8e[1],{uniqueid:_0xaa72x2[_0x6f8e[2]],calleridnum:_0xaa72x2[_0x6f8e[2]],calleridname:_0xaa72x2[_0x6f8e[2]],queue:_0xaa72x2[_0x6f8e[2]],interface:_0xaa72x2[_0x6f8e[2]],membername:_0xaa72x2[_0x6f8e[2]],agentcalledAt:_0xaa72x2[_0x6f8e[3]],agentconnectAt:_0xaa72x2[_0x6f8e[3]],holdtime:_0xaa72x2[_0x6f8e[4]],agentcomplete:{type:_0xaa72x2[_0x6f8e[5]],defaultValue:false},agentcompleteAt:_0xaa72x2[_0x6f8e[3]],talktime:_0xaa72x2[_0x6f8e[4]],agentacw:{type:_0xaa72x2[_0x6f8e[5]],defaultValue:false},acwtime:_0xaa72x2[_0x6f8e[4]],reason:_0xaa72x2[_0x6f8e[2]],agentringnoanswer:{type:_0xaa72x2[_0x6f8e[5]],defaultValue:false},agentringnoanswerAt:_0xaa72x2[_0x6f8e[3]],agentdump:{type:_0xaa72x2[_0x6f8e[5]],defaultValue:false},agentdumpAt:_0xaa72x2[_0x6f8e[3]],lastevent:_0xaa72x2[_0x6f8e[2]],channel:_0xaa72x2[_0x6f8e[2]],channelstate:_0xaa72x2[_0x6f8e[4]],channelstatedesc:_0xaa72x2[_0x6f8e[2]],connectedlinenum:_0xaa72x2[_0x6f8e[2]],connectedlinename:_0xaa72x2[_0x6f8e[2]],language:_0xaa72x2[_0x6f8e[2]],accountcode:_0xaa72x2[_0x6f8e[2]],context:_0xaa72x2[_0x6f8e[2]],exten:_0xaa72x2[_0x6f8e[2]],priority:_0xaa72x2[_0x6f8e[2]],destchannel:_0xaa72x2[_0x6f8e[2]],destchannelstate:_0xaa72x2[_0x6f8e[4]],destchannelstatedesc:_0xaa72x2[_0x6f8e[2]],destcalleridnum:_0xaa72x2[_0x6f8e[2]],destcalleridname:_0xaa72x2[_0x6f8e[2]],destconnectedlinenum:_0xaa72x2[_0x6f8e[2]],destconnectedlinename:_0xaa72x2[_0x6f8e[2]],destlanguage:_0xaa72x2[_0x6f8e[2]],destaccountcode:_0xaa72x2[_0x6f8e[2]],destcontext:_0xaa72x2[_0x6f8e[2]],destexten:_0xaa72x2[_0x6f8e[2]],destpriority:_0xaa72x2[_0x6f8e[2]],destuniqueid:_0xaa72x2[_0x6f8e[2]]},{tableName:_0x6f8e[6],indexes:[{fields:[_0x6f8e[7],_0x6f8e[8]]}]});return _0xaa72x3;};
\ No newline at end of file
-var _0xc062=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65"];module[_0xc062[0]]=function(_0xcb40x1,_0xcb40x2){var _0xcb40x3=_0xcb40x1[_0xc062[13]](_0xc062[1],{accountcode:_0xcb40x2[_0xc062[2]],source:_0xcb40x2[_0xc062[2]],destination:_0xcb40x2[_0xc062[2]],destinationcontext:_0xcb40x2[_0xc062[2]],callerid:_0xcb40x2[_0xc062[2]],channel:_0xcb40x2[_0xc062[2]],destinationchannel:_0xcb40x2[_0xc062[2]],lastapplication:_0xcb40x2[_0xc062[2]],lastdata:_0xcb40x2[_0xc062[2]],starttime:_0xcb40x2[_0xc062[3]],answertime:{type:_0xcb40x2[_0xc062[3]],set:function(_0xcb40x4){if(_0xcb40x4!==_0xc062[4]){this[_0xc062[6]](_0xc062[5],_0xcb40x4)}else {this[_0xc062[6]](_0xc062[5],null)}}},endtime:_0xcb40x2[_0xc062[3]],duration:_0xcb40x2[_0xc062[7]],billableseconds:_0xcb40x2[_0xc062[7]],disposition:_0xcb40x2[_0xc062[2]],amaflags:_0xcb40x2[_0xc062[2]],uniqueid:{type:_0xcb40x2[_0xc062[2]],primaryKey:true},userfield:_0xcb40x2[_0xc062[2]]},{tableName:_0xc062[8],associate:function(_0xcb40x5){_0xcb40x3[_0xc062[11]](_0xcb40x5.ReportQueue,{as:_0xc062[9],foreignKey:_0xc062[10],constraints:false});_0xcb40x3[_0xc062[11]](_0xcb40x5.ReportAgent,{as:_0xc062[12],foreignKey:_0xc062[10],constraints:false});}});return _0xcb40x3;};
\ No newline at end of file
+var _0xac84=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C","\x51\x75\x65\x75\x65\x43\x61\x6C\x6C\x73","\x75\x6E\x69\x71\x75\x65\x69\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x73","\x64\x65\x66\x69\x6E\x65"];module[_0xac84[0]]=function(_0x495ax1,_0x495ax2){var _0x495ax3=_0x495ax1[_0xac84[13]](_0xac84[1],{accountcode:_0x495ax2[_0xac84[2]],source:_0x495ax2[_0xac84[2]],destination:_0x495ax2[_0xac84[2]],destinationcontext:_0x495ax2[_0xac84[2]],callerid:_0x495ax2[_0xac84[2]],channel:_0x495ax2[_0xac84[2]],destinationchannel:_0x495ax2[_0xac84[2]],lastapplication:_0x495ax2[_0xac84[2]],lastdata:_0x495ax2[_0xac84[2]],starttime:_0x495ax2[_0xac84[3]],answertime:{type:_0x495ax2[_0xac84[3]],set:function(_0x495ax4){if(_0x495ax4!==_0xac84[4]){this[_0xac84[6]](_0xac84[5],_0x495ax4)}else {this[_0xac84[6]](_0xac84[5],null)}}},endtime:_0x495ax2[_0xac84[3]],duration:_0x495ax2[_0xac84[7]],billableseconds:_0x495ax2[_0xac84[7]],disposition:_0x495ax2[_0xac84[2]],amaflags:_0x495ax2[_0xac84[2]],uniqueid:{type:_0x495ax2[_0xac84[2]],primaryKey:true},userfield:_0x495ax2[_0xac84[2]]},{tableName:_0xac84[8],associate:function(_0x495ax5){_0x495ax3[_0xac84[11]](_0x495ax5.ReportQueue,{as:_0xac84[9],foreignKey:_0xac84[10],constraints:false});_0x495ax3[_0xac84[11]](_0x495ax5.ReportAgent,{as:_0xac84[12],foreignKey:_0xac84[10],constraints:false});}});return _0x495ax3;};
\ No newline at end of file
-var _0xf678=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x61\x73\x6F\x6E","\x61\x67\x65\x6E\x74","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0xf678[0]);module[_0xf678[1]]=function(_0x53eax2,_0x53eax3){var _0x53eax4=_0x53eax2[_0xf678[17]](_0xf678[2],{uniqueid:_0x53eax3[_0xf678[3]],sorting:_0x53eax3[_0xf678[3]],timeslot:_0x53eax3[_0xf678[3]],visitorname:_0x53eax3[_0xf678[4]],visitoremail:_0x53eax3[_0xf678[4]],websitename:_0x53eax3[_0xf678[4]],websiteaddress:_0x53eax3[_0xf678[4]],websiteid:_0x53eax3[_0xf678[3]],application:_0x53eax3[_0xf678[4]],fullname:_0x53eax3[_0xf678[4]],membername:_0x53eax3[_0xf678[4]],agentid:_0x53eax3[_0xf678[3]],chatqueuename:_0x53eax3[_0xf678[4]],lastevent:_0x53eax3[_0xf678[4]],agentcalledAt:_0x53eax3[_0xf678[5]],chatroomid:_0x53eax3[_0xf678[3]],connectId:{type:_0x53eax3[_0xf678[3]],unique:true},agentconnectedAt:_0x53eax3[_0xf678[5]],connect:{type:_0x53eax3[_0xf678[6]],defaultValue:false,set:function(_0x53eax5){this[_0xf678[9]](_0xf678[7],this[_0xf678[8]]);this[_0xf678[9]](_0xf678[10],moment()[_0xf678[12]](_0xf678[11]));this[_0xf678[9]](_0xf678[13],_0xf678[14]);this[_0xf678[9]](_0xf678[15],_0xf678[14]);}},agentringnoanswerAt:_0x53eax3[_0xf678[5]],reason:_0x53eax3[_0xf678[4]]},{tableName:_0xf678[16]});return _0x53eax4;};
\ No newline at end of file
+var _0x9d67=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x42\x4F\x4F\x4C\x45\x41\x4E","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x61\x73\x6F\x6E","\x61\x67\x65\x6E\x74","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0x9d67[0]);module[_0x9d67[1]]=function(_0xb52ex2,_0xb52ex3){var _0xb52ex4=_0xb52ex2[_0x9d67[17]](_0x9d67[2],{uniqueid:_0xb52ex3[_0x9d67[3]],sorting:_0xb52ex3[_0x9d67[3]],timeslot:_0xb52ex3[_0x9d67[3]],visitorname:_0xb52ex3[_0x9d67[4]],visitoremail:_0xb52ex3[_0x9d67[4]],websitename:_0xb52ex3[_0x9d67[4]],websiteaddress:_0xb52ex3[_0x9d67[4]],websiteid:_0xb52ex3[_0x9d67[3]],application:_0xb52ex3[_0x9d67[4]],fullname:_0xb52ex3[_0x9d67[4]],membername:_0xb52ex3[_0x9d67[4]],agentid:_0xb52ex3[_0x9d67[3]],chatqueuename:_0xb52ex3[_0x9d67[4]],lastevent:_0xb52ex3[_0x9d67[4]],agentcalledAt:_0xb52ex3[_0x9d67[5]],chatroomid:_0xb52ex3[_0x9d67[3]],connectId:{type:_0xb52ex3[_0x9d67[3]],unique:true},agentconnectedAt:_0xb52ex3[_0x9d67[5]],connect:{type:_0xb52ex3[_0x9d67[6]],defaultValue:false,set:function(_0xb52ex5){this[_0x9d67[9]](_0x9d67[7],this[_0x9d67[8]]);this[_0x9d67[9]](_0x9d67[10],moment()[_0x9d67[12]](_0x9d67[11]));this[_0x9d67[9]](_0x9d67[13],_0x9d67[14]);this[_0x9d67[9]](_0x9d67[15],_0x9d67[14]);}},agentringnoanswerAt:_0xb52ex3[_0x9d67[5]],reason:_0xb52ex3[_0x9d67[4]]},{tableName:_0x9d67[16]});return _0xb52ex4;};
\ No newline at end of file
-var _0xd5a7=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0xd5a7[0]);module[_0xd5a7[1]]=function(_0xa090x2,_0xa090x3){var _0xa090x4=_0xa090x2[_0xd5a7[7]](_0xd5a7[2],{uniqueid:{type:_0xa090x3[_0xd5a7[3]],unique:true},visitorname:_0xa090x3[_0xd5a7[4]],visitoremail:_0xa090x3[_0xd5a7[4]],websitename:_0xa090x3[_0xd5a7[4]],websiteaddress:_0xa090x3[_0xd5a7[4]],websiteid:_0xa090x3[_0xd5a7[3]],fullname:_0xa090x3[_0xd5a7[4]],membername:_0xa090x3[_0xd5a7[4]],agentid:_0xa090x3[_0xd5a7[3]],chatqueuename:_0xa090x3[_0xd5a7[4]],chatroomid:_0xa090x3[_0xd5a7[3]],chatjoinAt:_0xa090x3[_0xd5a7[5]],chatleaveAt:_0xa090x3[_0xd5a7[5]],chatunmanagedAt:_0xa090x3[_0xd5a7[5]]},{tableName:_0xd5a7[6]});return _0xa090x4;};
\ No newline at end of file
+var _0xfc3f=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0xfc3f[0]);module[_0xfc3f[1]]=function(_0x1affx2,_0x1affx3){var _0x1affx4=_0x1affx2[_0xfc3f[7]](_0xfc3f[2],{uniqueid:{type:_0x1affx3[_0xfc3f[3]],unique:true},visitorname:_0x1affx3[_0xfc3f[4]],visitoremail:_0x1affx3[_0xfc3f[4]],websitename:_0x1affx3[_0xfc3f[4]],websiteaddress:_0x1affx3[_0xfc3f[4]],websiteid:_0x1affx3[_0xfc3f[3]],fullname:_0x1affx3[_0xfc3f[4]],membername:_0x1affx3[_0xfc3f[4]],agentid:_0x1affx3[_0xfc3f[3]],chatqueuename:_0x1affx3[_0xfc3f[4]],chatroomid:_0x1affx3[_0xfc3f[3]],chatjoinAt:_0x1affx3[_0xfc3f[5]],chatleaveAt:_0x1affx3[_0xfc3f[5]],chatunmanagedAt:_0x1affx3[_0xfc3f[5]]},{tableName:_0xfc3f[6]});return _0x1affx4;};
\ No newline at end of file
-var _0x656a=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0x656a[0]]=function(_0xef27x1,_0xef27x2){var _0xef27x3=_0xef27x1[_0x656a[6]](_0x656a[1],{channel:_0xef27x2[_0x656a[2]],channelstate:_0xef27x2[_0x656a[3]],channelstatedesc:_0xef27x2[_0x656a[2]],calleridnum:_0xef27x2[_0x656a[2]],calleridname:_0xef27x2[_0x656a[2]],connectedlinenum:_0xef27x2[_0x656a[2]],connectedlinename:_0xef27x2[_0x656a[2]],language:_0xef27x2[_0x656a[2]],accountcode:_0xef27x2[_0x656a[2]],context:_0xef27x2[_0x656a[2]],exten:_0xef27x2[_0x656a[2]],priority:_0xef27x2[_0x656a[3]],uniqueid:_0xef27x2[_0x656a[2]],destchannel:_0xef27x2[_0x656a[2]],destchannelstate:_0xef27x2[_0x656a[3]],destchannelstatedesc:_0xef27x2[_0x656a[2]],destcalleridnum:_0xef27x2[_0x656a[2]],destcalleridname:_0xef27x2[_0x656a[2]],destconnectedlinenum:_0xef27x2[_0x656a[2]],destconnectedlinename:_0xef27x2[_0x656a[2]],destlanguage:_0xef27x2[_0x656a[2]],destaccountcode:_0xef27x2[_0x656a[2]],destcontext:_0xef27x2[_0x656a[2]],destexten:_0xef27x2[_0x656a[2]],destpriority:_0xef27x2[_0x656a[3]],destuniqueid:_0xef27x2[_0x656a[2]],dialstring:_0xef27x2[_0x656a[2]],dialstatus:_0xef27x2[_0x656a[2]]},{tableName:_0x656a[4],indexes:[{fields:[_0x656a[5]]}]});return _0xef27x3;};
\ No newline at end of file
+var _0xf6fc=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0xf6fc[0]]=function(_0xbe8bx1,_0xbe8bx2){var _0xbe8bx3=_0xbe8bx1[_0xf6fc[6]](_0xf6fc[1],{channel:_0xbe8bx2[_0xf6fc[2]],channelstate:_0xbe8bx2[_0xf6fc[3]],channelstatedesc:_0xbe8bx2[_0xf6fc[2]],calleridnum:_0xbe8bx2[_0xf6fc[2]],calleridname:_0xbe8bx2[_0xf6fc[2]],connectedlinenum:_0xbe8bx2[_0xf6fc[2]],connectedlinename:_0xbe8bx2[_0xf6fc[2]],language:_0xbe8bx2[_0xf6fc[2]],accountcode:_0xbe8bx2[_0xf6fc[2]],context:_0xbe8bx2[_0xf6fc[2]],exten:_0xbe8bx2[_0xf6fc[2]],priority:_0xbe8bx2[_0xf6fc[3]],uniqueid:_0xbe8bx2[_0xf6fc[2]],destchannel:_0xbe8bx2[_0xf6fc[2]],destchannelstate:_0xbe8bx2[_0xf6fc[3]],destchannelstatedesc:_0xbe8bx2[_0xf6fc[2]],destcalleridnum:_0xbe8bx2[_0xf6fc[2]],destcalleridname:_0xbe8bx2[_0xf6fc[2]],destconnectedlinenum:_0xbe8bx2[_0xf6fc[2]],destconnectedlinename:_0xbe8bx2[_0xf6fc[2]],destlanguage:_0xbe8bx2[_0xf6fc[2]],destaccountcode:_0xbe8bx2[_0xf6fc[2]],destcontext:_0xbe8bx2[_0xf6fc[2]],destexten:_0xbe8bx2[_0xf6fc[2]],destpriority:_0xbe8bx2[_0xf6fc[3]],destuniqueid:_0xbe8bx2[_0xf6fc[2]],dialstring:_0xbe8bx2[_0xf6fc[2]],dialstatus:_0xbe8bx2[_0xf6fc[2]]},{tableName:_0xf6fc[4],indexes:[{fields:[_0xf6fc[5]]}]});return _0xbe8bx3;};
\ No newline at end of file
--- /dev/null
+var _0x4b77=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x46\x69\x65\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x66\x69\x65\x6C\x64\x73","\x64\x65\x66\x69\x6E\x65"];_0x4b77[0];module[_0x4b77[1]]=function(_0xb4b1x1,_0xb4b1x2){var _0xb4b1x3=_0xb4b1x1[_0x4b77[6]](_0x4b77[2],{field:_0xb4b1x2[_0x4b77[3]],alias:_0xb4b1x2[_0x4b77[3]],function:_0xb4b1x2[_0x4b77[3]],groupBy:_0xb4b1x2[_0x4b77[4]],orderBy:_0xb4b1x2[_0x4b77[3]]},{tableName:_0x4b77[5]});return _0xb4b1x3;};
\ No newline at end of file
-var _0xb568=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];module[_0xb568[0]]=function(_0x347fx1,_0x347fx2){var _0x347fx3=_0x347fx1[_0xb568[12]](_0xb568[1],{integration:_0x347fx2[_0xb568[2]],event:_0x347fx2[_0xb568[2]],contacts:_0x347fx2[_0xb568[2]],uniqueid:_0x347fx2[_0xb568[2]],calleridnum:_0x347fx2[_0xb568[2]],calleridname:_0x347fx2[_0xb568[2]],queue:_0x347fx2[_0xb568[2]],interface:_0x347fx2[_0xb568[2]],membername:_0x347fx2[_0xb568[2]],agentcalledAt:_0x347fx2[_0xb568[3]],agentconnectAt:_0x347fx2[_0xb568[3]],holdtime:_0x347fx2[_0xb568[4]],agentcomplete:{type:_0x347fx2[_0xb568[5]],defaultValue:false},agentcompleteAt:_0x347fx2[_0xb568[3]],talktime:_0x347fx2[_0xb568[4]],agentacw:{type:_0x347fx2[_0xb568[5]],defaultValue:false},acwtime:_0x347fx2[_0xb568[4]],reason:_0x347fx2[_0xb568[2]],agentringnoanswer:{type:_0x347fx2[_0xb568[5]],defaultValue:false},agentringnoanswerAt:_0x347fx2[_0xb568[3]],agentdump:{type:_0x347fx2[_0xb568[5]],defaultValue:false},agentdumpAt:_0x347fx2[_0xb568[3]],lastevent:_0x347fx2[_0xb568[2]],channel:_0x347fx2[_0xb568[2]],channelstate:_0x347fx2[_0xb568[4]],channelstatedesc:_0x347fx2[_0xb568[2]],connectedlinenum:_0x347fx2[_0xb568[2]],connectedlinename:_0x347fx2[_0xb568[2]],language:_0x347fx2[_0xb568[2]],accountcode:_0x347fx2[_0xb568[2]],context:_0x347fx2[_0xb568[2]],exten:_0x347fx2[_0xb568[2]],priority:_0x347fx2[_0xb568[2]],destchannel:_0x347fx2[_0xb568[2]],destchannelstate:_0x347fx2[_0xb568[4]],destchannelstatedesc:_0x347fx2[_0xb568[2]],destcalleridnum:_0x347fx2[_0xb568[2]],destcalleridname:_0x347fx2[_0xb568[2]],destconnectedlinenum:_0x347fx2[_0xb568[2]],destconnectedlinename:_0x347fx2[_0xb568[2]],destlanguage:_0x347fx2[_0xb568[2]],destaccountcode:_0x347fx2[_0xb568[2]],destcontext:_0x347fx2[_0xb568[2]],destexten:_0x347fx2[_0xb568[2]],destpriority:_0x347fx2[_0xb568[2]],destuniqueid:_0x347fx2[_0xb568[2]],messageId:_0x347fx2[_0xb568[2]],inReplyTo:_0x347fx2[_0xb568[2]],subject:_0x347fx2[_0xb568[2]],from:_0x347fx2[_0xb568[2]],to:_0x347fx2[_0xb568[2]],cc:_0x347fx2[_0xb568[2]],attachment:_0x347fx2[_0xb568[6]],html:_0x347fx2[_0xb568[6]],text:_0x347fx2[_0xb568[6]],status:{type:_0x347fx2.ENUM(_0xb568[7],_0xb568[8],_0xb568[9],_0xb568[10])}},{tableName:_0xb568[11]});return _0x347fx3;};
\ No newline at end of file
+var _0x7127=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x54\x45\x58\x54","\x53\x45\x4E\x54","\x53\x45\x4E\x44\x49\x4E\x47","\x52\x45\x43\x45\x49\x56\x45\x44","\x46\x41\x49\x4C\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];module[_0x7127[0]]=function(_0x63e0x1,_0x63e0x2){var _0x63e0x3=_0x63e0x1[_0x7127[12]](_0x7127[1],{integration:_0x63e0x2[_0x7127[2]],event:_0x63e0x2[_0x7127[2]],contacts:_0x63e0x2[_0x7127[2]],uniqueid:_0x63e0x2[_0x7127[2]],calleridnum:_0x63e0x2[_0x7127[2]],calleridname:_0x63e0x2[_0x7127[2]],queue:_0x63e0x2[_0x7127[2]],interface:_0x63e0x2[_0x7127[2]],membername:_0x63e0x2[_0x7127[2]],agentcalledAt:_0x63e0x2[_0x7127[3]],agentconnectAt:_0x63e0x2[_0x7127[3]],holdtime:_0x63e0x2[_0x7127[4]],agentcomplete:{type:_0x63e0x2[_0x7127[5]],defaultValue:false},agentcompleteAt:_0x63e0x2[_0x7127[3]],talktime:_0x63e0x2[_0x7127[4]],agentacw:{type:_0x63e0x2[_0x7127[5]],defaultValue:false},acwtime:_0x63e0x2[_0x7127[4]],reason:_0x63e0x2[_0x7127[2]],agentringnoanswer:{type:_0x63e0x2[_0x7127[5]],defaultValue:false},agentringnoanswerAt:_0x63e0x2[_0x7127[3]],agentdump:{type:_0x63e0x2[_0x7127[5]],defaultValue:false},agentdumpAt:_0x63e0x2[_0x7127[3]],lastevent:_0x63e0x2[_0x7127[2]],channel:_0x63e0x2[_0x7127[2]],channelstate:_0x63e0x2[_0x7127[4]],channelstatedesc:_0x63e0x2[_0x7127[2]],connectedlinenum:_0x63e0x2[_0x7127[2]],connectedlinename:_0x63e0x2[_0x7127[2]],language:_0x63e0x2[_0x7127[2]],accountcode:_0x63e0x2[_0x7127[2]],context:_0x63e0x2[_0x7127[2]],exten:_0x63e0x2[_0x7127[2]],priority:_0x63e0x2[_0x7127[2]],destchannel:_0x63e0x2[_0x7127[2]],destchannelstate:_0x63e0x2[_0x7127[4]],destchannelstatedesc:_0x63e0x2[_0x7127[2]],destcalleridnum:_0x63e0x2[_0x7127[2]],destcalleridname:_0x63e0x2[_0x7127[2]],destconnectedlinenum:_0x63e0x2[_0x7127[2]],destconnectedlinename:_0x63e0x2[_0x7127[2]],destlanguage:_0x63e0x2[_0x7127[2]],destaccountcode:_0x63e0x2[_0x7127[2]],destcontext:_0x63e0x2[_0x7127[2]],destexten:_0x63e0x2[_0x7127[2]],destpriority:_0x63e0x2[_0x7127[2]],destuniqueid:_0x63e0x2[_0x7127[2]],messageId:_0x63e0x2[_0x7127[2]],inReplyTo:_0x63e0x2[_0x7127[2]],subject:_0x63e0x2[_0x7127[2]],from:_0x63e0x2[_0x7127[2]],to:_0x63e0x2[_0x7127[2]],cc:_0x63e0x2[_0x7127[2]],attachment:_0x63e0x2[_0x7127[6]],html:_0x63e0x2[_0x7127[6]],text:_0x63e0x2[_0x7127[6]],status:{type:_0x63e0x2.ENUM(_0x7127[7],_0x7127[8],_0x7127[9],_0x7127[10])}},{tableName:_0x7127[11]});return _0x63e0x3;};
\ No newline at end of file
-var _0xabaa=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x61\x73\x6F\x6E","\x61\x67\x65\x6E\x74","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0xabaa[0]);module[_0xabaa[1]]=function(_0x8ce1x2,_0x8ce1x3){var _0x8ce1x4=_0x8ce1x2[_0xabaa[17]](_0xabaa[2],{uniqueid:_0x8ce1x3[_0xabaa[3]],sorting:_0x8ce1x3[_0xabaa[3]],timeslot:_0x8ce1x3[_0xabaa[3]],subject:_0x8ce1x3[_0xabaa[4]],from:_0x8ce1x3[_0xabaa[4]],cc:_0x8ce1x3[_0xabaa[4]],attachment:_0x8ce1x3[_0xabaa[5]],accountname:_0x8ce1x3[_0xabaa[4]],accountaddress:_0x8ce1x3[_0xabaa[4]],application:_0x8ce1x3[_0xabaa[4]],fullname:_0x8ce1x3[_0xabaa[4]],membername:_0x8ce1x3[_0xabaa[4]],agentid:_0x8ce1x3[_0xabaa[3]],mailqueuename:_0x8ce1x3[_0xabaa[4]],mailroomid:_0x8ce1x3[_0xabaa[3]],lastevent:_0x8ce1x3[_0xabaa[4]],agentcalledAt:_0x8ce1x3[_0xabaa[6]],connectId:{type:_0x8ce1x3[_0xabaa[3]],unique:true},agentconnectedAt:_0x8ce1x3[_0xabaa[6]],connect:{type:_0x8ce1x3[_0xabaa[5]],defaultValue:false,set:function(_0x8ce1x5){this[_0xabaa[9]](_0xabaa[7],this[_0xabaa[8]]);this[_0xabaa[9]](_0xabaa[10],moment()[_0xabaa[12]](_0xabaa[11]));this[_0xabaa[9]](_0xabaa[13],_0xabaa[14]);this[_0xabaa[9]](_0xabaa[15],_0xabaa[14]);}},agentringnoanswerAt:_0x8ce1x3[_0xabaa[6]],reason:_0x8ce1x3[_0xabaa[4]]},{tableName:_0xabaa[16]});return _0x8ce1x4;};
\ No newline at end of file
+var _0xaf56=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x41\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x61\x73\x6F\x6E","\x61\x67\x65\x6E\x74","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0xaf56[0]);module[_0xaf56[1]]=function(_0x653dx2,_0x653dx3){var _0x653dx4=_0x653dx2[_0xaf56[17]](_0xaf56[2],{uniqueid:_0x653dx3[_0xaf56[3]],sorting:_0x653dx3[_0xaf56[3]],timeslot:_0x653dx3[_0xaf56[3]],subject:_0x653dx3[_0xaf56[4]],from:_0x653dx3[_0xaf56[4]],cc:_0x653dx3[_0xaf56[4]],attachment:_0x653dx3[_0xaf56[5]],accountname:_0x653dx3[_0xaf56[4]],accountaddress:_0x653dx3[_0xaf56[4]],application:_0x653dx3[_0xaf56[4]],fullname:_0x653dx3[_0xaf56[4]],membername:_0x653dx3[_0xaf56[4]],agentid:_0x653dx3[_0xaf56[3]],mailqueuename:_0x653dx3[_0xaf56[4]],mailroomid:_0x653dx3[_0xaf56[3]],lastevent:_0x653dx3[_0xaf56[4]],agentcalledAt:_0x653dx3[_0xaf56[6]],connectId:{type:_0x653dx3[_0xaf56[3]],unique:true},agentconnectedAt:_0x653dx3[_0xaf56[6]],connect:{type:_0x653dx3[_0xaf56[5]],defaultValue:false,set:function(_0x653dx5){this[_0xaf56[9]](_0xaf56[7],this[_0xaf56[8]]);this[_0xaf56[9]](_0xaf56[10],moment()[_0xaf56[12]](_0xaf56[11]));this[_0xaf56[9]](_0xaf56[13],_0xaf56[14]);this[_0xaf56[9]](_0xaf56[15],_0xaf56[14]);}},agentringnoanswerAt:_0x653dx3[_0xaf56[6]],reason:_0x653dx3[_0xaf56[4]]},{tableName:_0xaf56[16]});return _0x653dx4;};
\ No newline at end of file
-var _0x5369=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0x5369[0]);module[_0x5369[1]]=function(_0x837fx2,_0x837fx3){var _0x837fx4=_0x837fx2[_0x5369[8]](_0x5369[2],{uniqueid:{type:_0x837fx3[_0x5369[3]]},subject:_0x837fx3[_0x5369[4]],from:_0x837fx3[_0x5369[4]],cc:_0x837fx3[_0x5369[4]],attachment:_0x837fx3[_0x5369[5]],accountname:_0x837fx3[_0x5369[4]],accountaddress:_0x837fx3[_0x5369[4]],fullname:_0x837fx3[_0x5369[4]],membername:_0x837fx3[_0x5369[4]],mailqueuename:_0x837fx3[_0x5369[4]],mailjoinAt:_0x837fx3[_0x5369[6]],mailleaveAt:_0x837fx3[_0x5369[6]],mailunmanagedAt:_0x837fx3[_0x5369[6]]},{tableName:_0x5369[7]});return _0x837fx4;};
\ No newline at end of file
+var _0x175e=["\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x64\x65\x66\x69\x6E\x65"];var moment=require(_0x175e[0]);module[_0x175e[1]]=function(_0xdda5x2,_0xdda5x3){var _0xdda5x4=_0xdda5x2[_0x175e[8]](_0x175e[2],{uniqueid:{type:_0xdda5x3[_0x175e[3]]},subject:_0xdda5x3[_0x175e[4]],from:_0xdda5x3[_0x175e[4]],cc:_0xdda5x3[_0x175e[4]],attachment:_0xdda5x3[_0x175e[5]],accountname:_0xdda5x3[_0x175e[4]],accountaddress:_0xdda5x3[_0x175e[4]],fullname:_0xdda5x3[_0x175e[4]],membername:_0xdda5x3[_0x175e[4]],mailqueuename:_0xdda5x3[_0x175e[4]],mailjoinAt:_0xdda5x3[_0x175e[6]],mailleaveAt:_0xdda5x3[_0x175e[6]],mailunmanagedAt:_0xdda5x3[_0x175e[6]]},{tableName:_0x175e[7]});return _0xdda5x4;};
\ No newline at end of file
-var _0xc9be=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x74\x61\x74\x65","\x65\x6E\x74\x65\x72\x64\x61\x74\x65","\x65\x78\x69\x74\x64\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xc9be[0]]=function(_0x5ac8x1,_0x5ac8x2){var _0x5ac8x3=_0x5ac8x1[_0xc9be[11]](_0xc9be[1],{stateinterface:_0x5ac8x2[_0xc9be[2]],queue:_0x5ac8x2[_0xc9be[2]],membername:_0x5ac8x2[_0xc9be[2]],interface:_0x5ac8x2[_0xc9be[2]],state:_0x5ac8x2[_0xc9be[3]],statedesc:_0x5ac8x2[_0xc9be[2]],enterdate:_0x5ac8x2[_0xc9be[4]],exitdate:_0x5ac8x2[_0xc9be[4]],reason:_0x5ac8x2[_0xc9be[2]]},{tableName:_0xc9be[5],indexes:[{fields:[_0xc9be[6],_0xc9be[7],_0xc9be[8],_0xc9be[9],_0xc9be[10]]}]});return _0x5ac8x3;};
\ No newline at end of file
+var _0xb81d=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x74\x61\x74\x65","\x65\x6E\x74\x65\x72\x64\x61\x74\x65","\x65\x78\x69\x74\x64\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xb81d[0]]=function(_0x89dbx1,_0x89dbx2){var _0x89dbx3=_0x89dbx1[_0xb81d[11]](_0xb81d[1],{stateinterface:_0x89dbx2[_0xb81d[2]],queue:_0x89dbx2[_0xb81d[2]],membername:_0x89dbx2[_0xb81d[2]],interface:_0x89dbx2[_0xb81d[2]],state:_0x89dbx2[_0xb81d[3]],statedesc:_0x89dbx2[_0xb81d[2]],enterdate:_0x89dbx2[_0xb81d[4]],exitdate:_0x89dbx2[_0xb81d[4]],reason:_0x89dbx2[_0xb81d[2]]},{tableName:_0xb81d[5],indexes:[{fields:[_0xb81d[6],_0xb81d[7],_0xb81d[8],_0xb81d[9],_0xb81d[10]]}]});return _0x89dbx3;};
\ No newline at end of file
-var _0x8ca1=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0x8ca1[0]]=function(_0xa6d7x1,_0xa6d7x2){var _0xa6d7x3=_0xa6d7x1[_0x8ca1[8]](_0x8ca1[1],{uniqueid:_0xa6d7x2[_0x8ca1[2]],calleridnum:_0xa6d7x2[_0x8ca1[2]],calleridname:_0xa6d7x2[_0x8ca1[2]],queue:_0xa6d7x2[_0x8ca1[2]],queuecallerjoinAt:_0xa6d7x2[_0x8ca1[3]],queuecallerleaveAt:_0xa6d7x2[_0x8ca1[3]],position:_0xa6d7x2[_0x8ca1[4]],count:_0xa6d7x2[_0x8ca1[4]],queuecallerabandon:{type:_0xa6d7x2[_0x8ca1[5]],defaultValue:false},queuecallerabandonAt:_0xa6d7x2[_0x8ca1[3]],queuecallercompleteAt:_0xa6d7x2[_0x8ca1[3]],originalposition:_0xa6d7x2[_0x8ca1[4]],channel:_0xa6d7x2[_0x8ca1[2]],channelstate:_0xa6d7x2[_0x8ca1[4]],channelstatedesc:_0xa6d7x2[_0x8ca1[2]],connectedlinenum:_0xa6d7x2[_0x8ca1[2]],connectedlinename:_0xa6d7x2[_0x8ca1[2]],language:_0xa6d7x2[_0x8ca1[2]],accountcode:_0xa6d7x2[_0x8ca1[2]],context:_0xa6d7x2[_0x8ca1[2]],exten:_0xa6d7x2[_0x8ca1[2]],priority:_0xa6d7x2[_0x8ca1[2]]},{tableName:_0x8ca1[6],indexes:[{fields:[_0x8ca1[7]]}]});return _0xa6d7x3;};
\ No newline at end of file
+var _0x2012=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x66\x69\x6E\x65"];module[_0x2012[0]]=function(_0x84d2x1,_0x84d2x2){var _0x84d2x3=_0x84d2x1[_0x2012[8]](_0x2012[1],{uniqueid:_0x84d2x2[_0x2012[2]],calleridnum:_0x84d2x2[_0x2012[2]],calleridname:_0x84d2x2[_0x2012[2]],queue:_0x84d2x2[_0x2012[2]],queuecallerjoinAt:_0x84d2x2[_0x2012[3]],queuecallerleaveAt:_0x84d2x2[_0x2012[3]],position:_0x84d2x2[_0x2012[4]],count:_0x84d2x2[_0x2012[4]],queuecallerabandon:{type:_0x84d2x2[_0x2012[5]],defaultValue:false},queuecallerabandonAt:_0x84d2x2[_0x2012[3]],queuecallercompleteAt:_0x84d2x2[_0x2012[3]],originalposition:_0x84d2x2[_0x2012[4]],channel:_0x84d2x2[_0x2012[2]],channelstate:_0x84d2x2[_0x2012[4]],channelstatedesc:_0x84d2x2[_0x2012[2]],connectedlinenum:_0x84d2x2[_0x2012[2]],connectedlinename:_0x84d2x2[_0x2012[2]],language:_0x84d2x2[_0x2012[2]],accountcode:_0x84d2x2[_0x2012[2]],context:_0x84d2x2[_0x2012[2]],exten:_0x84d2x2[_0x2012[2]],priority:_0x84d2x2[_0x2012[2]]},{tableName:_0x2012[6],indexes:[{fields:[_0x2012[7]]}]});return _0x84d2x3;};
\ No newline at end of file
-var _0xca08=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65","\x64\x65\x66\x69\x6E\x65"];module[_0xca08[0]]=function(_0xefacx1,_0xefacx2){var _0xefacx3=_0xefacx1[_0xca08[5]](_0xca08[1],{network:{type:_0xefacx2[_0xca08[2]]},network_script:{type:_0xefacx2[_0xca08[2]]},request:{type:_0xefacx2[_0xca08[2]]},channel:{type:_0xefacx2[_0xca08[2]]},language:{type:_0xefacx2[_0xca08[2]]},type:{type:_0xefacx2[_0xca08[2]]},uniqueid:{type:_0xefacx2[_0xca08[2]]},version:{type:_0xefacx2[_0xca08[2]]},callerid:{type:_0xefacx2[_0xca08[2]]},calleridname:{type:_0xefacx2[_0xca08[2]]},callingpres:{type:_0xefacx2[_0xca08[2]]},callingani2:{type:_0xefacx2[_0xca08[2]]},callington:{type:_0xefacx2[_0xca08[2]]},callingtns:{type:_0xefacx2[_0xca08[2]]},dnid:{type:_0xefacx2[_0xca08[2]]},rdnis:{type:_0xefacx2[_0xca08[2]]},context:{type:_0xefacx2[_0xca08[2]]},extension:{type:_0xefacx2[_0xca08[2]]},priority:{type:_0xefacx2[_0xca08[2]]},enhanced:{type:_0xefacx2[_0xca08[2]]},accountcode:{type:_0xefacx2[_0xca08[2]]},threadid:{type:_0xefacx2[_0xca08[2]]},project_name:{type:_0xefacx2[_0xca08[2]]},joinAt:{type:_0xefacx2[_0xca08[3]]},leaveAt:{type:_0xefacx2[_0xca08[3]],unique:true}},{tableName:_0xca08[4]});return _0xefacx3;};
\ No newline at end of file
+var _0x744c=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x53\x54\x52\x49\x4E\x47","\x44\x41\x54\x45","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65","\x64\x65\x66\x69\x6E\x65"];module[_0x744c[0]]=function(_0x834ax1,_0x834ax2){var _0x834ax3=_0x834ax1[_0x744c[5]](_0x744c[1],{network:{type:_0x834ax2[_0x744c[2]]},network_script:{type:_0x834ax2[_0x744c[2]]},request:{type:_0x834ax2[_0x744c[2]]},channel:{type:_0x834ax2[_0x744c[2]]},language:{type:_0x834ax2[_0x744c[2]]},type:{type:_0x834ax2[_0x744c[2]]},uniqueid:{type:_0x834ax2[_0x744c[2]]},version:{type:_0x834ax2[_0x744c[2]]},callerid:{type:_0x834ax2[_0x744c[2]]},calleridname:{type:_0x834ax2[_0x744c[2]]},callingpres:{type:_0x834ax2[_0x744c[2]]},callingani2:{type:_0x834ax2[_0x744c[2]]},callington:{type:_0x834ax2[_0x744c[2]]},callingtns:{type:_0x834ax2[_0x744c[2]]},dnid:{type:_0x834ax2[_0x744c[2]]},rdnis:{type:_0x834ax2[_0x744c[2]]},context:{type:_0x834ax2[_0x744c[2]]},extension:{type:_0x834ax2[_0x744c[2]]},priority:{type:_0x834ax2[_0x744c[2]]},enhanced:{type:_0x834ax2[_0x744c[2]]},accountcode:{type:_0x834ax2[_0x744c[2]]},threadid:{type:_0x834ax2[_0x744c[2]]},project_name:{type:_0x834ax2[_0x744c[2]]},joinAt:{type:_0x834ax2[_0x744c[3]]},leaveAt:{type:_0x834ax2[_0x744c[3]],unique:true}},{tableName:_0x744c[4]});return _0x834ax3;};
\ No newline at end of file
-var _0x9c13=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x5F\x64\x65\x74\x61\x69\x6C\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x9c13[0]]=function(_0xd15bx1,_0xd15bx2){var _0xd15bx3=_0xd15bx1[_0x9c13[4]](_0x9c13[1],{uniqueid:{type:_0xd15bx2[_0x9c13[2]]},node:{type:_0xd15bx2[_0x9c13[2]]},application:{type:_0xd15bx2[_0x9c13[2]]},data:{type:_0xd15bx2[_0x9c13[2]]}},{tableName:_0x9c13[3]});return _0xd15bx3;};
\ No newline at end of file
+var _0x65e1=["\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65\x44\x65\x74\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x5F\x64\x65\x74\x61\x69\x6C\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x65e1[0]]=function(_0xba2fx1,_0xba2fx2){var _0xba2fx3=_0xba2fx1[_0x65e1[4]](_0x65e1[1],{uniqueid:{type:_0xba2fx2[_0x65e1[2]]},node:{type:_0xba2fx2[_0x65e1[2]]},application:{type:_0xba2fx2[_0x65e1[2]]},data:{type:_0xba2fx2[_0x65e1[2]]}},{tableName:_0x65e1[3]});return _0xba2fx3;};
\ No newline at end of file
-var _0x4a2c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x54\x45\x58\x54","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x73","\x64\x65\x66\x69\x6E\x65"];_0x4a2c[0];module[_0x4a2c[1]]=function(_0xe975x1,_0xe975x2){var _0xe975x3=_0xe975x1[_0x4a2c[5]](_0x4a2c[2],{tree:_0xe975x2[_0x4a2c[3]]},{tableName:_0x4a2c[4]});return _0xe975x3;};
\ No newline at end of file
+var _0x1daa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x54\x72\x65\x65","\x54\x45\x58\x54","\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65\x73","\x64\x65\x66\x69\x6E\x65"];_0x1daa[0];module[_0x1daa[1]]=function(_0xea85x1,_0xea85x2){var _0xea85x3=_0xea85x1[_0x1daa[5]](_0x1daa[2],{tree:_0xea85x2[_0x1daa[3]]},{tableName:_0x1daa[4]});return _0xea85x3;};
\ No newline at end of file
-var _0x70ea=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x70ea[0];module[_0x70ea[1]]=function(_0xe207x1,_0xe207x2){return _0xe207x1[_0x70ea[7]](_0x70ea[2],{name:_0xe207x2[_0x70ea[3]],description:_0xe207x2[_0x70ea[3]],username:{type:_0xe207x2[_0x70ea[3]],unique:true},remoteUri:_0xe207x2[_0x70ea[3]],password:_0xe207x2[_0x70ea[3]],clientId:_0xe207x2[_0x70ea[3]],clientSecret:_0xe207x2[_0x70ea[3]],securityToken:_0xe207x2[_0x70ea[3]]},{tableName:_0x70ea[4],associate:function(_0xe207x3){_0xe207x3[_0x70ea[2]][_0x70ea[6]](_0xe207x3.SalesforceConfiguration,{foreignKey:_0x70ea[5]})}})};
\ No newline at end of file
+var _0x46e0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x46e0[0];module[_0x46e0[1]]=function(_0x69d4x1,_0x69d4x2){return _0x69d4x1[_0x46e0[7]](_0x46e0[2],{name:_0x69d4x2[_0x46e0[3]],description:_0x69d4x2[_0x46e0[3]],username:{type:_0x69d4x2[_0x46e0[3]],unique:true},remoteUri:_0x69d4x2[_0x46e0[3]],password:_0x69d4x2[_0x46e0[3]],clientId:_0x69d4x2[_0x46e0[3]],clientSecret:_0x69d4x2[_0x46e0[3]],securityToken:_0x69d4x2[_0x46e0[3]]},{tableName:_0x46e0[4],associate:function(_0x69d4x3){_0x69d4x3[_0x46e0[2]][_0x46e0[6]](_0x69d4x3.SalesforceConfiguration,{foreignKey:_0x46e0[5]})}})};
\ No newline at end of file
-var _0x959b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x959b[0];module[_0x959b[1]]=function(_0xa318x1,_0xa318x2){return _0xa318x1[_0x959b[14]](_0x959b[2],{name:_0xa318x2[_0x959b[3]],description:_0xa318x2[_0x959b[3]]},{tableName:_0x959b[4],associate:function(_0xa318x3){_0xa318x3[_0x959b[2]][_0x959b[6]](_0xa318x3.SalesforceAccount,{foreignKey:_0x959b[5]});_0xa318x3[_0x959b[2]][_0x959b[9]](_0xa318x3.SalesforceField,{as:_0x959b[7],foreignKey:_0x959b[8]});_0xa318x3[_0x959b[2]][_0x959b[9]](_0xa318x3.SalesforceField,{as:_0x959b[10],foreignKey:_0x959b[11]});_0xa318x3[_0x959b[2]][_0x959b[9]](_0xa318x3.SalesforceField,{as:_0x959b[12],foreignKey:_0x959b[13]});}})};
\ No newline at end of file
+var _0x73b5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x73b5[0];module[_0x73b5[1]]=function(_0x4dd5x1,_0x4dd5x2){return _0x4dd5x1[_0x73b5[14]](_0x73b5[2],{name:_0x4dd5x2[_0x73b5[3]],description:_0x4dd5x2[_0x73b5[3]]},{tableName:_0x73b5[4],associate:function(_0x4dd5x3){_0x4dd5x3[_0x73b5[2]][_0x73b5[6]](_0x4dd5x3.SalesforceAccount,{foreignKey:_0x73b5[5]});_0x4dd5x3[_0x73b5[2]][_0x73b5[9]](_0x4dd5x3.SalesforceField,{as:_0x73b5[7],foreignKey:_0x73b5[8]});_0x4dd5x3[_0x73b5[2]][_0x73b5[9]](_0x4dd5x3.SalesforceField,{as:_0x73b5[10],foreignKey:_0x73b5[11]});_0x4dd5x3[_0x73b5[2]][_0x73b5[9]](_0x4dd5x3.SalesforceField,{as:_0x73b5[12],foreignKey:_0x73b5[13]});}})};
\ No newline at end of file
-var _0xe50f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xe50f[0];module[_0xe50f[1]]=function(_0xc77cx1,_0xc77cx2){return _0xc77cx1[_0xe50f[9]](_0xe50f[2],{type:{type:_0xc77cx2.ENUM(_0xe50f[3],_0xe50f[4],_0xe50f[5]),defaultValue:_0xe50f[3]},content:_0xc77cx2[_0xe50f[6]],key:_0xc77cx2[_0xe50f[6]],keyType:{type:_0xc77cx2.ENUM(_0xe50f[3],_0xe50f[4])},keyContent:_0xc77cx2[_0xe50f[6]],idField:_0xc77cx2[_0xe50f[6]]},{tableName:_0xe50f[7],associate:function(_0xc77cx3){_0xc77cx3[_0xe50f[2]][_0xe50f[8]](_0xc77cx3.Variable)}})};
\ No newline at end of file
+var _0x217c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x217c[0];module[_0x217c[1]]=function(_0x2ed8x1,_0x2ed8x2){return _0x2ed8x1[_0x217c[9]](_0x217c[2],{type:{type:_0x2ed8x2.ENUM(_0x217c[3],_0x217c[4],_0x217c[5]),defaultValue:_0x217c[3]},content:_0x2ed8x2[_0x217c[6]],key:_0x2ed8x2[_0x217c[6]],keyType:{type:_0x2ed8x2.ENUM(_0x217c[3],_0x217c[4])},keyContent:_0x2ed8x2[_0x217c[6]],idField:_0x2ed8x2[_0x217c[6]]},{tableName:_0x217c[7],associate:function(_0x2ed8x3){_0x2ed8x3[_0x217c[2]][_0x217c[8]](_0x2ed8x3.Variable)}})};
\ No newline at end of file
-var _0x200f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x65\x74\x74\x69\x6E\x67\x73","\x54\x45\x58\x54","\x73\x65\x74\x74\x69\x6E\x67\x73","\x64\x65\x66\x69\x6E\x65"];_0x200f[0];module[_0x200f[1]]=function(_0xa0a3x1,_0xa0a3x2){var _0xa0a3x3=_0xa0a3x1[_0x200f[5]](_0x200f[2],{license:_0xa0a3x2[_0x200f[3]],mac:{type:_0xa0a3x2.STRING(17),allowNull:false,validate:{notEmpty:true}},netmask:{type:_0xa0a3x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},address:{type:_0xa0a3x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},min_internal:{type:_0xa0a3x2.INTEGER(11),unique:true},agi_port:{type:_0xa0a3x2.INTEGER(11)},automation_timeout:{type:_0xa0a3x2.INTEGER(11),defaultValue:3600}},{tableName:_0x200f[4]});return _0xa0a3x3;};
\ No newline at end of file
+var _0x9ba3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x65\x74\x74\x69\x6E\x67\x73","\x54\x45\x58\x54","\x73\x65\x74\x74\x69\x6E\x67\x73","\x64\x65\x66\x69\x6E\x65"];_0x9ba3[0];module[_0x9ba3[1]]=function(_0x2e26x1,_0x2e26x2){var _0x2e26x3=_0x2e26x1[_0x9ba3[5]](_0x9ba3[2],{license:_0x2e26x2[_0x9ba3[3]],mac:{type:_0x2e26x2.STRING(17),allowNull:false,validate:{notEmpty:true}},netmask:{type:_0x2e26x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},address:{type:_0x2e26x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},min_internal:{type:_0x2e26x2.INTEGER(11),unique:true},agi_port:{type:_0x2e26x2.INTEGER(11)},automation_timeout:{type:_0x2e26x2.INTEGER(11),defaultValue:3600}},{tableName:_0x9ba3[4]});return _0x2e26x3;};
\ No newline at end of file
-var _0xe9de=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x53\x54\x52\x49\x4E\x47","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63","\x64\x65\x66\x69\x6E\x65"];_0xe9de[0];module[_0xe9de[1]]=function(_0x45c6x1,_0x45c6x2){var _0x45c6x3=_0x45c6x1[_0xe9de[5]](_0xe9de[2],{name:{type:_0x45c6x2[_0xe9de[3]],unique:true,validate:{notEmpty:true}},dsn:{type:_0x45c6x2[_0xe9de[3]]},description:_0x45c6x2[_0xe9de[3]]},{tableName:_0xe9de[4]});return _0x45c6x3;};
\ No newline at end of file
+var _0xf1cf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x71\x75\x61\x72\x65\x4F\x64\x62\x63","\x53\x54\x52\x49\x4E\x47","\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63","\x64\x65\x66\x69\x6E\x65"];_0xf1cf[0];module[_0xf1cf[1]]=function(_0xe390x1,_0xe390x2){var _0xe390x3=_0xe390x1[_0xf1cf[5]](_0xf1cf[2],{name:{type:_0xe390x2[_0xf1cf[3]],unique:true,validate:{notEmpty:true}},dsn:{type:_0xe390x2[_0xf1cf[3]]},description:_0xe390x2[_0xf1cf[3]]},{tableName:_0xf1cf[4]});return _0xe390x3;};
\ No newline at end of file
-var _0xfb97=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6C\x6F\x6E\x67","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xfb97[0];module[_0xfb97[1]]=function(_0x5c45x1,_0x5c45x2){var _0x5c45x3=_0x5c45x1[_0xfb97[7]](_0xfb97[2],{name:{type:_0x5c45x2[_0xfb97[3]],unique:true,validate:{notEmpty:true}},description:_0x5c45x2[_0xfb97[3]],preproduction:{type:_0x5c45x2[_0xfb97[4]],length:_0xfb97[5]},production:{type:_0x5c45x2[_0xfb97[4]],length:_0xfb97[5]}},{tableName:_0xfb97[6]});return _0x5c45x3;};
\ No newline at end of file
+var _0xb375=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x71\x75\x61\x72\x65\x50\x72\x6F\x6A\x65\x63\x74","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x6C\x6F\x6E\x67","\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x64\x65\x66\x69\x6E\x65"];_0xb375[0];module[_0xb375[1]]=function(_0x7013x1,_0x7013x2){var _0x7013x3=_0x7013x1[_0xb375[7]](_0xb375[2],{name:{type:_0x7013x2[_0xb375[3]],unique:true,validate:{notEmpty:true}},description:_0x7013x2[_0xb375[3]],preproduction:{type:_0x7013x2[_0xb375[4]],length:_0xb375[5]},production:{type:_0x7013x2[_0xb375[4]],length:_0xb375[5]}},{tableName:_0xb375[6]});return _0x7013x3;};
\ No newline at end of file
-var _0x3b26=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x3b26[0];module[_0x3b26[1]]=function(_0xbda8x1,_0xbda8x2){return _0xbda8x1[_0x3b26[7]](_0x3b26[2],{name:_0xbda8x2[_0x3b26[3]],description:_0xbda8x2[_0x3b26[3]],username:{type:_0xbda8x2[_0x3b26[3]]},remoteUri:_0xbda8x2[_0x3b26[3]],password:_0xbda8x2[_0x3b26[3]]},{tableName:_0x3b26[4],associate:function(_0xbda8x3){_0xbda8x3[_0x3b26[2]][_0x3b26[6]](_0xbda8x3.SugarcrmConfiguration,{foreignKey:_0x3b26[5]})}})};
\ No newline at end of file
+var _0x191c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x191c[0];module[_0x191c[1]]=function(_0x2789x1,_0x2789x2){return _0x2789x1[_0x191c[7]](_0x191c[2],{name:_0x2789x2[_0x191c[3]],description:_0x2789x2[_0x191c[3]],username:{type:_0x2789x2[_0x191c[3]]},remoteUri:_0x2789x2[_0x191c[3]],password:_0x2789x2[_0x191c[3]]},{tableName:_0x191c[4],associate:function(_0x2789x3){_0x2789x3[_0x191c[2]][_0x191c[6]](_0x2789x3.SugarcrmConfiguration,{foreignKey:_0x191c[5]})}})};
\ No newline at end of file
-var _0x431f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x431f[0];module[_0x431f[1]]=function(_0xbd83x1,_0xbd83x2){return _0xbd83x1[_0x431f[14]](_0x431f[2],{name:_0xbd83x2[_0x431f[3]],description:_0xbd83x2[_0x431f[3]]},{tableName:_0x431f[4],associate:function(_0xbd83x3){_0xbd83x3[_0x431f[2]][_0x431f[6]](_0xbd83x3.SugarcrmAccount,{foreignKey:_0x431f[5]});_0xbd83x3[_0x431f[2]][_0x431f[9]](_0xbd83x3.SugarcrmField,{as:_0x431f[7],foreignKey:_0x431f[8]});_0xbd83x3[_0x431f[2]][_0x431f[9]](_0xbd83x3.SugarcrmField,{as:_0x431f[10],foreignKey:_0x431f[11]});_0xbd83x3[_0x431f[2]][_0x431f[9]](_0xbd83x3.SugarcrmField,{as:_0x431f[12],foreignKey:_0x431f[13]});}})};
\ No newline at end of file
+var _0x7f46=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x7f46[0];module[_0x7f46[1]]=function(_0x5d38x1,_0x5d38x2){return _0x5d38x1[_0x7f46[14]](_0x7f46[2],{name:_0x5d38x2[_0x7f46[3]],description:_0x5d38x2[_0x7f46[3]]},{tableName:_0x7f46[4],associate:function(_0x5d38x3){_0x5d38x3[_0x7f46[2]][_0x7f46[6]](_0x5d38x3.SugarcrmAccount,{foreignKey:_0x7f46[5]});_0x5d38x3[_0x7f46[2]][_0x7f46[9]](_0x5d38x3.SugarcrmField,{as:_0x7f46[7],foreignKey:_0x7f46[8]});_0x5d38x3[_0x7f46[2]][_0x7f46[9]](_0x5d38x3.SugarcrmField,{as:_0x7f46[10],foreignKey:_0x7f46[11]});_0x5d38x3[_0x7f46[2]][_0x7f46[9]](_0x5d38x3.SugarcrmField,{as:_0x7f46[12],foreignKey:_0x7f46[13]});}})};
\ No newline at end of file
-var _0x56c2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0x56c2[0];module[_0x56c2[1]]=function(_0x7f9ax1,_0x7f9ax2){return _0x7f9ax1[_0x56c2[9]](_0x56c2[2],{type:{type:_0x7f9ax2.ENUM(_0x56c2[3],_0x56c2[4],_0x56c2[5]),defaultValue:_0x56c2[3]},content:_0x7f9ax2[_0x56c2[6]],key:_0x7f9ax2[_0x56c2[6]],keyType:{type:_0x7f9ax2.ENUM(_0x56c2[3],_0x56c2[4])},keyContent:_0x7f9ax2[_0x56c2[6]],idField:_0x7f9ax2[_0x56c2[6]]},{tableName:_0x56c2[7],associate:function(_0x7f9ax3){_0x7f9ax3[_0x56c2[2]][_0x56c2[8]](_0x7f9ax3.Variable)}})};
\ No newline at end of file
+var _0xeb91=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x53\x75\x67\x61\x72\x63\x72\x6D\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xeb91[0];module[_0xeb91[1]]=function(_0x6c87x1,_0x6c87x2){return _0x6c87x1[_0xeb91[9]](_0xeb91[2],{type:{type:_0x6c87x2.ENUM(_0xeb91[3],_0xeb91[4],_0xeb91[5]),defaultValue:_0xeb91[3]},content:_0x6c87x2[_0xeb91[6]],key:_0x6c87x2[_0xeb91[6]],keyType:{type:_0x6c87x2.ENUM(_0xeb91[3],_0xeb91[4])},keyContent:_0x6c87x2[_0xeb91[6]],idField:_0x6c87x2[_0xeb91[6]]},{tableName:_0xeb91[7],associate:function(_0x6c87x3){_0x6c87x3[_0xeb91[2]][_0xeb91[8]](_0x6c87x3.Variable)}})};
\ No newline at end of file
-var _0x449b=["\x65\x78\x70\x6F\x72\x74\x73","\x54\x61\x67","\x53\x54\x52\x49\x4E\x47","\x74\x61\x67\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x449b[0]]=function(_0x3120x1,_0x3120x2){var _0x3120x3=_0x3120x1[_0x449b[4]](_0x449b[1],{name:{type:_0x3120x2[_0x449b[2]],unique:true}},{tableName:_0x449b[3]});return _0x3120x3;};
\ No newline at end of file
+var _0xc3d2=["\x65\x78\x70\x6F\x72\x74\x73","\x54\x61\x67","\x53\x54\x52\x49\x4E\x47","\x74\x61\x67\x73","\x64\x65\x66\x69\x6E\x65"];module[_0xc3d2[0]]=function(_0x57b2x1,_0x57b2x2){var _0x57b2x3=_0x57b2x1[_0xc3d2[4]](_0xc3d2[1],{name:{type:_0x57b2x2[_0xc3d2[2]],unique:true}},{tableName:_0xc3d2[3]});return _0x57b2x3;};
\ No newline at end of file
-var _0x585f=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x54\x65\x61\x6D","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x65\x61\x6D\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x585f[0]);module[_0x585f[1]]=function(_0xa714x2,_0xa714x3){var _0xa714x4=_0xa714x2[_0x585f[8]](_0x585f[2],{name:{type:_0xa714x3[_0x585f[3]],allowNull:false,unique:true},description:{type:_0xa714x3[_0x585f[3]]},defaultEntry:{type:_0xa714x3[_0x585f[4]],defaultValue:0}},{tableName:_0x585f[5],associate:function(_0xa714x5){_0xa714x4[_0x585f[7]](_0xa714x5.User,{through:_0xa714x5[_0x585f[6]]})}});return _0xa714x4;};
\ No newline at end of file
+var _0xf186=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x54\x65\x61\x6D","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x65\x61\x6D\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xf186[0]);module[_0xf186[1]]=function(_0x4e18x2,_0x4e18x3){var _0x4e18x4=_0x4e18x2[_0xf186[8]](_0xf186[2],{name:{type:_0x4e18x3[_0xf186[3]],allowNull:false,unique:true},description:{type:_0x4e18x3[_0xf186[3]]},defaultEntry:{type:_0x4e18x3[_0xf186[4]],defaultValue:0}},{tableName:_0xf186[5],associate:function(_0x4e18x5){_0x4e18x4[_0xf186[7]](_0x4e18x5.User,{through:_0x4e18x5[_0xf186[6]]})}});return _0x4e18x4;};
\ No newline at end of file
--- /dev/null
+var _0x2101=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x54\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x73\x61\x6C\x74","\x6D\x61\x6B\x65\x53\x61\x6C\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x65\x6E\x63\x72\x79\x70\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x6D\x64\x35\x73\x65\x63\x72\x65\x74","\x3A\x61\x73\x74\x65\x72\x69\x73\x6B\x3A","\x6D\x64\x35\x50\x61\x73\x73\x77\x6F\x72\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x75\x73\x65\x72","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x6C","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x61\x63\x63\x65\x70\x74","\x72\x65\x66\x75\x73\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x75\x61\x63","\x75\x61\x73","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x75\x73\x65\x72\x73","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x62\x61\x73\x65\x36\x34","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","","\x70\x62\x6B\x64\x66\x32\x53\x79\x6E\x63","\x64\x65\x66\x69\x6E\x65"];_0x2101[0];var crypto=require(_0x2101[1]);var md5=require(_0x2101[2]);var _=require(_0x2101[3]);module[_0x2101[4]]=function(_0x78c1x4,_0x78c1x5){var _0x78c1x6=_0x78c1x4[_0x2101[60]](_0x2101[5],{name:{type:_0x78c1x5[_0x2101[6]],unique:true,validate:{notEmpty:true},set:function(_0x78c1x7){this[_0x2101[8]](_0x2101[7],_0x78c1x7);this[_0x2101[8]](_0x2101[9],_0x78c1x7);}},password:{type:_0x78c1x5[_0x2101[6]],allowNull:false,validate:{notEmpty:true},set:function(_0x78c1x8){this[_0x2101[10]]=this[_0x2101[11]]();this[_0x2101[8]](_0x2101[12],this[_0x2101[13]](_0x78c1x8));this[_0x2101[8]](_0x2101[14],this[_0x2101[16]](this[_0x2101[7]]+_0x2101[15]+_0x78c1x8));}},internal:{type:_0x78c1x5.INTEGER(11),unique:true,set:function(_0x78c1x9){this[_0x2101[8]](_0x2101[17],_0x78c1x9);this[_0x2101[8]](_0x2101[18],_0x78c1x9);}},ipaddr:{type:_0x78c1x5[_0x2101[6]],allowNull:true},port:{type:_0x78c1x5.INTEGER(5),allowNull:true},regseconds:{type:_0x78c1x5.INTEGER(11),allowNull:true},defaultuser:{type:_0x78c1x5[_0x2101[6]],allowNull:true},fullcontact:{type:_0x78c1x5[_0x2101[6]],allowNull:true},regserver:{type:_0x78c1x5[_0x2101[6]],allowNull:true},useragent:{type:_0x78c1x5[_0x2101[6]],allowNull:true},lastms:{type:_0x78c1x5.INTEGER(11),allowNull:true},host:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[19]},type:{type:_0x78c1x5.ENUM(_0x2101[20],_0x2101[21],_0x2101[22]),allowNull:true,defaultValue:_0x2101[20]},context:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[23]},permit:{type:_0x78c1x5[_0x2101[6]],allowNull:true},deny:{type:_0x78c1x5[_0x2101[6]],allowNull:true},secret:{type:_0x78c1x5[_0x2101[6]],allowNull:true},md5secret:{type:_0x78c1x5[_0x2101[6]],allowNull:true},remotesecret:{type:_0x78c1x5[_0x2101[6]],allowNull:true},transport:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[24]},dtmfmode:{type:_0x78c1x5.ENUM(_0x2101[25],_0x2101[26],_0x2101[27],_0x2101[28],_0x2101[29]),allowNull:true,defaultValue:_0x2101[25]},directmedia:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31],_0x2101[32],_0x2101[33]),allowNull:true,defaultValue:_0x2101[31]},nat:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[34]},callgroup:{type:_0x78c1x5[_0x2101[6]],allowNull:true},pickupgroup:{type:_0x78c1x5[_0x2101[6]],allowNull:true},language:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[35]},disallow:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[36]},allow:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[37]},insecure:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[38]},trustrpid:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[31]},progressinband:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31],_0x2101[39]),allowNull:true},promiscredir:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},useclientcode:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},accountcode:{type:_0x78c1x5.INTEGER(11),allowNull:true},setvar:{type:_0x78c1x5[_0x2101[6]],allowNull:true},callerid:{type:_0x78c1x5[_0x2101[6]],allowNull:true,defaultValue:_0x2101[40]},amaflags:{type:_0x78c1x5[_0x2101[6]],allowNull:true},callcounter:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[30]},busylevel:{type:_0x78c1x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},allowsubscribe:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},videosupport:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},maxcallbitrate:{type:_0x78c1x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},mailbox:{type:_0x78c1x5[_0x2101[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0x78c1x5.ENUM(_0x2101[41],_0x2101[42],_0x2101[43]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0x78c1x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0x78c1x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0x78c1x5.ENUM(_0x2101[44],_0x2101[45]),allowNull:true},t38pt_usertpsource:{type:_0x78c1x5[_0x2101[6]],allowNull:true},regexten:{type:_0x78c1x5[_0x2101[6]],allowNull:true},fromdomain:{type:_0x78c1x5[_0x2101[6]],allowNull:true},fromuser:{type:_0x78c1x5[_0x2101[6]],allowNull:true},qualify:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[30]},defaultip:{type:_0x78c1x5[_0x2101[6]],allowNull:true},rtptimeout:{type:_0x78c1x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0x78c1x5.INTEGER(11),allowNull:true},sendrpid:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[31]},outboundproxy:{type:_0x78c1x5[_0x2101[6]],allowNull:true},callbackextension:{type:_0x78c1x5[_0x2101[6]],allowNull:true},timert1:{type:_0x78c1x5.INTEGER(11),allowNull:true},timerb:{type:_0x78c1x5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0x78c1x5.INTEGER(11),allowNull:true},constantssrc:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},contactpermit:{type:_0x78c1x5[_0x2101[6]],allowNull:true},contactdeny:{type:_0x78c1x5[_0x2101[6]],allowNull:true},usereqphone:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[31]},textsupport:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},faxdetect:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},buggymwi:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},auth:{type:_0x78c1x5[_0x2101[6]],allowNull:true},fullname:{type:_0x78c1x5[_0x2101[6]],allowNull:true},trunkname:{type:_0x78c1x5[_0x2101[6]],allowNull:true},cid_number:{type:_0x78c1x5[_0x2101[6]],allowNull:true},callingpres:{type:_0x78c1x5.ENUM(_0x2101[46],_0x2101[47],_0x2101[48],_0x2101[49],_0x2101[50],_0x2101[51],_0x2101[52],_0x2101[53]),allowNull:true},mohinterpret:{type:_0x78c1x5[_0x2101[6]],allowNull:true},mohsuggest:{type:_0x78c1x5[_0x2101[6]],allowNull:true},parkinglot:{type:_0x78c1x5[_0x2101[6]],allowNull:true},hasvoicemail:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},subscribemwi:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},vmexten:{type:_0x78c1x5[_0x2101[6]],allowNull:true},description:{type:_0x78c1x5[_0x2101[6]],allowNull:true},autoframing:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},limitonpeers:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[30]},rtpkeepalive:{type:_0x78c1x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0x78c1x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},ignoresdpversion:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},allowtransfer:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},dynamic:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true},encryption:{type:_0x78c1x5.ENUM(_0x2101[30],_0x2101[31]),allowNull:true,defaultValue:_0x2101[31]},registry:{type:_0x78c1x5[_0x2101[6]],allowNull:true}},{tableName:_0x2101[54],defaultScope:{where:{role:_0x2101[55]}},instanceMethods:{authenticate:function(_0x78c1xa){return this[_0x2101[13]](_0x78c1xa)===this[_0x2101[12]]},makeSalt:function(){return crypto[_0x2101[57]](16).toString(_0x2101[56])},encryptPassword:function(_0x78c1x8){if(!_0x78c1x8||!this[_0x2101[10]]){return _0x2101[58]};var _0x78c1xb= new Buffer(this[_0x2101[10]],_0x2101[56]);return crypto[_0x2101[59]](_0x78c1x8,_0x78c1xb,10000,64).toString(_0x2101[56]);},md5Password:function(_0x78c1x8){if(!_0x78c1x8){return _0x2101[58]};return md5(_0x78c1x8);}},associate:function(_0x78c1xc){}});return _0x78c1x6;};
\ No newline at end of file
-var _0x9df6=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x69\x67\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x72\x69\x67\x67\x65\x72\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x9df6[0]);module[_0x9df6[1]]=function(_0x827cx2,_0x827cx3){var _0x827cx4=_0x827cx2[_0x9df6[7]](_0x9df6[2],{name:_0x827cx3[_0x9df6[3]],channel:_0x827cx3[_0x9df6[3]],description:_0x827cx3[_0x9df6[3]],conditions:_0x827cx3[_0x9df6[4]],actions:_0x827cx3[_0x9df6[4]],status:{type:_0x827cx3[_0x9df6[5]],defaultValue:false}},{tableName:_0x9df6[6]});return _0x827cx4;};
\ No newline at end of file
+var _0x3646=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x69\x67\x67\x65\x72","\x53\x54\x52\x49\x4E\x47","\x54\x45\x58\x54","\x42\x4F\x4F\x4C\x45\x41\x4E","\x74\x72\x69\x67\x67\x65\x72\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3646[0]);module[_0x3646[1]]=function(_0x1d18x2,_0x1d18x3){var _0x1d18x4=_0x1d18x2[_0x3646[7]](_0x3646[2],{name:_0x1d18x3[_0x3646[3]],channel:_0x1d18x3[_0x3646[3]],description:_0x1d18x3[_0x3646[3]],conditions:_0x1d18x3[_0x3646[4]],actions:_0x1d18x3[_0x3646[4]],status:{type:_0x1d18x3[_0x3646[5]],defaultValue:false}},{tableName:_0x3646[6]});return _0x1d18x4;};
\ No newline at end of file
-var _0xf634=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x75\x6E\x6B","\x53\x54\x52\x49\x4E\x47","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x75\x73\x65\x72","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x74\x72\x75\x6E\x6B\x73","\x54\x72\x75\x6E\x6B\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xf634[0];var crypto=require(_0xf634[1]);var md5=require(_0xf634[2]);var _=require(_0xf634[3]);module[_0xf634[4]]=function(_0xc4e3x4,_0xc4e3x5){var _0xc4e3x6=_0xc4e3x4[_0xf634[39]](_0xf634[5],{name:{type:_0xc4e3x5[_0xf634[6]],unique:true,validate:{notEmpty:true}},port:{type:_0xc4e3x5.INTEGER(5),allowNull:true},defaultuser:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},host:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[7]},type:{type:_0xc4e3x5.ENUM(_0xf634[8],_0xf634[9],_0xf634[10]),allowNull:true,defaultValue:_0xf634[8]},context:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[11]},permit:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},deny:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},secret:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},transport:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[12]},dtmfmode:{type:_0xc4e3x5.ENUM(_0xf634[13],_0xf634[14],_0xf634[15],_0xf634[16],_0xf634[17]),allowNull:true,defaultValue:_0xf634[13]},directmedia:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19],_0xf634[20],_0xf634[21]),allowNull:true,defaultValue:_0xf634[19]},nat:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[22]},language:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[23]},disallow:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},allow:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[24]},insecure:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[25]},trustrpid:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[19]},progressinband:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19],_0xf634[26]),allowNull:true},promiscredir:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},useclientcode:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},accountcode:{type:_0xc4e3x5.INTEGER(11),allowNull:true},setvar:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},otherFields:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},callerid:{type:_0xc4e3x5[_0xf634[6]],allowNull:true,defaultValue:_0xf634[27]},amaflags:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},callcounter:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[18]},busylevel:{type:_0xc4e3x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},allowsubscribe:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},maxcallbitrate:{type:_0xc4e3x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},t38pt_usertpsource:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},regexten:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},fromdomain:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},fromuser:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},qualify:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[18]},defaultip:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},rtptimeout:{type:_0xc4e3x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xc4e3x5.INTEGER(11),allowNull:true},sendrpid:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[19]},outboundproxy:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},callbackextension:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},qualifyfreq:{type:_0xc4e3x5.INTEGER(11),allowNull:true},constantssrc:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},contactpermit:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},contactdeny:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},usereqphone:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[19]},textsupport:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},faxdetect:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},buggymwi:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},auth:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},fullname:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},trunkname:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},cid_number:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},callingpres:{type:_0xc4e3x5.ENUM(_0xf634[28],_0xf634[29],_0xf634[30],_0xf634[31],_0xf634[32],_0xf634[33],_0xf634[34],_0xf634[35]),allowNull:true},mohinterpret:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},mohsuggest:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},subscribemwi:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},vmexten:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},description:{type:_0xc4e3x5[_0xf634[6]],allowNull:true},autoframing:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},limitonpeers:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[18]},rtpkeepalive:{type:_0xc4e3x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xc4e3x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},ignoresdpversion:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},allowtransfer:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},dynamic:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true},encryption:{type:_0xc4e3x5.ENUM(_0xf634[18],_0xf634[19]),allowNull:true,defaultValue:_0xf634[19]},registry:{type:_0xc4e3x5[_0xf634[6]],allowNull:true}},{tableName:_0xf634[36],getterMethods:{},associate:function(_0xc4e3x7){_0xc4e3x6[_0xf634[38]](_0xc4e3x7.VoiceExtension,{foreignKey:_0xf634[37]})}});return _0xc4e3x6;};
\ No newline at end of file
+var _0xe4fe=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x54\x72\x75\x6E\x6B","\x53\x54\x52\x49\x4E\x47","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x75\x73\x65\x72","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x74\x72\x75\x6E\x6B\x73","\x54\x72\x75\x6E\x6B\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xe4fe[0];var crypto=require(_0xe4fe[1]);var md5=require(_0xe4fe[2]);var _=require(_0xe4fe[3]);module[_0xe4fe[4]]=function(_0x6c58x4,_0x6c58x5){var _0x6c58x6=_0x6c58x4[_0xe4fe[39]](_0xe4fe[5],{name:{type:_0x6c58x5[_0xe4fe[6]],unique:true,validate:{notEmpty:true}},port:{type:_0x6c58x5.INTEGER(5),allowNull:true},defaultuser:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},host:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[7]},type:{type:_0x6c58x5.ENUM(_0xe4fe[8],_0xe4fe[9],_0xe4fe[10]),allowNull:true,defaultValue:_0xe4fe[8]},context:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[11]},permit:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},deny:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},secret:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},transport:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[12]},dtmfmode:{type:_0x6c58x5.ENUM(_0xe4fe[13],_0xe4fe[14],_0xe4fe[15],_0xe4fe[16],_0xe4fe[17]),allowNull:true,defaultValue:_0xe4fe[13]},directmedia:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19],_0xe4fe[20],_0xe4fe[21]),allowNull:true,defaultValue:_0xe4fe[19]},nat:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[22]},language:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[23]},disallow:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},allow:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[24]},insecure:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[25]},trustrpid:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[19]},progressinband:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19],_0xe4fe[26]),allowNull:true},promiscredir:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},useclientcode:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},accountcode:{type:_0x6c58x5.INTEGER(11),allowNull:true},setvar:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},otherFields:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},callerid:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true,defaultValue:_0xe4fe[27]},amaflags:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},callcounter:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[18]},busylevel:{type:_0x6c58x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},allowsubscribe:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},maxcallbitrate:{type:_0x6c58x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},t38pt_usertpsource:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},regexten:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},fromdomain:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},fromuser:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},qualify:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[18]},defaultip:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},rtptimeout:{type:_0x6c58x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0x6c58x5.INTEGER(11),allowNull:true},sendrpid:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[19]},outboundproxy:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},callbackextension:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},qualifyfreq:{type:_0x6c58x5.INTEGER(11),allowNull:true},constantssrc:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},contactpermit:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},contactdeny:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},usereqphone:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[19]},textsupport:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},faxdetect:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},buggymwi:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},auth:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},fullname:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},trunkname:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},cid_number:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},callingpres:{type:_0x6c58x5.ENUM(_0xe4fe[28],_0xe4fe[29],_0xe4fe[30],_0xe4fe[31],_0xe4fe[32],_0xe4fe[33],_0xe4fe[34],_0xe4fe[35]),allowNull:true},mohinterpret:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},mohsuggest:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},subscribemwi:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},vmexten:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},description:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true},autoframing:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},limitonpeers:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[18]},rtpkeepalive:{type:_0x6c58x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0x6c58x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},ignoresdpversion:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},allowtransfer:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},dynamic:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true},encryption:{type:_0x6c58x5.ENUM(_0xe4fe[18],_0xe4fe[19]),allowNull:true,defaultValue:_0xe4fe[19]},registry:{type:_0x6c58x5[_0xe4fe[6]],allowNull:true}},{tableName:_0xe4fe[36],getterMethods:{},associate:function(_0x6c58x7){_0x6c58x6[_0xe4fe[38]](_0x6c58x7.VoiceExtension,{foreignKey:_0xe4fe[37]})}});return _0x6c58x6;};
\ No newline at end of file
-var _0x6e35=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x64\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x75\x70\x64\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];_0x6e35[0];module[_0x6e35[1]]=function(_0xe2e8x1,_0xe2e8x2){var _0xe2e8x3=_0xe2e8x1[_0x6e35[5]](_0x6e35[2],{name:_0xe2e8x2[_0x6e35[3]],description:_0xe2e8x2[_0x6e35[3]]},{tableName:_0x6e35[4]});return _0xe2e8x3;};
\ No newline at end of file
+var _0x34e4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x64\x61\x74\x65","\x53\x54\x52\x49\x4E\x47","\x75\x70\x64\x61\x74\x65\x73","\x64\x65\x66\x69\x6E\x65"];_0x34e4[0];module[_0x34e4[1]]=function(_0x80dfx1,_0x80dfx2){var _0x80dfx3=_0x80dfx1[_0x34e4[5]](_0x34e4[2],{name:_0x80dfx2[_0x34e4[3]],description:_0x80dfx2[_0x34e4[3]]},{tableName:_0x34e4[4]});return _0x80dfx3;};
\ No newline at end of file
-var _0x19eb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x6C\x6F\x61\x64","\x53\x54\x52\x49\x4E\x47","","\x54\x68\x65\x20\x6E\x61\x6D\x65\x20\x63\x61\x6E\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79\x21","\x46\x4C\x4F\x41\x54","\x42\x49\x47\x49\x4E\x54","\x49\x4E\x54\x45\x47\x45\x52","\x75\x70\x6C\x6F\x61\x64","\x64\x65\x66\x69\x6E\x65"];_0x19eb[0];module[_0x19eb[1]]=function(_0xb96cx1,_0xb96cx2){var _0xb96cx3=_0xb96cx1[_0x19eb[10]](_0x19eb[2],{name:_0xb96cx2[_0x19eb[3]],save_name:_0xb96cx2[_0x19eb[3]],display_name:{type:_0xb96cx2[_0x19eb[3]],allowNull:false,defaultValue:_0x19eb[4],validate:{notEmpty:{msg:_0x19eb[5]}}},description:_0xb96cx2[_0x19eb[3]],original_path:_0xb96cx2[_0x19eb[3]],original_format:_0xb96cx2[_0x19eb[3]],original_duration:_0xb96cx2[_0x19eb[6]],original_sampleCount:_0xb96cx2[_0x19eb[7]],original_channelCount:_0xb96cx2[_0x19eb[8]],original_bitRate:_0xb96cx2[_0x19eb[7]],original_sampleRate:_0xb96cx2[_0x19eb[8]],converted_path:_0xb96cx2[_0x19eb[3]],converted_format:_0xb96cx2[_0x19eb[3]],converted_duration:_0xb96cx2[_0x19eb[6]],converted_sampleCount:_0xb96cx2[_0x19eb[7]],converted_channelCount:_0xb96cx2[_0x19eb[8]],converted_bitRate:_0xb96cx2[_0x19eb[7]],converted_sampleRate:_0xb96cx2[_0x19eb[8]]},{tableName:_0x19eb[9]});return _0xb96cx3;};
\ No newline at end of file
+var _0x256c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x55\x70\x6C\x6F\x61\x64","\x53\x54\x52\x49\x4E\x47","","\x54\x68\x65\x20\x6E\x61\x6D\x65\x20\x63\x61\x6E\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79\x21","\x46\x4C\x4F\x41\x54","\x42\x49\x47\x49\x4E\x54","\x49\x4E\x54\x45\x47\x45\x52","\x75\x70\x6C\x6F\x61\x64","\x64\x65\x66\x69\x6E\x65"];_0x256c[0];module[_0x256c[1]]=function(_0xbf5ax1,_0xbf5ax2){var _0xbf5ax3=_0xbf5ax1[_0x256c[10]](_0x256c[2],{name:_0xbf5ax2[_0x256c[3]],save_name:_0xbf5ax2[_0x256c[3]],display_name:{type:_0xbf5ax2[_0x256c[3]],allowNull:false,defaultValue:_0x256c[4],validate:{notEmpty:{msg:_0x256c[5]}}},description:_0xbf5ax2[_0x256c[3]],original_path:_0xbf5ax2[_0x256c[3]],original_format:_0xbf5ax2[_0x256c[3]],original_duration:_0xbf5ax2[_0x256c[6]],original_sampleCount:_0xbf5ax2[_0x256c[7]],original_channelCount:_0xbf5ax2[_0x256c[8]],original_bitRate:_0xbf5ax2[_0x256c[7]],original_sampleRate:_0xbf5ax2[_0x256c[8]],converted_path:_0xbf5ax2[_0x256c[3]],converted_format:_0xbf5ax2[_0x256c[3]],converted_duration:_0xbf5ax2[_0x256c[6]],converted_sampleCount:_0xbf5ax2[_0x256c[7]],converted_channelCount:_0xbf5ax2[_0x256c[8]],converted_bitRate:_0xbf5ax2[_0x256c[7]],converted_sampleRate:_0xbf5ax2[_0x256c[8]]},{tableName:_0x256c[9]});return _0xbf5ax3;};
\ No newline at end of file
-var _0x6d91=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x65\x6D\x61\x69\x6C","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x73\x61\x6C\x74","\x6D\x61\x6B\x65\x53\x61\x6C\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x65\x6E\x63\x72\x79\x70\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x6D\x64\x35\x73\x65\x63\x72\x65\x74","\x3A\x61\x73\x74\x65\x72\x69\x73\x6B\x3A","\x6D\x64\x35\x50\x61\x73\x73\x77\x6F\x72\x64","\x6C\x6F\x63\x61\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x6C","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x61\x63\x63\x65\x70\x74","\x72\x65\x66\x75\x73\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x75\x61\x63","\x75\x61\x73","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x75\x73\x65\x72\x73","\x62\x61\x73\x65\x36\x34","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","","\x70\x62\x6B\x64\x66\x32\x53\x79\x6E\x63","\x68\x61\x73\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x64\x65\x66\x69\x6E\x65"];_0x6d91[0];var crypto=require(_0x6d91[1]);var md5=require(_0x6d91[2]);var _=require(_0x6d91[3]);module[_0x6d91[4]]=function(_0xab3dx4,_0xab3dx5){var _0xab3dx6=_0xab3dx4[_0x6d91[80]](_0x6d91[5],{name:{type:_0xab3dx5[_0x6d91[6]],unique:true,validate:{notEmpty:true},set:function(_0xab3dx7){this[_0x6d91[8]](_0x6d91[7],_0xab3dx7);this[_0x6d91[8]](_0x6d91[9],_0xab3dx7);}},email:{type:_0xab3dx5[_0x6d91[6]],unique:true,set:function(_0xab3dx8){if(_0xab3dx8){this[_0x6d91[8]](_0x6d91[10],_0xab3dx8[_0x6d91[11]]())}},defaultValue:null},role:{type:_0xab3dx5.ENUM(_0x6d91[12],_0x6d91[13],_0x6d91[14],_0x6d91[15])},password:{type:_0xab3dx5[_0x6d91[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xab3dx9){this[_0x6d91[16]]=this[_0x6d91[17]]();this[_0x6d91[8]](_0x6d91[18],this[_0x6d91[19]](_0xab3dx9));this[_0x6d91[8]](_0x6d91[20],this[_0x6d91[22]](this[_0x6d91[7]]+_0x6d91[21]+_0xab3dx9));}},provider:{type:_0xab3dx5[_0x6d91[6]],defaultValue:_0x6d91[23]},internal:{type:_0xab3dx5.INTEGER(11),unique:true,set:function(_0xab3dxa){this[_0x6d91[8]](_0x6d91[24],_0xab3dxa);this[_0x6d91[8]](_0x6d91[25],_0xab3dxa);}},salt:{type:_0xab3dx5[_0x6d91[6]]},phone:{type:_0xab3dx5[_0x6d91[6]]},mobile:{type:_0xab3dx5[_0x6d91[6]]},address:{type:_0xab3dx5[_0x6d91[6]]},zipcode:{type:_0xab3dx5[_0x6d91[6]]},userpic:{type:_0xab3dx5[_0x6d91[6]]},city:{type:_0xab3dx5[_0x6d91[6]]},country:{type:_0xab3dx5[_0x6d91[6]]},facebookUserId:{type:_0xab3dx5[_0x6d91[26]]},twitterUserId:{type:_0xab3dx5[_0x6d91[26]]},twitterKey:{type:_0xab3dx5[_0x6d91[6]]},twitterSecret:{type:_0xab3dx5[_0x6d91[6]]},github:{type:_0xab3dx5[_0x6d91[6]]},openId:{type:_0xab3dx5[_0x6d91[6]]},online:{type:_0xab3dx5[_0x6d91[27]],defaultValue:false},lastLoginAt:{type:_0xab3dx5[_0x6d91[28]]},ipaddr:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},port:{type:_0xab3dx5.INTEGER(5),allowNull:true},regseconds:{type:_0xab3dx5.INTEGER(11),allowNull:true},defaultuser:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},fullcontact:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},regserver:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},useragent:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},lastms:{type:_0xab3dx5.INTEGER(11),allowNull:true},host:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[29]},type:{type:_0xab3dx5.ENUM(_0x6d91[30],_0x6d91[13],_0x6d91[31]),allowNull:true,defaultValue:_0x6d91[30]},context:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[32]},permit:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},deny:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},secret:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},md5secret:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},remotesecret:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},transport:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[33]},dtmfmode:{type:_0xab3dx5.ENUM(_0x6d91[34],_0x6d91[35],_0x6d91[36],_0x6d91[37],_0x6d91[38]),allowNull:true,defaultValue:_0x6d91[34]},directmedia:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40],_0x6d91[41],_0x6d91[42]),allowNull:true,defaultValue:_0x6d91[40]},nat:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[43]},callgroup:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},pickupgroup:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},language:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[44]},disallow:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[45]},allow:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[46]},insecure:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[47]},trustrpid:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[40]},progressinband:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40],_0x6d91[48]),allowNull:true},promiscredir:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},useclientcode:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},accountcode:{type:_0xab3dx5.INTEGER(11),allowNull:true},setvar:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},callerid:{type:_0xab3dx5[_0x6d91[6]],allowNull:true,defaultValue:_0x6d91[49]},amaflags:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},callcounter:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[39]},busylevel:{type:_0xab3dx5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},allowsubscribe:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},videosupport:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},maxcallbitrate:{type:_0xab3dx5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},mailbox:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0xab3dx5.ENUM(_0x6d91[50],_0x6d91[51],_0x6d91[52]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0xab3dx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0xab3dx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0xab3dx5.ENUM(_0x6d91[53],_0x6d91[54]),allowNull:true},t38pt_usertpsource:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},regexten:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},fromdomain:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},fromuser:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},qualify:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[39]},defaultip:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},rtptimeout:{type:_0xab3dx5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xab3dx5.INTEGER(11),allowNull:true},sendrpid:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[40]},outboundproxy:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},callbackextension:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},timert1:{type:_0xab3dx5.INTEGER(11),allowNull:true},timerb:{type:_0xab3dx5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xab3dx5.INTEGER(11),allowNull:true},constantssrc:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},contactpermit:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},contactdeny:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},usereqphone:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[40]},textsupport:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},faxdetect:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},buggymwi:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},auth:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},fullname:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},trunkname:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},cid_number:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},callingpres:{type:_0xab3dx5.ENUM(_0x6d91[55],_0x6d91[56],_0x6d91[57],_0x6d91[58],_0x6d91[59],_0x6d91[60],_0x6d91[61],_0x6d91[62]),allowNull:true},mohinterpret:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},mohsuggest:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},parkinglot:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},hasvoicemail:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},subscribemwi:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},vmexten:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},description:{type:_0xab3dx5[_0x6d91[6]],allowNull:true},autoframing:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},limitonpeers:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[39]},rtpkeepalive:{type:_0xab3dx5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xab3dx5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},ignoresdpversion:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},allowtransfer:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},dynamic:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true},encryption:{type:_0xab3dx5.ENUM(_0x6d91[39],_0x6d91[40]),allowNull:true,defaultValue:_0x6d91[40]},registry:{type:_0xab3dx5[_0x6d91[6]],allowNull:true}},{tableName:_0x6d91[63],getterMethods:{},instanceMethods:{authenticate:function(_0xab3dxb){return this[_0x6d91[19]](_0xab3dxb)===this[_0x6d91[18]]},makeSalt:function(){return crypto[_0x6d91[65]](16).toString(_0x6d91[64])},encryptPassword:function(_0xab3dx9){if(!_0xab3dx9||!this[_0x6d91[16]]){return _0x6d91[66]};var _0xab3dxc= new Buffer(this[_0x6d91[16]],_0x6d91[64]);return crypto[_0x6d91[67]](_0xab3dx9,_0xab3dxc,10000,64).toString(_0x6d91[64]);},md5Password:function(_0xab3dx9){if(!_0xab3dx9){return _0x6d91[66]};return md5(_0xab3dx9);}},associate:function(_0xab3dxd){_0xab3dx6[_0x6d91[68]](_0xab3dxd.ChatMessage);_0xab3dx6[_0x6d91[68]](_0xab3dxd.Contact);_0xab3dx6[_0x6d91[70]](_0xab3dxd.Module,{through:_0x6d91[69]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.Channel,{through:_0x6d91[71]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.Team,{through:_0xab3dxd[_0x6d91[72]]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.ChatRoom,{through:_0xab3dxd[_0x6d91[73]]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.MailQueue,{through:_0xab3dxd[_0x6d91[74]]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.ChatQueue,{through:_0xab3dxd[_0x6d91[75]]});_0xab3dx6[_0x6d91[70]](_0xab3dxd.VoiceQueue,{through:_0xab3dxd[_0x6d91[76]]});_0xab3dx6[_0x6d91[68]](_0xab3dxd.VoiceExtension,{foreignKey:_0x6d91[77],as:_0x6d91[78],onDelete:_0x6d91[79]});}});return _0xab3dx6;};
\ No newline at end of file
+var _0x2478=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x64\x35","\x6C\x6F\x64\x61\x73\x68","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72","\x53\x54\x52\x49\x4E\x47","\x6E\x61\x6D\x65","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x65\x6D\x61\x69\x6C","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65","\x73\x61\x6C\x74","\x6D\x61\x6B\x65\x53\x61\x6C\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x65\x6E\x63\x72\x79\x70\x74\x50\x61\x73\x73\x77\x6F\x72\x64","\x6D\x64\x35\x73\x65\x63\x72\x65\x74","\x3A\x61\x73\x74\x65\x72\x69\x73\x6B\x3A","\x6D\x64\x35\x50\x61\x73\x73\x77\x6F\x72\x64","\x6C\x6F\x63\x61\x6C","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x64\x79\x6E\x61\x6D\x69\x63","\x66\x72\x69\x65\x6E\x64","\x70\x65\x65\x72","\x66\x72\x6F\x6D\x2D\x73\x69\x70","\x75\x64\x70","\x72\x66\x63\x32\x38\x33\x33","\x69\x6E\x66\x6F","\x73\x68\x6F\x72\x74\x69\x6E\x66\x6F","\x69\x6E\x62\x61\x6E\x64","\x61\x75\x74\x6F","\x79\x65\x73","\x6E\x6F","\x6E\x6F\x6E\x61\x74","\x75\x70\x64\x61\x74\x65","\x66\x6F\x72\x63\x65\x5F\x72\x70\x6F\x72\x74\x2C\x63\x6F\x6D\x65\x64\x69\x61","\x65\x6E","\x61\x6C\x6C","\x61\x6C\x61\x77\x3B\x75\x6C\x61\x77\x3B\x67\x73\x6D","\x70\x6F\x72\x74\x2C\x69\x6E\x76\x69\x74\x65","\x6E\x65\x76\x65\x72","\x22\x22\x20\x3C\x3E","\x61\x63\x63\x65\x70\x74","\x72\x65\x66\x75\x73\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x75\x61\x63","\x75\x61\x73","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x41\x4C\x4C\x4F\x57\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x4E\x4F\x54\x5F\x53\x43\x52\x45\x45\x4E\x45\x44","\x50\x52\x4F\x48\x49\x42\x5F\x50\x41\x53\x53\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42\x5F\x46\x41\x49\x4C\x45\x44\x5F\x53\x43\x52\x45\x45\x4E","\x50\x52\x4F\x48\x49\x42","\x75\x73\x65\x72\x73","\x62\x61\x73\x65\x36\x34","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","","\x70\x62\x6B\x64\x66\x32\x53\x79\x6E\x63","\x68\x61\x73\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x6F\x64\x75\x6C\x65\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x64\x65\x66\x69\x6E\x65"];_0x2478[0];var crypto=require(_0x2478[1]);var md5=require(_0x2478[2]);var _=require(_0x2478[3]);module[_0x2478[4]]=function(_0xd0e2x4,_0xd0e2x5){var _0xd0e2x6=_0xd0e2x4[_0x2478[80]](_0x2478[5],{name:{type:_0xd0e2x5[_0x2478[6]],unique:true,validate:{notEmpty:true},set:function(_0xd0e2x7){this[_0x2478[8]](_0x2478[7],_0xd0e2x7);this[_0x2478[8]](_0x2478[9],_0xd0e2x7);}},email:{type:_0xd0e2x5[_0x2478[6]],unique:true,set:function(_0xd0e2x8){if(_0xd0e2x8){this[_0x2478[8]](_0x2478[10],_0xd0e2x8[_0x2478[11]]())}},defaultValue:null},role:{type:_0xd0e2x5.ENUM(_0x2478[12],_0x2478[13],_0x2478[14],_0x2478[15])},password:{type:_0xd0e2x5[_0x2478[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xd0e2x9){this[_0x2478[16]]=this[_0x2478[17]]();this[_0x2478[8]](_0x2478[18],this[_0x2478[19]](_0xd0e2x9));this[_0x2478[8]](_0x2478[20],this[_0x2478[22]](this[_0x2478[7]]+_0x2478[21]+_0xd0e2x9));}},provider:{type:_0xd0e2x5[_0x2478[6]],defaultValue:_0x2478[23]},internal:{type:_0xd0e2x5.INTEGER(11),unique:true,set:function(_0xd0e2xa){this[_0x2478[8]](_0x2478[24],_0xd0e2xa);this[_0x2478[8]](_0x2478[25],_0xd0e2xa);}},salt:{type:_0xd0e2x5[_0x2478[6]]},phone:{type:_0xd0e2x5[_0x2478[6]]},mobile:{type:_0xd0e2x5[_0x2478[6]]},address:{type:_0xd0e2x5[_0x2478[6]]},zipcode:{type:_0xd0e2x5[_0x2478[6]]},userpic:{type:_0xd0e2x5[_0x2478[6]]},city:{type:_0xd0e2x5[_0x2478[6]]},country:{type:_0xd0e2x5[_0x2478[6]]},facebookUserId:{type:_0xd0e2x5[_0x2478[26]]},twitterUserId:{type:_0xd0e2x5[_0x2478[26]]},twitterKey:{type:_0xd0e2x5[_0x2478[6]]},twitterSecret:{type:_0xd0e2x5[_0x2478[6]]},github:{type:_0xd0e2x5[_0x2478[6]]},openId:{type:_0xd0e2x5[_0x2478[6]]},online:{type:_0xd0e2x5[_0x2478[27]],defaultValue:false},lastLoginAt:{type:_0xd0e2x5[_0x2478[28]]},ipaddr:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},port:{type:_0xd0e2x5.INTEGER(5),allowNull:true},regseconds:{type:_0xd0e2x5.INTEGER(11),allowNull:true},defaultuser:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},fullcontact:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},regserver:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},useragent:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},lastms:{type:_0xd0e2x5.INTEGER(11),allowNull:true},host:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[29]},type:{type:_0xd0e2x5.ENUM(_0x2478[30],_0x2478[13],_0x2478[31]),allowNull:true,defaultValue:_0x2478[30]},context:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[32]},permit:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},deny:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},secret:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},md5secret:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},remotesecret:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},transport:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[33]},dtmfmode:{type:_0xd0e2x5.ENUM(_0x2478[34],_0x2478[35],_0x2478[36],_0x2478[37],_0x2478[38]),allowNull:true,defaultValue:_0x2478[34]},directmedia:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40],_0x2478[41],_0x2478[42]),allowNull:true,defaultValue:_0x2478[40]},nat:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[43]},callgroup:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},pickupgroup:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},language:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[44]},disallow:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[45]},allow:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[46]},insecure:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[47]},trustrpid:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[40]},progressinband:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40],_0x2478[48]),allowNull:true},promiscredir:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},useclientcode:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},accountcode:{type:_0xd0e2x5.INTEGER(11),allowNull:true},setvar:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},callerid:{type:_0xd0e2x5[_0x2478[6]],allowNull:true,defaultValue:_0x2478[49]},amaflags:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},callcounter:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[39]},busylevel:{type:_0xd0e2x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},allowsubscribe:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},videosupport:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},maxcallbitrate:{type:_0xd0e2x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},mailbox:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0xd0e2x5.ENUM(_0x2478[50],_0x2478[51],_0x2478[52]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0xd0e2x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0xd0e2x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0xd0e2x5.ENUM(_0x2478[53],_0x2478[54]),allowNull:true},t38pt_usertpsource:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},regexten:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},fromdomain:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},fromuser:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},qualify:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[39]},defaultip:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},rtptimeout:{type:_0xd0e2x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xd0e2x5.INTEGER(11),allowNull:true},sendrpid:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[40]},outboundproxy:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},callbackextension:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},timert1:{type:_0xd0e2x5.INTEGER(11),allowNull:true},timerb:{type:_0xd0e2x5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xd0e2x5.INTEGER(11),allowNull:true},constantssrc:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},contactpermit:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},contactdeny:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},usereqphone:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[40]},textsupport:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},faxdetect:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},buggymwi:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},auth:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},fullname:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},trunkname:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},cid_number:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},callingpres:{type:_0xd0e2x5.ENUM(_0x2478[55],_0x2478[56],_0x2478[57],_0x2478[58],_0x2478[59],_0x2478[60],_0x2478[61],_0x2478[62]),allowNull:true},mohinterpret:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},mohsuggest:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},parkinglot:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},hasvoicemail:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},subscribemwi:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},vmexten:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},description:{type:_0xd0e2x5[_0x2478[6]],allowNull:true},autoframing:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},limitonpeers:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[39]},rtpkeepalive:{type:_0xd0e2x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xd0e2x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},ignoresdpversion:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},allowtransfer:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},dynamic:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true},encryption:{type:_0xd0e2x5.ENUM(_0x2478[39],_0x2478[40]),allowNull:true,defaultValue:_0x2478[40]},registry:{type:_0xd0e2x5[_0x2478[6]],allowNull:true}},{tableName:_0x2478[63],defaultScope:{where:{$or:[{role:_0x2478[12]},{role:_0x2478[13]},{role:_0x2478[14]}]}},instanceMethods:{authenticate:function(_0xd0e2xb){return this[_0x2478[19]](_0xd0e2xb)===this[_0x2478[18]]},makeSalt:function(){return crypto[_0x2478[65]](16).toString(_0x2478[64])},encryptPassword:function(_0xd0e2x9){if(!_0xd0e2x9||!this[_0x2478[16]]){return _0x2478[66]};var _0xd0e2xc= new Buffer(this[_0x2478[16]],_0x2478[64]);return crypto[_0x2478[67]](_0xd0e2x9,_0xd0e2xc,10000,64).toString(_0x2478[64]);},md5Password:function(_0xd0e2x9){if(!_0xd0e2x9){return _0x2478[66]};return md5(_0xd0e2x9);}},associate:function(_0xd0e2xd){_0xd0e2x6[_0x2478[68]](_0xd0e2xd.ChatMessage);_0xd0e2x6[_0x2478[68]](_0xd0e2xd.Contact);_0xd0e2x6[_0x2478[70]](_0xd0e2xd.Module,{through:_0x2478[69]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.Channel,{through:_0x2478[71]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.Team,{through:_0xd0e2xd[_0x2478[72]]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.ChatRoom,{through:_0xd0e2xd[_0x2478[73]]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.MailQueue,{through:_0xd0e2xd[_0x2478[74]]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.ChatQueue,{through:_0xd0e2xd[_0x2478[75]]});_0xd0e2x6[_0x2478[70]](_0xd0e2xd.VoiceQueue,{through:_0xd0e2xd[_0x2478[76]]});_0xd0e2x6[_0x2478[68]](_0xd0e2xd.VoiceExtension,{foreignKey:_0x2478[77],as:_0x2478[78],onDelete:_0x2478[79]});}});return _0xd0e2x6;};
\ No newline at end of file
-var _0x2f06=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x2f06[0]);module[_0x2f06[1]]=function(_0x8662x2,_0x8662x3){var _0x8662x4=_0x8662x2[_0x2f06[4]](_0x2f06[2],{},{tableName:_0x2f06[3]});return _0x8662x4;};
\ No newline at end of file
+var _0xc8f9=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xc8f9[0]);module[_0xc8f9[1]]=function(_0x9025x2,_0x9025x3){var _0x9025x4=_0x9025x2[_0xc8f9[4]](_0xc8f9[2],{},{tableName:_0xc8f9[3]});return _0x9025x4;};
\ No newline at end of file
-var _0x167b=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x167b[0]);module[_0x167b[1]]=function(_0xcb79x2,_0xcb79x3){var _0xcb79x4=_0xcb79x2[_0x167b[6]](_0x167b[2],{LastMessageRead:{type:_0xcb79x3[_0x167b[3]],defaultValue:0},Hide:{type:_0xcb79x3[_0x167b[4]],defaultValue:false}},{tableName:_0x167b[5]});return _0xcb79x4;};
\ No newline at end of file
+var _0x3f3d=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x49\x4E\x54\x45\x47\x45\x52","\x42\x4F\x4F\x4C\x45\x41\x4E","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3f3d[0]);module[_0x3f3d[1]]=function(_0x8001x2,_0x8001x3){var _0x8001x4=_0x8001x2[_0x3f3d[6]](_0x3f3d[2],{LastMessageRead:{type:_0x8001x3[_0x3f3d[3]],defaultValue:0},Hide:{type:_0x8001x3[_0x3f3d[4]],defaultValue:false}},{tableName:_0x3f3d[5]});return _0x8001x4;};
\ No newline at end of file
-var _0x3516=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x3516[0]);module[_0x3516[1]]=function(_0xa2a3x2,_0xa2a3x3){var _0xa2a3x4=_0xa2a3x2[_0x3516[4]](_0x3516[2],{},{tableName:_0x3516[3]});return _0xa2a3x4;};
\ No newline at end of file
+var _0x8424=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x8424[0]);module[_0x8424[1]]=function(_0x5979x2,_0x5979x3){var _0x5979x4=_0x5979x2[_0x8424[4]](_0x8424[2],{},{tableName:_0x8424[3]});return _0x5979x4;};
\ No newline at end of file
-var _0x1b02=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x1b02[0]);module[_0x1b02[1]]=function(_0x86b6x2,_0x86b6x3){var _0x86b6x4=_0x86b6x2[_0x1b02[4]](_0x1b02[2],{},{tableName:_0x1b02[3]});return _0x86b6x4;};
\ No newline at end of file
+var _0xb21a=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xb21a[0]);module[_0xb21a[1]]=function(_0x5e59x2,_0x5e59x3){var _0x5e59x4=_0x5e59x2[_0xb21a[4]](_0xb21a[2],{},{tableName:_0xb21a[3]});return _0x5e59x4;};
\ No newline at end of file
-var _0xead9=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xead9[0]);module[_0xead9[1]]=function(_0xc99dx2,_0xc99dx3){var _0xc99dx4=_0xc99dx2[_0xead9[4]](_0xead9[2],{},{tableName:_0xead9[3]});return _0xc99dx4;};
\ No newline at end of file
+var _0xab66=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x54\x65\x61\x6D","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xab66[0]);module[_0xab66[1]]=function(_0xf84ax2,_0xf84ax3){var _0xf84ax4=_0xf84ax2[_0xab66[4]](_0xab66[2],{},{tableName:_0xab66[3]});return _0xf84ax4;};
\ No newline at end of file
-var _0x7fb6=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x30","\x6C\x61\x73\x74\x63\x61\x6C\x6C","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x46\x52\x4F\x4D\x5F\x55\x4E\x49\x58\x54\x49\x4D\x45","\x25\x59\x2D\x25\x6D\x2D\x25\x64\x20\x25\x48\x3A\x25\x69\x3A\x25\x73","\x66\x6E","\x73\x74\x61\x74\x75\x73","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x4E\x4F\x54\x5F\x49\x4E\x55\x53\x45","\x31","\x49\x4E\x55\x53\x45","\x32","\x42\x55\x53\x59","\x33","\x49\x4E\x56\x41\x4C\x49\x44","\x34","\x55\x4E\x41\x56\x41\x49\x4C\x41\x42\x4C\x45","\x35","\x52\x49\x4E\x47\x49\x4E\x47","\x36","\x52\x49\x4E\x47\x49\x4E\x55\x53\x45","\x37","\x4F\x4E\x48\x4F\x4C\x44","\x38","\x73\x74\x61\x74\x75\x73\x64\x65\x73\x63","\x73\x74\x61\x74\x75\x73\x41\x74","\x4E\x4F\x57","\x70\x61\x75\x73\x65\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0x7fb6[0]);module[_0x7fb6[1]]=function(_0xc82ex2,_0xc82ex3){var _0xc82ex4=_0xc82ex2[_0x7fb6[37]](_0x7fb6[2],{logged:{type:_0xc82ex3[_0x7fb6[3]],defaultValue:false},loggedAt:{type:_0xc82ex3[_0x7fb6[4]]},ringinuse:{type:_0xc82ex3[_0x7fb6[3]]},penalty:{type:_0xc82ex3[_0x7fb6[5]]},stateinterface:{type:_0xc82ex3[_0x7fb6[6]]},queue:{type:_0xc82ex3[_0x7fb6[6]]},membername:{type:_0xc82ex3[_0x7fb6[6]]},interface:{type:_0xc82ex3[_0x7fb6[6]]},membership:{type:_0xc82ex3[_0x7fb6[6]]},callstaken:{type:_0xc82ex3[_0x7fb6[5]]},lastcall:{type:_0xc82ex3[_0x7fb6[4]],set:function(_0xc82ex5){if(_0xc82ex5===_0x7fb6[7]){this[_0x7fb6[9]](_0x7fb6[8],null)}else {this[_0x7fb6[9]](_0x7fb6[8],_0xc82ex2[_0x7fb6[12]](_0x7fb6[10],_0xc82ex5,_0x7fb6[11]))}}},status:{type:_0xc82ex3[_0x7fb6[5]],set:function(_0xc82ex6){this[_0x7fb6[9]](_0x7fb6[13],_0xc82ex6);var _0xc82ex7=_0x7fb6[14];switch(_0xc82ex6){case _0x7fb6[7]:_0xc82ex7=_0x7fb6[14];break ;;case _0x7fb6[16]:_0xc82ex7=_0x7fb6[15];break ;;case _0x7fb6[18]:_0xc82ex7=_0x7fb6[17];break ;;case _0x7fb6[20]:_0xc82ex7=_0x7fb6[19];break ;;case _0x7fb6[22]:_0xc82ex7=_0x7fb6[21];break ;;case _0x7fb6[24]:_0xc82ex7=_0x7fb6[23];break ;;case _0x7fb6[26]:_0xc82ex7=_0x7fb6[25];break ;;case _0x7fb6[28]:_0xc82ex7=_0x7fb6[27];break ;;case _0x7fb6[30]:_0xc82ex7=_0x7fb6[29];break ;;};this[_0x7fb6[9]](_0x7fb6[31],_0xc82ex7);this[_0x7fb6[9]](_0x7fb6[32],_0xc82ex2[_0x7fb6[12]](_0x7fb6[33]));}},statusdesc:{type:_0xc82ex3[_0x7fb6[6]]},statusAt:{type:_0xc82ex3[_0x7fb6[4]]},paused:{type:_0xc82ex3[_0x7fb6[3]],defaultValue:false,set:function(_0xc82ex8){this[_0x7fb6[9]](_0x7fb6[34],parseInt(_0xc82ex8,10)?true:false)}},pausedAt:{type:_0xc82ex3[_0x7fb6[4]]},reason:{type:_0xc82ex3[_0x7fb6[6]]}},{tableName:_0x7fb6[35],indexes:[{name:_0x7fb6[36],fields:[_0x7fb6[36]]}]});return _0xc82ex4;};
\ No newline at end of file
+var _0xe3c2=["\x63\x72\x79\x70\x74\x6F","\x65\x78\x70\x6F\x72\x74\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x42\x4F\x4F\x4C\x45\x41\x4E","\x44\x41\x54\x45","\x49\x4E\x54\x45\x47\x45\x52","\x53\x54\x52\x49\x4E\x47","\x30","\x6C\x61\x73\x74\x63\x61\x6C\x6C","\x73\x65\x74\x44\x61\x74\x61\x56\x61\x6C\x75\x65","\x46\x52\x4F\x4D\x5F\x55\x4E\x49\x58\x54\x49\x4D\x45","\x25\x59\x2D\x25\x6D\x2D\x25\x64\x20\x25\x48\x3A\x25\x69\x3A\x25\x73","\x66\x6E","\x73\x74\x61\x74\x75\x73","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x4E\x4F\x54\x5F\x49\x4E\x55\x53\x45","\x31","\x49\x4E\x55\x53\x45","\x32","\x42\x55\x53\x59","\x33","\x49\x4E\x56\x41\x4C\x49\x44","\x34","\x55\x4E\x41\x56\x41\x49\x4C\x41\x42\x4C\x45","\x35","\x52\x49\x4E\x47\x49\x4E\x47","\x36","\x52\x49\x4E\x47\x49\x4E\x55\x53\x45","\x37","\x4F\x4E\x48\x4F\x4C\x44","\x38","\x73\x74\x61\x74\x75\x73\x64\x65\x73\x63","\x73\x74\x61\x74\x75\x73\x41\x74","\x4E\x4F\x57","\x70\x61\x75\x73\x65\x64","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x64\x65\x66\x69\x6E\x65"];var crypto=require(_0xe3c2[0]);module[_0xe3c2[1]]=function(_0x4c9fx2,_0x4c9fx3){var _0x4c9fx4=_0x4c9fx2[_0xe3c2[37]](_0xe3c2[2],{logged:{type:_0x4c9fx3[_0xe3c2[3]],defaultValue:false},loggedAt:{type:_0x4c9fx3[_0xe3c2[4]]},ringinuse:{type:_0x4c9fx3[_0xe3c2[3]]},penalty:{type:_0x4c9fx3[_0xe3c2[5]]},stateinterface:{type:_0x4c9fx3[_0xe3c2[6]]},queue:{type:_0x4c9fx3[_0xe3c2[6]]},membername:{type:_0x4c9fx3[_0xe3c2[6]]},interface:{type:_0x4c9fx3[_0xe3c2[6]]},membership:{type:_0x4c9fx3[_0xe3c2[6]]},callstaken:{type:_0x4c9fx3[_0xe3c2[5]]},lastcall:{type:_0x4c9fx3[_0xe3c2[4]],set:function(_0x4c9fx5){if(_0x4c9fx5===_0xe3c2[7]){this[_0xe3c2[9]](_0xe3c2[8],null)}else {this[_0xe3c2[9]](_0xe3c2[8],_0x4c9fx2[_0xe3c2[12]](_0xe3c2[10],_0x4c9fx5,_0xe3c2[11]))}}},status:{type:_0x4c9fx3[_0xe3c2[5]],set:function(_0x4c9fx6){this[_0xe3c2[9]](_0xe3c2[13],_0x4c9fx6);var _0x4c9fx7=_0xe3c2[14];switch(_0x4c9fx6){case _0xe3c2[7]:_0x4c9fx7=_0xe3c2[14];break ;;case _0xe3c2[16]:_0x4c9fx7=_0xe3c2[15];break ;;case _0xe3c2[18]:_0x4c9fx7=_0xe3c2[17];break ;;case _0xe3c2[20]:_0x4c9fx7=_0xe3c2[19];break ;;case _0xe3c2[22]:_0x4c9fx7=_0xe3c2[21];break ;;case _0xe3c2[24]:_0x4c9fx7=_0xe3c2[23];break ;;case _0xe3c2[26]:_0x4c9fx7=_0xe3c2[25];break ;;case _0xe3c2[28]:_0x4c9fx7=_0xe3c2[27];break ;;case _0xe3c2[30]:_0x4c9fx7=_0xe3c2[29];break ;;};this[_0xe3c2[9]](_0xe3c2[31],_0x4c9fx7);this[_0xe3c2[9]](_0xe3c2[32],_0x4c9fx2[_0xe3c2[12]](_0xe3c2[33]));}},statusdesc:{type:_0x4c9fx3[_0xe3c2[6]]},statusAt:{type:_0x4c9fx3[_0xe3c2[4]]},paused:{type:_0x4c9fx3[_0xe3c2[3]],defaultValue:false,set:function(_0x4c9fx8){this[_0xe3c2[9]](_0xe3c2[34],parseInt(_0x4c9fx8,10)?true:false)}},pausedAt:{type:_0x4c9fx3[_0xe3c2[4]]},reason:{type:_0x4c9fx3[_0xe3c2[6]]}},{tableName:_0xe3c2[35],indexes:[{name:_0xe3c2[36],fields:[_0xe3c2[36]]}]});return _0x4c9fx4;};
\ No newline at end of file
-var _0x9caf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x53\x54\x52\x49\x4E\x47","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x9caf[0];module[_0x9caf[1]]=function(_0x7525x1,_0x7525x2){var _0x7525x3=_0x7525x1[_0x9caf[6]](_0x9caf[2],{name:{type:_0x7525x2[_0x9caf[3]],unique:true,validate:{notEmpty:true}},description:_0x7525x2[_0x9caf[3]]},{tableName:_0x9caf[4],associate:function(_0x7525x4){_0x7525x3[_0x9caf[5]](_0x7525x4.ZendeskField);_0x7525x3[_0x9caf[5]](_0x7525x4.DeskField);_0x7525x3[_0x9caf[5]](_0x7525x4.SalesforceField);_0x7525x3[_0x9caf[5]](_0x7525x4.FreshdeskField);_0x7525x3[_0x9caf[5]](_0x7525x4.SugarcrmField);}});return _0x7525x3;};
\ No newline at end of file
+var _0x37e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x56\x61\x72\x69\x61\x62\x6C\x65","\x53\x54\x52\x49\x4E\x47","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x37e8[0];module[_0x37e8[1]]=function(_0xad69x1,_0xad69x2){var _0xad69x3=_0xad69x1[_0x37e8[6]](_0x37e8[2],{name:{type:_0xad69x2[_0x37e8[3]],unique:true,validate:{notEmpty:true}},description:_0xad69x2[_0x37e8[3]]},{tableName:_0x37e8[4],associate:function(_0xad69x4){_0xad69x3[_0x37e8[5]](_0xad69x4.ZendeskField);_0xad69x3[_0x37e8[5]](_0xad69x4.DeskField);_0xad69x3[_0x37e8[5]](_0xad69x4.SalesforceField);_0xad69x3[_0x37e8[5]](_0xad69x4.FreshdeskField);_0xad69x3[_0x37e8[5]](_0xad69x4.SugarcrmField);}});return _0xad69x3;};
\ No newline at end of file
-var _0x81dd=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x64\x65\x66\x69\x6E\x65"];module[_0x81dd[0]]=function(_0xf6f4x1,_0xf6f4x2){var _0xf6f4x3=_0xf6f4x1[_0x81dd[5]](_0x81dd[1],{name:{type:_0xf6f4x2[_0x81dd[2]],unique:true},description:{type:_0xf6f4x2[_0x81dd[2]],allowNull:true},defaultEntry:{type:_0xf6f4x2[_0x81dd[3]],defaultValue:0}},{tableName:_0x81dd[4]});return _0xf6f4x3;};
\ No newline at end of file
+var _0xea07=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x53\x54\x52\x49\x4E\x47","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x64\x65\x66\x69\x6E\x65"];module[_0xea07[0]]=function(_0x8467x1,_0x8467x2){var _0x8467x3=_0x8467x1[_0xea07[5]](_0xea07[1],{name:{type:_0x8467x2[_0xea07[2]],unique:true},description:{type:_0x8467x2[_0xea07[2]],allowNull:true},defaultEntry:{type:_0x8467x2[_0xea07[3]],defaultValue:0}},{tableName:_0xea07[4]});return _0x8467x3;};
\ No newline at end of file
-var _0x45d3=["\x75\x74\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x6F\x73\x69\x74\x65\x49\x6E\x64\x65\x78","\x4E\x6F\x4F\x70","\x69\x6E\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x42\x4F\x4F\x4C\x45\x41\x4E","","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x74\x72\x75\x6E\x6B","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F\x24\x7B\x45\x58\x54\x45\x4E\x3A\x25\x64\x7D\x40\x25\x73","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x54\x72\x75\x6E\x6B\x49\x64","\x77\x68\x65\x72\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x55\x70\x64\x61\x74\x65","\x62\x65\x66\x6F\x72\x65\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];var util=require(_0x45d3[0]);module[_0x45d3[1]]=function(_0xa974x2,_0xa974x3){var _0xa974x4=_0xa974x2[_0x45d3[33]](_0x45d3[2],{context:{type:_0xa974x3[_0x45d3[3]],allowNull:false,unique:_0x45d3[4]},exten:{type:_0xa974x3[_0x45d3[3]],allowNull:false,unique:_0x45d3[4]},priority:{type:_0xa974x3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0x45d3[4]},app:{type:_0xa974x3[_0x45d3[3]],allowNull:false,defaultValue:_0x45d3[5]},appdata:{type:_0xa974x3[_0x45d3[3]],allowNull:true},type:{type:_0xa974x3.ENUM(_0x45d3[6],_0x45d3[7],_0x45d3[8],_0x45d3[9],_0x45d3[10]),allowNull:false},description:{type:_0xa974x3[_0x45d3[3]]},interval:{type:_0xa974x3[_0x45d3[3]]},isApp:{type:_0xa974x3[_0x45d3[11]],defaultValue:false},appGroup:{type:_0xa974x3[_0x45d3[3]]},interface:{type:_0xa974x3[_0x45d3[3]]},app_options:{type:_0xa974x3[_0x45d3[3]],defaultValue:_0x45d3[12],allowNull:true},url:{type:_0xa974x3[_0x45d3[3]],defaultValue:_0x45d3[12],allowNull:true},timeout:{type:_0xa974x3[_0x45d3[3]],defaultValue:_0x45d3[12],allowNull:true},queue:{type:_0xa974x3[_0x45d3[3]],allowNull:true},audiofile:{type:_0xa974x3[_0x45d3[3]],allowNull:true},project:{type:_0xa974x3[_0x45d3[3]],allowNull:true},alt_extension:{type:_0xa974x3[_0x45d3[3]],allowNull:true},alt_priority:{type:_0xa974x3.INTEGER(11),allowNull:true},alt_context:{type:_0xa974x3[_0x45d3[3]],allowNull:true},causecode:{type:_0xa974x3[_0x45d3[3]],allowNull:true},variable:{type:_0xa974x3[_0x45d3[3]],allowNull:true},value:{type:_0xa974x3[_0x45d3[3]],allowNull:true},customApp:{type:_0xa974x3[_0x45d3[3]],allowNull:true},mailbox:{type:_0xa974x3[_0x45d3[3]],allowNull:true},trunk:{type:_0xa974x3[_0x45d3[3]],allowNull:true},cutdigits:{type:_0xa974x3.INTEGER(11),allowNull:true},isInterval:{type:_0xa974x3[_0x45d3[11]],defaultValue:false},callerID:{type:_0xa974x3[_0x45d3[3]],allowNull:true}},{tableName:_0x45d3[13],associate:function(_0xa974x5){_0xa974x4[_0x45d3[16]](_0xa974x5.VoiceExtension,{as:_0x45d3[14],onDelete:_0x45d3[15]});_0xa974x4[_0x45d3[31]](function(_0xa974x6){if(_0xa974x6[_0x45d3[18]][_0x45d3[17]]){_0xa974x4[_0x45d3[30]]({where:{TrunkId:_0xa974x6[_0x45d3[29]][_0x45d3[28]]}})[_0x45d3[27]](function(_0xa974x8){_0xa974x8[_0x45d3[26]](function(_0xa974x9){_0xa974x9[_0x45d3[21]]=util[_0x45d3[24]](_0x45d3[22],_0xa974x9[_0x45d3[23]],_0xa974x9[_0x45d3[17]]);_0xa974x9[_0x45d3[25]]();})})[_0x45d3[20]](function(_0xa974x7){console[_0x45d3[19]](_0xa974x7)})}});_0xa974x4[_0x45d3[32]](function(_0xa974x8){_0xa974x8[_0x45d3[26]](function(_0xa974x9){if(_0xa974x9[_0x45d3[17]]){_0xa974x9[_0x45d3[21]]=util[_0x45d3[24]](_0x45d3[22],_0xa974x9[_0x45d3[23]],_0xa974x9[_0x45d3[17]])}})});}});return _0xa974x4;};
\ No newline at end of file
+var _0xea69=["\x75\x74\x69\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x63\x6F\x6D\x70\x6F\x73\x69\x74\x65\x49\x6E\x64\x65\x78","\x4E\x6F\x4F\x70","\x69\x6E\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x42\x4F\x4F\x4C\x45\x41\x4E","","\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x63\x61\x73\x63\x61\x64\x65","\x68\x61\x73\x4D\x61\x6E\x79","\x74\x72\x75\x6E\x6B","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x70\x70\x64\x61\x74\x61","\x53\x49\x50\x2F\x24\x7B\x45\x58\x54\x45\x4E\x3A\x25\x64\x7D\x40\x25\x73","\x63\x75\x74\x64\x69\x67\x69\x74\x73","\x66\x6F\x72\x6D\x61\x74","\x73\x61\x76\x65","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x54\x72\x75\x6E\x6B\x49\x64","\x77\x68\x65\x72\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x55\x70\x64\x61\x74\x65","\x62\x65\x66\x6F\x72\x65\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x64\x65\x66\x69\x6E\x65"];var util=require(_0xea69[0]);module[_0xea69[1]]=function(_0x8f4dx2,_0x8f4dx3){var _0x8f4dx4=_0x8f4dx2[_0xea69[33]](_0xea69[2],{context:{type:_0x8f4dx3[_0xea69[3]],allowNull:false,unique:_0xea69[4]},exten:{type:_0x8f4dx3[_0xea69[3]],allowNull:false,unique:_0xea69[4]},priority:{type:_0x8f4dx3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0xea69[4]},app:{type:_0x8f4dx3[_0xea69[3]],allowNull:false,defaultValue:_0xea69[5]},appdata:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},type:{type:_0x8f4dx3.ENUM(_0xea69[6],_0xea69[7],_0xea69[8],_0xea69[9],_0xea69[10]),allowNull:false},description:{type:_0x8f4dx3[_0xea69[3]]},interval:{type:_0x8f4dx3[_0xea69[3]]},isApp:{type:_0x8f4dx3[_0xea69[11]],defaultValue:false},appGroup:{type:_0x8f4dx3[_0xea69[3]]},interface:{type:_0x8f4dx3[_0xea69[3]]},app_options:{type:_0x8f4dx3[_0xea69[3]],defaultValue:_0xea69[12],allowNull:true},url:{type:_0x8f4dx3[_0xea69[3]],defaultValue:_0xea69[12],allowNull:true},timeout:{type:_0x8f4dx3[_0xea69[3]],defaultValue:_0xea69[12],allowNull:true},queue:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},audiofile:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},project:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},alt_extension:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},alt_priority:{type:_0x8f4dx3.INTEGER(11),allowNull:true},alt_context:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},causecode:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},variable:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},value:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},customApp:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},mailbox:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},trunk:{type:_0x8f4dx3[_0xea69[3]],allowNull:true},cutdigits:{type:_0x8f4dx3.INTEGER(11),allowNull:true},isInterval:{type:_0x8f4dx3[_0xea69[11]],defaultValue:false},callerID:{type:_0x8f4dx3[_0xea69[3]],allowNull:true}},{tableName:_0xea69[13],associate:function(_0x8f4dx5){_0x8f4dx4[_0xea69[16]](_0x8f4dx5.VoiceExtension,{as:_0xea69[14],onDelete:_0xea69[15]});_0x8f4dx4[_0xea69[31]](function(_0x8f4dx6){if(_0x8f4dx6[_0xea69[18]][_0xea69[17]]){_0x8f4dx4[_0xea69[30]]({where:{TrunkId:_0x8f4dx6[_0xea69[29]][_0xea69[28]]}})[_0xea69[27]](function(_0x8f4dx8){_0x8f4dx8[_0xea69[26]](function(_0x8f4dx9){_0x8f4dx9[_0xea69[21]]=util[_0xea69[24]](_0xea69[22],_0x8f4dx9[_0xea69[23]],_0x8f4dx9[_0xea69[17]]);_0x8f4dx9[_0xea69[25]]();})})[_0xea69[20]](function(_0x8f4dx7){console[_0xea69[19]](_0x8f4dx7)})}});_0x8f4dx4[_0xea69[32]](function(_0x8f4dx8){_0x8f4dx8[_0xea69[26]](function(_0x8f4dx9){if(_0x8f4dx9[_0xea69[17]]){_0x8f4dx9[_0xea69[21]]=util[_0xea69[24]](_0xea69[22],_0x8f4dx9[_0xea69[23]],_0x8f4dx9[_0xea69[17]])}})});}});return _0x8f4dx4;};
\ No newline at end of file
-var _0x22bd=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x63\x75\x73\x74\x6F\x6D","\x66\x69\x6C\x65\x73","\x6D\x70\x33\x6E\x62","\x71\x75\x69\x65\x74\x6D\x70\x33\x6E\x62","\x71\x75\x69\x65\x74\x6D\x70\x33","\x6D\x70\x33","\x77\x61\x76","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73\x20\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73","\x62\x65\x66\x6F\x72\x65\x44\x65\x6C\x65\x74\x65"];module[_0x22bd[0]]=function(_0x256bx1,_0x256bx2){var _0x256bx3=_0x256bx1[_0x22bd[13]](_0x22bd[1],{name:{type:_0x256bx2[_0x22bd[2]],allowNull:false,unique:true},mode:{type:_0x256bx2.ENUM(_0x22bd[3],_0x22bd[4],_0x22bd[5],_0x22bd[6],_0x22bd[7],_0x22bd[8]),allowNull:true,defaultValue:_0x22bd[4]},directory:{type:_0x256bx2[_0x22bd[2]],allowNull:true},application:{type:_0x256bx2[_0x22bd[2]],allowNull:true},digit:{type:_0x256bx2[_0x22bd[2]],allowNull:true},sort:{type:_0x256bx2[_0x22bd[2]],allowNull:true},format:{type:_0x256bx2[_0x22bd[2]],allowNull:true,defaultValue:_0x22bd[9]},stamp:{type:_0x22bd[10]},defaultEntry:{type:_0x256bx2[_0x22bd[11]],defaultValue:0}},{tableName:_0x22bd[12]});_0x256bx3[_0x22bd[19]](function(_0x256bx4){if(_0x256bx4[_0x22bd[15]](_0x22bd[14])){throw new Error(_0x22bd[16])};if(_0x256bx4[_0x22bd[17]]){throw new Error(_0x22bd[18])};});_0x256bx3[_0x22bd[21]](function(_0x256bx4){if(_0x256bx4[_0x22bd[17]]){throw new Error(_0x22bd[20])}});return _0x256bx3;};
\ No newline at end of file
+var _0x5100=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x4D\x75\x73\x69\x63\x4F\x6E\x48\x6F\x6C\x64","\x53\x54\x52\x49\x4E\x47","\x63\x75\x73\x74\x6F\x6D","\x66\x69\x6C\x65\x73","\x6D\x70\x33\x6E\x62","\x71\x75\x69\x65\x74\x6D\x70\x33\x6E\x62","\x71\x75\x69\x65\x74\x6D\x70\x33","\x6D\x70\x33","\x77\x61\x76","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x42\x4F\x4F\x4C\x45\x41\x4E","\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73\x20\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x6E\x74\x72\x79","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x20\x64\x65\x66\x61\x75\x6C\x74\x20\x6D\x6F\x68\x20\x63\x6C\x61\x73\x73","\x62\x65\x66\x6F\x72\x65\x44\x65\x6C\x65\x74\x65"];module[_0x5100[0]]=function(_0xb29ex1,_0xb29ex2){var _0xb29ex3=_0xb29ex1[_0x5100[13]](_0x5100[1],{name:{type:_0xb29ex2[_0x5100[2]],allowNull:false,unique:true},mode:{type:_0xb29ex2.ENUM(_0x5100[3],_0x5100[4],_0x5100[5],_0x5100[6],_0x5100[7],_0x5100[8]),allowNull:true,defaultValue:_0x5100[4]},directory:{type:_0xb29ex2[_0x5100[2]],allowNull:true},application:{type:_0xb29ex2[_0x5100[2]],allowNull:true},digit:{type:_0xb29ex2[_0x5100[2]],allowNull:true},sort:{type:_0xb29ex2[_0x5100[2]],allowNull:true},format:{type:_0xb29ex2[_0x5100[2]],allowNull:true,defaultValue:_0x5100[9]},stamp:{type:_0x5100[10]},defaultEntry:{type:_0xb29ex2[_0x5100[11]],defaultValue:0}},{tableName:_0x5100[12]});_0xb29ex3[_0x5100[19]](function(_0xb29ex4){if(_0xb29ex4[_0x5100[15]](_0x5100[14])){throw new Error(_0x5100[16])};if(_0xb29ex4[_0x5100[17]]){throw new Error(_0x5100[18])};});_0xb29ex3[_0x5100[21]](function(_0xb29ex4){if(_0xb29ex4[_0x5100[17]]){throw new Error(_0x5100[20])}});return _0xb29ex3;};
\ No newline at end of file
-var _0x4460=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x61\x75\x6C\x74","","\x79\x65\x73","\x6E\x6F","\x76\x61\x72\x73","\x61\x6C\x6C","\x72\x69\x6E\x67\x61\x6C\x6C","\x6C\x65\x61\x73\x74\x72\x65\x63\x65\x6E\x74","\x66\x65\x77\x65\x73\x74\x63\x61\x6C\x6C\x73","\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x6C\x69\x6E\x65\x61\x72","\x77\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6F\x72\x64\x65\x72\x65\x64","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x71\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x71\x75\x65\x75\x65\x20\x6E\x61\x6D\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65"];module[_0x4460[0]]=function(_0xc20ex1,_0xc20ex2){var _0xc20ex3=_0xc20ex1[_0x4460[21]](_0x4460[1],{name:{type:_0xc20ex2[_0x4460[2]],primaryKey:true,unique:true},musiconhold:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[3]},announce:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[4]},context:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},timeout:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[6]},setinterfacevar:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[5]},setqueuevar:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[5]},setqueueentryvar:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defautValue:_0x4460[5]},eventwhencalled:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6],_0x4460[7]),allowNull:true,defautValue:_0x4460[5]},eventmemberstatus:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defautValue:_0x4460[5]},monitor_format:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[4]},membermacro:{type:_0xc20ex2[_0x4460[2]],allowNull:true},description:{type:_0xc20ex2[_0x4460[2]],allowNull:true},membergosub:{type:_0xc20ex2[_0x4460[2]],allowNull:true},queue_youarenext:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0xc20ex2[_0x4460[2]],allowNull:true},queue_quantity2:{type:_0xc20ex2[_0x4460[2]],allowNull:true},queue_holdtime:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0xc20ex2[_0x4460[2]],allowNull:true},queue_reporthold:{type:_0xc20ex2[_0x4460[2]],allowNull:true},announce_frequency:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true},min_announce_frequency:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[6]},announce_position:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[6]},announce_position_limit:{type:_0xc20ex2.INTEGER(11),allowNull:true},periodic_announce:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[4]},periodic_announce_frequency:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[5]},random_periodic_announce:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[6]},retry:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0xc20ex2.INTEGER(11),allowNull:true},autofill:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true},monitor_type:{type:_0xc20ex2[_0x4460[2]],allowNull:true},autopause:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6],_0x4460[8]),allowNull:true,defaultValue:_0x4460[6]},autopausedelay:{type:_0xc20ex2.INTEGER(11),allowNull:true},autopausebusy:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true},autopauseunavail:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true},maxlen:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0xc20ex2.ENUM(_0x4460[9],_0x4460[10],_0x4460[11],_0x4460[12],_0x4460[13],_0x4460[14],_0x4460[15],_0x4460[16]),allowNull:true},joinempty:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[5]},leavewhenempty:{type:_0xc20ex2[_0x4460[2]],allowNull:true,defaultValue:_0x4460[6]},reportholdtime:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[6]},memberdelay:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0xc20ex2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0xc20ex2.ENUM(_0x4460[5],_0x4460[6]),allowNull:true,defaultValue:_0x4460[6]},defaultrule:{type:_0xc20ex2[_0x4460[2]],allowNull:true},timeoutpriority:{type:_0xc20ex2[_0x4460[2]],allowNull:true}},{tableName:_0x4460[17],associate:function(_0xc20ex4){_0xc20ex3[_0x4460[20]](_0xc20ex4.User,{through:_0xc20ex4[_0x4460[18]],foreignKey:_0x4460[19]})}});_0xc20ex3[_0x4460[25]](function(_0xc20ex5){if(_0xc20ex5[_0x4460[23]](_0x4460[22])){throw new Error(_0x4460[24])}});return _0xc20ex3;};
\ No newline at end of file
+var _0xbfa9=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x53\x54\x52\x49\x4E\x47","\x64\x65\x66\x61\x75\x6C\x74","","\x79\x65\x73","\x6E\x6F","\x76\x61\x72\x73","\x61\x6C\x6C","\x72\x69\x6E\x67\x61\x6C\x6C","\x6C\x65\x61\x73\x74\x72\x65\x63\x65\x6E\x74","\x66\x65\x77\x65\x73\x74\x63\x61\x6C\x6C\x73","\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x6C\x69\x6E\x65\x61\x72","\x77\x72\x61\x6E\x64\x6F\x6D","\x72\x72\x6F\x72\x64\x65\x72\x65\x64","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x71\x75\x65\x75\x65","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65","\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x67\x65\x64","\x59\x6F\x75\x20\x63\x61\x6E\x27\x74\x20\x6D\x6F\x64\x69\x66\x79\x20\x61\x20\x71\x75\x65\x75\x65\x20\x6E\x61\x6D\x65","\x62\x65\x66\x6F\x72\x65\x55\x70\x64\x61\x74\x65"];module[_0xbfa9[0]]=function(_0x6f50x1,_0x6f50x2){var _0x6f50x3=_0x6f50x1[_0xbfa9[21]](_0xbfa9[1],{name:{type:_0x6f50x2[_0xbfa9[2]],primaryKey:true,unique:true},musiconhold:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[3]},announce:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[4]},context:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},timeout:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[6]},setinterfacevar:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[5]},setqueuevar:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[5]},setqueueentryvar:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defautValue:_0xbfa9[5]},eventwhencalled:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6],_0xbfa9[7]),allowNull:true,defautValue:_0xbfa9[5]},eventmemberstatus:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defautValue:_0xbfa9[5]},monitor_format:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[4]},membermacro:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},description:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},membergosub:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},queue_youarenext:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},queue_quantity2:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},queue_holdtime:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},queue_reporthold:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},announce_frequency:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true},min_announce_frequency:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[6]},announce_position:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[6]},announce_position_limit:{type:_0x6f50x2.INTEGER(11),allowNull:true},periodic_announce:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[4]},periodic_announce_frequency:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[5]},random_periodic_announce:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[6]},retry:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0x6f50x2.INTEGER(11),allowNull:true},autofill:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true},monitor_type:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},autopause:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6],_0xbfa9[8]),allowNull:true,defaultValue:_0xbfa9[6]},autopausedelay:{type:_0x6f50x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true},autopauseunavail:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true},maxlen:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0x6f50x2.ENUM(_0xbfa9[9],_0xbfa9[10],_0xbfa9[11],_0xbfa9[12],_0xbfa9[13],_0xbfa9[14],_0xbfa9[15],_0xbfa9[16]),allowNull:true},joinempty:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[5]},leavewhenempty:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true,defaultValue:_0xbfa9[6]},reportholdtime:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[6]},memberdelay:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0x6f50x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x6f50x2.ENUM(_0xbfa9[5],_0xbfa9[6]),allowNull:true,defaultValue:_0xbfa9[6]},defaultrule:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true},timeoutpriority:{type:_0x6f50x2[_0xbfa9[2]],allowNull:true}},{tableName:_0xbfa9[17],associate:function(_0x6f50x4){_0x6f50x3[_0xbfa9[20]](_0x6f50x4.User,{through:_0x6f50x4[_0xbfa9[18]],foreignKey:_0xbfa9[19]})}});_0x6f50x3[_0xbfa9[25]](function(_0x6f50x5){if(_0x6f50x5[_0xbfa9[23]](_0xbfa9[22])){throw new Error(_0xbfa9[24])}});return _0x6f50x3;};
\ No newline at end of file
-var _0x3a9b=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x66\x72\x6F\x6D\x2D\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x63\x6F\x6E\x74\x65\x73\x74\x5F\x6D\x61\x69\x6C\x62\x6F\x78","","\x63\x65\x6E\x74\x72\x61\x6C","\x79\x65\x73","\x6E\x6F","\x54\x49\x4E\x59\x49\x4E\x54\x28\x34\x29","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x6D\x61\x69\x6C\x62\x6F\x78\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x6D\x61\x69\x6C\x62\x6F\x78","\x63\x6F\x6E\x74\x65\x78\x74","\x64\x65\x66\x69\x6E\x65"];module[_0x3a9b[0]]=function(_0x2da5x1,_0x2da5x2){var _0x2da5x3=_0x2da5x1[_0x3a9b[15]](_0x3a9b[1],{uniqueid:{type:_0x2da5x2.INTEGER(4),primaryKey:true,allowNull:false,autoIncrement:true},customer_id:{type:_0x2da5x2[_0x3a9b[2]]},context:{type:_0x2da5x2[_0x3a9b[2]],defaultValue:_0x3a9b[3],unique:_0x3a9b[4]},mailbox:{type:_0x2da5x2[_0x3a9b[2]],defaultValue:_0x3a9b[5],allowNull:false,unique:_0x3a9b[4]},password:{type:_0x2da5x2[_0x3a9b[2]]},fullname:{type:_0x2da5x2[_0x3a9b[2]]},email:{type:_0x2da5x2[_0x3a9b[2]]},pager:{type:_0x2da5x2[_0x3a9b[2]]},tz:{type:_0x2da5x2[_0x3a9b[2]],defaultValue:_0x3a9b[6]},attach:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[7],allowNull:false},saycid:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[7],allowNull:false},dialout:{type:_0x2da5x2[_0x3a9b[2]]},callback:{type:_0x2da5x2[_0x3a9b[2]]},review:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},operator:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},envelope:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},sayduration:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},saydurationm:{type:_0x3a9b[9],defaultValue:1,allowNull:false},sendvoicemail:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},"\x64\x65\x6C\x65\x74\x65":{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},nextaftercmd:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[7],allowNull:false},forcename:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},forcegreetings:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[8],allowNull:false},hidefromdir:{type:_0x2da5x2.ENUM(_0x3a9b[7],_0x3a9b[8]),defaultValue:_0x3a9b[7],allowNull:false},stamp:{type:_0x3a9b[10]},emailsubject:{type:_0x2da5x2[_0x3a9b[2]]},emailbody:{type:_0x2da5x2[_0x3a9b[2]]},name:{type:_0x2da5x2[_0x3a9b[2]]},maxsecs:{type:_0x2da5x2.INTEGER(255),defaultValue:180,allowNull:false},maxmsg:{type:_0x2da5x2.INTEGER(255),defaultValue:100,allowNull:false}},{tableName:_0x3a9b[11],indexes:[{name:_0x3a9b[12],fields:[_0x3a9b[13],_0x3a9b[14]]}]});return _0x2da5x3;};
\ No newline at end of file
+var _0xcc37=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x53\x54\x52\x49\x4E\x47","\x66\x72\x6F\x6D\x2D\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x63\x6F\x6E\x74\x65\x73\x74\x5F\x6D\x61\x69\x6C\x62\x6F\x78","","\x63\x65\x6E\x74\x72\x61\x6C","\x79\x65\x73","\x6E\x6F","\x54\x49\x4E\x59\x49\x4E\x54\x28\x34\x29","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x6D\x61\x69\x6C\x62\x6F\x78\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x6D\x61\x69\x6C\x62\x6F\x78","\x63\x6F\x6E\x74\x65\x78\x74","\x64\x65\x66\x69\x6E\x65"];module[_0xcc37[0]]=function(_0x69c8x1,_0x69c8x2){var _0x69c8x3=_0x69c8x1[_0xcc37[15]](_0xcc37[1],{uniqueid:{type:_0x69c8x2.INTEGER(4),primaryKey:true,allowNull:false,autoIncrement:true},customer_id:{type:_0x69c8x2[_0xcc37[2]]},context:{type:_0x69c8x2[_0xcc37[2]],defaultValue:_0xcc37[3],unique:_0xcc37[4]},mailbox:{type:_0x69c8x2[_0xcc37[2]],defaultValue:_0xcc37[5],allowNull:false,unique:_0xcc37[4]},password:{type:_0x69c8x2[_0xcc37[2]]},fullname:{type:_0x69c8x2[_0xcc37[2]]},email:{type:_0x69c8x2[_0xcc37[2]]},pager:{type:_0x69c8x2[_0xcc37[2]]},tz:{type:_0x69c8x2[_0xcc37[2]],defaultValue:_0xcc37[6]},attach:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[7],allowNull:false},saycid:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[7],allowNull:false},dialout:{type:_0x69c8x2[_0xcc37[2]]},callback:{type:_0x69c8x2[_0xcc37[2]]},review:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},operator:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},envelope:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},sayduration:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},saydurationm:{type:_0xcc37[9],defaultValue:1,allowNull:false},sendvoicemail:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},"\x64\x65\x6C\x65\x74\x65":{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},nextaftercmd:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[7],allowNull:false},forcename:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},forcegreetings:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[8],allowNull:false},hidefromdir:{type:_0x69c8x2.ENUM(_0xcc37[7],_0xcc37[8]),defaultValue:_0xcc37[7],allowNull:false},stamp:{type:_0xcc37[10]},emailsubject:{type:_0x69c8x2[_0xcc37[2]]},emailbody:{type:_0x69c8x2[_0xcc37[2]]},name:{type:_0x69c8x2[_0xcc37[2]]},maxsecs:{type:_0x69c8x2.INTEGER(255),defaultValue:180,allowNull:false},maxmsg:{type:_0x69c8x2.INTEGER(255),defaultValue:100,allowNull:false}},{tableName:_0xcc37[11],indexes:[{name:_0xcc37[12],fields:[_0xcc37[13],_0xcc37[14]]}]});return _0x69c8x3;};
\ No newline at end of file
-var _0x27fa=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x53\x54\x52\x49\x4E\x47","","\x6C\x6F\x6E\x67","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x64\x69\x72","\x64\x65\x66\x69\x6E\x65"];module[_0x27fa[0]]=function(_0x70a0x1,_0x70a0x2){var _0x70a0x3=_0x70a0x1[_0x27fa[8]](_0x27fa[1],{msgnum:{type:_0x70a0x2.INTEGER(11),defaultValue:0,allowNull:false},dir:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},context:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},macrocontext:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},callerid:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},origtime:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},duration:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},mailboxuser:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},mailboxcontext:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},recording:{type:_0x70a0x2.BLOB(_0x27fa[4]),defaultValue:null},flag:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},msg_id:{type:_0x70a0x2[_0x27fa[2]],defaultValue:_0x27fa[3]},stamp:{type:_0x27fa[5],allowNull:false}},{tableName:_0x27fa[6],indexes:[{name:_0x27fa[7],fields:[_0x27fa[7]]}]});return _0x70a0x3;};
\ No newline at end of file
+var _0x670a=["\x65\x78\x70\x6F\x72\x74\x73","\x56\x6F\x69\x63\x65\x56\x6F\x69\x63\x65\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x73","\x53\x54\x52\x49\x4E\x47","","\x6C\x6F\x6E\x67","\x54\x49\x4D\x45\x53\x54\x41\x4D\x50","\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x64\x69\x72","\x64\x65\x66\x69\x6E\x65"];module[_0x670a[0]]=function(_0x8598x1,_0x8598x2){var _0x8598x3=_0x8598x1[_0x670a[8]](_0x670a[1],{msgnum:{type:_0x8598x2.INTEGER(11),defaultValue:0,allowNull:false},dir:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},context:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},macrocontext:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},callerid:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},origtime:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},duration:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},mailboxuser:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},mailboxcontext:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},recording:{type:_0x8598x2.BLOB(_0x670a[4]),defaultValue:null},flag:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},msg_id:{type:_0x8598x2[_0x670a[2]],defaultValue:_0x670a[3]},stamp:{type:_0x670a[5],allowNull:false}},{tableName:_0x670a[6],indexes:[{name:_0x670a[7],fields:[_0x670a[7]]}]});return _0x8598x3;};
\ No newline at end of file
-var _0xff11=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x70\x61\x73\x73\x77\x6F\x72\x64","\x74\x6F\x6B\x65\x6E","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0xff11[0];module[_0xff11[1]]=function(_0xdfbfx1,_0xdfbfx2){var _0xdfbfx3=_0xdfbfx1[_0xff11[9]](_0xff11[2],{name:_0xdfbfx2[_0xff11[3]],description:_0xdfbfx2[_0xff11[3]],username:{type:_0xdfbfx2[_0xff11[3]],unique:true},password:_0xdfbfx2[_0xff11[3]],token:_0xdfbfx2[_0xff11[3]],remoteUri:{type:_0xdfbfx2[_0xff11[3]],unique:true},authType:{type:_0xdfbfx2.ENUM(_0xff11[4],_0xff11[5]),defaultValue:_0xff11[4]}},{tableName:_0xff11[6],associate:function(_0xdfbfx4){_0xdfbfx3[_0xff11[8]](_0xdfbfx4.ZendeskConfiguration,{foreignKey:_0xff11[7]})}});return _0xdfbfx3;};
\ No newline at end of file
+var _0x7dc8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x53\x54\x52\x49\x4E\x47","\x70\x61\x73\x73\x77\x6F\x72\x64","\x74\x6F\x6B\x65\x6E","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x64\x65\x66\x69\x6E\x65"];_0x7dc8[0];module[_0x7dc8[1]]=function(_0x6d75x1,_0x6d75x2){var _0x6d75x3=_0x6d75x1[_0x7dc8[9]](_0x7dc8[2],{name:_0x6d75x2[_0x7dc8[3]],description:_0x6d75x2[_0x7dc8[3]],username:{type:_0x6d75x2[_0x7dc8[3]],unique:true},password:_0x6d75x2[_0x7dc8[3]],token:_0x6d75x2[_0x7dc8[3]],remoteUri:{type:_0x6d75x2[_0x7dc8[3]],unique:true},authType:{type:_0x6d75x2.ENUM(_0x7dc8[4],_0x7dc8[5]),defaultValue:_0x7dc8[4]}},{tableName:_0x7dc8[6],associate:function(_0x6d75x4){_0x6d75x3[_0x7dc8[8]](_0x6d75x4.ZendeskConfiguration,{foreignKey:_0x7dc8[7]})}});return _0x6d75x3;};
\ No newline at end of file
-var _0xee2f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0xee2f[0];module[_0xee2f[1]]=function(_0xd7c2x1,_0xd7c2x2){var _0xd7c2x3=_0xd7c2x1[_0xee2f[14]](_0xee2f[2],{name:_0xd7c2x2[_0xee2f[3]],description:_0xd7c2x2[_0xee2f[3]]},{tableName:_0xee2f[4],associate:function(_0xd7c2x4){_0xd7c2x3[_0xee2f[6]](_0xd7c2x4.ZendeskAccount,{foreignKey:_0xee2f[5]});_0xd7c2x3[_0xee2f[9]](_0xd7c2x4.ZendeskField,{as:_0xee2f[7],foreignKey:_0xee2f[8]});_0xd7c2x3[_0xee2f[9]](_0xd7c2x4.ZendeskField,{as:_0xee2f[10],foreignKey:_0xee2f[11]});_0xd7c2x3[_0xee2f[9]](_0xd7c2x4.ZendeskField,{as:_0xee2f[12],foreignKey:_0xee2f[13]});}});return _0xd7c2x3;};
\ No newline at end of file
+var _0x3372=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x53\x54\x52\x49\x4E\x47","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x53\x75\x62\x6A\x65\x63\x74","\x53\x75\x62\x6A\x65\x63\x74\x49\x64","\x68\x61\x73\x4D\x61\x6E\x79","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x49\x64","\x46\x69\x65\x6C\x64","\x46\x69\x65\x6C\x64\x49\x64","\x64\x65\x66\x69\x6E\x65"];_0x3372[0];module[_0x3372[1]]=function(_0xe18ax1,_0xe18ax2){var _0xe18ax3=_0xe18ax1[_0x3372[14]](_0x3372[2],{name:_0xe18ax2[_0x3372[3]],description:_0xe18ax2[_0x3372[3]]},{tableName:_0x3372[4],associate:function(_0xe18ax4){_0xe18ax3[_0x3372[6]](_0xe18ax4.ZendeskAccount,{foreignKey:_0x3372[5]});_0xe18ax3[_0x3372[9]](_0xe18ax4.ZendeskField,{as:_0x3372[7],foreignKey:_0x3372[8]});_0xe18ax3[_0x3372[9]](_0xe18ax4.ZendeskField,{as:_0x3372[10],foreignKey:_0x3372[11]});_0xe18ax3[_0x3372[9]](_0xe18ax4.ZendeskField,{as:_0x3372[12],foreignKey:_0x3372[13]});}});return _0xe18ax3;};
\ No newline at end of file
-var _0xb2bc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xb2bc[0];module[_0xb2bc[1]]=function(_0x87d7x1,_0x87d7x2){var _0x87d7x3=_0x87d7x1[_0xb2bc[10]](_0xb2bc[2],{type:{type:_0x87d7x2.ENUM(_0xb2bc[3],_0xb2bc[4],_0xb2bc[5]),defaultValue:_0xb2bc[3]},content:_0x87d7x2[_0xb2bc[6]],key:_0x87d7x2[_0xb2bc[6]],keyType:{type:_0x87d7x2.ENUM(_0xb2bc[3],_0xb2bc[4])},keyContent:_0x87d7x2[_0xb2bc[6]],idField:_0x87d7x2[_0xb2bc[7]]},{tableName:_0xb2bc[8],associate:function(_0x87d7x4){_0x87d7x3[_0xb2bc[9]](_0x87d7x4.Variable)}});return _0x87d7x3;};
\ No newline at end of file
+var _0xd2d1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x46\x69\x65\x6C\x64","\x73\x74\x72\x69\x6E\x67","\x76\x61\x72\x69\x61\x62\x6C\x65","\x6B\x65\x79\x5F\x76\x61\x6C\x75\x65","\x53\x54\x52\x49\x4E\x47","\x49\x4E\x54\x45\x47\x45\x52","\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64\x73","\x62\x65\x6C\x6F\x6E\x67\x73\x54\x6F","\x64\x65\x66\x69\x6E\x65"];_0xd2d1[0];module[_0xd2d1[1]]=function(_0x7fedx1,_0x7fedx2){var _0x7fedx3=_0x7fedx1[_0xd2d1[10]](_0xd2d1[2],{type:{type:_0x7fedx2.ENUM(_0xd2d1[3],_0xd2d1[4],_0xd2d1[5]),defaultValue:_0xd2d1[3]},content:_0x7fedx2[_0xd2d1[6]],key:_0x7fedx2[_0xd2d1[6]],keyType:{type:_0x7fedx2.ENUM(_0xd2d1[3],_0xd2d1[4])},keyContent:_0x7fedx2[_0xd2d1[6]],idField:_0x7fedx2[_0xd2d1[7]]},{tableName:_0xd2d1[8],associate:function(_0x7fedx4){_0x7fedx3[_0xd2d1[9]](_0x7fedx4.Variable)}});return _0x7fedx3;};
\ No newline at end of file
-var _0xdaa0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x65\x72\x72\x6F\x72\x73","\x70\x61\x74\x68","\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x6E\x76","\x67\x65\x74","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64","\x75\x73\x65","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x65\x74\x72\x69\x63","\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C","\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x61\x67\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67","\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72","\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65","\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6D\x70\x61\x6E\x79","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65","\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x61\x67","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x65\x6E\x71\x75\x69\x72\x69\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x79","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x72\x76\x65\x72\x73\x2F\x69\x6E","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x72\x76\x65\x72\x73\x2F\x6F\x75\x74","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D","\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79","\x2F\x61\x75\x74\x68","\x2E\x2F\x61\x75\x74\x68","\x2F\x3A\x75\x72\x6C\x28\x61\x70\x69\x7C\x61\x75\x74\x68\x7C\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x7C\x61\x70\x70\x7C\x62\x6F\x77\x65\x72\x5F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x7C\x61\x73\x73\x65\x74\x73\x29\x2F\x2A","\x72\x6F\x75\x74\x65","\x2F\x2A","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x72\x6F\x6F\x74","\x70\x75\x62\x6C\x69\x63","\x6A\x6F\x69\x6E","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x74\x65\x73\x74","\x63\x6C\x69\x65\x6E\x74","\x69\x6E\x64\x65\x78\x2E\x68\x74\x6D\x6C","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x61\x6C\x6C"];_0xdaa0[0];var config=require(_0xdaa0[1]);var errors=require(_0xdaa0[2]);var path=require(_0xdaa0[3]);var moment=require(_0xdaa0[4]);module[_0xdaa0[5]]=function(_0xd1b5x5){var _0xd1b5x6=_0xd1b5x5[_0xdaa0[7]](_0xdaa0[6]);_0xd1b5x5[_0xdaa0[10]](_0xdaa0[8],require(_0xdaa0[9]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[11],require(_0xdaa0[12]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[13],require(_0xdaa0[14]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[15],require(_0xdaa0[16]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[17],require(_0xdaa0[18]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[19],require(_0xdaa0[20]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[21],require(_0xdaa0[22]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[23],require(_0xdaa0[24]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[25],require(_0xdaa0[26]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[27],require(_0xdaa0[28]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[29],require(_0xdaa0[30]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[31],require(_0xdaa0[32]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[33],require(_0xdaa0[34]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[35],require(_0xdaa0[36]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[37],require(_0xdaa0[38]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[39],require(_0xdaa0[40]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[41],require(_0xdaa0[42]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[43],require(_0xdaa0[44]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[45],require(_0xdaa0[46]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[47],require(_0xdaa0[48]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[49],require(_0xdaa0[50]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[51],require(_0xdaa0[52]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[53],require(_0xdaa0[54]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[55],require(_0xdaa0[56]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[57],require(_0xdaa0[58]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[59],require(_0xdaa0[60]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[61],require(_0xdaa0[62]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[63],require(_0xdaa0[64]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[65],require(_0xdaa0[66]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[67],require(_0xdaa0[68]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[69],require(_0xdaa0[70]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[71],require(_0xdaa0[72]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[73],require(_0xdaa0[74]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[75],require(_0xdaa0[76]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[77],require(_0xdaa0[78]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[79],require(_0xdaa0[80]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[81],require(_0xdaa0[82]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[83],require(_0xdaa0[84]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[85],require(_0xdaa0[86]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[87],require(_0xdaa0[88]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[89],require(_0xdaa0[90]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[91],require(_0xdaa0[92]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[93],require(_0xdaa0[94]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[95],require(_0xdaa0[96]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[97],require(_0xdaa0[98]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[99],require(_0xdaa0[100]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[101],require(_0xdaa0[102]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[103],require(_0xdaa0[104]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[105],require(_0xdaa0[106]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[107],require(_0xdaa0[108]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[109],require(_0xdaa0[108]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[110],require(_0xdaa0[111]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[112],require(_0xdaa0[113]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[114],require(_0xdaa0[115]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[116],require(_0xdaa0[117]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[118],require(_0xdaa0[119]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[120],require(_0xdaa0[121]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[122],require(_0xdaa0[123]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[124],require(_0xdaa0[125]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[126],require(_0xdaa0[127]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[128],require(_0xdaa0[129]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[130],require(_0xdaa0[131]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[132],require(_0xdaa0[133]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[134],require(_0xdaa0[135]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[136],require(_0xdaa0[137]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[138],require(_0xdaa0[139]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[140],require(_0xdaa0[141]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[142],require(_0xdaa0[143]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[144],require(_0xdaa0[145]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[146],require(_0xdaa0[147]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[148],require(_0xdaa0[149]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[150],require(_0xdaa0[151]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[152],require(_0xdaa0[153]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[154],require(_0xdaa0[155]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[136],require(_0xdaa0[137]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[156],require(_0xdaa0[157]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[158],require(_0xdaa0[159]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[160],require(_0xdaa0[161]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[162],require(_0xdaa0[163]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[164],require(_0xdaa0[165]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[166],require(_0xdaa0[167]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[168],require(_0xdaa0[169]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[170],require(_0xdaa0[171]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[172],require(_0xdaa0[173]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[174],require(_0xdaa0[175]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[176],require(_0xdaa0[177]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[178],require(_0xdaa0[179]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[180],require(_0xdaa0[181]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[182],require(_0xdaa0[183]));_0xd1b5x5[_0xdaa0[10]](_0xdaa0[184],require(_0xdaa0[185]));_0xd1b5x5[_0xdaa0[187]](_0xdaa0[186])[_0xdaa0[7]](errors[404]);_0xd1b5x5[_0xdaa0[198]](_0xdaa0[188],function(_0xd1b5x7,_0xd1b5x8,_0xd1b5x9){var _0xd1b5xa={};if(_0xdaa0[189]===_0xd1b5x6){_0xd1b5xa[_0xdaa0[190]]=path[_0xdaa0[192]](config[_0xdaa0[190]],_0xdaa0[191])};if(_0xdaa0[193]===_0xd1b5x6||_0xdaa0[194]===_0xd1b5x6){_0xd1b5xa[_0xdaa0[190]]=path[_0xdaa0[192]](config[_0xdaa0[190]],_0xdaa0[195])};_0xd1b5x8[_0xdaa0[197]](_0xdaa0[196],_0xd1b5xa);});};
\ No newline at end of file
+var _0x8e47=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x2F\x65\x72\x72\x6F\x72\x73","\x70\x61\x74\x68","\x6D\x6F\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x6E\x76","\x67\x65\x74","\x2F\x61\x70\x69\x2F\x6C\x69\x63\x65\x6E\x73\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6C\x69\x63\x65\x6E\x73\x65","\x75\x73\x65","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x75\x67\x61\x72\x63\x72\x6D\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x72\x65\x73\x68\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x64\x65\x66\x61\x75\x6C\x74","\x2E\x2F\x61\x70\x69\x2F\x64\x65\x66\x61\x75\x6C\x74\x5F\x72\x65\x70\x6F\x72\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x63\x75\x73\x74\x6F\x6D","\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x72\x65\x70\x6F\x72\x74","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x72\x65\x70\x6F\x72\x74\x73\x2F\x74\x72\x65\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x74\x72\x65\x65","\x2F\x61\x70\x69\x2F\x61\x6E\x61\x6C\x79\x74\x69\x63\x73\x2F\x6D\x65\x74\x72\x69\x63\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x65\x74\x72\x69\x63","\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x70\x64\x61\x74\x65","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x63\x68\x61\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2E\x2F\x61\x70\x69\x2F\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x73\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x6D\x61\x69\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C","\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x77\x69\x64\x67\x65\x74","\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x7A\x65\x6E\x64\x65\x73\x6B\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x2F\x61\x67\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x65\x74\x74\x69\x6E\x67","\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x72\x69\x67\x67\x65\x72","\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x74\x65\x6D\x70\x6C\x61\x74\x65","\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x2E\x2F\x61\x70\x69\x2F\x61\x6D\x69","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x6D\x75\x73\x69\x63\x6F\x6E\x68\x6F\x6C\x64","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x76\x6F\x69\x63\x65\x6D\x61\x69\x6C","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x75\x73\x74\x6F\x6D\x66\x69\x65\x6C\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x75\x73\x74\x6F\x6D\x5F\x66\x69\x65\x6C\x64","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72\x2F\x63\x6F\x6D\x70\x61\x6E\x69\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6D\x70\x61\x6E\x79","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x6D\x61\x6E\x61\x67\x65\x72","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x5F\x6D\x61\x6E\x61\x67\x65\x72","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x61\x63\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x61\x63\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x2F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x62\x75\x73\x69\x6E\x65\x73\x73\x5F\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C\x73","\x2E\x2F\x61\x70\x69\x2F\x69\x6E\x74\x65\x72\x76\x61\x6C","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x63\x6F\x6E\x74\x65\x78\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x63\x6F\x6E\x74\x65\x78\x74","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x72\x75\x6E\x6B","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x65\x76\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x6F\x64\x62\x63","\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x6F\x64\x62\x63","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x66\x61\x78\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x74\x65\x61\x6D","\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x76\x61\x72\x69\x61\x62\x6C\x65","\x2F\x61\x70\x69\x2F\x74\x61\x67\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x61\x67","\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x5F\x70\x72\x6F\x6A\x65\x63\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x66\x61\x78\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x66\x61\x78\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x61\x67\x65\x6E\x74","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x65\x6E\x71\x75\x69\x72\x69\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x65\x6E\x71\x75\x69\x72\x79","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x76\x69\x73\x69\x74\x6F\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x76\x69\x73\x69\x74\x6F\x72","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x77\x65\x62\x73\x69\x74\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x5F\x77\x65\x62\x73\x69\x74\x65","\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x63\x6F\x6E\x74\x61\x63\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x6D\x65\x73\x73\x61\x67\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x72\x76\x65\x72\x73\x2F\x69\x6E","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x69\x6E","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x73\x65\x72\x76\x65\x72\x73\x2F\x6F\x75\x74","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x73\x65\x72\x76\x65\x72\x5F\x6F\x75\x74","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x71\x75\x65\x75\x65\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x6D\x61\x69\x6C\x5F\x71\x75\x65\x75\x65","\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x2F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x2E\x2F\x61\x70\x69\x2F\x6D\x61\x69\x6C\x5F\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x74\x65\x61\x6D","\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x70\x6C\x6F\x61\x64","\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72","\x2F\x61\x70\x69\x2F\x63\x68\x61\x74\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x72\x6F\x6F\x6D\x73","\x2E\x2F\x61\x70\x69\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D","\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79","\x2E\x2F\x61\x70\x69\x2F\x78\x63\x68\x61\x74\x74\x79","\x2F\x61\x75\x74\x68","\x2E\x2F\x61\x75\x74\x68","\x2F\x3A\x75\x72\x6C\x28\x61\x70\x69\x7C\x61\x75\x74\x68\x7C\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x7C\x61\x70\x70\x7C\x62\x6F\x77\x65\x72\x5F\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73\x7C\x61\x73\x73\x65\x74\x73\x29\x2F\x2A","\x72\x6F\x75\x74\x65","\x2F\x2A","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x72\x6F\x6F\x74","\x70\x75\x62\x6C\x69\x63","\x6A\x6F\x69\x6E","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x74\x65\x73\x74","\x63\x6C\x69\x65\x6E\x74","\x69\x6E\x64\x65\x78\x2E\x68\x74\x6D\x6C","\x73\x65\x6E\x64\x46\x69\x6C\x65","\x61\x6C\x6C"];_0x8e47[0];var config=require(_0x8e47[1]);var errors=require(_0x8e47[2]);var path=require(_0x8e47[3]);var moment=require(_0x8e47[4]);module[_0x8e47[5]]=function(_0x8234x5){var _0x8234x6=_0x8234x5[_0x8e47[7]](_0x8e47[6]);_0x8234x5[_0x8e47[10]](_0x8e47[8],require(_0x8e47[9]));_0x8234x5[_0x8e47[10]](_0x8e47[11],require(_0x8e47[12]));_0x8234x5[_0x8e47[10]](_0x8e47[13],require(_0x8e47[14]));_0x8234x5[_0x8e47[10]](_0x8e47[15],require(_0x8e47[16]));_0x8234x5[_0x8e47[10]](_0x8e47[17],require(_0x8e47[18]));_0x8234x5[_0x8e47[10]](_0x8e47[19],require(_0x8e47[20]));_0x8234x5[_0x8e47[10]](_0x8e47[21],require(_0x8e47[22]));_0x8234x5[_0x8e47[10]](_0x8e47[23],require(_0x8e47[24]));_0x8234x5[_0x8e47[10]](_0x8e47[25],require(_0x8e47[26]));_0x8234x5[_0x8e47[10]](_0x8e47[27],require(_0x8e47[28]));_0x8234x5[_0x8e47[10]](_0x8e47[29],require(_0x8e47[30]));_0x8234x5[_0x8e47[10]](_0x8e47[31],require(_0x8e47[32]));_0x8234x5[_0x8e47[10]](_0x8e47[33],require(_0x8e47[34]));_0x8234x5[_0x8e47[10]](_0x8e47[35],require(_0x8e47[36]));_0x8234x5[_0x8e47[10]](_0x8e47[37],require(_0x8e47[38]));_0x8234x5[_0x8e47[10]](_0x8e47[39],require(_0x8e47[40]));_0x8234x5[_0x8e47[10]](_0x8e47[41],require(_0x8e47[42]));_0x8234x5[_0x8e47[10]](_0x8e47[43],require(_0x8e47[44]));_0x8234x5[_0x8e47[10]](_0x8e47[45],require(_0x8e47[46]));_0x8234x5[_0x8e47[10]](_0x8e47[47],require(_0x8e47[48]));_0x8234x5[_0x8e47[10]](_0x8e47[49],require(_0x8e47[50]));_0x8234x5[_0x8e47[10]](_0x8e47[51],require(_0x8e47[52]));_0x8234x5[_0x8e47[10]](_0x8e47[53],require(_0x8e47[54]));_0x8234x5[_0x8e47[10]](_0x8e47[55],require(_0x8e47[56]));_0x8234x5[_0x8e47[10]](_0x8e47[57],require(_0x8e47[58]));_0x8234x5[_0x8e47[10]](_0x8e47[59],require(_0x8e47[60]));_0x8234x5[_0x8e47[10]](_0x8e47[61],require(_0x8e47[62]));_0x8234x5[_0x8e47[10]](_0x8e47[63],require(_0x8e47[64]));_0x8234x5[_0x8e47[10]](_0x8e47[65],require(_0x8e47[66]));_0x8234x5[_0x8e47[10]](_0x8e47[67],require(_0x8e47[68]));_0x8234x5[_0x8e47[10]](_0x8e47[69],require(_0x8e47[70]));_0x8234x5[_0x8e47[10]](_0x8e47[71],require(_0x8e47[72]));_0x8234x5[_0x8e47[10]](_0x8e47[73],require(_0x8e47[74]));_0x8234x5[_0x8e47[10]](_0x8e47[75],require(_0x8e47[76]));_0x8234x5[_0x8e47[10]](_0x8e47[77],require(_0x8e47[78]));_0x8234x5[_0x8e47[10]](_0x8e47[79],require(_0x8e47[80]));_0x8234x5[_0x8e47[10]](_0x8e47[81],require(_0x8e47[82]));_0x8234x5[_0x8e47[10]](_0x8e47[83],require(_0x8e47[84]));_0x8234x5[_0x8e47[10]](_0x8e47[85],require(_0x8e47[86]));_0x8234x5[_0x8e47[10]](_0x8e47[87],require(_0x8e47[88]));_0x8234x5[_0x8e47[10]](_0x8e47[89],require(_0x8e47[90]));_0x8234x5[_0x8e47[10]](_0x8e47[91],require(_0x8e47[92]));_0x8234x5[_0x8e47[10]](_0x8e47[93],require(_0x8e47[94]));_0x8234x5[_0x8e47[10]](_0x8e47[95],require(_0x8e47[96]));_0x8234x5[_0x8e47[10]](_0x8e47[97],require(_0x8e47[98]));_0x8234x5[_0x8e47[10]](_0x8e47[99],require(_0x8e47[100]));_0x8234x5[_0x8e47[10]](_0x8e47[101],require(_0x8e47[102]));_0x8234x5[_0x8e47[10]](_0x8e47[103],require(_0x8e47[104]));_0x8234x5[_0x8e47[10]](_0x8e47[105],require(_0x8e47[106]));_0x8234x5[_0x8e47[10]](_0x8e47[107],require(_0x8e47[108]));_0x8234x5[_0x8e47[10]](_0x8e47[109],require(_0x8e47[110]));_0x8234x5[_0x8e47[10]](_0x8e47[111],require(_0x8e47[110]));_0x8234x5[_0x8e47[10]](_0x8e47[112],require(_0x8e47[113]));_0x8234x5[_0x8e47[10]](_0x8e47[114],require(_0x8e47[115]));_0x8234x5[_0x8e47[10]](_0x8e47[116],require(_0x8e47[117]));_0x8234x5[_0x8e47[10]](_0x8e47[118],require(_0x8e47[119]));_0x8234x5[_0x8e47[10]](_0x8e47[120],require(_0x8e47[121]));_0x8234x5[_0x8e47[10]](_0x8e47[122],require(_0x8e47[123]));_0x8234x5[_0x8e47[10]](_0x8e47[124],require(_0x8e47[125]));_0x8234x5[_0x8e47[10]](_0x8e47[126],require(_0x8e47[127]));_0x8234x5[_0x8e47[10]](_0x8e47[128],require(_0x8e47[129]));_0x8234x5[_0x8e47[10]](_0x8e47[130],require(_0x8e47[131]));_0x8234x5[_0x8e47[10]](_0x8e47[132],require(_0x8e47[133]));_0x8234x5[_0x8e47[10]](_0x8e47[134],require(_0x8e47[135]));_0x8234x5[_0x8e47[10]](_0x8e47[136],require(_0x8e47[137]));_0x8234x5[_0x8e47[10]](_0x8e47[138],require(_0x8e47[139]));_0x8234x5[_0x8e47[10]](_0x8e47[140],require(_0x8e47[141]));_0x8234x5[_0x8e47[10]](_0x8e47[142],require(_0x8e47[143]));_0x8234x5[_0x8e47[10]](_0x8e47[144],require(_0x8e47[145]));_0x8234x5[_0x8e47[10]](_0x8e47[146],require(_0x8e47[147]));_0x8234x5[_0x8e47[10]](_0x8e47[148],require(_0x8e47[149]));_0x8234x5[_0x8e47[10]](_0x8e47[150],require(_0x8e47[151]));_0x8234x5[_0x8e47[10]](_0x8e47[152],require(_0x8e47[153]));_0x8234x5[_0x8e47[10]](_0x8e47[154],require(_0x8e47[155]));_0x8234x5[_0x8e47[10]](_0x8e47[156],require(_0x8e47[157]));_0x8234x5[_0x8e47[10]](_0x8e47[138],require(_0x8e47[139]));_0x8234x5[_0x8e47[10]](_0x8e47[158],require(_0x8e47[159]));_0x8234x5[_0x8e47[10]](_0x8e47[160],require(_0x8e47[161]));_0x8234x5[_0x8e47[10]](_0x8e47[162],require(_0x8e47[163]));_0x8234x5[_0x8e47[10]](_0x8e47[164],require(_0x8e47[165]));_0x8234x5[_0x8e47[10]](_0x8e47[166],require(_0x8e47[167]));_0x8234x5[_0x8e47[10]](_0x8e47[168],require(_0x8e47[169]));_0x8234x5[_0x8e47[10]](_0x8e47[170],require(_0x8e47[171]));_0x8234x5[_0x8e47[10]](_0x8e47[172],require(_0x8e47[173]));_0x8234x5[_0x8e47[10]](_0x8e47[174],require(_0x8e47[175]));_0x8234x5[_0x8e47[10]](_0x8e47[176],require(_0x8e47[177]));_0x8234x5[_0x8e47[10]](_0x8e47[178],require(_0x8e47[179]));_0x8234x5[_0x8e47[10]](_0x8e47[180],require(_0x8e47[181]));_0x8234x5[_0x8e47[10]](_0x8e47[182],require(_0x8e47[183]));_0x8234x5[_0x8e47[10]](_0x8e47[184],require(_0x8e47[185]));_0x8234x5[_0x8e47[10]](_0x8e47[186],require(_0x8e47[187]));_0x8234x5[_0x8e47[189]](_0x8e47[188])[_0x8e47[7]](errors[404]);_0x8234x5[_0x8e47[200]](_0x8e47[190],function(_0x8234x7,_0x8234x8,_0x8234x9){var _0x8234xa={};if(_0x8e47[191]===_0x8234x6){_0x8234xa[_0x8e47[192]]=path[_0x8e47[194]](config[_0x8e47[192]],_0x8e47[193])};if(_0x8e47[195]===_0x8234x6||_0x8e47[196]===_0x8234x6){_0x8234xa[_0x8e47[192]]=path[_0x8e47[194]](config[_0x8e47[192]],_0x8e47[197])};_0x8234x8[_0x8e47[199]](_0x8e47[198],_0x8234xa);});};
\ No newline at end of file